openbsd-ports/games/warzone2100/Makefile
simon c2b5905a49 import warzone2100
Warzone 2100 was an innovative 3D real-time strategy game back in 1999,
and most will agree it didn't enjoy the commercial success it could
have had.  The game's source code was liberated on December 6th,
2004, under a GPL license.  Soon after that, the Warzone 2100 ReDev
project was formed to take care of its future.

feedback, help & ok ajacoutot@
2007-07-22 14:57:52 +00:00

46 lines
1.1 KiB
Makefile

# $OpenBSD: Makefile,v 1.1.1.1 2007/07/22 14:57:52 simon Exp $
COMMENT= 3d realtime strategy on a future earth
DISTNAME= warzone2100-2.0.7
CATEGORIES= games
EXTRACT_SUFX= .tar.bz2
HOMEPAGE= http://wz2100.net/
MAINTAINER= Simon Bertrang <simon@openbsd.org>
# GPL
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WANTLIB= GL GLU SDL X11 Xext c m ogg ossaudio pthread usbhid z
MASTER_SITES= http://download.gna.org/warzone/releases/2.0/
LIB_DEPENDS= SDL_net.>=1::devel/sdl-net \
physfs.>=1::devel/physfs \
openal.>=1::audio/openal \
vorbis.>=5,vorbisfile.>=4::audio/libvorbis \
mad.>=2::audio/libmad \
jpeg.>=62::graphics/jpeg \
png.>=5::graphics/png
BUILD_DEPENDS= ::devel/bison \
::archivers/zip
RUN_DEPENDS= :desktop-file-utils-*:devel/desktop-file-utils
USE_GMAKE= Yes
USE_X11= Yes
CONFIGURE_STYLE=gnu
CONFIGURE_ARGS+=${CONFIGURE_SHARED}
CONFIGURE_ENV+= CPPFLAGS='-I${LOCALBASE}/include -I${LOCALBASE}/include/libpng \
-I${X11BASE}/include' \
LDFLAGS='-L${LOCALBASE}/lib -L${X11BASE}/lib' \
LIBS='-pthread -lossaudio' \
YACC='bison -y'
.include <bsd.port.mk>