d4530ab3b6
o Bump PORTREVISION due to jar location changes Prompted by: hq
53 lines
1.3 KiB
Makefile
53 lines
1.3 KiB
Makefile
# New ports collection makefile for: XNap
|
|
# Date created: Mon Nov 19 22:02:27 BRST 2001
|
|
# Whom: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= XNap
|
|
DISTVERSION= 2.5r3
|
|
PORTREVISION= 1
|
|
CATEGORIES= net audio java
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
MASTER_SITE_SUBDIR= ${PORTNAME:L}
|
|
#DISTNAME= ${PORTNAME:L}-${PORTVERSION:S/.p/-pre/:S/.b/-beta/}
|
|
DISTNAME= ${PORTNAME:L}-${DISTVERSION}
|
|
|
|
MAINTAINER= lioux@FreeBSD.org
|
|
COMMENT= A pure java napster client; also, supports OpenNap & giFT (FastTrack)
|
|
|
|
USE_JAVA= yes
|
|
JAVA_VERSION= 1.3+
|
|
NO_BUILD= yes
|
|
|
|
JAVAVM= ${LOCALBASE}/bin/java
|
|
|
|
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|%%JAVAJARDIR%%|${JAVAJARDIR:S,^${PREFIX}/,,}|; \
|
|
s|%%JAVAVM%%|${JAVAVM}|; \
|
|
s|%%JAVA_VERSION%%|${JAVA_VERSION}|; \
|
|
s|%%PREFIX%%|${PREFIX}|" \
|
|
${FILESDIR}/wrapper.sh > ${WRKDIR}/wrapper.sh
|
|
|
|
do-install:
|
|
@${INSTALL_DATA} ${WRKSRC}/xnap.jar \
|
|
${JAVAJARDIR}/${PORTNAME:L}.jar
|
|
@${INSTALL_SCRIPT} ${WRKDIR}/wrapper.sh ${PREFIX}/bin/${PORTNAME:L}
|
|
.ifndef(NOPORTDOCS)
|
|
@${MKDIR} ${DOCSDIR}
|
|
.for doc in ${DOC_FILES}
|
|
@${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR}
|
|
.endfor
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|