2012-10-30 16:43:53 +01:00
|
|
|
# Created by: Thierry Thomas <thierry@pompo.net>
|
2005-06-12 21:15:30 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= barbecue
|
2012-10-28 17:03:54 +01:00
|
|
|
DISTVERSION= 1.5-beta1
|
2005-06-12 21:15:30 +02:00
|
|
|
CATEGORIES= graphics print java
|
2012-10-28 17:03:54 +01:00
|
|
|
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${DISTVERSION}/
|
|
|
|
DIST_SUBDIR= java
|
2005-06-12 21:15:30 +02:00
|
|
|
|
2014-01-01 10:16:24 +01:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2012-10-28 17:03:54 +01:00
|
|
|
COMMENT= Java barcode generator
|
|
|
|
|
|
|
|
LICENSE= BSD
|
2005-06-12 21:15:30 +02:00
|
|
|
|
|
|
|
RUN_DEPENDS= ${JAVALIBDIR}/jdom.jar:${PORTSDIR}/java/jdom
|
|
|
|
|
|
|
|
USE_JAVA= yes
|
2012-12-10 14:18:28 +01:00
|
|
|
JAVA_VERSION= 1.6+
|
2005-06-12 21:15:30 +02:00
|
|
|
NO_BUILD= yes
|
|
|
|
|
2012-10-28 17:03:54 +01:00
|
|
|
JARFILES= ${PORTNAME}-${DISTVERSION}.jar
|
2005-06-12 21:15:30 +02:00
|
|
|
|
2012-10-28 17:03:54 +01:00
|
|
|
TOMCATDIR= ${PREFIX}/${TOMCATVER}
|
|
|
|
APPHOME= ${LOCALBASE}/${TOMCATVER}
|
|
|
|
WEBAPPDIR= ${TOMCATDIR}/webapps
|
2005-06-12 21:15:30 +02:00
|
|
|
|
|
|
|
PORTDOCS= *
|
2012-10-28 17:03:54 +01:00
|
|
|
PORTEXAMPLES= *
|
|
|
|
|
|
|
|
PLIST_SUB= TOMCATDIR=${TOMCATDIR:S|^${PREFIX}/||}
|
2005-06-12 21:15:30 +02:00
|
|
|
|
2012-10-28 17:03:54 +01:00
|
|
|
OPTIONS_SINGLE= AS
|
|
|
|
OPTIONS_SINGLE_AS= TOMCAT6 TOMCAT7
|
|
|
|
OPTIONS_DEFAULT= TOMCAT6
|
|
|
|
|
2014-02-10 14:54:26 +01:00
|
|
|
OPTIONS_DEFINE= DOCS EXAMPLES
|
|
|
|
|
2012-10-28 17:03:54 +01:00
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MTOMCAT6}
|
|
|
|
TOMCATVER= apache-tomcat-6.0
|
|
|
|
BUILD_DEPENDS+= ${APPHOME}/bin/bootstrap.jar:${PORTSDIR}/www/tomcat6
|
|
|
|
RUN_DEPENDS+= ${APPHOME}/bin/bootstrap.jar:${PORTSDIR}/www/tomcat6
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MTOMCAT7}
|
|
|
|
TOMCATVER= apache-tomcat-7.0
|
|
|
|
BUILD_DEPENDS+= ${APPHOME}/bin/bootstrap.jar:${PORTSDIR}/www/tomcat7
|
|
|
|
RUN_DEPENDS+= ${APPHOME}/bin/bootstrap.jar:${PORTSDIR}/www/tomcat7
|
2005-06-12 21:15:30 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
post-extract:
|
2012-10-28 17:03:54 +01:00
|
|
|
${MV} ${WRKSRC}/${JARFILES} ${WRKSRC}/${JARFILES:S|-${DISTVERSION}||}
|
|
|
|
${MKDIR} ${WRKDIR}/${PORTNAME}
|
|
|
|
${TAR} xf ${WRKSRC}/${PORTNAME}.war -C ${WRKDIR}/${PORTNAME}
|
2005-06-12 21:15:30 +02:00
|
|
|
|
|
|
|
do-install:
|
2014-01-01 10:16:24 +01:00
|
|
|
${INSTALL_DATA} ${JARFILES:S|-${DISTVERSION}||:S|^|${WRKSRC}/|} \
|
|
|
|
${STAGEDIR}${JAVAJARDIR}
|
2012-10-28 17:03:54 +01:00
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MTOMCAT6} || ${PORT_OPTIONS:MTOMCAT7}
|
2014-01-01 10:16:24 +01:00
|
|
|
${INSTALL} -d -o ${WWWOWN} -g ${WWWGRP} ${STAGEDIR}${WEBAPPDIR}/${PORTNAME}
|
|
|
|
@(cd ${WRKDIR}/${PORTNAME} && ${COPYTREE_SHARE} . \
|
|
|
|
${STAGEDIR}${WEBAPPDIR}/${PORTNAME})
|
|
|
|
${TOUCH} \
|
|
|
|
${STAGEDIR}${WEBAPPDIR}/${PORTNAME}/WEB-INF/classes/net/sourceforge/barbecue/postnet/.empty
|
2005-06-12 21:15:30 +02:00
|
|
|
.endif
|
2012-10-28 17:03:54 +01:00
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
2014-01-01 10:16:24 +01:00
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/readme.txt ${STAGEDIR}${DOCSDIR}
|
|
|
|
@(cd ${WRKSRC}/docs && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR})
|
2012-10-28 17:03:54 +01:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MEXAMPLES}
|
2014-01-01 10:16:24 +01:00
|
|
|
@(cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR})
|
2005-06-12 21:15:30 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|