summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortv <tv@pkgsrc.org>1998-12-02 02:42:05 +0000
committertv <tv@pkgsrc.org>1998-12-02 02:42:05 +0000
commitea20e141eba89078c2fc565ea53e7a05a424d0c3 (patch)
tree3eb1b5d734aa38a41633aa23997d240f31beb1ac
parent6323f0b6b70feb9c1e36c282e1de3c547883d8bf (diff)
downloadpkgsrc-ea20e141eba89078c2fc565ea53e7a05a424d0c3.tar.gz
Add libperl, a shared object version of the Perl link library. Installs
only libperl.so and `soperl' (a Perl binary that uses the libperl.so); requires the perl5 pkg to be installed for all the rest of Perl.
-rw-r--r--lang/libperl/Makefile38
-rw-r--r--lang/libperl/files/md53
-rw-r--r--lang/libperl/pkg/COMMENT1
-rw-r--r--lang/libperl/pkg/DESCR9
-rw-r--r--lang/libperl/pkg/PLIST-aout3
-rw-r--r--lang/libperl/pkg/PLIST-elf3
6 files changed, 57 insertions, 0 deletions
diff --git a/lang/libperl/Makefile b/lang/libperl/Makefile
new file mode 100644
index 00000000000..4575ce005d2
--- /dev/null
+++ b/lang/libperl/Makefile
@@ -0,0 +1,38 @@
+# $NetBSD: Makefile,v 1.1.1.1 1998/12/02 02:42:05 tv Exp $
+#
+
+DISTNAME= perl5.004_04
+PKGNAME= libperl-5.00404
+CATEGORIES= lang devel perl5
+MASTER_SITES= ftp://ftp.digital.com/pub/plan/perl/CPAN/src/5.0/ \
+ ftp://ftp.cdrom.com/pub/perl/CPAN/src/5.0/
+
+MAINTAINER= packages@netbsd.org
+HOMEPAGE= http://language.perl.com/index.html
+
+USE_PERL5= yes
+
+.if exists(/usr/libexec/ld.elf_so)
+PLIST_SRC= ${PKGDIR}/PLIST-elf
+.elif exists(/usr/libexec/ld.so)
+PLIST_SRC= ${PKGDIR}/PLIST-aout
+.else
+# Need to determine `NOPIC' before bsd.own.mk is included.
+NOT_FOR_ARCHS!= sysctl -n hw.machine_arch
+.endif
+PATCHDIR= ../perl5/patches
+
+HAS_CONFIGURE= yes
+CONFIGURE_ENV+= PREFIX=${PREFIX}
+CONFIGURE_SCRIPT= Configure
+CONFIGURE_ARGS+= -sde -Dprefix=${PREFIX} \
+ -Darchname=${MACHINE_ARCH}-netbsd -Duseshrplib=true
+MAKE_ENV+= LD_LIBRARY_PATH=${WRKSRC}
+ALL_TARGET= perl
+
+do-install:
+ ${INSTALL_DATA} ${WRKSRC}/libperl.so* \
+ ${PREFIX}/lib/perl5/${MACHINE_ARCH}-netbsd/5.00404/CORE/
+ ${INSTALL_PROGRAM} ${WRKSRC}/perl ${PREFIX}/bin/soperl
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/lang/libperl/files/md5 b/lang/libperl/files/md5
new file mode 100644
index 00000000000..f23d310ac38
--- /dev/null
+++ b/lang/libperl/files/md5
@@ -0,0 +1,3 @@
+$NetBSD: md5,v 1.1.1.1 1998/12/02 02:42:05 tv Exp $
+
+MD5 (perl5.004_04.tar.gz) = 2618029201ad19cfb9a7d02a498eb1f4
diff --git a/lang/libperl/pkg/COMMENT b/lang/libperl/pkg/COMMENT
new file mode 100644
index 00000000000..a594d19d11a
--- /dev/null
+++ b/lang/libperl/pkg/COMMENT
@@ -0,0 +1 @@
+PERL core library as a shared object
diff --git a/lang/libperl/pkg/DESCR b/lang/libperl/pkg/DESCR
new file mode 100644
index 00000000000..94c47b48925
--- /dev/null
+++ b/lang/libperl/pkg/DESCR
@@ -0,0 +1,9 @@
+From the distribution README:
+
+Perl is a language that combines some of the features of C, sed, awk
+and shell. See the manual page for more hype. There are also two Nutshell
+Handbooks published by O'Reilly & Assoc. See pod/perlbook.pod
+for more information.
+
+This package installs libperl as a shared object so that it can be linked
+with minimal executable overhead, or can be dlopen()ed.
diff --git a/lang/libperl/pkg/PLIST-aout b/lang/libperl/pkg/PLIST-aout
new file mode 100644
index 00000000000..5280131cd37
--- /dev/null
+++ b/lang/libperl/pkg/PLIST-aout
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST-aout,v 1.1.1.1 1998/12/02 02:42:05 tv Exp $
+bin/soperl
+lib/perl5/${MACHINE_ARCH}-netbsd/5.00404/CORE/libperl.so.4.4
diff --git a/lang/libperl/pkg/PLIST-elf b/lang/libperl/pkg/PLIST-elf
new file mode 100644
index 00000000000..12e7e07a7b4
--- /dev/null
+++ b/lang/libperl/pkg/PLIST-elf
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST-elf,v 1.1.1.1 1998/12/02 02:42:05 tv Exp $
+bin/soperl
+lib/perl5/${MACHINE_ARCH}-netbsd/5.00404/CORE/libperl.so