6 MASTER_SITES= SF/simutrans/simutrans/${DISTVERSION}
7 DISTNAME= simutrans-src-${DISTVERSION}
9 MAINTAINER= amdmi3@FreeBSD.org
10 COMMENT= Transportation simulator
14 LICENSE_FILE_ART10= ${WRKSRC}/simutrans/license.txt
15 LICENSE_FILE_MIT= ${WRKSRC}/simutrans/license_squirrel.txt
17 USES= compiler:c11 gmake sdl zip
20 # Threading disabled because FreeBSD does not have a static initializer
21 # for recursive mutexes.
22 MAKE_ENV= BACKEND=mixer_sdl2 \
32 PLIST_FILES= bin/simutrans libexec/simutrans
34 PORTDOCS= change_request.txt \
40 DESKTOP_ENTRIES=Simutrans "" "" simutrans "Game;Simulation;" false
44 OPTIONS_MULTI_PAKS= PAK64 PAK128 PAK128_GERMAN
45 OPTIONS_DEFAULT=PAK128
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
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
63 @${MKDIR} ${STAGEDIR}${DOCSDIR}
64 cd ${WRKSRC}/simutrans && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
66 .include <bsd.port.mk>