diff options
Diffstat (limited to 'net/xnap/Makefile')
-rw-r--r-- | net/xnap/Makefile | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/net/xnap/Makefile b/net/xnap/Makefile index dc0aeffa6379..8911c117aee8 100644 --- a/net/xnap/Makefile +++ b/net/xnap/Makefile @@ -7,6 +7,7 @@ PORTNAME= XNap DISTVERSION= 2.5r3 +PORTREVISION= 1 CATEGORIES= net audio java MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= ${PORTNAME:L} @@ -16,26 +17,30 @@ DISTNAME= ${PORTNAME:L}-${DISTVERSION} MAINTAINER= lioux@FreeBSD.org COMMENT= A pure java napster client; also, supports OpenNap & giFT (FastTrack) -USE_JAVA= 1.3+ +USE_JAVA= yes +JAVA_VERSION= 1.3+ NO_BUILD= yes -NO_BUILD_DEPENDS_JAVA= yes -PLIST_SUB= JAR_DIR=${JAR_DIR} JAVAVM= ${LOCALBASE}/bin/java -JAR_DIR= share/java/jar/${PORTNAME} DOC_FILES= AUTHORS COPYING COPYING.LIB NEWS README \ TODO +PORTDOCS= ${DOC_FILES} + +PLIST_FILES= \ + bin/${PORTNAME:L} \ + %%JAVAJARDIR%%/${PORTNAME:L}.jar post-patch: - @${SED} -e "s|%%JAR_DIR%%|${JAR_DIR}|;s|%%JAVAVM%%|${JAVAVM}|; \ - s|%%JAVA_VERSION%%|${USE_JAVA}|; \ + @${SED} -e "s|%%JAVAJARDIR%%|${JAVAJARDIR:S,^${PREFIX}/,,}|; \ + s|%%JAVAVM%%|${JAVAVM}|; \ + s|%%JAVA_VERSION%%|${JAVA_VERSION}|; \ s|%%PREFIX%%|${PREFIX}|" \ ${FILESDIR}/wrapper.sh > ${WRKDIR}/wrapper.sh do-install: - @${MKDIR} ${PREFIX}/${JAR_DIR} - @${INSTALL_DATA} ${WRKSRC}/xnap.jar ${PREFIX}/${JAR_DIR} + @${INSTALL_DATA} ${WRKSRC}/xnap.jar \ + ${JAVAJARDIR}/${PORTNAME:L}.jar @${INSTALL_SCRIPT} ${WRKDIR}/wrapper.sh ${PREFIX}/bin/${PORTNAME:L} .ifndef(NOPORTDOCS) @${MKDIR} ${DOCSDIR} |