blob: d6864db17943b270b9535fe9004f653a05029056 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
# New ports collection Makefile for: RT-Extension-SLA
# Date created: 23 August 2008
# Whom: Matthew Seaman <m.seaman@infracaninophile.co.uk>
#
# $FreeBSD$
#
PORTNAME= RT-Extension-SLA
PORTVERSION= 0.02
CATEGORIES= www perl5
MASTER_SITES= CPAN
PKGNAMEPREFIX= p5-
MAINTAINER= m.seaman@infracaninophile.co.uk
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_SetDefault.3 \
RT::Condition::SLA_RequireDueSet.3 RT::Condition::SLA.3 \
RT::Condition::SLA_RequireDefault.3 RT::Extension::SLA.3 \
RT::Condition::SLA_RequireStartsSet.3 RT::Queue_SLA.3 \
RT::Action::SLA_SetStarts.3 RT::Action::SLA.3 \
RT::Action::SLA_SetDue.3
PLIST_SUB+= RTHOME=${RTHOME}
.include <bsd.port.pre.mk>
.if defined(WITH_RT36)
RTHOME?= rt3
RT_PM_DIR= ${LOCALBASE}/${RTHOME}/lib
BUILD_DEPENDS+= ${RT_PM_DIR}/RT.pm:${PORTSDIR}/www/rt36
PLIST= ${PKGDIR}/pkg-plist.rt36
MAN3PREFIX= ${PREFIX}/${RTHOME}/local
.else
RTHOME?= share/rt38
RT_PM_DIR= ${SITE_PERL}
BUILD_DEPENDS+= ${RT_PM_DIR}/RT.pm:${PORTSDIR}/www/rt38
PLIST= ${PKGDIR}/pkg-plist.rt38
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.
do-configure:
@cd ${CONFIGURE_WRKSRC} && \
${SETENV} ${CONFIGURE_ENV} ${PERL5} -I${RT_PM_DIR} ./${CONFIGURE_SCRIPT} && \
${PERL5} -pi -e 's/ doc_(perl|site|\$$\(INSTALLDIRS\))_install$$//' Makefile
.include <bsd.port.post.mk>
|