openbsd-ports/games/bzflag/Makefile

49 lines
1.3 KiB
Makefile
Raw Normal View History

2013-03-11 07:02:49 -04:00
# $OpenBSD: Makefile,v 1.30 2013/03/11 11:07:38 espie Exp $
SHARED_ONLY= Yes
COMMENT= graphical multiplayer 3D tank war game
2012-09-03 03:19:34 -04:00
DISTNAME= bzflag-2.4.2
CATEGORIES= games x11
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=bzflag/}
2010-07-25 13:14:35 -04:00
EXTRACT_SUFX= .tar.bz2
HOMEPAGE= http://www.bzflag.org/
# LGPLv2.1
PERMIT_PACKAGE_CDROM= Yes
2011-09-22 19:08:49 -04:00
WANTLIB += GL GLEW GLU ICE SDL SM X11 Xdamage Xext Xfixes Xi Xmu
WANTLIB += Xt Xxf86vm c cares crypto curl drm idn m ncurses pthread
WANTLIB += sndio ssl stdc++ usbhid xcb z
2007-11-13 09:54:30 -05:00
MODULES= devel/gettext
2010-11-16 06:23:25 -05:00
LIB_DEPENDS= devel/sdl \
graphics/glew \
net/curl \
net/libcares
RUN_DEPENDS= devel/desktop-file-utils
2005-08-10 01:24:09 -04:00
USE_GMAKE= Yes
USE_LIBTOOL= Yes
LIBTOOL_FLAGS= --tag=disable-static
CONFIGURE_STYLE= autoconf
2012-09-03 03:19:34 -04: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
CONFIGURE_ARGS= ${CONFIGURE_SHARED} \
--disable-static
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>