openbsd-ports/games/dopewars/Makefile

57 lines
1.4 KiB
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.38 2007/01/04 20:19:53 steven Exp $
COMMENT= "game where you deal drugs on the streets of NY"
2002-08-26 22:42:36 -04:00
DISTNAME= dopewars-1.5.7
PKGNAME= ${DISTNAME}p8
CATEGORIES= games
2002-05-13 14:50:36 -04:00
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=dopewars/}
HOMEPAGE= http://dopewars.sourceforge.net/
# GPL
2000-03-16 18:06:43 -05:00
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
2004-11-28 17:41:14 -05:00
WANTLIB= c ncurses
2000-03-16 18:06:43 -05:00
MODULES+= gettext
2006-09-18 07:50:39 -04:00
LIB_DEPENDS+= glib-2.0::devel/glib2
2000-03-18 19:57:35 -05:00
USE_GMAKE= Yes
2006-11-07 10:14:30 -05:00
USE_LIBTOOL= Yes
AUTOCONF_VERSION=2.13
2002-08-26 22:42:36 -04:00
CONFIGURE_STYLE= autoconf
CONFIGURE_ARGS+= --enable-nls \
--enable-strict \
2002-08-26 22:42:36 -04:00
--disable-esd \
--disable-gui-server \
--disable-plugins \
--disable-sdl
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
FLAVORS= no_x11
FLAVOR?=
.if ${FLAVOR:L:Mno_x11}
CONFIGURE_ARGS+= --disable-gui-client
.else
2006-11-13 05:08:12 -05:00
USE_X11= Yes
2006-09-18 07:50:39 -04:00
LIB_DEPENDS+= gdk-x11-2.0,gdk_pixbuf-2.0,gtk-x11-2.0::x11/gtk+2
WANTLIB+= X11 Xext Xrender fontconfig freetype m z cairo \
glitz gmodule-2.0 gobject-2.0 atk-1.0 pango-1.0 \
pangoft2-1.0 pangocairo-1.0 png
.endif
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/dopewars
${INSTALL_DATA} ${WRKSRC}/doc/example-cfg \
2003-07-07 08:47:58 -04:00
${PREFIX}/share/examples/dopewars/dopewars.cfg
2004-09-24 06:36:49 -04:00
${INSTALL_DATA} /dev/null ${PREFIX}/share/examples/dopewars/dopewars.sco
${PREFIX}/bin/dopewars -C ${PREFIX}/share/examples/dopewars/dopewars.sco
.include <bsd.port.mk>