aboutsummaryrefslogtreecommitdiffstats
path: root/games/simutrans/Makefile
blob: bcaae66af1f6f3d483c94a8e26ead6520ee10a0f (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
# New ports collection makefile for:    simutrans
# Date created:     24 January 2009
# Whom:         Tijl Coosemans <tijl@ulyssis.org>
#
# $FreeBSD$
#

PORTNAME=   simutrans
PORTVERSION=    101.0
CATEGORIES= games
MASTER_SITES=   SF
DISTFILES=  simutrans-src-101-0.zip \
        simulinux-101-0.zip \
        simupak64-101-0.zip

MAINTAINER= tijl@ulyssis.org
COMMENT=    Transport business simulation game

MAKE_ARGS=  BACKEND=mixer_sdl \
        COLOUR_DEPTH=16 \
        OSTYPE=freebsd \
        FLAGS=-DUSE_C \
        VERBOSE=1
NO_WRKSUBDIR=   yes
USE_GMAKE=  yes
USE_SDL=    sdl mixer
USE_ZIP=    yes

.include "${.CURDIR}/Makefile.plist"

PLIST_DIRS= ${SIMUTRANS_DIRS:S/^/%%DATADIR%%\//} %%DATADIR%%
PLIST_FILES=    bin/simutrans \
        bin/simutrans-bin \
        ${SIMUTRANS_DATA:S/^/%%DATADIR%%\//}

do-install:
.for _D in ${SIMUTRANS_DIRS}
    ${MKDIR} ${DATADIR}/${_D}
.endfor
.for _D in ${SIMUTRANS_DATA}
    ${INSTALL_DATA} ${WRKSRC}/simutrans/${_D} ${DATADIR}/${_D}
.endfor
    ${INSTALL_PROGRAM} ${WRKSRC}/sim ${PREFIX}/bin/simutrans-bin
    ${INSTALL_SCRIPT} ${FILESDIR}/simutrans ${PREFIX}/bin/simutrans

.include <bsd.port.mk>