diff options
author | Mathieu Arnold <mat@FreeBSD.org> | 2014-12-02 16:27:00 +0000 |
---|---|---|
committer | Mathieu Arnold <mat@FreeBSD.org> | 2014-12-02 16:27:00 +0000 |
commit | ccbded4867bd703c1e19c393f896dabaaf60bc6c (patch) | |
tree | 8d88939f9f84af7cb138cefd72f06164a0204e10 /lang/perl5.14/Makefile | |
parent | 441553d6ec5b15e7a062208d3b01d5fa0ee1083e (diff) |
One last cleanup, factorize a few things into variables, add a few entries to
PLIST_SUB and SUB_LIST, finish making sure the MANPATH are valid all around.
Differential Revision: https://reviews.freebsd.org/D1254
Sponsored by: Absolight
Notes
Notes:
svn path=/head/; revision=373771
Diffstat (limited to 'lang/perl5.14/Makefile')
-rw-r--r-- | lang/perl5.14/Makefile | 41 |
1 files changed, 29 insertions, 12 deletions
diff --git a/lang/perl5.14/Makefile b/lang/perl5.14/Makefile index a2f06442063c..6ca3d230c788 100644 --- a/lang/perl5.14/Makefile +++ b/lang/perl5.14/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/} \ @@ -50,16 +50,20 @@ SITE_PERL_REL?= lib/perl5/site_perl SITE_PERL?= ${PREFIX}/${SITE_PERL_REL} SITE_ARCH_REL?= ${SITE_PERL_REL}/${PERL_ARCH}/${PERL_VER} SITE_ARCH?= ${PREFIX}/${SITE_ARCH_REL} -SITE_MAN3_REL?= ${SITE_PERL_REL}/man/man3 +SITE_MAN3_PREFIX= ${SITE_PERL_REL} +SITE_MAN3_REL?= ${SITE_MAN3_PREFIX}/man/man3 SITE_MAN3?= ${PREFIX}/${SITE_MAN3_REL} +_PRIV_LIB= lib/perl5/${PERL_VER} +_ARCH_LIB= ${_PRIV_LIB}/${PERL_ARCH} + 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} \ + -Darchlib=${PREFIX}/${_ARCH_LIB} \ + -Dprivlib=${PREFIX}/${_PRIV_LIB} \ -Dman3dir=${PREFIX}/${MAN3PREFIX_REL}/man/man3 \ -Dman1dir=${PREFIX}/man/man1 \ -Dsitearch=${SITE_ARCH} \ @@ -79,6 +83,9 @@ MAKE_ENV+= ${LOCALE_CLEANUP} SUB_LIST+= PERL_VERSION=${PERL_VERSION} \ PERL_VER=${PERL_VER} \ SITE_PERL=${SITE_PERL_REL} \ + PRIV_LIB=${_PRIV_LIB} \ + MAN3PREFIX=${MAN3PREFIX_REL} \ + SITEMAN3PREFIX=${SITE_MAN3_PREFIX} \ PERL_ARCH=${PERL_ARCH} SUB_FILES= perl5_version use.perl perl-man.conf @@ -104,10 +111,10 @@ CONFLICTS_INSTALL+= perl5-* .if defined(PERL_VENDOR_PREFIX) CONFIGURE_ARGS+= \ -Dvendorprefix=${PERL_VENDOR_PREFIX} \ - -Dvendorarch=${PERL_VENDOR_PREFIX}/lib/perl5/${PERL_VER}/${PERL_ARCH} \ + -Dvendorarch=${PERL_VENDOR_PREFIX}/${_ARCH_LIB} \ -Dvendorbin=${PERL_VENDOR_PREFIX}/bin \ - -Dvendorlib=${PERL_VENDOR_PREFIX}/lib/perl5/${PERL_VER} \ - -Dvendorman3dir=${PERL_VENDOR_PREFIX}/lib/perl5/${PERL_VER}/man/man3 \ + -Dvendorlib=${PERL_VENDOR_PREFIX}/${_PRIV_LIB} \ + -Dvendorman3dir=${PERL_VENDOR_PREFIX}/${_PRIV_LIB}/man/man3 \ -Dvendorman1dir=${PERL_VENDOR_PREFIX}/man/man1 .endif @@ -118,7 +125,7 @@ CONFIGURE_ARGS+= \ -Accflags=-DPERLIOBUF_DEFAULT_BUFSIZ=${PERLIOBUF_DEFAULT_BUFSIZ} .endif -MAN3PREFIX_REL= lib/perl5/${PERL_VER}/perl +MAN3PREFIX_REL= ${_PRIV_LIB}/perl MAN3PREFIX= ${PREFIX}/${MAN3PREFIX_REL} MANDIRS+= ${MAN3PREFIX}/man @@ -126,8 +133,12 @@ PLIST_SUB+= PERL_VERSION=${PERL_VERSION} \ PERL_VER=${PERL_VER} \ PERL_ARCH=${PERL_ARCH} \ MAN3=${MAN3PREFIX_REL}/man/man3 \ + MAN3PREFIX=${MAN3PREFIX_REL} \ + SITEMAN3PREFIX=${SITE_MAN3_PREFIX} \ SITE_PERL=${SITE_PERL_REL} \ - SITE_ARCH=${SITE_ARCH_REL} + SITE_ARCH=${SITE_ARCH_REL} \ + PRIV_LIB=${_PRIV_LIB} \ + ARCH_LIB=${_ARCH_LIB} .if ${PORT_OPTIONS:MDEBUG} CONFIGURE_ARGS+= -Doptimize="-g" -DDEBUGGING @@ -190,7 +201,7 @@ LINK_USRBIN= no .endif SUB_LIST+= LINK_USRBIN=${LINK_USRBIN} -BSDPAN_DEST= ${PREFIX}/lib/perl5/${PERL_VER}/BSDPAN +BSDPAN_DEST= ${PREFIX}/${_PRIV_LIB}/BSDPAN BSDPAN_FILES= BSDPAN.pm BSDPAN/Override.pm Config.pm \ ExtUtils/MM_Unix.pm \ ExtUtils/MakeMaker.pm \ @@ -219,8 +230,8 @@ post-install: ${MKDIR} ${STAGEDIR}${SITE_ARCH}/auto ${MKDIR} ${STAGEDIR}${SITE_PERL}/auto ${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} + ${LN} -s libperl.so.${PERL_VER} ${STAGEDIR}${PREFIX}/${_ARCH_LIB}/CORE/libperl.so + ${LN} -s libperl.so.${PERL_VER} ${STAGEDIR}${PREFIX}/${_ARCH_LIB}/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 @@ -232,6 +243,12 @@ post-install: ${WRKSRC}/perl -I ${WRKSRC}/lib ${STAGEDIR}${PREFIX}/bin/h2ph \ -d ${STAGEDIR}${SITE_ARCH} *.h machine/*.h sys/*.h >/dev/null) @${FIND} ${STAGEDIR}${SITE_ARCH} -name '*.ph' | sed -e 's|${STAGEDIR}||' >> ${TMPPLIST} + ${FIND} ${STAGEDIR} -name '*.so*' -type f | while read f; \ + do \ + ${CHMOD} 644 $$f; \ + ${STRIP_CMD} $$f; \ + ${CHMOD} 444 $$f; \ + done .if ${OSVERSION} >= 900022 ${INSTALL_DATA} ${WRKDIR}/perl-man.conf ${STAGEDIR}${PREFIX}/etc/man.d/perl${PERL_VER}.conf .endif |