summaryrefslogtreecommitdiff
path: root/x11
diff options
context:
space:
mode:
authorfredb <fredb@pkgsrc.org>2001-03-30 20:31:57 +0000
committerfredb <fredb@pkgsrc.org>2001-03-30 20:31:57 +0000
commita515340e6e9de0bbf4330aad3d394ba656dece31 (patch)
treeb008709f03b84fb5ca8f40347519b80d067595b5 /x11
parentb41cba1155d83cf1296abc8a79a7855c744ef342 (diff)
downloadpkgsrc-a515340e6e9de0bbf4330aad3d394ba656dece31.tar.gz
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!
Diffstat (limited to 'x11')
-rw-r--r--x11/xscreensaver/Makefile.common10
1 files changed, 8 insertions, 2 deletions
diff --git a/x11/xscreensaver/Makefile.common b/x11/xscreensaver/Makefile.common
index 166c3cb291e..e83fa21f108 100644
--- a/x11/xscreensaver/Makefile.common
+++ b/x11/xscreensaver/Makefile.common
@@ -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