60945f0277
the 32 ports that still use it. Bump PORTREVISION on their dependent ports except the ones that depend on these: audio/libogg audio/libvorbis devel/pcre ftp/curl graphics/jpeg graphics/libart_lgpl graphics/tiff textproc/expat2 textproc/libxslt In these cases the same trick as in the recent gettext update is used. The ports install a symlink with the old library version. When enough of their dependent ports have had regular updates the remaining ones can get a PORTREVISION bump and the links can be removed. Also remove the devel/pcre dependency from USE_GNOME=glib20. It causes over 2200 packages to depend on devel/pcre while less than 200 actually link with it. The glib20 package still depends on devel/pcre so this should not make a difference for ports with USE_GNOME=glib20. Also, libdata/pkgconfig/glib-2.0.pc lists pcre as a private library so USE_GNOME=glib20 should not propagate it. PR: 195724 Exp-run by: antoine Approved by: portmgr (antoine)
79 lines
2.1 KiB
Makefile
79 lines
2.1 KiB
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= simutrans
|
|
DISTVERSION= 120-0-1
|
|
PORTREVISION= 1
|
|
CATEGORIES= games
|
|
MASTER_SITES= SF/simutrans/simutrans/${DISTVERSION} \
|
|
SF/simutrans/pak64/${PAK64_SUBDIR}:pak64 \
|
|
SF/simutrans/pak128/pak128%20for%20${PAK128_SUBDIR}:pak128
|
|
DISTFILES= simutrans-src-${DISTVERSION}.zip \
|
|
simulinux-x64-${DISTVERSION}.zip
|
|
|
|
MAINTAINER= tijl@FreeBSD.org
|
|
COMMENT= Transport Simulator
|
|
|
|
LICENSE= ART10
|
|
LICENSE_FILE= ${WRKSRC}/simutrans/license.txt
|
|
|
|
PAK64_DISTVERSION= ${DISTVERSION}
|
|
PAK64_SUBDIR= 120-0
|
|
PAK128_DISTVERSION= 2.5.2--RC_120
|
|
PAK128_SUBDIR= RC%20120%20%282.5.2%2C%20bugfixes%29
|
|
SIMUTRANS_REVISION= 7373
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
OPTIONS_MULTI= PAK
|
|
OPTIONS_MULTI_PAK= PAK64 PAK128
|
|
OPTIONS_DEFAULT= PAK64
|
|
PAK64_DESC= Default graphics
|
|
PAK128_DESC= High resolution graphics
|
|
|
|
# Threading disabled because FreeBSD does not have a static initializer
|
|
# for recursive mutexes.
|
|
MAKE_ARGS= BACKEND=mixer_sdl \
|
|
COLOUR_DEPTH=16 \
|
|
MULTI_THREAD=0 \
|
|
OSTYPE=freebsd \
|
|
FLAGS="-DUSE_C -DREVISION=${SIMUTRANS_REVISION}" \
|
|
VERBOSE=1
|
|
NO_WRKSUBDIR= yes
|
|
USES= gmake zip
|
|
USE_SDL= sdl mixer
|
|
|
|
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 script text themes" ${STAGEDIR}${DATADIR})
|
|
.if ${PORT_OPTIONS:MPAK64}
|
|
(cd ${WRKSRC}/simutrans && ${COPYTREE_SHARE} \
|
|
pak ${STAGEDIR}${DATADIR})
|
|
.endif
|
|
.if ${PORT_OPTIONS:MPAK128}
|
|
(cd ${WRKSRC} && ${COPYTREE_SHARE} pak128 ${STAGEDIR}${DATADIR})
|
|
.endif
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
${INSTALL_DATA} ${WRKSRC}/simutrans/readme.txt ${STAGEDIR}${DATADIR}
|
|
.endif
|
|
${INSTALL_PROGRAM} ${WRKSRC}/build/default/sim \
|
|
${STAGEDIR}${PREFIX}/bin/simutrans-bin
|
|
${INSTALL_SCRIPT} ${FILESDIR}/simutrans ${STAGEDIR}${PREFIX}/bin
|
|
|
|
.include <bsd.port.mk>
|