mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-27 00:57:50 +00:00
06e6677793
remove support for them from bsd.java.mk. As Jikes is not available in Java 1.5 or higher, remove it from bsd.java.mk too (suggested by hq@) and from the ports which used it (only occurences were USE_JIKES=no). Support for the Blackdown VM is also removed, as it is not available in Java 1.5 and higher. Also remove the mapping from Java 1.1-1.4 to Java 1.5+ in bsd.java.mk to detect old, broken ports; therefore bump the minimal value of JAVA_VERSION to 1.5. While here, replace static values of JAVA_VERSION in files/*.in by %%JAVA_VERSION%% . PR: ports/158969 Submitted by: rene Tested on: pointyhat-west -exp
75 lines
2.1 KiB
Makefile
75 lines
2.1 KiB
Makefile
# New ports collection makefile for: apache-forrest
|
|
# Date created: 14 October 2003
|
|
# Whom: nivit@users.sourceforge.net
|
|
#
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= apache-forrest
|
|
PORTVERSION= 0.8
|
|
PORTREVISION= 3
|
|
CATEGORIES= www java
|
|
MASTER_SITES= ${MASTER_SITE_APACHE} \
|
|
http://mirror.tomato.it/apache/forrest/ \
|
|
http://mirrors.publicshout.org/apache/forrest/ \
|
|
http://mirror.nohup.it/apache/forrest/ \
|
|
ftp://mirror.nohup.it/apache/forrest/
|
|
MASTER_SITE_SUBDIR= forrest
|
|
|
|
MAINTAINER= nivit@FreeBSD.org
|
|
COMMENT= A tool for rapid development of small sites
|
|
|
|
USE_JAVA= yes
|
|
JAVA_VERSION= 1.5
|
|
|
|
REPLACE_FILES= ${WRKSRC}/bin/forrest ${WRKSRC}/tools/ant/bin/ant
|
|
|
|
NO_BUILD= Yes
|
|
|
|
INSTALL_WRKSRC= ${WRKSRC}/build
|
|
LINK_OPTS?= -sf
|
|
|
|
FIND_ARGS1= -type d \! -empty
|
|
FIND_ARGS2= \! -type d -and -perm -a+x -and \! -name "*.orig" -and \! -name "*.bak"
|
|
FIND_ARGS3= \! -type d -and \! -perm -a+x -and \! -name "*.bat" -and \! -name "*.orig" -and \! -name "LICENSE.txt" -and \! -name "KEYS" -and \! -name "NOTICE.txt" -and \! -name "*.license.txt"
|
|
|
|
ANT= ${DATADIR}/tools/ant/bin/ant
|
|
ANT_TARGET= local-deploy
|
|
PLUGINSDIR= ${DATADIR}/plugins/org.apache.forrest.plugin.output.pdf
|
|
|
|
post-patch:
|
|
@for FILE in ${REPLACE_FILES}; do \
|
|
${REINPLACE_CMD} -e "/%%JAVA_HOME%%/s//${JAVA_HOME:S/\//\\\//g}/g" \
|
|
$${FILE} ;\
|
|
done;
|
|
|
|
do-install:
|
|
# Script and data
|
|
@cd ${WRKSRC}; \
|
|
DIRS=$$(${FIND} . ${FIND_ARGS1}); \
|
|
for DIR in $${DIRS}; do \
|
|
${MKDIR} ${DATADIR}/$${DIR}; \
|
|
done; \
|
|
FILES=$$(${FIND} . ${FIND_ARGS2} ); \
|
|
for FILE in $${FILES}; do \
|
|
${INSTALL_SCRIPT} $${FILE} ${DATADIR}/$${FILE}; \
|
|
done; \
|
|
FILES=$$(${FIND} . ${FIND_ARGS3}); \
|
|
for FILE in $${FILES}; do \
|
|
${INSTALL_DATA} $${FILE} ${DATADIR}/$${FILE}; \
|
|
done;
|
|
|
|
# Links to executables
|
|
@cd ${WRKSRC}; \
|
|
FILES=$$(${FIND} bin ${FIND_ARGS2} ); \
|
|
for FILE in $${FILES}; do \
|
|
${LN} ${LINK_OPTS} ${DATADIR}/$${FILE} ${PREFIX}/$${FILE}; \
|
|
done;
|
|
|
|
post-install:
|
|
@cd ${PLUGINSDIR}; \
|
|
${SETENV} FORREST_HOME=${DATADIR} ${ANT} ${ANT_TARGET}; \
|
|
${SED} -e "/%%DATADIR%%/s//${DATADIR:S/\//\\\//g}/g" \
|
|
-e "/%%PORTVERSION%%/s//${PORTVERSION}/g" ${PKGMESSAGE};
|
|
|
|
.include <bsd.port.mk>
|