2012-12-10 13:43:43 +00:00
|
|
|
# Created by: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
|
2001-11-20 00:07:05 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= XNap
|
2004-12-25 12:49:11 +00:00
|
|
|
DISTVERSION= 2.5r3
|
2008-06-06 14:17:21 +00:00
|
|
|
PORTREVISION= 3
|
2006-01-30 21:36:28 +00:00
|
|
|
CATEGORIES= net-p2p audio java
|
2014-05-05 09:45:36 +00:00
|
|
|
MASTER_SITES= SF/${PORTNAME:tl}/${PORTNAME}/2.5r3
|
|
|
|
#DISTNAME= ${PORTNAME:tl}-${PORTVERSION:S/.p/-pre/:S/.b/-beta/}
|
|
|
|
DISTNAME= ${PORTNAME:tl}-${DISTVERSION}
|
2001-11-20 00:07:05 +00:00
|
|
|
|
2015-08-19 07:10:28 +00:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2012-07-29 11:17:02 +00:00
|
|
|
COMMENT= Pure Java napster client; also, supports OpenNap & giFT (FastTrack)
|
2001-11-20 00:07:05 +00:00
|
|
|
|
2015-08-20 16:41:59 +00:00
|
|
|
LICENSE= GPLv2
|
|
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
|
2018-07-28 06:41:07 +00:00
|
|
|
DEPRECATED= Unmaintained. Napster, OpenNap, and FastTrack are dead
|
|
|
|
EXPIRATION_DATE= 2018-08-30
|
|
|
|
|
2004-12-31 11:14:19 +00:00
|
|
|
USE_JAVA= yes
|
2012-12-10 13:43:43 +00:00
|
|
|
JAVA_VERSION= 1.6+
|
2001-11-20 00:07:05 +00:00
|
|
|
NO_BUILD= yes
|
2015-08-20 16:41:59 +00:00
|
|
|
NO_ARCH= yes
|
2001-11-20 00:07:05 +00:00
|
|
|
|
2004-11-30 23:48:25 +00:00
|
|
|
JAVAVM= ${LOCALBASE}/bin/java
|
2001-11-20 00:07:05 +00:00
|
|
|
|
2016-01-06 01:16:11 +00:00
|
|
|
PORTDOCS= AUTHORS COPYING COPYING.LIB NEWS README TODO
|
2004-12-31 11:14:19 +00:00
|
|
|
|
2016-01-06 01:16:11 +00:00
|
|
|
PLIST_FILES= bin/${PORTNAME:tl} \
|
2014-05-05 09:45:36 +00:00
|
|
|
%%JAVAJARDIR%%/${PORTNAME:tl}.jar
|
2001-11-20 00:07:05 +00:00
|
|
|
|
2016-01-06 01:16:11 +00:00
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
|
2001-11-20 00:07:05 +00:00
|
|
|
post-patch:
|
2004-12-31 11:14:19 +00:00
|
|
|
@${SED} -e "s|%%JAVAJARDIR%%|${JAVAJARDIR:S,^${PREFIX}/,,}|; \
|
|
|
|
s|%%JAVAVM%%|${JAVAVM}|; \
|
|
|
|
s|%%JAVA_VERSION%%|${JAVA_VERSION}|; \
|
2001-11-20 00:07:05 +00:00
|
|
|
s|%%PREFIX%%|${PREFIX}|" \
|
|
|
|
${FILESDIR}/wrapper.sh > ${WRKDIR}/wrapper.sh
|
|
|
|
|
|
|
|
do-install:
|
2016-01-06 01:16:11 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/xnap.jar \
|
2014-06-20 15:04:38 +00:00
|
|
|
${STAGEDIR}${JAVAJARDIR}/${PORTNAME:tl}.jar
|
2016-01-06 01:16:11 +00:00
|
|
|
${INSTALL_SCRIPT} ${WRKDIR}/wrapper.sh ${STAGEDIR}${PREFIX}/bin/${PORTNAME:tl}
|
|
|
|
|
|
|
|
do-install-DOCS-on:
|
2014-06-20 15:04:38 +00:00
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
2016-01-06 01:16:11 +00:00
|
|
|
.for doc in ${PORTDOCS}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${doc} ${STAGEDIR}${DOCSDIR}
|
2001-11-20 00:07:05 +00:00
|
|
|
.endfor
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|