aboutsummaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authorPhilip M. Gollucci <pgollucci@FreeBSD.org>2010-01-14 06:22:18 +0000
committerPhilip M. Gollucci <pgollucci@FreeBSD.org>2010-01-14 06:22:18 +0000
commit10cc9c07e28b8fa7db1dbb9e84628078769d66b8 (patch)
treede36b896e399c1c4953dea18567fd34038c753c6 /www
parent2e68e323c43bc89070bc37259f9568b56267ebc6 (diff)
Notes
Diffstat (limited to 'www')
-rw-r--r--www/p5-RT-Extension-SLA/Makefile46
1 files changed, 23 insertions, 23 deletions
diff --git a/www/p5-RT-Extension-SLA/Makefile b/www/p5-RT-Extension-SLA/Makefile
index 76a93b7e5842..8ea0f088fc97 100644
--- a/www/p5-RT-Extension-SLA/Makefile
+++ b/www/p5-RT-Extension-SLA/Makefile
@@ -18,27 +18,11 @@ COMMENT= RT extension to automate due dates using service levels
BUILD_DEPENDS= ${SITE_PERL}/Business/Hours.pm:${PORTSDIR}/misc/p5-Business-Hours
RUN_DEPENDS= ${BUILD_DEPENDS}
-OPTIONS= RT36 "Install for rt-3.6.x (default rt-3.8.x)" off
-
PERL_CONFIGURE= yes
-MAN3= RT::Action::SLA.3 \
- RT::Action::SLA_SetDefault.3 \
- RT::Action::SLA_SetDue.3 \
- RT::Action::SLA_SetStarts.3 \
- RT::Condition::SLA.3 \
- RT::Condition::SLA_RequireDefault.3 \
- RT::Condition::SLA_RequireDueSet.3 \
- RT::Condition::SLA_RequireStartsSet.3 \
- RT::Extension::SLA.3 \
- RT::Queue_SLA.3
-
-PLIST_SUB+= RTHOME=${RTHOME}
-
-SUB_LIST+= RTHOME=${RTHOME}
-SUB_FILES+= pkg-message
+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)
@@ -60,15 +44,31 @@ 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= RT::Action::SLA.3 \
+ RT::Action::SLA_SetDefault.3 \
+ RT::Action::SLA_SetDue.3 \
+ RT::Action::SLA_SetStarts.3 \
+ RT::Condition::SLA.3 \
+ RT::Condition::SLA_RequireDefault.3 \
+ RT::Condition::SLA_RequireDueSet.3 \
+ RT::Condition::SLA_RequireStartsSet.3 \
+ RT::Extension::SLA.3 \
+ RT::Queue_SLA.3
+
+PLIST_SUB+= RTHOME=${RTHOME}
+
+SUB_LIST+= RTHOME=${RTHOME}
+SUB_FILES+= pkg-message
+
+# 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
post-install:
${CAT} ${PKGMESSAGE}
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>