1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-26 09:46:09 +00:00
freebsd-ports/games/bzflag/Makefile
Yuri Victorovich 5b3d12b6c6 games/bzflag: Unbreak by adding missing dependencies
Also add USES=desktop-file-utils.

Approved by:	portmgr (unbreak)
2022-11-26 13:51:40 -08:00

45 lines
1.1 KiB
Makefile

PORTNAME= bzflag
PORTVERSION= 2.4.26
PORTREVISION= 1
CATEGORIES= games
MASTER_SITES= https://download.bzflag.org/bzflag/source/${PORTVERSION}/
MAINTAINER= kevinz5000@gmail.com
COMMENT?= Multiplayer 3D tank battle game
WWW= https://bzflag.org/
LICENSE= LGPL21
LICENSE_FILE= ${WRKSRC}/COPYING
BUILD_DEPENDS= objdump:devel/binutils \
${LOCALBASE}/include/linux/input.h:devel/evdev-proto
LIB_DEPENDS= libcurl.so:ftp/curl \
libcares.so:dns/c-ares
GNU_CONFIGURE= yes
USES= autoreconf compiler:c++11-lib libtool localbase ncurses pkgconfig tar:bzip2
INSTALL_TARGET= install-strip
.ifndef SERVER_ONLY
USES+= gl sdl xorg
USE_GL= gl glu glew
USE_SDL= sdl2
USE_XORG= x11 xext xxf86vm sm ice xcb xshmfence xdamage xfixes
CONFLICTS_INSTALL= bzflag-server
.endif
CPPFLAGS+= -I ${LOCALBASE}/include
.ifdef SERVER_ONLY
CONFIGURE_ARGS+= --disable-client
PLIST_SUB+= CLIENT="@comment "
.else
DESKTOP_ENTRIES= "BZFlag" "Battle enemy tanks" \
"${DATADIR}/bzflag-256x256.png" \
"bzflag" "Game;ActionGame;" false
PLIST_SUB+= CLIENT=""
USES+= desktop-file-utils
.endif
.include <bsd.port.mk>