2008-12-14 21:12:18 +01:00
|
|
|
# New ports collection Makefile for: RTx-Calendar
|
|
|
|
# Date created: 16 August 2008
|
|
|
|
# Whom: Matthew Seaman <m.seaman@infracaninophile.co.uk>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= RTx-Calendar
|
2010-12-11 00:07:09 +01:00
|
|
|
PORTVERSION= 0.08
|
2012-06-01 07:26:28 +02:00
|
|
|
PORTREVISION= 3
|
2008-12-14 21:12:18 +01:00
|
|
|
CATEGORIES= www perl5
|
|
|
|
MASTER_SITES= CPAN
|
|
|
|
PKGNAMEPREFIX= p5-
|
|
|
|
|
2012-02-09 18:09:51 +01:00
|
|
|
MAINTAINER= matthew@FreeBSD.org
|
2008-12-14 21:12:18 +01:00
|
|
|
COMMENT= Calendar extension module for the RT ticketing system
|
|
|
|
|
2011-10-18 18:02:33 +02:00
|
|
|
LICENSE_COMB= dual
|
|
|
|
LICENSE= ART10 GPLv1
|
|
|
|
|
2009-02-19 16:33:51 +01:00
|
|
|
BUILD_DEPENDS= ${SITE_PERL}/Date/ICal.pm:${PORTSDIR}/devel/p5-Date-ICal \
|
2008-12-14 21:12:18 +01:00
|
|
|
${SITE_PERL}/Data/ICal.pm:${PORTSDIR}/deskutils/p5-Data-ICal \
|
|
|
|
${SITE_PERL}/DateTime/Set.pm:${PORTSDIR}/devel/p5-DateTime-Set
|
2011-10-18 18:02:33 +02:00
|
|
|
RUN_DEPENDS:= ${BUILD_DEPENDS}
|
2008-12-14 21:12:18 +01:00
|
|
|
|
|
|
|
PERL_CONFIGURE= yes
|
|
|
|
|
2012-06-04 21:46:01 +02:00
|
|
|
OPTIONS_DEFINE= RT38
|
|
|
|
RT38_DESC= Install for rt-3.8.x (default rt-4.0.x)
|
2011-10-18 18:02:33 +02:00
|
|
|
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
2012-06-04 21:46:01 +02:00
|
|
|
.if ${PORT_OPTIONS:MRT38}
|
2011-10-18 18:02:33 +02:00
|
|
|
RT_VER= 38
|
|
|
|
.else
|
|
|
|
RT_VER= 40
|
|
|
|
.endif
|
|
|
|
|
|
|
|
BUILD_DEPENDS+= ${SITE_PERL}/RT.pm:${PORTSDIR}/www/rt${RT_VER}
|
|
|
|
RUN_DEPENDS+= ${SITE_PERL}/RT.pm:${PORTSDIR}/www/rt${RT_VER}
|
|
|
|
|
2009-02-19 16:33:51 +01:00
|
|
|
MAN3PREFIX= ${PREFIX}
|
|
|
|
|
2010-01-14 07:23:31 +01:00
|
|
|
MAN3= RTx::Calendar.3
|
2011-10-18 18:02:33 +02:00
|
|
|
PLIST_SUB+= RTHOME=share/rt${RT_VER}
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
@${FIND} ${WRKSRC} -name '*.orig' -delete
|
2010-01-14 07:23:31 +01:00
|
|
|
|
|
|
|
# Note: You can install using an arbitrary $PREFIX but only if it
|
2011-10-18 18:02:33 +02:00
|
|
|
# matches the $PREFIX used to install www/rt{38,40}. Hence ignore
|
2010-01-14 07:23:31 +01:00
|
|
|
# $PREFIX in the environment and inherit settings from RT.pm
|
2008-12-14 21:12:18 +01:00
|
|
|
do-configure:
|
|
|
|
@cd ${CONFIGURE_WRKSRC} && \
|
2010-01-21 21:36:49 +01:00
|
|
|
unset PREFIX && \
|
2011-10-18 18:02:33 +02:00
|
|
|
${SETENV} ${CONFIGURE_ENV} ${PERL5} -I${SITE_PERL} ./${CONFIGURE_SCRIPT} && \
|
2008-12-19 23:16:18 +01:00
|
|
|
${PERL5} -pi -e 's/ doc_(perl|site|\$$\(INSTALLDIRS\))_install$$//' Makefile
|
2008-12-14 21:12:18 +01:00
|
|
|
|
2010-01-14 07:23:31 +01:00
|
|
|
.include <bsd.port.mk>
|