freebsd-ports/games/warzone2100/Makefile
Baptiste Daroussin 9250d94365 Convert USE_BISON to USES= bison
It brings bison as a build dependency in case it is set the following way:
USES= bison or USES= bison:build

it brings bison as a run dependency in case it is set the following way:
USES= bison:run

it brings bison both as a run and build dependency in case it the set the following way:
USES= bison:both

While here trim some headers
Convert some USE_GNOME= gnomehack to USES= pathfix
2013-03-08 11:32:11 +00:00

70 lines
1.8 KiB
Makefile

# Create by: Alejandro Pulver <alejandro@varnet.biz>
# $FreeBSD$
PORTNAME= warzone2100
PORTVERSION= 3.1.0
CATEGORIES= games
MASTER_SITES= SF/${PORTNAME}/releases/${PORTVERSION}/
MAINTAINER= amdmi3@FreeBSD.org
COMMENT= Innovative 3D real-time strategy game
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
BUILD_DEPENDS= zip:${PORTSDIR}/archivers/zip \
unzip:${PORTSDIR}/archivers/unzip \
${LOCALBASE}/bin/flex:${PORTSDIR}/textproc/flex
LIB_DEPENDS= physfs:${PORTSDIR}/devel/physfs \
png15:${PORTSDIR}/graphics/png \
vorbis:${PORTSDIR}/audio/libvorbis \
theora:${PORTSDIR}/multimedia/libtheora \
GLEW:${PORTSDIR}/graphics/glew \
fribidi:${PORTSDIR}/converters/fribidi \
freetype:${PORTSDIR}/print/freetype2 \
fontconfig:${PORTSDIR}/x11-fonts/fontconfig
RUN_DEPENDS= ${LOCALBASE}/lib/X11/fonts/dejavu/DejaVuSans.ttf:${PORTSDIR}/x11-fonts/dejavu
USE_XZ= yes
USES= bison
GNU_CONFIGURE= yes
USE_OPENAL= al
USE_GL= yes
USE_GMAKE= yes
USE_SDL= sdl
USE_QT4= corelib network script gui moc_build
QT_NONSTANDARD= yes
CONFIGURE_ARGS= --program-transform-name="" --with-distributor="FreeBSD ports"
CONFIGURE_ENV= LIBS="${PTHREAD_LIBS}" \
PATH="${LOCALBASE}/bin:$$PATH"
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
REINPLACE_ARGS= -i ''
MAKE_JOBS_SAFE= yes
PORTDOCS= *
USE_GCC= 4.6+
.include <bsd.port.options.mk>
.if ${OSVERSION} < 800000
IGNORE= does not build on < 8.x
.endif
.if ${PORT_OPTIONS:MNLS}
USE_GETTEXT= yes
PLIST_SUB+= NLS=""
.else
CONFIGURE_ARGS+=--disable-nls
PLIST_SUB+= NLS="@comment "
.endif
post-patch:
@${REINPLACE_CMD} -e 's|-Werror||g' ${WRKSRC}/configure
.if ! ${PORT_OPTIONS:MDOCS}
@${REINPLACE_CMD} -Ee 's|install-dist_docDATA$$||' \
${WRKSRC}/Makefile.in
@${REINPLACE_CMD} -e 's|^install: install-am|install:|' \
${WRKSRC}/doc/Makefile.in
.endif
.include <bsd.port.mk>