1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-11 07:22:22 +00:00
freebsd-ports/www/apache-forrest/Makefile
Nicola Vitale 8f63476fff - Fix build on 8.X and 9.X, where make(1) does not support
the @ modifier

PR:	191765
Submitted by:	Dan Lukes <dan@obluda.cz>
2014-07-11 23:16:20 +00:00

60 lines
1.7 KiB
Makefile

# Created by: nivit@users.sourceforge.net
# $FreeBSD$
PORTNAME= apache-forrest
PORTVERSION= 0.9
PORTREVISION= 0
CATEGORIES= www java
MASTER_SITES= ${MASTER_SITE_APACHE}
MASTER_SITE_SUBDIR= forrest
DISTFILES= ${PORTNAME}-${PORTVERSION}-sources.tar.gz \
${PORTNAME}-${PORTVERSION}-dependencies.tar.gz
MAINTAINER= nivit@FreeBSD.org
COMMENT= Tool for rapid development of small sites
ANT= ${STAGEDIR}${DATADIR}/tools/ant/bin/ant
ANT_TARGET= local-deploy
IGNORE_FILES= ! -name *\.bak -and ! -name *\.bat \
-and ! -name *\.orig -and ! -name .gitignore \
-and ! -name KEYS -and ! -name README.txt \
-and ! -name ant -and ! -name forrest \
-and ! -name index.html
INSTALL_WRKSRC= ${WRKSRC}/build
JAVA_VERSION= 1.6+
NO_BUILD= Yes
PLUGINSDIR= ${DATADIR}/plugins/org.apache.forrest.plugin.output.pdf
REPLACE_FILES= ${WRKSRC}/bin/forrest ${WRKSRC}/tools/ant/bin/ant
SUB_FILES= pkg-message
SUB_LIST= PORTVERSION=${PORTVERSION}
USE_JAVA= yes
post-patch:
@for FILE in ${REPLACE_FILES}; do \
${REINPLACE_CMD} -e "/%%JAVA_HOME%%/s//${JAVA_HOME:S/\//\\\//g}/g" \
$${FILE} ;\
done;
do-install:
@cd ${WRKSRC}; \
${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR} '${IGNORE_FILES}'
@${INSTALL_SCRIPT} ${WRKSRC}/bin/forrest ${STAGEDIR}${DATADIR}/bin/forrest
@${INSTALL_SCRIPT} ${WRKSRC}/tools/ant/bin/ant ${STAGEDIR}${DATADIR}/tools/ant/bin/ant
@${LN} -sf ../${DATADIR_REL}/bin/forrest ${STAGEDIR}${PREFIX}/bin/forrest
post-install:
@cd ${STAGEDIR}${PLUGINSDIR}; \
${SETENV} FORREST_HOME=${STAGEDIR}${DATADIR} ${ANT} ${ANT_TARGET}; \
${SED} -e "/%%DATADIR%%/s//${DATADIR:S/\//\\\//g}/g" \
-e "/%%PORTVERSION%%/s//${PORTVERSION}/g" ${PKGMESSAGE};
.include <bsd.port.mk>