aboutsummaryrefslogtreecommitdiff
path: root/games/simutrans/Makefile
diff options
context:
space:
mode:
authorTijl Coosemans <tijl@FreeBSD.org>2013-03-25 12:36:39 +0000
committerTijl Coosemans <tijl@FreeBSD.org>2013-03-25 12:36:39 +0000
commitf47606ced83711a35a086182ebaa98feb996a27d (patch)
tree3e1926e5421447e6c5acde35fafb26cf5f568fe6 /games/simutrans/Makefile
parent704712a903703193c097851da7d32c80589945a3 (diff)
downloadports-f47606ced83711a35a086182ebaa98feb996a27d.tar.gz
ports-f47606ced83711a35a086182ebaa98feb996a27d.zip
Notes
Diffstat (limited to 'games/simutrans/Makefile')
-rw-r--r--games/simutrans/Makefile54
1 files changed, 35 insertions, 19 deletions
diff --git a/games/simutrans/Makefile b/games/simutrans/Makefile
index 948bdd9f82bf..5121b5dc515a 100644
--- a/games/simutrans/Makefile
+++ b/games/simutrans/Makefile
@@ -1,25 +1,32 @@
-# Created by: Tijl Coosemans <tijl@ulyssis.org>
# $FreeBSD$
PORTNAME= simutrans
-PORTVERSION= 112.0
+DISTVERSION= 112-2
CATEGORIES= games
-MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${SIMUTRANS_VERSION} \
- SF/${PORTNAME}/pak64/${SIMUTRANS_PAK64}:pak64
-DISTFILES= simutrans-src-${SIMUTRANS_VERSION}.zip \
- simupak64-${SIMUTRANS_PAK64}.zip:pak64
+MASTER_SITES= SF/simutrans/simutrans/${DISTVERSION} \
+ SF/simutrans/pak64/${PAK64_DISTVERSION}:pak64 \
+ SF/simutrans/pak128/pak128%20for%20${PAK128_SUBDIR}:pak128
+DISTFILES= simutrans-src-${DISTVERSION}.zip \
+ simulinux-${DISTVERSION}.zip
MAINTAINER= tijl@coosemans.org
-COMMENT= Transportation simulation game
+COMMENT= Transport Simulator
LICENSE= ART10
LICENSE_FILE= ${WRKSRC}/simutrans/license.txt
-SIMUTRANS_VERSION= ${PORTVERSION:S,.,-,g}
-SIMUTRANS_REVISION= 6000
-SIMUTRANS_PAK64= 112-0
+PAK64_DISTVERSION= ${DISTVERSION}
+PAK128_DISTVERSION= 2.3.0--112.2
+PAK128_SUBDIR= ${DISTVERSION}
+SIMUTRANS_REVISION= 6390
+
+OPTIONS_DEFINE= DOCS
+OPTIONS_MULTI= PAK
+OPTIONS_MULTI_PAK= PAK64 PAK128
+OPTIONS_DEFAULT= PAK64
+PAK64_DESC= Default graphics
+PAK128_DESC= High resolution graphics
-OPTIONS_DEFINE= DOCS
MAKE_ARGS= BACKEND=mixer_sdl \
COLOUR_DEPTH=16 \
OSTYPE=freebsd \
@@ -30,29 +37,38 @@ USE_GMAKE= yes
USE_SDL= sdl mixer
USE_ZIP= yes
-PLIST_DIRSTRY= share/applications
-PLIST_FILES= bin/simutrans \
- bin/simutrans-bin \
- share/applications/simutrans.desktop
+DESKTOP_ENTRIES=Simutrans "" "" simutrans "Game;Simulation;" "false"
+PLIST_FILES= bin/simutrans bin/simutrans-bin
PORTDATA= *
.include <bsd.port.options.mk>
+.if ${PORT_OPTIONS:MPAK64}
+DISTFILES+= simupak64-${PAK64_DISTVERSION}.zip:pak64
+.endif
+
+.if ${PORT_OPTIONS:MPAK128}
+DISTFILES+= pak128-${PAK128_DISTVERSION}.zip:pak128
+.endif
+
post-patch:
@${REINPLACE_CMD} 's/-O[^ ]*//' ${WRKSRC}/Makefile
@${REINPLACE_CMD} 's/simutrans/.simutrans/' ${WRKSRC}/simsys.cc
do-install:
cd ${WRKSRC}/simutrans && ${COPYTREE_SHARE} \
- "config font music pak skin text" ${DATADIR}
+ "config font music script skin text" ${DATADIR}
+.if ${PORT_OPTIONS:MPAK64}
+ cd ${WRKSRC}/simutrans && ${COPYTREE_SHARE} pak ${DATADIR}
+.endif
+.if ${PORT_OPTIONS:MPAK128}
+ cd ${WRKSRC}/simutrans && ${COPYTREE_SHARE} pak128 ${DATADIR}
+.endif
.if ${PORT_OPTIONS:MDOCS}
${INSTALL_DATA} ${WRKSRC}/simutrans/readme.txt ${DATADIR}
.endif
${INSTALL_PROGRAM} ${WRKSRC}/build/default/sim \
${PREFIX}/bin/simutrans-bin
${INSTALL_SCRIPT} ${FILESDIR}/simutrans ${PREFIX}/bin/simutrans
- ${MKDIR} ${PREFIX}/share/applications
- ${INSTALL_SCRIPT} ${FILESDIR}/simutrans.desktop \
- ${PREFIX}/share/applications/simutrans.desktop
.include <bsd.port.mk>