# Created by: Thierry Thomas # $FreeBSD: head/graphics/barbecue/Makefile 518482 2019-11-26 21:46:12Z jkim $ PORTNAME= barbecue DISTVERSION= 1.5-beta1 PORTREVISION= 1 CATEGORIES= graphics print java MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${DISTVERSION}/ DIST_SUBDIR= java MAINTAINER= ports@FreeBSD.org COMMENT= Java barcode generator LICENSE= BSD3CLAUSE RUN_DEPENDS= ${JAVALIBDIR}/jdom.jar:java/jdom USE_JAVA= yes NO_BUILD= yes JARFILES= ${PORTNAME}-${DISTVERSION}.jar TOMCATDIR= ${PREFIX}/${TOMCATVER} APPHOME= ${LOCALBASE}/${TOMCATVER} WEBAPPDIR= ${TOMCATDIR}/webapps PORTDOCS= * PORTEXAMPLES= * PLIST_SUB= TOMCATDIR=${TOMCATDIR:S|^${PREFIX}/||} OPTIONS_DEFINE= DOCS EXAMPLES .include TOMCATVER= apache-tomcat-7.0 BUILD_DEPENDS+= ${APPHOME}/bin/bootstrap.jar:www/tomcat7 RUN_DEPENDS+= ${APPHOME}/bin/bootstrap.jar:www/tomcat7 post-extract: ${MV} ${WRKSRC}/${JARFILES} ${WRKSRC}/${JARFILES:S|-${DISTVERSION}||} ${MKDIR} ${WRKDIR}/${PORTNAME} ${TAR} xf ${WRKSRC}/${PORTNAME}.war -C ${WRKDIR}/${PORTNAME} do-install: ${INSTALL_DATA} ${JARFILES:S|-${DISTVERSION}||:S|^|${WRKSRC}/|} \ ${STAGEDIR}${JAVAJARDIR} ${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 .if ${PORT_OPTIONS:MDOCS} @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/readme.txt ${STAGEDIR}${DOCSDIR} @(cd ${WRKSRC}/docs && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}) .endif .if ${PORT_OPTIONS:MEXAMPLES} @(cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}) .endif .include