Lines 2-8
Link Here
|
2 |
# Date created: 23 August 2008 |
2 |
# Date created: 23 August 2008 |
3 |
# Whom: Matthew Seaman <m.seaman@infracaninophile.co.uk> |
3 |
# Whom: Matthew Seaman <m.seaman@infracaninophile.co.uk> |
4 |
# |
4 |
# |
5 |
# $FreeBSD: ports/www/p5-RT-Extension-SLA/Makefile,v 1.2 2008/12/19 22:16:17 miwi Exp $ |
5 |
# $FreeBSD: ports/www/p5-RT-Extension-SLA/Makefile,v 1.1 2008/12/14 20:09:57 miwi Exp $ |
6 |
# |
6 |
# |
7 |
|
7 |
|
8 |
PORTNAME= RT-Extension-SLA |
8 |
PORTNAME= RT-Extension-SLA |
Lines 14-43
Link Here
|
14 |
MAINTAINER= m.seaman@infracaninophile.co.uk |
14 |
MAINTAINER= m.seaman@infracaninophile.co.uk |
15 |
COMMENT= RT extension to automate due dates using service levels |
15 |
COMMENT= RT extension to automate due dates using service levels |
16 |
|
16 |
|
17 |
BUILD_DEPENDS= ${LOCALBASE}/${RTHOME}/bin/rt:${PORTSDIR}/www/rt36 \ |
17 |
BUILD_DEPENDS= ${SITE_PERL}/Business/Hours.pm:${PORTSDIR}/misc/p5-Business-Hours |
18 |
${SITE_PERL}/Business/Hours.pm:${PORTSDIR}/misc/p5-Business-Hours |
|
|
19 |
RUN_DEPENDS= ${BUILD_DEPENDS} |
18 |
RUN_DEPENDS= ${BUILD_DEPENDS} |
20 |
|
19 |
|
21 |
RTHOME?= rt3 |
20 |
OPTIONS= RT36 "Install for rt-3.6.x (default rt-3.8.x)" off |
22 |
PLIST_SUB+= RTHOME=${RTHOME} |
|
|
23 |
|
21 |
|
24 |
PERL_CONFIGURE= yes |
22 |
PERL_CONFIGURE= yes |
25 |
CONFIGURE_ENV+= RTHOME=${PREFIX}/${RTHOME} |
|
|
26 |
|
23 |
|
27 |
MAN3PREFIX?= ${PREFIX}/${RTHOME}/local |
|
|
28 |
MAN3= RT::Action::SLA_SetDefault.3 \ |
24 |
MAN3= RT::Action::SLA_SetDefault.3 \ |
29 |
RT::Condition::SLA_RequireDueSet.3 RT::Condition::SLA.3 \ |
25 |
RT::Condition::SLA_RequireDueSet.3 RT::Condition::SLA.3 \ |
30 |
RT::Condition::SLA_RequireDefault.3 RT::Extension::SLA.3 \ |
26 |
RT::Condition::SLA_RequireDefault.3 RT::Extension::SLA.3 \ |
31 |
RT::Condition::SLA_RequireStartsSet.3 RT::Queue_SLA.3 \ |
27 |
RT::Condition::SLA_RequireStartsSet.3 RT::Queue_SLA.3 \ |
32 |
RT::Action::SLA_SetStarts.3 RT::Action::SLA.3 |
28 |
RT::Action::SLA_SetStarts.3 RT::Action::SLA.3 |
33 |
|
29 |
|
|
|
30 |
PLIST_SUB+= RTHOME=${RTHOME} |
31 |
|
32 |
.include <bsd.port.pre.mk> |
33 |
|
34 |
.if defined(WITH_RT36) |
35 |
|
36 |
RTHOME?= rt3 |
37 |
RT_PM_DIR= ${LOCALBASE}/${RTHOME}/lib |
38 |
BUILD_DEPENDS+= ${RT_PM_DIR}/RT.pm:${PORTSDIR}/www/rt36 |
39 |
PLIST= ${PKGDIR}/pkg-plist.rt36 |
40 |
MAN3PREFIX= ${PREFIX}/${RTHOME}/local |
41 |
|
42 |
.else |
43 |
|
44 |
RTHOME?= share/rt38 |
45 |
RT_PM_DIR= ${SITE_PERL} |
46 |
BUILD_DEPENDS+= ${RT_PM_DIR}/RT.pm:${PORTSDIR}/www/rt38 |
47 |
PLIST= ${PKGDIR}/pkg-plist.rt38 |
48 |
MAN3PREFIX= ${PREFIX} |
49 |
|
50 |
.endif |
51 |
|
34 |
# Don't use normal CONFIGURE_ARGS. Disable doc_?????_indstall targets to |
52 |
# Don't use normal CONFIGURE_ARGS. Disable doc_?????_indstall targets to |
35 |
# suppress installing perllocal.pod. This duplicates code from bsd.perl.mk |
53 |
# suppress installing perllocal.pod. This duplicates code from bsd.perl.mk |
36 |
# rather undesirably. |
54 |
# rather undesirably. |
37 |
do-configure: |
55 |
do-configure: |
38 |
@cd ${CONFIGURE_WRKSRC} && \ |
56 |
@cd ${CONFIGURE_WRKSRC} && \ |
39 |
${SETENV} ${CONFIGURE_ENV} ${PERL5} ./${CONFIGURE_SCRIPT} && \ |
57 |
${SETENV} ${CONFIGURE_ENV} ${PERL5} -I${RT_PM_DIR} ./${CONFIGURE_SCRIPT} && \ |
40 |
${PERL5} -pi -e 's/ doc_(perl|site|\$$\(INSTALLDIRS\))_install$$//' Makefile |
58 |
${PERL5} -pi -e 's/ doc_(perl|site|\$$\(INSTALLDIRS\))_install$$//' Makefile |
41 |
|
59 |
|
42 |
|
60 |
.include <bsd.port.post.mk> |
43 |
.include <bsd.port.mk> |
|
|