1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-02 01:20:54 +00:00
freebsd-ports/games/openttd/Makefile
Alexey Dokuchaev e48f9e2340 - Fix "Bad system call" error with SDL sound driver
- Add a short note about fonts for non-latin languages

PR:	ports/117018
2007-10-18 07:33:52 +00:00

79 lines
2.0 KiB
Makefile

# New ports collection makefile for: OpenTTD
# Date created: 16 Dec 2004
# Whom: Alexey Dokuchaev <danfe@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= openttd
PORTVERSION= 0.5.3
PORTREVISION= 1
CATEGORIES= games
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= danfe@FreeBSD.org
COMMENT= An open source clone of Microprose Transport Tycoon Deluxe
LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png
USE_GMAKE= yes
DISTVERSIONSUFFIX= -source
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
.if defined(WITH_MIDI_PLAYER)
MAKE_ARGS+= MIDI=${WITH_MIDI_PLAYER}
.endif
.if defined(WITH_DEDICATED_SERVER_ONLY)
MAKE_ARGS+= DEDICATED=1
.else
USE_SDL= sdl
.endif
MAKE_ARGS+= RELEASE=${PORTVERSION} DATA_DIR="share/openttd" \
USE_HOMEDIR=1 PERSONAL_DIR=.openttd INSTALL=1 VERBOSE=1 \
PTHREAD_LIBS="-lpthread"
SUB_FILES= pkg-message
MAN6= openttd.6
DESKTOP_ENTRIES="OpenTTD" "${COMMENT}" "" "openttd" "" false
DOCS= HOWTO_compile_lang_files.txt Howto_compile_lng_files_from_CLI.txt \
Manual.txt elrail.svg elrail_tile.png elrail_track.png \
landscape.html landscape_grid.html multiplayer.txt \
ottd-colour-palette.gif ottd-colourtext-palette.png tileh.png
pre-everything::
.if !defined(WITH_MIDI_PLAYER)
@${ECHO_MSG} "Define WITH_MIDI_PLAYER=/path/to/player to build with external MIDI player"
.endif
.if !defined(WITH_DEDICATED_SERVER_ONLY)
@${ECHO_MSG} "Define WITH_DEDICATED_SERVER_ONLY to build CLI-based dedicated server"
.endif
post-extract:
.if defined(WITH_DEDICATED_SERVER_ONLY)
@${REINPLACE_CMD} -e 's|^WITH_SDL|#WITH_SDL|' ${WRKSRC}/makefiledir/Makefile.libdetection
.endif
do-install:
@${MKDIR} ${DATADIR}/data ${DATADIR}/lang
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/data/* ${DATADIR}/data
${INSTALL_DATA} ${WRKSRC}/lang/*.lng ${DATADIR}/lang
${INSTALL_MAN} ${WRKSRC}/docs/${MAN6} ${MANPREFIX}/man/man6
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
. for f in ${DOCS}
${INSTALL_DATA} ${WRKSRC}/docs/${f} ${DOCSDIR}
. endfor
.endif
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>