1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-15 03:14:23 +00:00
freebsd-ports/games/warmux/Makefile
2015-08-25 10:03:08 +00:00

49 lines
1.3 KiB
Makefile

# Created by: Anton Yudin <toha@FreeBSD.org>
# $FreeBSD$
PORTNAME= warmux
DISTVERSION= 11.04.1
PORTREVISION= 9
CATEGORIES= games
MASTER_SITES= http://download.gna.org/${PORTNAME}/ \
http://download.gna.org/${PORTNAME}/archive/
MAINTAINER= makc@FreeBSD.org
COMMENT= Turn-based artillery game with free software mascots
LIB_DEPENDS= libxml++-2.6.so:${PORTSDIR}/textproc/libxml++26 \
libcurl.so:${PORTSDIR}/ftp/curl
GNU_CONFIGURE= yes
CONFIGURE_ENV= cxx_present=yes
USES= dos2unix gmake pkgconfig tar:bzip2
USE_SDL= sdl image mixer ttf gfx net
DOS2UNIX_GLOB= fixed_class.h
WRKSRC= ${WRKDIR}/${PORTNAME}-${DISTVERSION:R}
OPTIONS_DEFINE= FRIBIDI SERVER NLS DEBUG
OPTIONS_SUB= yes
DEBUG_CONFIGURE_ENABLE= debug logging
FRIBIDI_DESC= Enable bi-directional unicode support
FRIBIDI_LIB_DEPENDS= libfribidi.so:${PORTSDIR}/converters/fribidi
FRIBIDI_CONFIGURE_ENABLE= fribidi
NLS_USES= gettext
NLS_CONFIGURE_ENABLE= nls
NLS_CPPFLAGS+= -I${LOCALBASE}/include
NLS_LDFLAGS+= -L${LOCALBASE}/lib
SERVER_DESC= Enable dedicated server
SERVER_CONFIGURE_ENABLE= servers
post-patch:
${REINPLACE_CMD} -e "s,-Werror,," ${WRKSRC}/Makefile.in \
${WRKSRC}/src/Makefile.in ${WRKSRC}/configure
${REINPLACE_CMD} -e "s,warmux_files.desktop,," ${WRKSRC}/data/Makefile.in
${FIND} -d ${WRKSRC}/data/ -name "*.*~" -delete
.include <bsd.port.mk>