2003-05-02 10:09:29 +02:00
|
|
|
# New ports collection makefile for: frost
|
|
|
|
# Date created: Fri May 2 05:35:53 UTC 2003
|
|
|
|
# Whom: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= frost
|
2003-09-08 02:45:12 +02:00
|
|
|
PORTVERSION= 1.2.0.6
|
2003-05-02 10:09:29 +02:00
|
|
|
CATEGORIES= net java
|
2003-09-08 02:45:12 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= jtcfrost
|
|
|
|
DISTNAME= ${PORTNAME}-wot-071203-${PORTVERSION}
|
2003-05-02 10:09:29 +02:00
|
|
|
|
|
|
|
MAINTAINER= lioux@FreeBSD.org
|
|
|
|
COMMENT= File-sharing tool for FreeNet with Usenet like forum support
|
|
|
|
|
|
|
|
USE_JAVA= 1.4+
|
|
|
|
USE_ZIP= yes
|
|
|
|
NO_BUILD= yes
|
|
|
|
NO_BUILD_DEPENDS_JAVA= yes
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
|
|
|
PLIST_SUB= JAR_DIR=${JAR_DIR}
|
|
|
|
|
|
|
|
JAVAVM= ${LOCALBASE}/bin/javavm
|
2003-09-08 02:45:12 +02:00
|
|
|
SHARE_DIR= share/${PORTNAME}
|
2003-05-02 10:09:29 +02:00
|
|
|
JAR_DIR= share/java/jar/${PORTNAME}
|
|
|
|
JAR_FILE= frost.jar
|
2003-09-08 02:45:12 +02:00
|
|
|
JAR_FILES= frost/frost.jar frost/lib/fecImpl.jar \
|
|
|
|
frost/lib/genChkImpl.jar frost/lib/xercesImpl.jar \
|
|
|
|
frost/lib/xml-apis.jar frost/lib/xmlParserAPIs.jar \
|
|
|
|
convert/converter.jar
|
2003-05-02 10:09:29 +02:00
|
|
|
|
2003-09-08 02:45:12 +02:00
|
|
|
DOC_FILES= doc/Frost.tex doc/authors.txt doc/gpl.txt \
|
2003-05-02 10:09:29 +02:00
|
|
|
help/faq.txt help/history.txt
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
@${SED} -e "s|%%PREFIX%%|${PREFIX}|; \
|
|
|
|
s|%%JAVAVM%%|${JAVAVM}|; \
|
|
|
|
s|%%JAR_DIR%%|${JAR_DIR}|; \
|
2003-09-08 02:45:12 +02:00
|
|
|
s|%%JAR_FILE%%|${JAR_FILE}|; \
|
|
|
|
s|%%SHARE_DIR%%|${SHARE_DIR}|" \
|
2003-05-02 10:09:29 +02:00
|
|
|
${FILESDIR}/wrapper.sh > ${WRKDIR}/wrapper.sh
|
2003-09-08 02:45:12 +02:00
|
|
|
@${SED} -e "s|%%PREFIX%%|${PREFIX}|; \
|
|
|
|
s|%%JAVAVM%%|${JAVAVM}|; \
|
|
|
|
s|%%JAR_DIR%%|${JAR_DIR}|;" \
|
|
|
|
${FILESDIR}/wrapper-convert.sh > ${WRKDIR}/wrapper-convert.sh
|
2003-05-02 10:09:29 +02:00
|
|
|
|
|
|
|
do-install:
|
|
|
|
# docs
|
|
|
|
.ifndef(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
.for doc in ${DOC_FILES}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR}
|
|
|
|
.endfor
|
|
|
|
.endif
|
2003-09-08 02:45:12 +02:00
|
|
|
# jars
|
2003-05-02 10:09:29 +02:00
|
|
|
@${MKDIR} ${PREFIX}/${JAR_DIR}
|
2003-09-08 02:45:12 +02:00
|
|
|
.for jar in ${JAR_FILES}
|
|
|
|
@${INSTALL_DATA} ${WRKDIR}/${jar} ${PREFIX}/${JAR_DIR}
|
|
|
|
.endfor
|
|
|
|
# default boards
|
|
|
|
@${MKDIR} ${PREFIX}/${SHARE_DIR}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/config/boards.xml.default \
|
|
|
|
${PREFIX}/${SHARE_DIR}
|
2003-05-02 10:09:29 +02:00
|
|
|
# wrapper
|
|
|
|
@${INSTALL_SCRIPT} ${WRKDIR}/wrapper.sh ${PREFIX}/bin/${PORTNAME:L}
|
2003-09-08 02:45:12 +02:00
|
|
|
@${INSTALL_SCRIPT} ${WRKDIR}/wrapper-convert.sh ${PREFIX}/bin/frost-convert
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
@${CAT} ${PKGMESSAGE} | ${SED} -e "s,%%PREFIX%%,${PREFIX},g"
|
2003-05-02 10:09:29 +02:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|