diff options
author | Philip M. Gollucci <pgollucci@FreeBSD.org> | 2010-01-14 06:23:31 +0000 |
---|---|---|
committer | Philip M. Gollucci <pgollucci@FreeBSD.org> | 2010-01-14 06:23:31 +0000 |
commit | 21efb20af72cfa8b053b8ea01764c28b92efb52c (patch) | |
tree | 23bfb5e36db7ec5712d175955e7d1901ef75bd42 /www/p5-RTx-Calendar | |
parent | 10cc9c07e28b8fa7db1dbb9e84628078769d66b8 (diff) |
* Switch to using bsd.port.options.mk
* Track PREFIX settings from the parent www/rt38 or www/rt36 port: has to match, or it won't work.
PR: ports/142140
Submitted by: Matthew Seaman <m.seaman@infracaninophile.co.uk> (maintainer)
Notes
Notes:
svn path=/head/; revision=247854
Diffstat (limited to 'www/p5-RTx-Calendar')
-rw-r--r-- | www/p5-RTx-Calendar/Makefile | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/www/p5-RTx-Calendar/Makefile b/www/p5-RTx-Calendar/Makefile index 1841e06cc561..c9d64d23c20d 100644 --- a/www/p5-RTx-Calendar/Makefile +++ b/www/p5-RTx-Calendar/Makefile @@ -20,15 +20,11 @@ BUILD_DEPENDS= ${SITE_PERL}/Date/ICal.pm:${PORTSDIR}/devel/p5-Date-ICal \ ${SITE_PERL}/DateTime/Set.pm:${PORTSDIR}/devel/p5-DateTime-Set RUN_DEPENDS= ${BUILD_DEPENDS} -OPTIONS= RT36 "Install for rt-3.6.x (default rt-3.8.x)" off - PERL_CONFIGURE= yes -MAN3= RTx::Calendar.3 - -PLIST_SUB+= RTHOME=${RTHOME} +OPTIONS= RT36 "Install for rt-3.6.x (default rt-3.8.x)" off -.include <bsd.port.pre.mk> +.include <bsd.port.options.mk> .if defined(WITH_RT36) @@ -48,12 +44,15 @@ MAN3PREFIX= ${PREFIX} .endif -# Don't use normal CONFIGURE_ARGS. Disable doc_?????_indstall targets to -# suppress installing perllocal.pod. This duplicates code from bsd.perl.mk -# rather undesirably. +MAN3= RTx::Calendar.3 +PLIST_SUB+= RTHOME=${RTHOME} + +# Note: You can install using an arbitrary $PREFIX but only if it +# matches the $PREFIX used to install www/rt3{6,8}. Hence ignore +# $PREFIX in the environment and inherit settings from RT.pm do-configure: @cd ${CONFIGURE_WRKSRC} && \ - ${SETENV} ${CONFIGURE_ENV} ${PERL5} -I${RT_PM_DIR} ./${CONFIGURE_SCRIPT} && \ + ${SETENV} -u PREFIX ${CONFIGURE_ENV} ${PERL5} -I${RT_PM_DIR} ./${CONFIGURE_SCRIPT} && \ ${PERL5} -pi -e 's/ doc_(perl|site|\$$\(INSTALLDIRS\))_install$$//' Makefile -.include <bsd.port.post.mk> +.include <bsd.port.mk> |