aboutsummaryrefslogtreecommitdiffstats
path: root/games/dmjava/Makefile
blob: c600f5d16d2768325549cf75f4e60fc25611dd9b (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
# New ports collection makefile for:    dmjava
# Date Created:     1 Sep 2002
# Whom:         Oliver Lehmann <lehmann@ans-netz.de>
#
# $FreeBSD$
#

PORTNAME=   dmjava
PORTVERSION=    1.037
CATEGORIES= games
MASTER_SITES=   http://www.toppoint.de/~hscholz/dmjava/ \
        http://phobos.raisdorf.net/~olivleh1/src/ \
        http://www.owlserver.de:2080/ftp/pub/echo/gfd/gfd.app.game/ \
        ftp://ftp.owlserver.de/pub/echo/gfd/gfd.app.game/ \
        http://keok.mine.nu/gfd/appgame/ \
        http://www.dmjump.net/patches/
DISTFILES=  DMJ.ZIP ${MY_PATCHFILES}
DIST_SUBDIR=    ${PORTNAME}
EXTRACT_ONLY=   DMJ.ZIP

MAINTAINER= lehmann@ans-netz.de

EXTRACT_AFTER_ARGS= -d ${WRKSRC}

MY_PATCHFILES=  PATCH1.ZIP PATCH2.ZIP PATCH3.ZIP PATCH35.ZIP PATCH36.ZIP PATCH37.ZIP

USE_ZIP=    yes
USE_JAVA=   1.3+

SCRIPTS_ENV=    BASEDIR="${WRKSRC}"

pre-patch:
    @${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/dmj-rename.sh

post-patch:
.for i in ${MY_PATCHFILES}
    @${EXTRACT_CMD} -oq ${DISTDIR}/${DIST_SUBDIR}/$i ${EXTRACT_AFTER_ARGS}
.endfor

do-build:   # empty

do-install:
    @${MKDIR} ${PREFIX}/${PORTNAME}
    @${CP} -r ${WRKSRC}/* ${PREFIX}/${PORTNAME}
    @${ECHO_MSG} ""
    @${ECHO_MSG} "To start dmjava, type 'cd ${PREFIX}/${PORTNAME} && javavm dmnew'"
    @${ECHO_MSG} ""
.include <bsd.port.mk>