diff options
Diffstat (limited to 'net-p2p/phex/Makefile')
-rw-r--r-- | net-p2p/phex/Makefile | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/net-p2p/phex/Makefile b/net-p2p/phex/Makefile new file mode 100644 index 000000000000..2bbba46d5067 --- /dev/null +++ b/net-p2p/phex/Makefile @@ -0,0 +1,60 @@ +# New ports collection makefile for: phex +# Date created: Mon Nov 19 23:48:51 BRST 2001 +# Whom: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org> +# +# $FreeBSD$ +# + +PORTNAME= phex +PORTVERSION= 0.5.6 +CATEGORIES= net java +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} +MASTER_SITE_SUBDIR= ${PORTNAME} +DISTNAME= ${PORTNAME}_${PORTVERSION} + +MAINTAINER= lioux@FreeBSD.org + +RUN_DEPENDS= ${JAVAVM}:${PORTSDIR}/java/javavmwrapper \ + ${LOCALBASE}/etc/javavms:${PORTSDIR}/java/jre \ + ${LOCALBASE}/jdk${JDK_VERSION}/bin/java:${PORTSDIR}/java/jdk13 + +USE_ZIP= yes +NO_BUILD= yes +PLIST_SUB= JAR_DIR=${JAR_DIR} \ + JAR_FILE=${JAR_FILE} + +JDK_VERSION= 1.3.1 +JAVAVM= ${LOCALBASE}/bin/javavm +JAR_DIR= share/java/jar/${PORTNAME}/ +JAR_MANIFEST= ${FILESDIR}/manifest + +DOC_FILES= COPYING License-RI.html License-W3C.html changelog.txt \ + contributors.txt readme-Furi.txt readme-developers.txt \ + readme.txt +JAR_FILES= crimson.jar jaxp.jar phex.jar xalan.jar + +post-patch: +# remove trailing ^M + @${PERL} -pi -ne 's!\r\n!\n!' ${WRKSRC}/readme/* + @${SED} -e "s|%%JAR_DIR%%|${JAR_DIR}|;s|%%JAR_FILE%%|${JAR_FILE}|; \ + s|%%JAVAVM%%|${JAVAVM}|;s|%%PREFIX%%|${PREFIX}|" \ + ${FILESDIR}/wrapper.sh > ${WRKDIR}/wrapper.sh + +do-install: + @${MKDIR} ${PREFIX}/${JAR_DIR} +.for jar in ${JAR_FILES} + @${INSTALL_DATA} ${WRKSRC}/${jar} ${PREFIX}/${JAR_DIR} +.endfor + @${INSTALL_SCRIPT} ${WRKDIR}/wrapper.sh ${PREFIX}/bin/${PORTNAME} +.ifndef(NOPORTDOCS) + @${MKDIR} ${DOCSDIR} +.for doc in ${DOC_FILES} + @${INSTALL_DATA} ${WRKSRC}/readme/${doc} ${DOCSDIR} +.endfor +.endif + +.include <bsd.port.pre.mk> + +JAR_FILE= ${PORTNAME}.jar + +.include <bsd.port.post.mk> |