2007-10-05 14:22:22 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.7 2007/10/05 18:22:22 mk Exp $
|
2006-06-01 04:06:45 -04:00
|
|
|
|
2007-09-15 14:01:00 -04:00
|
|
|
COMMENT= open source clone of the game Transport Tycoon Deluxe
|
2007-10-05 14:22:22 -04:00
|
|
|
DISTNAME= openttd-0.5.3-source
|
2007-06-11 06:56:28 -04:00
|
|
|
PKGNAME= ${DISTNAME:S/-source//}
|
2006-06-01 04:06:45 -04:00
|
|
|
EXTRACT_SUFX= .tar.bz2
|
|
|
|
CATEGORIES= games
|
|
|
|
|
|
|
|
HOMEPAGE= http://www.openttd.com/
|
|
|
|
|
|
|
|
MAINTAINER= Michael Knudsen <mk@molioner.dk>
|
|
|
|
|
|
|
|
# GPL
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
2007-06-11 06:56:28 -04:00
|
|
|
WANTLIB= X11 Xext c expat fontconfig freetype m pthread stdc++ usbhid z
|
|
|
|
|
2006-06-01 04:06:45 -04:00
|
|
|
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=openttd/}
|
|
|
|
|
|
|
|
LIB_DEPENDS= SDL::devel/sdl \
|
2006-08-02 05:36:20 -04:00
|
|
|
png.>=2::graphics/png
|
2006-06-01 04:06:45 -04:00
|
|
|
|
2007-06-11 06:56:28 -04:00
|
|
|
MAKE_ENV+= INSTALL=1 USE_HOMEDIR=1 VERBOSE=1 WITH_PNG=1 \
|
|
|
|
WITH_ZLIB=1 \
|
2006-06-01 04:06:45 -04:00
|
|
|
DATA_DIR=share/openttd \
|
|
|
|
ICON_DIR=share/pixmaps \
|
|
|
|
BINARY_DIR=bin \
|
2007-06-11 06:56:28 -04:00
|
|
|
PERSONAL_DIR=.openttd
|
2006-06-01 04:06:45 -04:00
|
|
|
|
|
|
|
USE_X11= Yes
|
|
|
|
USE_GMAKE= Yes
|
2006-06-04 10:30:29 -04:00
|
|
|
NO_REGRESS= Yes
|
2006-06-01 04:06:45 -04:00
|
|
|
|
|
|
|
WRKDIST= ${WRKDIR}/${DISTNAME:S/-source//}
|
|
|
|
|
|
|
|
DOCSDIR= ${PREFIX}/share/doc/openttd
|
|
|
|
EXAMPLESDIR= ${PREFIX}/share/examples/openttd
|
|
|
|
GAMEDIR= ${PREFIX}/share/openttd
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA_DIR} ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/docs/* ${DOCSDIR}
|
|
|
|
${INSTALL_DATA_DIR} ${EXAMPLESDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/scripts/* ${EXAMPLESDIR}
|
|
|
|
${INSTALL_DATA_DIR} ${GAMEDIR}
|
|
|
|
${INSTALL_DATA_DIR} ${GAMEDIR}/media
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/media/* ${GAMEDIR}/media
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|