aboutsummaryrefslogtreecommitdiffstats
path: root/net/edonkey-gui-java/Makefile
blob: 363d2d1ac54dce4615655faead3816fa40a433ab (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# 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
PORTVERSION=    1.0.3
CATEGORIES= net java
MASTER_SITES=   http://www.edonkey2000.com/files/
PKGNAMESUFFIX=  -gui-java
DISTNAME=   ed2k_3
EXTRACT_SUFX=   .jar
EXTRACT_ONLY=

MAINTAINER= lioux@FreeBSD.org

RUN_DEPENDS=    donkey:${PORTSDIR}/net/edonkey-core \
        ${JAVAVM}:${PORTSDIR}/java/javavmwrapper \
        ${LOCALBASE}/etc/javavms:${PORTSDIR}/java/jre \
        ${LOCALBASE}/jdk${JDK_VERSION}/bin/java:${PORTSDIR}/java/jdk13

NO_BUILD=   yes
PLIST_SUB=  JAR_DIR=${JAR_DIR} \
        JAR_FILE=${JAR_FILE} \
        WRAPPER=${PORTNAME}${PKGNAMESUFFIX}

JDK_VERSION=    1.3.1
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>