mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-27 00:57:50 +00:00
73 lines
1.6 KiB
Makefile
73 lines
1.6 KiB
Makefile
# Created by: Anton Yudin <toha@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= warmux
|
|
DISTVERSION= 11.04.1
|
|
PORTREVISION= 3
|
|
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= xml++-2.6.2:${PORTSDIR}/textproc/libxml++26 \
|
|
curl:${PORTSDIR}/ftp/curl
|
|
|
|
CONFLICTS_INSTALL= wormux-*
|
|
|
|
USE_BZIP2= yes
|
|
GNU_CONFIGURE= yes
|
|
USES= gmake pkgconfig
|
|
USE_SDL= sdl image mixer ttf gfx net
|
|
USE_DOS2UNIX= fixed_class.h
|
|
|
|
MANCOMPRESSED= no
|
|
MAN6= warmux.6
|
|
|
|
OPTIONS_DEFINE= FRIBIDI SERVER NLS DEBUG
|
|
FRIBIDI_DESC= Enable bi-directional unicode support
|
|
SERVER_DESC= Enable dedicated server
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${DISTVERSION:R}
|
|
|
|
NO_STAGE= yes
|
|
.include <bsd.port.options.mk>
|
|
|
|
post-patch:
|
|
${REINPLACE_CMD} -e "s,-Werror,," ${WRKSRC}/Makefile.in \
|
|
${WRKSRC}/src/Makefile.in
|
|
${REINPLACE_CMD} -e "s,warmux_files.desktop,," ${WRKSRC}/data/Makefile.in
|
|
${FIND} -d ${WRKSRC}/data/ -name "*.*~" -delete
|
|
|
|
.if ${PORT_OPTIONS:MDEBUG}
|
|
CONFIGURE_ARGS+= --enable-debug \
|
|
--enable-logging
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MNLS}
|
|
USES+= gettext
|
|
PLIST_SUB+= NLS=""
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-nls
|
|
PLIST_SUB+= NLS="@comment "
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MSERVER}
|
|
PLIST_SUB+= SERVER=""
|
|
CONFIGURE_ARGS+= --enable-servers
|
|
.else
|
|
PLIST_SUB+= SERVER="@comment "
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MFRIBIDI}
|
|
LIB_DEPENDS+= fribidi:${PORTSDIR}/converters/fribidi
|
|
CONFIGURE_ARGS+= --enable-fribidi
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-fribidi
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|