1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-26 00:55:14 +00:00
freebsd-ports/games/simutrans/Makefile
Max Brazhnikov 8631da6deb Update to 112.0
PR:		ports/173330
Submitted by:	Tijl Coosemans (maintainer)
Feature safe:	yes
2012-11-08 22:54:50 +00:00

59 lines
1.5 KiB
Makefile

# Created by: Tijl Coosemans <tijl@ulyssis.org>
# $FreeBSD$
PORTNAME= simutrans
PORTVERSION= 112.0
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
MAINTAINER= tijl@coosemans.org
COMMENT= Transportation simulation game
LICENSE= ART10
LICENSE_FILE= ${WRKSRC}/simutrans/license.txt
SIMUTRANS_VERSION= ${PORTVERSION:S,.,-,g}
SIMUTRANS_REVISION= 6000
SIMUTRANS_PAK64= 112-0
OPTIONS_DEFINE= DOCS
MAKE_ARGS= BACKEND=mixer_sdl \
COLOUR_DEPTH=16 \
OSTYPE=freebsd \
FLAGS="-DUSE_C -DREVISION=${SIMUTRANS_REVISION}" \
VERBOSE=1
NO_WRKSUBDIR= yes
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
PORTDATA= *
.include <bsd.port.options.mk>
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}
.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>