summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authorveego <veego>2000-05-16 14:46:44 +0000
committerveego <veego>2000-05-16 14:46:44 +0000
commit4d4355e2473047dd5f7637f9dd7e3c8f6053c001 (patch)
tree7210c3a521db50c790a1008f5352c844a216841b /lang
parent5a5414cecbda580b7b60de166c1e6e7c1e9124fb (diff)
downloadpkgsrc-4d4355e2473047dd5f7637f9dd7e3c8f6053c001.tar.gz
Make it work on Solaris.
Diffstat (limited to 'lang')
-rw-r--r--lang/libperl/Makefile11
1 files changed, 10 insertions, 1 deletions
diff --git a/lang/libperl/Makefile b/lang/libperl/Makefile
index bd6da327583..81c42b123b0 100644
--- a/lang/libperl/Makefile
+++ b/lang/libperl/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.8 2000/03/27 08:54:57 tron Exp $
+# $NetBSD: Makefile,v 1.9 2000/05/16 14:46:44 veego Exp $
#
DISTNAME= perl5.004_04
@@ -12,6 +12,9 @@ HOMEPAGE= http://language.perl.com/index.html
USE_PERL5= yes
+.include "../../mk/bsd.prefs.mk"
+
+.if ${OPSYS} == "NetBSD"
.if exists(/usr/libexec/ld.elf_so)
PLIST_SRC= ${PKGDIR}/PLIST-elf
.elif exists(/usr/libexec/ld.so)
@@ -19,6 +22,9 @@ PLIST_SRC= ${PKGDIR}/PLIST-aout
.else
IGNORE= "needs shared object support"
.endif
+.elif ${OPSYS} == "SunOS"
+PLIST_SRC= ${PKGDIR}/PLIST-elf
+.endif
PATCHDIR= ../perl5/patches
HAS_CONFIGURE= yes
@@ -27,6 +33,9 @@ CONFIGURE_SCRIPT= ./Configure
CONFIGURE_ARGS+= -sde -Dprefix=${PREFIX} -Duseshrplib=true \
-Darchname=${MACHINE_ARCH}-${LOWER_OPSYS} \
-Dusemymalloc=false
+.if ${OPSYS} == "SunOS"
+CONFIGURE_ARGS+= -Dcc="${CC}"
+.endif
MAKE_ENV+= LD_LIBRARY_PATH=${WRKSRC}
ALL_TARGET= perl