52 lines
1.6 KiB
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.38 2016/03/18 21:38:23 naddy Exp $
COMMENT= graphical multiplayer 3D tank war game
2012-09-03 07:19:34 +00:00
DISTNAME= bzflag-2.4.2
CATEGORIES= games x11
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=bzflag/}
2010-07-25 17:14:35 +00:00
EXTRACT_SUFX= .tar.bz2
2016-01-17 17:29:07 +00:00
REVISION= 3
HOMEPAGE= http://www.bzflag.org/
# LGPLv2.1
PERMIT_PACKAGE_CDROM= Yes
2011-09-22 23:08:49 +00:00
WANTLIB += GL GLEW GLU ICE SDL SM X11 Xdamage Xext Xfixes Xi Xmu
2015-10-30 12:47:38 +00:00
WANTLIB += Xt Xxf86vm c cares crypto curl drm idn m ncurses nghttp2 pthread
WANTLIB += sndio ssl stdc++ usbhid xcb z
2016-01-17 17:29:07 +00:00
WANTLIB += X11-xcb glapi xcb-dri2 xcb-glx expat
2007-11-13 14:54:30 +00:00
MODULES= devel/gettext
2010-11-16 11:23:25 +00:00
LIB_DEPENDS= devel/sdl \
graphics/glew \
net/curl \
net/libcares
RUN_DEPENDS= devel/desktop-file-utils
2005-08-10 05:24:09 +00:00
USE_GMAKE= Yes
LIBTOOL_FLAGS= --tag=disable-static
CONFIGURE_STYLE= autoconf
2012-09-03 07:19:34 +00:00
AUTOCONF_VERSION= 2.68
CONFIGURE_ENV= CPPFLAGS="-I${X11BASE}/include -I${LOCALBASE}/include" \
LDFLAGS="-L${X11BASE}/lib -L${LOCALBASE}/lib" \
ac_cv_lib_bind_gethostent=no
2016-03-11 20:28:21 +00:00
CONFIGURE_ARGS= --disable-static
# Do not configure bundled software we don't use. This also avoids
# build failures from those configures picking up dependencies that
# happen to be temporarily installed during part of the configure run.
CONFIGURE_ARGS+=--no-recursion
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/applications
@mv ${PREFIX}/share/bzflag/bzflag.desktop \
${PREFIX}/share/applications
perl -pi -e "s,^Exec=.*,Exec=bzflag,g;" \
-e "s,^Icon=.*,Icon=${TRUEPREFIX}/share/bzflag/bzflag-48x48.png,g" \
${PREFIX}/share/applications/bzflag.desktop
@find ${PREFIX}/lib/bzflag -name '*.la' -print | xargs rm
.include <bsd.port.mk>