1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-26 05:02:18 +00:00
freebsd-ports/net-p2p/frost/Makefile
Baptiste Daroussin 4a4ec28d37 Convert all :U to :tu and :L to :tl
Since FreeBSD 8.4 and FreeBSD 9.1 make(1) do support :tu and :tl as a
replacement for :U and :L (which has been marked as deprecated)

bmake which is the default on FreeBSD 10+ only support by default
:tu/:tl a hack has been added at the time to support :U and :L to ease
migration. This hack is now not necessary anymore

Note that this makes the ports tree incompatible with make(1) from
FreeBSD 8.3 or earlier

With hat:	portmgr
2014-05-05 09:45:36 +00:00

97 lines
2.2 KiB
Makefile

# Created by: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
# $FreeBSD$
PORTNAME= frost
PORTVERSION= 1.2.0.20090314
PORTREVISION= 1
PORTEPOCH= 2
CATEGORIES= net-p2p java
MASTER_SITES= SF/jtc${PORTNAME}/${PORTNAME}/14-Mar-2009
DISTNAME= ${PORTNAME}-14-Mar-2009
MAINTAINER= peter.thoenen@yahoo.com
COMMENT= Freenet client that provides messenger and file services
USES= zip
USE_JAVA= yes
JAVA_VERSION= 1.6+
JAVA_RUN= yes
NO_BUILD= yes
NO_WRKSUBDIR= yes
PLIST_SUB= JAR_DIR=${JAR_DIR}
DATADIR= ${JAVASHAREDIR}/${PORTNAME}
JAVAVM= ${LOCALBASE}/bin/java
JAR_DIR= ${JAVAJARDIR:S,^${PREFIX}/,,}/${PORTNAME}
JAR_FILE= frost.jar
JAR_FILES= frost.jar lib/fecImpl.jar \
lib/BCastle.jar lib/datechooser.jar \
lib/fec-native.jar \
lib/genChkImpl.jar lib/gnu-regexp-1.1.4.jar \
lib/xercesImpl.jar \
lib/joda-time.jar \
lib/perst15.jar \
lib/xml-apis.jar
DOC_FILES= doc/Frost.tex doc/authors.txt doc/gpl.txt \
doc/SkinLFLicense.txt
PORTDOCS= ${DOC_FILES:C,^.*/,,}
DATA_FILES= config/boards.xml.default07 \
jtc.ico \
PLIST_FILES= bin/${PORTNAME}
.for jar in ${JAR_FILES:C,^.*/,,}
PLIST_FILES+= %%JAR_DIR%%/${jar}
.endfor
.for file in ${DATA_FILES:C,^.*/,,}
PLIST_FILES+= %%DATADIR%%/${file}
.endfor
PLIST_DIRS+= \
%%JAR_DIR%% \
%%DATADIR%%
DESKTOP_ENTRIES= "Frost" "Freenet Client" \
"${JAVASHAREDIR}/${PORTNAME}/jtc.ico" \
"frost" "P2P;Network;Java;" \
false
NO_STAGE= yes
pre-everything::
post-patch:
@${SED} -e "s|%%PREFIX%%|${PREFIX}|; \
s|%%JAVA_VERSION%%|${JAVA_VERSION}|; \
s|%%JAVAVM%%|${JAVAVM}|; \
s|%%JAR_DIR%%|${JAR_DIR}|; \
s|%%JAR_FILE%%|${JAR_FILE}|; \
s|%%DATADIR%%|${DATADIR:S,^${PREFIX}/,,}|" \
${FILESDIR}/wrapper.sh > ${WRKDIR}/wrapper.sh
do-install:
# docs
.ifndef(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
.for doc in ${DOC_FILES}
@${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR}
.endfor
.endif
# jars
@${MKDIR} ${PREFIX}/${JAR_DIR}
.for jar in ${JAR_FILES}
@${INSTALL_DATA} ${WRKDIR}/${jar} ${PREFIX}/${JAR_DIR}
.endfor
# default boards
@${MKDIR} ${DATADIR}
.for file in ${DATA_FILES}
@${INSTALL_DATA} ${WRKSRC}/${file} ${DATADIR}
.endfor
# wrapper
@${INSTALL_SCRIPT} ${WRKDIR}/wrapper.sh ${PREFIX}/bin/${PORTNAME:tl}
.include <bsd.port.mk>