aboutsummaryrefslogtreecommitdiffstats
path: root/net/edonkey-gui-java/Makefile
blob: 4d5bcbaf8705af39638083ee9cc53607d08d491f (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
48
49
50
51
52
53
# 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.1.2
PORTREVISION=   3
CATEGORIES= net java
MASTER_SITES=   http://www.edonkey2000.com/files/
PKGNAMESUFFIX=  -gui-java
DISTNAME=   ed2k_${PORTVERSION}
EXTRACT_SUFX=   .jar
EXTRACT_ONLY=

MAINTAINER= ports@FreeBSD.org
COMMENT=    Java GUI to eDonkey2000 'core' command line client

RUN_DEPENDS=    donkey:${PORTSDIR}/net/linux-edonkey-core

BROKEN=     Unfetchable
DEPRECATED= "The software is no longer available from the vendor\'s website"
EXPIRATION_DATE=2005-06-07

USE_JAVA=   yes
JAVA_VERSION=   1.3+
NO_BUILD=   yes

JAVAVM=     ${LOCALBASE}/bin/java

PLIST_FILES=    \
        bin/${PORTNAME}${PKGNAMESUFFIX} \
        %%JAVAJARDIR%%/${PORTNAME}${PKGNAMESUFFIX}.jar

post-patch:
    @${SED} -e "s|%%JAVAJARDIR%%|${JAVAJARDIR:S,^${PREFIX}/,,}|; \
        s|%%JAR_FILE%%|${PORTNAME}${PKGNAMESUFFIX}.jar|; \
        s|%%JAVA_VERSION%%|${JAVA_VERSION}|; \
        s|%%JAVAVM%%|${JAVAVM}|;s|%%PREFIX%%|${PREFIX}|" \
        ${FILESDIR}/wrapper.sh > ${WRKDIR}/wrapper.sh

do-install:
    @${INSTALL_DATA} ${DISTDIR}/${JAR_FILE} \
        ${JAVAJARDIR}/${PORTNAME}${PKGNAMESUFFIX}.jar
    @${INSTALL_SCRIPT} ${WRKDIR}/wrapper.sh ${PREFIX}/bin/${PORTNAME}${PKGNAMESUFFIX}

.include <bsd.port.pre.mk>

JAR_FILE=   ${DISTNAME}.jar

.include <bsd.port.post.mk>