Changeset View
Changeset View
Standalone View
Standalone View
head/www/p5-RTx-Calendar/Makefile
# Created by: Matthew Seaman <m.seaman@infracaninophile.co.uk> | # Created by: Matthew Seaman <m.seaman@infracaninophile.co.uk> | ||||
# $FreeBSD$ | # $FreeBSD$ | ||||
PORTNAME= RTx-Calendar | PORTNAME= RTx-Calendar | ||||
PORTVERSION= 1.01 | PORTVERSION= 1.01 | ||||
CATEGORIES= www perl5 | CATEGORIES= www perl5 | ||||
MASTER_SITES= CPAN | MASTER_SITES= CPAN | ||||
PKGNAMEPREFIX= p5- | |||||
MAINTAINER= matthew@FreeBSD.org | MAINTAINER= matthew@FreeBSD.org | ||||
COMMENT= Calendar extension module for the RT ticketing system | COMMENT= Calendar extension module for the RT ticketing system | ||||
LICENSE_COMB= dual | LICENSE_COMB= dual | ||||
LICENSE= ART10 GPLv1+ | LICENSE= ART10 GPLv1+ | ||||
BUILD_DEPENDS= ${RUN_DEPENDS} | |||||
BUILD_DEPENDS= p5-Date-ICal>0:devel/p5-Date-ICal \ | |||||
p5-Data-ICal>0:deskutils/p5-Data-ICal \ | |||||
p5-DateTime-Set>0:devel/p5-DateTime-Set \ | |||||
${LOCALBASE}/bin/rt:www/rt${RT_VER} | |||||
RUN_DEPENDS= p5-Date-ICal>0:devel/p5-Date-ICal \ | RUN_DEPENDS= p5-Date-ICal>0:devel/p5-Date-ICal \ | ||||
p5-Data-ICal>0:deskutils/p5-Data-ICal \ | p5-Data-ICal>0:deskutils/p5-Data-ICal \ | ||||
p5-DateTime-Set>0:devel/p5-DateTime-Set | p5-DateTime-Set>0:devel/p5-DateTime-Set \ | ||||
${LOCALBASE}/bin/rt:www/rt${RT_VER} | |||||
NO_ARCH= yes | FLAVOR?= ${FLAVORS:[1]} | ||||
FLAVORS= rt44 rt42 | |||||
rt42_PKGNAMEPREFIX= p5-RT42- | |||||
rt42_CONFLICTS_INSTALL= rt44 | |||||
rt44_PKGNAMEPREFIX= p5-RT44- | |||||
rt44_CONFLICTS_INSTALL= rt42 | |||||
USES+= perl5 | .if ${FLAVOR} == rt44 | ||||
USE_PERL5= configure | RT_VER= 44 | ||||
.elif ${FLAVOR} == rt42 | |||||
OPTIONS_SINGLE= RTVERSION | RT_VER= 42 | ||||
OPTIONS_SINGLE_RTVERSION= RT40 RT42 RT44 | |||||
RT40_DESC= Install for rt-4.0.x (www/rt40) | |||||
RT42_DESC= Install for rt-4.2.x (www/rt42) | |||||
RT44_DESC= Install for rt-4.4.x (www/rt44) | |||||
OPTIONS_DEFAULT= RT44 | |||||
.include <bsd.port.options.mk> | |||||
.for opt in ${OPTIONS_SINGLE_RTVERSION} | |||||
.if ${PORT_OPTIONS:M${opt}} | |||||
RT_VER= ${opt:S/RT//} | |||||
.endif | .endif | ||||
.endfor | |||||
RUN_DEPENDS+= ${LOCALBASE}/bin/rt:www/rt${RT_VER} | USES= perl5 | ||||
USE_PERL5= configure | |||||
NO_ARCH= yes | |||||
MAN3PREFIX= ${PREFIX} | MAN3PREFIX= ${PREFIX} | ||||
PLIST_SUB+= RTHOME=share/rt${RT_VER} | PLIST_SUB+= RTHOME=share/rt${RT_VER} | ||||
### Temporary for debugging | |||||
#WRKDIR= ${WRKDIRPREFIX}${.CURDIR}/work${RT_VER} | |||||
post-patch: | post-patch: | ||||
@${FIND} ${WRKSRC} -name '*.orig' -delete | @${FIND} ${WRKSRC} -name '*.orig' -delete | ||||
# Note: You can install using an arbitrary $PREFIX but only if it | # Note: You can install using an arbitrary $PREFIX but only if it | ||||
# matches the $PREFIX used to install www/rt{40,42,44}. Hence ignore | # matches the $PREFIX used to install www/rt{40,42,44}. Hence ignore | ||||
# $PREFIX in the environment and inherit settings from RT.pm | # $PREFIX in the environment and inherit settings from RT.pm | ||||
do-configure: | do-configure: | ||||
Show All 13 Lines |