Set ${PERL}, and add it to CONFIGURE_ENV, so configure can munge the
she-bang lines properly. While we're at at, fake PERL_VERSION, if necessary (i.e. lie brazenly if ${PERL} is not found), so we can build this package correctly, even _without_ actually having perl installed!
This commit is contained in:
parent
b41cba1155
commit
a515340e6e
1 changed files with 8 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile.common,v 1.12 2001/02/08 05:57:52 fredb Exp $
|
||||
# $NetBSD: Makefile.common,v 1.13 2001/03/30 20:31:57 fredb Exp $
|
||||
#
|
||||
|
||||
DISTNAME= xscreensaver-3.28
|
||||
|
@ -12,7 +12,6 @@ HOMEPAGE= http://www.jwz.org/xscreensaver/
|
|||
DEPENDS+= gtk+-1.2.*:../../x11/gtk
|
||||
|
||||
USE_MESA= yes
|
||||
USE_PERL5= yes
|
||||
USE_X11BASE= yes
|
||||
USE_XPM= yes
|
||||
|
||||
|
@ -30,6 +29,7 @@ CONFIGURE_ARGS+= --with-zippy=/usr/games/fortune
|
|||
CONFIGURE_ENV+= INSTALL=/usr/bin/install
|
||||
CONFIGURE_ENV+= X_PRE_LIBS=-lXt
|
||||
CONFIGURE_ENV+= ac_cv_x_app_defaults="${X11PREFIX}/lib/X11/app-defaults"
|
||||
CONFIGURE_ENV+= PERL="${PERL}" ac_cv_perl_version="${PERL_VERSION}"
|
||||
MAKE_ENV+= KDEDIR=${X11PREFIX}
|
||||
|
||||
FILESDIR= ${.CURDIR}/../../x11/xscreensaver/files
|
||||
|
@ -44,6 +44,12 @@ post-patch:
|
|||
|
||||
.include "../../mk/bsd.prefs.mk"
|
||||
|
||||
PERL?= ${LOCALBASE}/bin/perl
|
||||
.ifndef (PERL_VERSION)
|
||||
PERL_VERSION!= if [ -x ${PERL} ]; then ${PERL} -e 'print $$]'; else echo "5.006"; fi
|
||||
MAKEFLAGS+= PERL_VERSION="${PERL_VERSION}"
|
||||
.endif
|
||||
|
||||
.if (${OPSYS} == "NetBSD")
|
||||
.if defined(KERBEROS)
|
||||
CFLAGS+= -I/usr/include/kerberosIV
|
||||
|
|
Loading…
Reference in a new issue