Changeset View
Changeset View
Standalone View
Standalone View
www/p5-RT-Extension-MandatoryOnTransition/Makefile
# Created by: Mark Felder <feld@FreeBSD.org> | # Created by: Mark Felder <feld@FreeBSD.org> | ||||
# $FreeBSD$ | # $FreeBSD$ | ||||
PORTNAME= RT-Extension-MandatoryOnTransition | PORTNAME= RT-Extension-MandatoryOnTransition | ||||
DISTVERSION= 0.18 | DISTVERSION= 0.18 | ||||
CATEGORIES= www net perl5 | CATEGORIES= www net perl5 | ||||
MASTER_SITES= CPAN | MASTER_SITES= CPAN | ||||
PKGNAMEPREFIX= p5- | |||||
MAINTAINER= matthew@FreeBSD.org | MAINTAINER= matthew@FreeBSD.org | ||||
COMMENT= Extension to require core and ticket custom fields on status changes | COMMENT= Extension to require core and ticket custom fields on status changes | ||||
LICENSE= GPLv2 | LICENSE= GPLv2 | ||||
OPTIONS_SINGLE= RTVERSION | |||||
OPTIONS_SINGLE_RTVERSION= RT42 RT44 | |||||
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 | |||||
.endfor | |||||
### Temporary for debugging | |||||
#WRKDIR= ${WRKDIRPREFIX}${.CURDIR}/work${RT_VER} | |||||
BUILD_DEPENDS= ${LOCALBASE}/bin/rt:www/rt${RT_VER} | BUILD_DEPENDS= ${LOCALBASE}/bin/rt:www/rt${RT_VER} | ||||
RUN_DEPENDS= ${LOCALBASE}/bin/rt:www/rt${RT_VER} | RUN_DEPENDS= ${LOCALBASE}/bin/rt:www/rt${RT_VER} | ||||
NO_ARCH= yes | FLAVOR?= ${FLAVORS:[1]} | ||||
FLAVORS= rt44 rt42 | |||||
rt42_PKGNAMEPREFIX= p5-RT42- | |||||
mat: Same. | |||||
rt42_CONFLICTS_INSTALL= rt44 | |||||
rt44_PKGNAMEPREFIX= p5-RT44- | |||||
rt44_CONFLICTS_INSTALL= rt42 | |||||
Done Inline ActionsSame. mat: Same. | |||||
.if ${FLAVOR:U} == rt44 | |||||
RT_VER= 44 | |||||
.elif ${FLAVOR:U} == rt42 | |||||
RT_VER= 42 | |||||
.endif | |||||
USES= perl5 | USES= perl5 | ||||
USE_PERL5= configure | USE_PERL5= configure | ||||
NO_ARCH= yes | |||||
PLIST_SUB+= RT_VER=${RT_VER} | PLIST_SUB+= RT_VER=${RT_VER} | ||||
# 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{42,44}. Hence ignore | # matches the $PREFIX used to install www/rt{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: | ||||
@cd ${CONFIGURE_WRKSRC} && \ | @cd ${CONFIGURE_WRKSRC} && \ | ||||
Show All 12 Lines |
Same.