openbsd-ports/games/wesnoth/Makefile
landry d71efac8d6 Make sure netinet/in.h and friends are included before SDL_net.h to
avoid redefining INADDR_ANY/NONE/BROADCAST in SDL_net.h.
This allows it to build with -Wsystem-headers.
2010-07-21 16:21:54 +00:00

73 lines
1.7 KiB
Makefile

# $OpenBSD: Makefile,v 1.30 2010/07/21 16:21:54 landry Exp $
COMMENT= fantasy turn-based strategy game
DISTNAME= wesnoth-1.6.5
REVISION= 1
CATEGORIES= games x11
HOMEPAGE= http://www.wesnoth.org/
MAINTAINER= Jasper Lievisse Adriaanse <jasper@openbsd.org>
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=wesnoth/}
EXTRACT_SUFX= .tar.bz2
# GPLv2
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WANTLIB += X11 Xau Xdmcp Xrender c cairo expat fontconfig freetype
WANTLIB += glib-2.0 glitz gmodule-2.0 gobject-2.0 m pixman-1 png
WANTLIB += pthread pthread-stubs stdc++ xcb z
MODULES= devel/gettext
LIB_DEPENDS= boost_iostreams-mt::devel/boost \
boost_regex-mt::devel/boost \
SDL::devel/sdl \
SDL_image::devel/sdl-image \
SDL_net::devel/sdl-net \
SDL_mixer::devel/sdl-mixer \
SDL_ttf::devel/sdl-ttf \
fribidi::devel/fribidi \
pango-1.0,pangoft2-1.0,pangocairo-1.0::devel/pango
RUN_DEPENDS= :desktop-file-utils-*:devel/desktop-file-utils
CONFIGURE_STYLE=gnu
CONFIGURE_ENV+= CPPFLAGS=-I${LOCALBASE}/include \
LDFLAGS=-L${LOCALBASE}/lib
# XXX: Provide the tools
CONFIGURE_ARGS+=--enable-server \
--enable-campaign-server \
--enable-editor \
--with-fifodir=/var/run \
--enable-desktop-entry \
--with-desktopdir=${PREFIX}/share/applications \
--with-icondir=${PREFIX}/share/pixmaps
MAKE_FLAGS= LIBINTL="-L${LOCALBASE}/lib -lintl -liconv"
USE_X11= Yes
USE_LIBTOOL= Yes
FLAVORS= lite tinygui
FLAVOR?=
.if ${FLAVOR:L:Mlite}
CONFIGURE_ARGS+=--enable-lowmem
.endif
.if ${FLAVOR:L:Mtinygui}
BUILD_DEPENDS+= ::graphics/pngmeta \
:ImageMagick-*:graphics/ImageMagick
CONFIGURE_ARGS+=--enable-tinygui
.endif
.include <bsd.port.mk>