2012-04-28 06:51:44 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.53 2012/04/28 10:51:44 ajacoutot Exp $
|
2001-05-05 21:06:09 -04:00
|
|
|
|
2007-07-05 13:28:18 -04:00
|
|
|
COMMENT= game where you deal drugs on the streets of NY
|
1999-04-30 17:41:06 -04:00
|
|
|
|
2007-07-05 13:28:18 -04:00
|
|
|
DISTNAME= dopewars-1.5.12
|
2011-09-16 05:48:08 -04:00
|
|
|
REVISION= 6
|
1999-04-30 17:41:06 -04:00
|
|
|
CATEGORIES= games
|
2002-05-13 14:50:36 -04:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=dopewars/}
|
1999-04-30 17:41:06 -04:00
|
|
|
|
2002-03-02 17:54:05 -05:00
|
|
|
HOMEPAGE= http://dopewars.sourceforge.net/
|
|
|
|
|
2003-07-07 08:40:14 -04:00
|
|
|
# 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
|
|
|
|
2007-11-28 08:10:24 -05:00
|
|
|
MODULES+= devel/gettext
|
2002-03-02 17:54:05 -05:00
|
|
|
|
2010-11-16 06:23:25 -05:00
|
|
|
LIB_DEPENDS+= devel/glib2
|
2010-11-08 10:54:53 -05:00
|
|
|
WANTLIB += gio-2.0 glib-2.0
|
2003-07-07 08:40:14 -04:00
|
|
|
|
2012-04-28 06:51:44 -04:00
|
|
|
LOCALSTATEDIR= ${BASELOCALSTATEDIR}/games
|
|
|
|
|
2006-11-07 10:14:30 -05:00
|
|
|
USE_LIBTOOL= Yes
|
2010-10-18 14:00:15 -04:00
|
|
|
USE_GROFF = Yes
|
2007-07-05 13:28:18 -04:00
|
|
|
CONFIGURE_STYLE= gnu
|
2002-03-02 17:54:05 -05:00
|
|
|
CONFIGURE_ARGS+= --enable-nls \
|
|
|
|
--enable-strict \
|
2007-07-05 13:28:18 -04:00
|
|
|
--without-esd \
|
2002-08-26 22:42:36 -04:00
|
|
|
--disable-gui-server \
|
|
|
|
--disable-plugins \
|
2012-04-28 06:51:44 -04:00
|
|
|
--disable-sdl
|
2002-03-02 17:54:05 -05:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
|
|
LDFLAGS="-L${LOCALBASE}/lib"
|
2000-03-17 22:56:51 -05:00
|
|
|
|
2003-07-07 08:40:14 -04:00
|
|
|
FLAVORS= no_x11
|
|
|
|
FLAVOR?=
|
|
|
|
|
2011-12-02 09:36:13 -05:00
|
|
|
.if ${FLAVOR:Mno_x11}
|
2003-07-07 08:40:14 -04:00
|
|
|
CONFIGURE_ARGS+= --disable-gui-client
|
|
|
|
.else
|
2010-11-16 06:23:25 -05:00
|
|
|
LIB_DEPENDS+= x11/gtk+2
|
2007-11-13 09:54:30 -05:00
|
|
|
WANTLIB+= X11 Xext Xrender Xrandr expat fontconfig freetype m z cairo \
|
|
|
|
Xau Xcomposite Xcursor Xdamage Xdmcp Xfixes Xi Xinerama \
|
2010-10-11 04:11:24 -04:00
|
|
|
gmodule-2.0 gobject-2.0 atk-1.0 pango-1.0 \
|
2009-08-10 02:29:51 -04:00
|
|
|
pangoft2-1.0 pangocairo-1.0 pixman-1 png pthread-stubs \
|
2010-11-08 10:54:53 -05:00
|
|
|
xcb gdk_pixbuf-2.0 gdk-x11-2.0 gtk-x11-2.0
|
2003-07-07 08:40:14 -04:00
|
|
|
.endif
|
|
|
|
|
2002-03-02 17:54:05 -05:00
|
|
|
post-install:
|
2000-08-06 23:54:15 -04:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/dopewars
|
2002-03-02 17:54:05 -05:00
|
|
|
${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
|
1999-04-30 17:41:06 -04:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|