freebsd-ports/games/openastromenace/Makefile
Marcus von Appen fbd0197639 - Update devel/sdl12 to 1.2.15
- Update audio/sdl_mixer to 1.2.15
- Update graphics/sdl_image to 1.2.12
- Update graphics/sdl_ttf to 2.0.11
- Update graphics/sdl_gfx to 2.0.23
- Update net/sdl_net to 1.2.8
- Bump PORTREVISIONs on ports that depend on one or more packages due to
ABI and shared library version changes
- Update Mk/bsd.sdl.mk accordingly for the new shared library versions

Tested by:	exp-run by pav
2012-02-18 10:18:33 +00:00

65 lines
1.6 KiB
Makefile

# New ports collection makefile for: openastromenace
# Date created: 23 Sep 2007
# Whom: Oleg Alexeenkov
#
# $FreeBSD$
#
PORTNAME= openastromenace
PORTVERSION= 1.2.0
PORTREVISION= 10
CATEGORIES= games
MASTER_SITES= SF
DISTFILES= openamenace-src-${PORTVERSION}${EXTRACT_SUFX} \
oamenace-data-${PORTVERSION}${EXTRACT_SUFX} \
oamenace-lang-${LANGPACK}-${PORTVERSION}${EXTRACT_SUFX}
MAINTAINER= proler@gmail.com
COMMENT= Hardcore 3D space shooter with spaceship upgrade possibilities
LIB_DEPENDS+= vorbisfile:${PORTSDIR}/audio/libvorbis \
jpeg:${PORTSDIR}/graphics/jpeg
USE_BZIP2= yes
USE_GL= gl glu
USE_OPENAL= al alut
WANT_SDL= yes
USE_SDL= sdl
USE_CMAKE= yes
WRKSRC= ${WRKDIR}/OpenAstroMenaceSVN
USE_DOS2UNIX= yes
OPTIONS= EN "English language pack" on \
DE "German language pack" off \
RU "Russian language pack" off
.include <bsd.port.pre.mk>
.if !defined(WITHOUT_EN)
LANGPACK= en
.elif defined(WITH_DE)
LANGPACK= de
.elif defined(WITH_RU)
LANGPACK= ru
.else
IGNORE= cannot be build without/with multiple language packs. Please rerun 'make config' and select single language pack
.endif
.if !defined(WITHOUT_NOUVEAU)
CFLAGS+= -DOLD_MESA
.endif
post-patch:
${REINPLACE_CMD} -e 's|/usr/local/share/openastromenace|${DATADIR}|' \
${WRKSRC}/AstroMenaceSource/Main.cpp
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/AstroMenace ${PREFIX}/bin
${MKDIR} ${DATADIR}
${INSTALL_DATA} ${WRKDIR}/gamedata.vfs ${DATADIR}/
${MKDIR} ${DATADIR}/DATA/SCRIPT
${INSTALL_DATA} ${WRKDIR}/DATA/SCRIPT/* ${DATADIR}/DATA/SCRIPT
${INSTALL_DATA} ${WRKDIR}/gamelang_${LANGPACK}.vfs \
${DATADIR}/gamelang.vfs
.include <bsd.port.post.mk>