2011-10-21 13:43:30 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.15 2011/10/21 17:43:30 espie Exp $
|
2009-01-18 12:53:36 -05:00
|
|
|
|
|
|
|
COMMENT = platform game featuring buggers equipped with weapons
|
|
|
|
|
2009-11-29 13:00:27 -05:00
|
|
|
V = 0.5.2
|
2009-01-18 12:53:36 -05:00
|
|
|
DISTNAME = teeworlds-${V}-src
|
2009-11-29 13:00:27 -05:00
|
|
|
PKGNAME = teeworlds-${V}
|
2011-09-16 05:48:08 -04:00
|
|
|
REVISION = 3
|
2009-01-18 12:53:36 -05:00
|
|
|
CATEGORIES = games
|
|
|
|
|
2010-10-17 18:07:27 -04:00
|
|
|
MAINTAINER = Jonathan Armani <armani@openbsd.org>
|
2009-01-18 12:53:36 -05:00
|
|
|
HOMEPAGE = http://www.teeworlds.com/
|
|
|
|
|
|
|
|
BAM_VERSION = 0.2.0
|
|
|
|
BAM_WRKSRC = ${WRKSRC}/bam-${BAM_VERSION}
|
|
|
|
BAM_TARGET = release
|
|
|
|
|
|
|
|
MASTER_SITES = http://www.teeworlds.com/files/
|
|
|
|
DISTFILES = ${DISTNAME}${EXTRACT_SUFX} bam-${BAM_VERSION}${EXTRACT_SUFX}
|
|
|
|
|
|
|
|
# GPLv2
|
|
|
|
PERMIT_PACKAGE_CDROM = Yes
|
|
|
|
PERMIT_PACKAGE_FTP = Yes
|
|
|
|
PERMIT_DISTFILES_CDROM =Yes
|
|
|
|
PERMIT_DISTFILES_FTP = Yes
|
|
|
|
|
2010-10-17 18:07:27 -04:00
|
|
|
WANTLIB = GL GLU SDL X11 c m pthread stdc++ z
|
2010-11-16 06:23:25 -05:00
|
|
|
LIB_DEPENDS = devel/sdl
|
2009-01-18 12:53:36 -05:00
|
|
|
|
|
|
|
MODULES = lang/python
|
|
|
|
|
|
|
|
NO_REGRESS = Yes
|
|
|
|
|
|
|
|
GAMEDIR = ${PREFIX}/share/teeworlds
|
|
|
|
|
|
|
|
SUBST_VARS = CC CXX CFLAGS
|
|
|
|
|
|
|
|
post-extract:
|
|
|
|
@mv ${WRKDIR}/bam-${BAM_VERSION} ${BAM_WRKSRC}
|
|
|
|
|
|
|
|
pre-configure:
|
|
|
|
${SUBST_CMD} ${WRKSRC}/src/engine/e_engine.c \
|
|
|
|
${WRKSRC}/scripts/make_src.py \
|
|
|
|
${WRKSRC}/scripts/font_installer.sh \
|
|
|
|
${WRKSRC}/default.bam \
|
|
|
|
${BAM_WRKSRC}/make_unix.sh \
|
|
|
|
${BAM_WRKSRC}/src/driver_gcc.bam \
|
|
|
|
${BAM_WRKSRC}/src/base.bam
|
|
|
|
|
|
|
|
# build bam executable - teeworlds own build system
|
|
|
|
pre-build:
|
2011-10-21 13:43:30 -04:00
|
|
|
cd ${BAM_WRKSRC} && /bin/sh -v make_unix.sh
|
2009-01-18 12:53:36 -05:00
|
|
|
|
|
|
|
do-build:
|
|
|
|
cd ${WRKSRC} && CC=${CC} ${BAM_WRKSRC}/src/bam -v ${BAM_TARGET}
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/teeworlds ${PREFIX}/bin
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/teeworlds_srv ${PREFIX}/bin
|
|
|
|
${INSTALL_DATA_DIR} ${GAMEDIR}
|
|
|
|
cd ${WRKSRC}; tar cf - data | tar xf - -C ${GAMEDIR}
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|