2002-01-22 10:51:11 -05:00
|
|
|
# New ports collection makefile for: eDonkey2000 Java GUI for 'core' client
|
|
|
|
# Date created: Fri Jan 4 23:59:44 BRST 2002
|
|
|
|
# Whom: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= edonkey
|
2002-06-08 18:11:21 -04:00
|
|
|
PORTVERSION= 1.1.2
|
2002-01-22 10:51:11 -05:00
|
|
|
CATEGORIES= net java
|
|
|
|
MASTER_SITES= http://www.edonkey2000.com/files/
|
|
|
|
PKGNAMESUFFIX= -gui-java
|
2002-05-15 09:15:59 -04:00
|
|
|
DISTNAME= ed2k_${PORTVERSION}
|
2002-01-22 10:51:11 -05:00
|
|
|
EXTRACT_SUFX= .jar
|
|
|
|
EXTRACT_ONLY=
|
|
|
|
|
|
|
|
MAINTAINER= lioux@FreeBSD.org
|
|
|
|
|
2002-03-28 09:48:49 -05:00
|
|
|
RUN_DEPENDS= donkey:${PORTSDIR}/net/edonkey-core
|
2002-01-22 10:51:11 -05:00
|
|
|
|
2002-03-28 09:48:49 -05:00
|
|
|
USE_JAVA= 1.3+
|
2002-01-22 10:51:11 -05:00
|
|
|
NO_BUILD= yes
|
2002-03-29 11:19:23 -05:00
|
|
|
NO_BUILD_DEPENDS_JAVA= yes
|
2002-01-22 10:51:11 -05:00
|
|
|
PLIST_SUB= JAR_DIR=${JAR_DIR} \
|
|
|
|
JAR_FILE=${JAR_FILE} \
|
|
|
|
WRAPPER=${PORTNAME}${PKGNAMESUFFIX}
|
|
|
|
|
|
|
|
JAVAVM= ${LOCALBASE}/bin/javavm
|
|
|
|
JAR_DIR= share/java/jar/${PORTNAME}
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
@${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}
|
|
|
|
@${INSTALL_DATA} ${DISTDIR}/${JAR_FILE} ${PREFIX}/${JAR_DIR}
|
|
|
|
@${INSTALL_SCRIPT} ${WRKDIR}/wrapper.sh ${PREFIX}/bin/${PORTNAME}${PKGNAMESUFFIX}
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
JAR_FILE= ${DISTNAME}.jar
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|