aboutsummaryrefslogtreecommitdiff
path: root/lang/perl5.16
diff options
context:
space:
mode:
authorMathieu Arnold <mat@FreeBSD.org>2014-11-27 09:57:39 +0000
committerMathieu Arnold <mat@FreeBSD.org>2014-11-27 09:57:39 +0000
commit8e245f6ddc4e875870a1ab6cf5e417ae80023242 (patch)
tree5d9150aaab378a0243fa71cb4879faa8e55e725d /lang/perl5.16
parentd83e2e9c294d9b2e1c684bfe0901333c8f7be04f (diff)
downloadports-8e245f6ddc4e875870a1ab6cf5e417ae80023242.tar.gz
ports-8e245f6ddc4e875870a1ab6cf5e417ae80023242.zip
- Bring back the .packlist files, many people need them, they will
automatically added to the plists. - Add soname to libperl.so and rename it to libperl.so.PERL_VER, for instance libperl.so.5.18. To keep software linked with it working, provide a libperl.so symlink. - Rollback Perl's man page location change, it creates conflicts for the few modules that ship with Perl and are in the ports tree. Sponsored by: Absolight
Notes
Notes: svn path=/head/; revision=373476
Diffstat (limited to 'lang/perl5.16')
-rw-r--r--lang/perl5.16/Makefile8
-rw-r--r--lang/perl5.16/files/patch-Makefile.SH11
-rw-r--r--lang/perl5.16/pkg-plist3
3 files changed, 19 insertions, 3 deletions
diff --git a/lang/perl5.16/Makefile b/lang/perl5.16/Makefile
index 52e2e5700298..1f4552c9abad 100644
--- a/lang/perl5.16/Makefile
+++ b/lang/perl5.16/Makefile
@@ -3,7 +3,7 @@
PORTNAME= perl
PORTVERSION= ${PERL_VERSION}
-PORTREVISION= 12
+PORTREVISION= 13
CATEGORIES= lang devel perl5
MASTER_SITES= CPAN \
${MASTER_SITE_LOCAL:S/$/:local/} \
@@ -57,6 +57,7 @@ USES= tar:bzip2 cpe
HAS_CONFIGURE= yes
CONFIGURE_SCRIPT=Configure
CONFIGURE_ARGS= -sde -Dprefix=${PREFIX} \
+ -Dlibperl=libperl.so.${PERL_VER} \
-Darchlib=${PREFIX}/lib/perl5/${PERL_VER}/${PERL_ARCH} \
-Dprivlib=${PREFIX}/lib/perl5/${PERL_VER} \
-Dman3dir=${PREFIX}/${MAN3PREFIX_REL}/man/man3 \
@@ -116,7 +117,7 @@ CONFIGURE_ARGS+= \
-Accflags=-DPERLIOBUF_DEFAULT_BUFSIZ=${PERLIOBUF_DEFAULT_BUFSIZ}
.endif
-MAN3PREFIX_REL= lib/perl5/${PERL_VER}
+MAN3PREFIX_REL= lib/perl5/${PERL_VER}/perl
MAN3PREFIX= ${PREFIX}/${MAN3PREFIX_REL}
MANDIRS+= ${MAN3PREFIX}/man
@@ -214,8 +215,9 @@ post-install:
${MKDIR} ${STAGEDIR}${SITE_MAN3}
${MKDIR} ${STAGEDIR}${SITE_ARCH}/auto
${MKDIR} ${STAGEDIR}${SITE_PERL}/auto
- ${RM} ${STAGEDIR}${PREFIX}/lib/perl5/${PERL_VER}/${PERL_ARCH}/.packlist
${LN} ${STAGEDIR}${PREFIX}/bin/perl${PERL_VERSION} ${STAGEDIR}${PREFIX}/bin/perl5
+ ${LN} -s libperl.so.${PERL_VER} ${STAGEDIR}${PREFIX}/lib/perl5/${PERL_VER}/${PERL_ARCH}/CORE/libperl.so
+ ${LN} -s libperl.so.${PERL_VER} ${STAGEDIR}${PREFIX}/lib/perl5/${PERL_VER}/${PERL_ARCH}/CORE/libperl.so.${PERL_VERSION}
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/perl${PERL_VERSION}
${INSTALL_DATA} ${WRKDIR}/perl5_version ${STAGEDIR}${PREFIX}/etc
${FIND} ${STAGEDIR} -name '*.bs' -size 0 -delete
diff --git a/lang/perl5.16/files/patch-Makefile.SH b/lang/perl5.16/files/patch-Makefile.SH
new file mode 100644
index 000000000000..ac3caed87c42
--- /dev/null
+++ b/lang/perl5.16/files/patch-Makefile.SH
@@ -0,0 +1,11 @@
+--- Makefile.SH.orig 2013-03-04 15:16:21 UTC
++++ Makefile.SH
+@@ -795,7 +795,7 @@ $(LIBPERL): $& $(obj) $(DYNALOADER) $(LI
+ true)
+ $spitshell >>$Makefile <<'!NO!SUBS!'
+ rm -f $@
+- $(LD) -o $@ $(SHRPLDFLAGS) $(obj) $(DYNALOADER) $(libs)
++ $(LD) -o $@ $(SHRPLDFLAGS) -Wl,-soname,$(LIBPERL) $(obj) $(DYNALOADER) $(libs)
+ !NO!SUBS!
+ case "$osname" in
+ aix)
diff --git a/lang/perl5.16/pkg-plist b/lang/perl5.16/pkg-plist
index f5ec466da3e9..2c093f5af032 100644
--- a/lang/perl5.16/pkg-plist
+++ b/lang/perl5.16/pkg-plist
@@ -723,6 +723,7 @@ lib/perl5/%%PERL_VER%%/inc/latest/private.pm
lib/perl5/%%PERL_VER%%/integer.pm
lib/perl5/%%PERL_VER%%/less.pm
lib/perl5/%%PERL_VER%%/locale.pm
+lib/perl5/%%PERL_VER%%/%%PERL_ARCH%%/.packlist
lib/perl5/%%PERL_VER%%/%%PERL_ARCH%%/B.pm
lib/perl5/%%PERL_VER%%/%%PERL_ARCH%%/B/Concise.pm
lib/perl5/%%PERL_VER%%/%%PERL_ARCH%%/B/Showlex.pm
@@ -753,6 +754,8 @@ lib/perl5/%%PERL_VER%%/%%PERL_ARCH%%/CORE/iperlsys.h
lib/perl5/%%PERL_VER%%/%%PERL_ARCH%%/CORE/keywords.h
lib/perl5/%%PERL_VER%%/%%PERL_ARCH%%/CORE/l1_char_class_tab.h
lib/perl5/%%PERL_VER%%/%%PERL_ARCH%%/CORE/libperl.so
+lib/perl5/%%PERL_VER%%/%%PERL_ARCH%%/CORE/libperl.so.%%PERL_VER%%
+lib/perl5/%%PERL_VER%%/%%PERL_ARCH%%/CORE/libperl.so.%%PERL_VERSION%%
lib/perl5/%%PERL_VER%%/%%PERL_ARCH%%/CORE/malloc_ctl.h
lib/perl5/%%PERL_VER%%/%%PERL_ARCH%%/CORE/metaconfig.h
lib/perl5/%%PERL_VER%%/%%PERL_ARCH%%/CORE/mg.h