mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-22 00:35:15 +00:00
30587b71c2
(via libvorbis, libtheora).
61 lines
1.5 KiB
Makefile
61 lines
1.5 KiB
Makefile
# New ports collection makefile for: openastromenace
|
|
# Date created: 23 Sep 2007
|
|
# Whom: Oleg Alexeenkov
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= openastromenace
|
|
PORTVERSION= 1.2.0
|
|
PORTREVISION= 9
|
|
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
|
|
|
|
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
|
|
|
|
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>
|