freebsd-ports/games/lordsawar/Makefile
Dmitry Marakasov 6f6fbe4bdf - Add LDFLAGS to CONFIGURE_ENV and MAKE_ENV (as it was done with LDFLAGS)
- Fix all ports that add {CPP,LD}FLAGS to *_ENV to modify flags instead

PR:		157936
Submitted by:	myself
Exp-runs by:	pav
Approved by:	pav
2011-09-23 22:26:39 +00:00

51 lines
1.1 KiB
Makefile

# New ports collection makefile for: lordsawar
# Date created: 12 February 2008
# Whom: spam@rm-rf.kiev.ua
#
# $FreeBSD$
#
PORTNAME= lordsawar
PORTVERSION= 0.1.9
CATEGORIES= games
MASTER_SITES= ${MASTER_SITE_SAVANNAH}
MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= spam@rm-rf.kiev.ua
COMMENT= A Warlords II clone
LIB_DEPENDS= glademm-2.4:${PORTSDIR}/devel/libglademm24 \
gnet-2.0:${PORTSDIR}/net/gnet2 \
uuid.1:${PORTSDIR}/misc/e2fsprogs-libuuid \
tar.0:${PORTSDIR}/devel/libtar
BUILD_DEPENDS= bjam:${PORTSDIR}/devel/boost-jam \
${LOCALBASE}/include/boost/shared_ptr.hpp:${PORTSDIR}/devel/boost-libs
USE_GETTEXT= yes
USE_GCC= 4.2+
USE_GMAKE= yes
USE_GNOME= intltool
USE_SDL= sdl image
GNU_CONFIGURE= yes
MAKE_JOBS_SAFE= yes
LICENSE= GPLv3
OPTIONS= SOUND "Enable sound" on
.include <bsd.port.options.mk>
CONFIGURE_ARGS+=--disable-nls \
--with-boost-includedir=${LOCALBASE}/include/
.if !defined(WITHOUT_SOUND)
USE_SDL+= mixer
.else
CONFIGURE_ARGS+=--disable-sound
.endif
CONFIGURE_ENV+= LIBS="${PTHREAD_LIBS}"
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
.include <bsd.port.mk>