Update games/hexalate to version 1.1.6
[dports.git] / games / simutrans / Makefile
1 # $FreeBSD$
2
3 PORTNAME=       simutrans
4 DISTVERSION=    121-0
5 CATEGORIES=     games
6 MASTER_SITES=   SF/simutrans/simutrans/${DISTVERSION}
7 DISTNAME=       simutrans-src-${DISTVERSION}
8
9 MAINTAINER=     amdmi3@FreeBSD.org
10 COMMENT=        Transportation simulator
11
12 LICENSE=        ART10 MIT
13 LICENSE_COMB=   multi
14 LICENSE_FILE_ART10=     ${WRKSRC}/simutrans/license.txt
15 LICENSE_FILE_MIT=       ${WRKSRC}/simutrans/license_squirrel.txt
16
17 USES=           compiler:c11 gmake sdl zip
18 USE_SDL=        sdl2 mixer2
19
20 # Threading disabled because FreeBSD does not have a static initializer
21 # for recursive mutexes.
22 MAKE_ENV=       BACKEND=mixer_sdl2 \
23                 COLOUR_DEPTH=16 \
24                 MULTI_THREAD=0 \
25                 OSTYPE=freebsd \
26                 VERBOSE=1
27
28 NO_WRKSUBDIR=   yes
29
30 SUB_FILES=      simutrans
31
32 PLIST_FILES=    bin/simutrans libexec/simutrans
33 PORTDATA=       *
34 PORTDOCS=       change_request.txt \
35                 history.txt \
36                 problem_report.txt \
37                 readme.txt \
38                 thanks.txt
39
40 DESKTOP_ENTRIES=Simutrans "" "" simutrans "Game;Simulation;" false
41
42 OPTIONS_DEFINE= DOCS
43 OPTIONS_MULTI=  PAKS
44 OPTIONS_MULTI_PAKS=     PAK64 PAK128 PAK128_GERMAN
45 OPTIONS_DEFAULT=PAK128
46
47 PAKS_DESC=                      Graphics sets
48 PAK64_DESC=                     Enable low resolution graphics set
49 PAK64_RUN_DEPENDS=              simutrans-pak64>=0:games/simutrans-pak64
50 PAK128_DESC=                    Enable high resolution graphics set
51 PAK128_RUN_DEPENDS=             simutrans-pak128>=0:games/simutrans-pak128
52 PAK128_GERMAN_DESC=             Enable german graphics set
53 PAK128_GERMAN_RUN_DEPENDS=      simutrans-pak128.german>=0:games/simutrans-pak128.german
54
55 do-install:
56         @cd ${WRKSRC}/simutrans && ${COPYTREE_SHARE} \
57                 "ai config font music script text themes" ${STAGEDIR}${DATADIR}
58         ${INSTALL_PROGRAM} ${WRKSRC}/build/default/sim \
59                 ${STAGEDIR}${PREFIX}/libexec/simutrans
60         ${INSTALL_SCRIPT} ${WRKDIR}/simutrans ${STAGEDIR}${PREFIX}/bin
61
62 do-install-DOCS-on:
63         @${MKDIR} ${STAGEDIR}${DOCSDIR}
64         cd ${WRKSRC}/simutrans && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
65
66 .include <bsd.port.mk>