summaryrefslogtreecommitdiff
path: root/lang/perl5/Makefile
diff options
context:
space:
mode:
authortv <tv@pkgsrc.org>1998-12-01 02:47:18 +0000
committertv <tv@pkgsrc.org>1998-12-01 02:47:18 +0000
commit159844d752368d7e08030e11261ceb0efc44476c (patch)
tree4864d615694a9212925176f0cb14b34967da865a /lang/perl5/Makefile
parent63dc67201444063889d31a4c6accb9d29595e05b (diff)
downloadpkgsrc-159844d752368d7e08030e11261ceb0efc44476c.tar.gz
Add proper shared object support for ELF(!), and make libperl shared on
non-NOPIC systems.
Diffstat (limited to 'lang/perl5/Makefile')
-rw-r--r--lang/perl5/Makefile24
1 files changed, 14 insertions, 10 deletions
diff --git a/lang/perl5/Makefile b/lang/perl5/Makefile
index 6b3f2d81f69..bdb46ed4598 100644
--- a/lang/perl5/Makefile
+++ b/lang/perl5/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.13 1998/10/03 03:14:23 tv Exp $
+# $NetBSD: Makefile,v 1.14 1998/12/01 02:47:18 tv Exp $
# FreeBSD Id: Makefile,v 1.20 1997/07/18 06:16:44 markm Exp
#
@@ -18,21 +18,25 @@ CONFIGURE_ENV+= PREFIX=${PREFIX}
CONFIGURE_SCRIPT= Configure
CONFIGURE_ARGS+= -sde -Dprefix=${PREFIX} \
-Darchname=${MACHINE_ARCH}-${LOPSYS}
+MAKE_ENV+= LD_LIBRARY_PATH=${WRKSRC}
test:
@(cd ${WRKSRC}; make test)
+# ELF and a.out systems have slightly different libperl extensions.
+pre-install:
+.if exists(/usr/libexec/ld.elf_so)
+ @echo 'lib/perl5/${MACHINE_ARCH}-netbsd/5.00404/CORE/libperl.so' >>${WRKDIR}/.PLIST-add
+.elif exists(/usr/libexec/ld.so)
+ @echo 'lib/perl5/${MACHINE_ARCH}-netbsd/5.00404/CORE/libperl.so.4.4' >>${WRKDIR}/.PLIST-add
+.else
+ @echo 'lib/perl5/${MACHINE_ARCH}-netbsd/5.00404/CORE/libperl.a' >>${WRKDIR}/.PLIST-add
+.endif
+
post-install:
@strip ${PREFIX}/bin/a2p
@strip ${PREFIX}/bin/perl
-.if (${OPSYS} != "NetBSD")
-# agc - no suidperl???
- @strip ${PREFIX}/bin/suidperl
-.endif
-
-# XXX until alpha can dynamically load perl modules
-.if (${MACHINE_ARCH} == "alpha")
-NOPIC=1
-.endif
.include "../../mk/bsd.pkg.mk"
+
+PLIST_SRC:= ${WRKDIR}/.PLIST-add ${PLIST_SRC}