1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-03 06:04:53 +00:00

Update to 1.1.0.

Update mirrors. Use USE_XZ
liblzma check, only works with the pkgconfig file. Add workaround for
systems where liblzma is in base.

PR:		ports/156114
Submitted by:	myself
Approved by:	maintainer timeout (45 days)
This commit is contained in:
Koop Mast 2011-05-16 18:20:04 +00:00
parent 839d53014a
commit 8d54582b47
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=274202
4 changed files with 44 additions and 16 deletions

View File

@ -6,11 +6,14 @@
#
PORTNAME= openttd
PORTVERSION= 1.0.5
PORTVERSION= 1.1.0
CATEGORIES= games
MASTER_SITES= http://gb.binaries.openttd.org/binaries/releases/${PORTVERSION}/ \
http://ftp.snt.utwente.nl/pub/games/openttd/binaries/releases/${PORTVERSION}/ \
#SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}
http://cz.binaries.openttd.org/openttd/binaries/releases/${PORTVERSION}/ \
http://de.binaries.openttd.org/binaries/releases/${PORTVERSION}/ \
http://us.binaries.openttd.org/binaries/releases/${PORTVERSION}/
DISTNAME= ${PORTNAME}-${PORTVERSION}-source
MAINTAINER= danfe@FreeBSD.org
COMMENT= An open source clone of Microprose Transport Tycoon Deluxe
@ -22,7 +25,7 @@ LIB_DEPENDS= png.6:${PORTSDIR}/graphics/png \
HAS_CONFIGURE= yes
CONFIGURE_ARGS= --prefix-dir="${PREFIX}" --data-dir="${DATADIR_REL}"
USE_BZIP2= yes
USE_XZ= yes
USE_GMAKE= yes
INSTALLS_ICONS= yes
MAKE_JOBS_SAFE= yes
@ -53,11 +56,13 @@ MAN6= ${PORTNAME}.6
DESKTOP_ENTRIES="OpenTTD" "${COMMENT}" "${PORTNAME}" "${PORTNAME}" \
"Game;Simulation;StrategyGame;" ${FALSE}
PORTDOCS= 32bpp.txt HOWTO_compile_lang_files.txt elrail.svg \
elrail_tile.png elrail_track.png landscape.html \
PORTDOCS= 32bpp.txt HOWTO_compile_lang_files.txt admin_network.txt \
elrail.svg elrail_tile.png elrail_track.png landscape.html \
landscape_externals.html landscape_grid.html multiplayer.txt \
obg_format.txt obm_format.txt obs_format.txt \
ottd-colour-palette.gif ottd-colourtext-palette.png tileh.png
ottd-colourtext-palette.png tileh.png
.include <bsd.port.pre.mk>
pre-everything::
.if !defined(WITH_MIDI_PLAYER)
@ -73,12 +78,16 @@ pre-everything::
post-patch:
# Remove extra (vendor-provided) CFLAGS and LDFLAGS and make the port more
# LOCALBASE safe
@${REINPLACE_CMD} -e '1250,1252d ; s,/usr/local,${LOCALBASE},' \
@${REINPLACE_CMD} -e '1355,1355d ; s,/usr/local,${LOCALBASE},' \
${WRKSRC}/config.lib
# FreeBSD has strndup(3) since 701101
@${REINPLACE_CMD} -e '/__NetBSD_Version__/s,$$, || (defined(__FreeBSD_version) \&\& __FreeBSD_version > 701100),' \
-e 's,def __NetBSD__, defined(__NetBSD__) || defined(__FreeBSD__),' \
${WRKSRC}/src/string_func.h
# Use custom libzma.pc for when we use libzma from base.
.if ${OSVERSION} >= 900012 || (${OSVERSION} >= 800505 && ${OSVERSION} < 900000)
@${REINPLACE_CMD} \
-e 's|pkg-config liblzma|pkg-config ${FILESDIR}/liblzma.pc|g' \
${WRKSRC}/config.lib
.else
LIB_DEPEND+= lzma.5:${PORTSDIR}/archivers/xz
.endif
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/bin/${PORTNAME} ${PREFIX}/bin
@ -106,4 +115,4 @@ post-install:
@${CAT} ${PKGMESSAGE}
@${ECHO_MSG}
.include <bsd.port.mk>
.include <bsd.port.post.mk>

View File

@ -1,2 +1,2 @@
SHA256 (openttd-1.0.5-source.tar.bz2) = c353626b16b4b781db3c3c61f0ad651f5701e50f87439c4005b4456b63db09f8
SIZE (openttd-1.0.5-source.tar.bz2) = 5684796
SHA256 (openttd-1.1.0-source.tar.xz) = 290b482efa4229a0ef35660178787bc458fdf6bd982c95aee252cde77e500447
SIZE (openttd-1.1.0-source.tar.xz) = 4901356

View File

@ -0,0 +1,19 @@
#
# Author: Lasse Collin
#
# This file has been put into the public domain.
# You can do whatever you want with this file.
#
prefix=/usr
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include
Name: liblzma
Description: General purpose data compression library
URL: http://tukaani.org/xz/
Version: 5.0.0
Cflags: -I${includedir}
Libs: -L${libdir} -llzma
Libs.private: -D_THREAD_SAFE -pthread

View File

@ -2,12 +2,12 @@ bin/openttd
share/pixmaps/openttd.32.xpm
%%DATADIR%%/ai/compat_0.7.nut
%%DATADIR%%/ai/compat_1.0.nut
%%DATADIR%%/ai/compat_1.1.nut
@dirrm %%DATADIR%%/ai
%%DATADIR%%/gm/no_music.obm
%%DATADIR%%/gm/orig_win.obm
@dirrm %%DATADIR%%/gm
%%DATADIR%%/data/openttdd.grf
%%DATADIR%%/data/openttdw.grf
%%DATADIR%%/data/openttd.grf
%%DATADIR%%/data/opntitle.dat
%%DATADIR%%/data/orig_dos.obg
%%DATADIR%%/data/orig_dos.obs