openbsd-ports/games/warzone2100/Makefile

55 lines
1.2 KiB
Makefile

# $OpenBSD: Makefile,v 1.12 2011/01/13 09:36:35 dcoppa Exp $
ONLY_FOR_ARCHS= i386
COMMENT= 3D realtime strategy on a future earth
DISTNAME= warzone2100-2.3.6
REVISION= 1
CATEGORIES= games
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=warzone2100/}
HOMEPAGE= http://wz2100.net/
# GPLv2+
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WANTLIB= GL GLC GLU SDL X11 c m physfs ogg openal>=1 png \
popt pthread sndio stdc++ theora vorbis vorbisfile \
z
MODULES= devel/gettext
LIB_DEPENDS= audio/libogg \
audio/libvorbis \
audio/openal>=0.0.8p7 \
devel/physfs \
devel/popt \
devel/sdl \
graphics/png \
graphics/quesoglc \
multimedia/libtheora
BUILD_DEPENDS= archivers/unzip \
archivers/zip \
devel/bison \
devel/flex
RUN_DEPENDS= devel/desktop-file-utils
USE_GMAKE= Yes
CONFIGURE_STYLE= autoconf
AUTOCONF_VERSION= 2.61
CONFIGURE_ARGS+= --with-distributor="OpenBSD"
CONFIGURE_ENV+= CPPFLAGS="-I${X11BASE}/include -I${LOCALBASE}/include/libpng \
-I${LOCALBASE}/include" \
LDFLAGS="-L${X11BASE}/lib -L${LOCALBASE}/lib" \
YACC="bison -y" \
ac_cv_prog_LEX="gflex"
pre-build:
.for _prog in git svn svnversion
@cd ${WRKDIR}/bin && ln -sf /usr/bin/true ${_prog}
.endfor
.include <bsd.port.mk>