2007-10-18 05:13:21 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.15 2007/10/18 09:13:21 sturm Exp $
|
|
|
|
|
|
|
|
BROKEN= some hidden BUILD_DEPENDS, nobody wants to fix
|
2005-02-19 16:48:44 -05:00
|
|
|
|
2007-07-04 07:12:31 -04:00
|
|
|
COMMENT= fantasy turn-based strategy game
|
2007-03-17 12:59:31 -04:00
|
|
|
|
2007-09-02 04:50:53 -04:00
|
|
|
DISTNAME= wesnoth-1.2.6
|
2005-02-19 16:48:44 -05:00
|
|
|
CATEGORIES= games x11
|
|
|
|
|
|
|
|
HOMEPAGE= http://www.wesnoth.org/
|
|
|
|
|
2007-02-06 02:59:08 -05:00
|
|
|
MAINTAINER= Vlad Glagolev <stelzy@gmail.com>
|
|
|
|
|
2007-03-17 12:59:31 -04:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=wesnoth/}
|
|
|
|
EXTRACT_SUFX= .tar.bz2
|
|
|
|
|
2005-02-19 16:48:44 -05:00
|
|
|
# GPL
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
2007-02-06 02:59:08 -05:00
|
|
|
|
2007-07-04 07:12:31 -04:00
|
|
|
WANTLIB= X11 Xext c freetype m stdc++ pthread usbhid z
|
2005-02-19 16:48:44 -05:00
|
|
|
|
|
|
|
USE_LIBTOOL= Yes
|
|
|
|
LIB_DEPENDS= SDL::devel/sdl \
|
|
|
|
SDL_image::devel/sdl-image \
|
|
|
|
SDL_net::devel/sdl-net \
|
|
|
|
SDL_mixer::devel/sdl-mixer \
|
2007-02-06 02:59:08 -05:00
|
|
|
fribidi::devel/fribidi
|
2005-02-19 16:48:44 -05:00
|
|
|
# png is only required for the tools, which we don't build yet.
|
|
|
|
|
2007-09-02 04:50:53 -04:00
|
|
|
RUN_DEPENDS= :desktop-file-utils-*:devel/desktop-file-utils
|
|
|
|
|
2005-02-19 16:48:44 -05:00
|
|
|
MODULES= devel/gettext
|
|
|
|
|
2006-11-13 05:08:12 -05:00
|
|
|
USE_X11= Yes
|
|
|
|
|
2005-10-20 02:49:50 -04:00
|
|
|
FLAVORS= lite tinygui
|
2005-02-19 16:48:44 -05:00
|
|
|
FLAVOR?=
|
|
|
|
|
|
|
|
.if ${FLAVOR:L:Mlite}
|
|
|
|
CONFIGURE_ARGS+=--enable-lite
|
|
|
|
.endif
|
|
|
|
|
2005-10-20 02:49:50 -04:00
|
|
|
.if ${FLAVOR:L:Mtinygui}
|
|
|
|
BUILD_DEPENDS+= ::graphics/pngmeta \
|
|
|
|
:ImageMagick-*:graphics/ImageMagick
|
|
|
|
CONFIGURE_ARGS+=--enable-tinygui
|
|
|
|
.endif
|
|
|
|
|
2007-02-06 02:59:08 -05:00
|
|
|
CONFIGURE_STYLE=gnu
|
|
|
|
|
2005-10-03 09:40:14 -04:00
|
|
|
CONFIGURE_ENV+= CPPFLAGS=-I${LOCALBASE}/include \
|
|
|
|
LDFLAGS=-L${LOCALBASE}/lib
|
2007-02-06 02:59:08 -05:00
|
|
|
|
2007-03-17 12:59:31 -04:00
|
|
|
CONFIGURE_ARGS+=--enable-server \
|
|
|
|
--enable-campaign-server \
|
|
|
|
--enable-editor \
|
2007-09-02 04:50:53 -04:00
|
|
|
--with-gnome \
|
|
|
|
--with-kde \
|
2005-10-04 15:24:16 -04:00
|
|
|
--with-fifodir=/var/run
|
2005-02-19 16:48:44 -05:00
|
|
|
|
2007-02-06 02:59:08 -05:00
|
|
|
MAKE_FLAGS= LIBINTL="-L${LOCALBASE}/lib -lintl -liconv"
|
2005-02-19 16:48:44 -05:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|