2009-08-03 12:57:43 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.6 2009/08/03 16:57:44 sthen Exp $
|
2008-10-27 09:29:02 -04:00
|
|
|
|
2009-02-03 14:48:41 -05:00
|
|
|
ONLY_FOR_ARCHS = amd64 i386 macppc
|
2008-10-27 09:29:02 -04:00
|
|
|
|
2008-10-28 10:27:53 -04:00
|
|
|
COMMENT-main = OpenArena client
|
|
|
|
COMMENT-server = OpenArena server
|
|
|
|
COMMENT-data = OpenArena data for client/server
|
2008-10-27 09:29:02 -04:00
|
|
|
|
2008-10-28 10:27:53 -04:00
|
|
|
MULTI_PACKAGES = -main -server -data
|
2008-10-27 09:29:02 -04:00
|
|
|
|
2008-10-28 10:27:53 -04:00
|
|
|
CATEGORIES = games x11
|
2008-10-27 09:29:02 -04:00
|
|
|
|
2008-11-05 16:25:28 -05:00
|
|
|
V = 0.8.1
|
2008-10-27 09:29:02 -04:00
|
|
|
|
2009-08-03 12:57:43 -04:00
|
|
|
PKGNAME-main = openarena-${V}p0
|
|
|
|
PKGNAME-server = openarena-server-${V}p0
|
|
|
|
PKGNAME-data = openarena-data-${V}p1
|
2008-11-05 16:25:28 -05:00
|
|
|
|
2009-02-03 14:48:41 -05:00
|
|
|
PKG_ARCH-data = amd64,i386,macppc
|
2008-10-27 09:29:02 -04:00
|
|
|
|
2008-10-28 10:27:53 -04:00
|
|
|
DISTNAME = oa${V:S/.//g}
|
2008-11-05 16:25:28 -05:00
|
|
|
DISTFILES = ${DISTNAME}.zip openarena-engine-${V}-1.tar.bz2
|
2008-10-27 09:29:02 -04:00
|
|
|
|
2008-11-05 16:25:28 -05:00
|
|
|
MS_PREFIX = http://download.tuxfamily.org/openarena/rel/
|
2008-10-28 10:27:53 -04:00
|
|
|
HOMEPAGE = http://www.openarena.ws/
|
2008-11-05 16:25:28 -05:00
|
|
|
MASTER_SITES = ${MS_PREFIX}/${V:S/.//g}/ \
|
|
|
|
${MS_PREFIX}/${V:S/.//g}/source/ \
|
2008-10-28 10:27:53 -04:00
|
|
|
http://openbsd.fi/distfiles/
|
2008-10-27 09:29:02 -04:00
|
|
|
|
|
|
|
# GPLv2 but contains software with other (free) licenses as well
|
2008-10-28 10:27:53 -04:00
|
|
|
PERMIT_PACKAGE_CDROM = Yes
|
|
|
|
PERMIT_PACKAGE_FTP = Yes
|
|
|
|
PERMIT_DISTFILES_CDROM =Yes
|
|
|
|
PERMIT_DISTFILES_FTP = Yes
|
2008-10-27 09:29:02 -04:00
|
|
|
|
2008-10-28 10:27:53 -04:00
|
|
|
WANTLIB-main = GL c m pthread
|
|
|
|
WANTLIB-server = c m
|
2008-10-27 09:29:02 -04:00
|
|
|
|
2008-10-28 10:27:53 -04:00
|
|
|
LIB_DEPENDS-main = ogg.>=5::audio/libogg \
|
2008-10-27 09:29:02 -04:00
|
|
|
SDL.>=7::devel/sdl \
|
|
|
|
vorbis.>=6::audio/libvorbis \
|
|
|
|
vorbisfile.>=5::audio/libvorbis
|
2008-11-05 16:25:28 -05:00
|
|
|
RUN_DEPENDS-main = :openarena-data-*:${BUILD_PKGPATH},-data
|
|
|
|
RUN_DEPENDS-server = :openarena-data-*:${BUILD_PKGPATH},-data
|
2008-10-27 09:29:02 -04:00
|
|
|
|
2008-10-28 10:27:53 -04:00
|
|
|
ALL_TARGET = release
|
|
|
|
USE_GMAKE = Yes
|
|
|
|
MAKE_FLAGS = USE_OPENAL=0 \
|
|
|
|
BINEXT='' \
|
|
|
|
DEFAULT_BASEDIR=${LOCALBASE}/share/openarena
|
2008-10-27 09:29:02 -04:00
|
|
|
|
2008-11-05 16:25:28 -05:00
|
|
|
WRKDIST = ${WRKDIR}/openarena-engine-${V}
|
2008-10-27 09:29:02 -04:00
|
|
|
|
|
|
|
post-extract:
|
|
|
|
find ${WRKDIR} -name '*.orig' -print0 | xargs -0r rm -f
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} \
|
|
|
|
${WRKDIST}/build/release-openbsd/openarena-* \
|
|
|
|
${PREFIX}/bin/
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/openarena/baseoa
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/openarena/missionpack
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/openarena
|
|
|
|
${INSTALL_DATA} \
|
|
|
|
${WRKDIR}/openarena-$V/README \
|
|
|
|
${WRKDIR}/openarena-$V/COPYING \
|
|
|
|
${WRKDIR}/openarena-$V/CHANGES \
|
|
|
|
${PREFIX}/share/doc/openarena/
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/openarena-$V/baseoa/* ${PREFIX}/share/openarena/baseoa/
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/openarena-$V/missionpack/* ${PREFIX}/share/openarena/missionpack/
|
|
|
|
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|