summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authorjlam <jlam>2001-05-18 13:52:49 +0000
committerjlam <jlam>2001-05-18 13:52:49 +0000
commit40f30732ea0d6815284ff6ab23270f90a34d0d55 (patch)
tree14319e2d7d7234a8d10cbf3a211ae3d414da22b3 /lang
parentef197374d7b1a9bc8f214c3900743be48af81050 (diff)
downloadpkgsrc-40f30732ea0d6815284ff6ab23270f90a34d0d55.tar.gz
Fix this to build on a.out platforms. Addresses pkg/12945 by John Klos.
Diffstat (limited to 'lang')
-rw-r--r--lang/libperl/Makefile15
-rw-r--r--lang/libperl/pkg/PLIST4
2 files changed, 13 insertions, 6 deletions
diff --git a/lang/libperl/Makefile b/lang/libperl/Makefile
index 724e7c67759..098cff6ce74 100644
--- a/lang/libperl/Makefile
+++ b/lang/libperl/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.16 2001/05/12 16:15:44 wiz Exp $
+# $NetBSD: Makefile,v 1.17 2001/05/18 13:52:49 jlam Exp $
DISTNAME= perl-${PERL_VERSION}
PKGNAME= libperl-${PERL_VERSION}nb2
@@ -25,12 +25,19 @@ CONFIGURE_ARGS+= -sde -Dprefix=${PREFIX} -Doptimize="${CFLAGS}" \
-Dcc=gcc -Dusemymalloc=false
CONFIGURE_ARGS+= -Duseshrplib=true
MAKE_ENV+= LD_LIBRARY_PATH=${WRKSRC}
-ALL_TARGET= lib/Config.pm libperl.so
+ALL_TARGET= lib/Config.pm ${LIBPERL}
+PLIST_SUBST+= LIBPERL=${LIBPERL}
DYNALOADER_SRCDIR= ${WRKSRC}/ext/DynaLoader
.include "../../mk/bsd.prefs.mk"
+.if ${OBJECT_FMT} == "ELF"
+LIBPERL= libperl.so
+.else
+LIBPERL= libperl.so.6.0
+.endif
+
.if ${OPSYS} == "NetBSD"
.if !exists(/usr/libexec/ld.elf_so) && !exists(/usr/libexec/ld.so)
IGNORE= ${PKGNAME} needs shared objects
@@ -43,8 +50,8 @@ post-build:
${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} DynaLoader.o
do-install:
- ${INSTALL_DATA} ${WRKSRC}/libperl.so \
- ${PERL5_ARCHLIB}/CORE/libperl.so
+ ${INSTALL_DATA} ${WRKSRC}/${LIBPERL} \
+ ${PERL5_ARCHLIB}/CORE/${LIBPERL}
${INSTALL_DATA} ${DYNALOADER_SRCDIR}/DynaLoader.o \
${PERL5_ARCHLIB}/DynaLoader_pic.o
diff --git a/lang/libperl/pkg/PLIST b/lang/libperl/pkg/PLIST
index 74329526bef..6bad3d61b42 100644
--- a/lang/libperl/pkg/PLIST
+++ b/lang/libperl/pkg/PLIST
@@ -1,3 +1,3 @@
-@comment $NetBSD: PLIST,v 1.3 2001/05/11 14:52:22 jlam Exp $
-${PERL5_ARCHLIB}/CORE/libperl.so
+@comment $NetBSD: PLIST,v 1.4 2001/05/18 13:52:49 jlam Exp $
+${PERL5_ARCHLIB}/CORE/${LIBPERL}
${PERL5_ARCHLIB}/DynaLoader_pic.o