diff options
author | Anton Berezin <tobez@FreeBSD.org> | 2007-02-19 20:12:22 +0000 |
---|---|---|
committer | Anton Berezin <tobez@FreeBSD.org> | 2007-02-19 20:12:22 +0000 |
commit | 7e658dbee431e8d546ac760b5a76833a9f82d146 (patch) | |
tree | 42d648374fd1d3dac1e3e00d7a2091a9eb5b86ed /lang/perl5.16 | |
parent | - Move doc-install above .include <bsd.port.post.mk> (diff) |
1. Fix breakage due to incorrect objformat-related change.
2. While at it, add a WITHOUT_USE_PERL knob that avoids spamming
/usr/bin; it is meant for those who do cross-installs and such.
No version bump.
Pointy hat to: kris [1]
Reported by: many [1]
PR: 104524 [2]
Submitted by: Nick Hibma <nick@anywi.com> [2]
Notes
Notes:
svn path=/head/; revision=185534
Diffstat (limited to 'lang/perl5.16')
-rw-r--r-- | lang/perl5.16/Makefile | 3 | ||||
-rw-r--r-- | lang/perl5.16/files/patch-freebsd.sh | 18 |
2 files changed, 12 insertions, 9 deletions
diff --git a/lang/perl5.16/Makefile b/lang/perl5.16/Makefile index 4a7cf88df437..46c7d47d3b4e 100644 --- a/lang/perl5.16/Makefile +++ b/lang/perl5.16/Makefile @@ -146,6 +146,7 @@ pre-fetch: @${ECHO} " (affects only 32-bit platforms)." @${ECHO} " WITH_THREADS=yes Build threaded perl." @${ECHO} " ENABLE_SUIDPERL=yes Also build set-user-id suidperl binary." + @${ECHO} " WITHOUT_USE_PERL=yes Do not rewrite links in /usr/bin" @${ECHO} "" post-patch: @@ -187,11 +188,13 @@ post-install: ${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${NOBINMODE} \ ${BSDPAN_WRKSRC}/${files} ${BSDPAN_DEST}/${files} .endfor +.ifndef WITHOUT_USE_PERL PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL .if ${OSVERSION} < 500036 ${INSTALL_SCRIPT} ${WRKDIR}/use.perl ${PREFIX}/bin/use.perl @fmt ${PKGMESSAGE} .endif +.endif rebuild-xs: ${LOCALBASE}/sbin/portupgrade -f `(${FIND} ${PKG_DBDIR}/p5*/+CONTENTS | \ diff --git a/lang/perl5.16/files/patch-freebsd.sh b/lang/perl5.16/files/patch-freebsd.sh index 9fa2966a2e8e..ca8fa5a82cfb 100644 --- a/lang/perl5.16/files/patch-freebsd.sh +++ b/lang/perl5.16/files/patch-freebsd.sh @@ -1,6 +1,6 @@ ---- hints/freebsd.sh.orig Wed Mar 24 21:47:33 2004 -+++ hints/freebsd.sh Mon Jan 29 00:30:11 2007 -@@ -88,6 +88,8 @@ +--- hints/freebsd.sh.orig Wed Mar 24 22:47:33 2004 ++++ hints/freebsd.sh Mon Feb 19 20:53:50 2007 +@@ -88,6 +88,8 @@ case "$osvers" in esac libswanted=`echo $libswanted | sed 's/ malloc / /'` libswanted=`echo $libswanted | sed 's/ bind / /'` @@ -9,7 +9,7 @@ # iconv gone in Perl 5.8.1, but if someone compiles 5.8.0 or earlier. libswanted=`echo $libswanted | sed 's/ iconv / /'` d_setregid='define' -@@ -102,6 +104,10 @@ +@@ -102,6 +104,10 @@ case "$osvers" in ;; esac libswanted=`echo $libswanted | sed 's/ malloc / /'` @@ -20,7 +20,7 @@ ;; esac -@@ -116,17 +122,17 @@ +@@ -116,17 +122,17 @@ case "$osvers" in *) objformat=`/usr/bin/objformat` @@ -35,16 +35,16 @@ libpth="/usr/lib/aout /usr/local/lib /usr/lib" glibpth="/usr/lib/aout /usr/local/lib /usr/lib" fi -+ else lddlflags='-Bshareable' ++ else + libpth="/usr/lib /usr/local/lib" + glibpth="/usr/lib /usr/local/lib" -+ ldflags=" -Wl,-E" ++ ldflags="%%PTHREAD_LIBS%% -Wl,-E" + lddlflags="-shared " fi cccdlflags='-DPIC -fPIC' ;; -@@ -136,7 +142,7 @@ +@@ -136,7 +142,7 @@ case "$osvers" in 0*|1*|2*|3*) ;; *) @@ -53,7 +53,7 @@ if /usr/bin/file -L /usr/lib/libc.so | /usr/bin/grep -vq "not stripped" ; then usenm=false fi -@@ -183,7 +189,9 @@ +@@ -183,7 +189,9 @@ esac # This script UU/usethreads.cbu will get 'called-back' by Configure # after it has prompted the user for whether to use threads. |