diff options
author | mat <mat@FreeBSD.org> | 2015-07-21 20:36:08 +0800 |
---|---|---|
committer | mat <mat@FreeBSD.org> | 2015-07-21 20:36:08 +0800 |
commit | 998aeec5619344dc494d6b9f7c442f9fbc86246d (patch) | |
tree | 813a02089a8c36891ab85e8b436089f511f62444 /lang/perl5.20 | |
parent | 51dac20db902f33f66538ae056e1a9e8cd3cca66 (diff) | |
download | freebsd-ports-gnome-998aeec5619344dc494d6b9f7c442f9fbc86246d.tar.gz freebsd-ports-gnome-998aeec5619344dc494d6b9f7c442f9fbc86246d.tar.zst freebsd-ports-gnome-998aeec5619344dc494d6b9f7c442f9fbc86246d.zip |
Convert the post-patch target to use the new target option helpers.
While there, remove some DEBUG handling that is already done in
bsd.port.mk.
Sponsored by: Absolight
Diffstat (limited to 'lang/perl5.20')
-rw-r--r-- | lang/perl5.20/Makefile | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/lang/perl5.20/Makefile b/lang/perl5.20/Makefile index 758e3e3838dd..11a7f986e4ab 100644 --- a/lang/perl5.20/Makefile +++ b/lang/perl5.20/Makefile @@ -169,23 +169,20 @@ PKGINSTALL= ${WRKDIR}/use.perl PKGDEINSTALL= ${WRKDIR}/use.perl .endif -.if ${PORT_OPTIONS:MDEBUG} -STRIP= -STRIP_CMD= ${TRUE} -.endif - # Put a symlink to the future libperl.so.x.yy so that -lperl works. post-extract: ${LN} -s libperl.so.${PERL_VERSION} ${WRKSRC}/libperl.so ${LN} -s libperl.so.${PERL_VERSION} ${WRKSRC}/libperl.so.${PERL_VER} +.if !defined(MAKING_PATCHES) +# make clean patch makepatch MAKING_PATCHES= post-patch: ${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' \ ${WRKSRC}/Configure ${WRKSRC}/hints/freebsd.sh -.if ${PORT_OPTIONS:MPTHREAD} +post-patch-PTHREAD-on: ${REINPLACE_CMD} -e 's|%%PTHREAD_LIBS%%|-lpthread|g;' \ ${WRKSRC}/hints/freebsd.sh -.else +post-patch-PTHREAD-off: ${REINPLACE_CMD} -e 's|%%PTHREAD_LIBS%%||g;' \ ${WRKSRC}/hints/freebsd.sh .endif |