# $OpenBSD: Makefile,v 1.24 2004/01/02 04:53:53 brad Exp $ COMMENT= "game where you deal drugs on the streets of NY" DISTNAME= dopewars-1.5.7 PKGNAME= ${DISTNAME}p2 CATEGORIES= games MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=dopewars/} HOMEPAGE= http://dopewars.sourceforge.net/ MAINTAINER= Brad Smith # GPL PERMIT_PACKAGE_CDROM= Yes PERMIT_PACKAGE_FTP= Yes PERMIT_DISTFILES_CDROM= Yes PERMIT_DISTFILES_FTP= Yes MODULES+= gettext LIB_DEPENDS+= glib-2.0.0.0::devel/glib2 BUILD_DEPENDS+= :pkgconfig-*:devel/pkgconfig USE_GMAKE= Yes CONFIGURE_STYLE= autoconf CONFIGURE_ARGS+= --enable-nls \ --enable-strict \ --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 LIB_DEPENDS+= gmodule-2.0.0.0,gobject-2.0.0.0::devel/glib2 \ atk-1.0.0.0::devel/atk \ pango-1.0.0.0,pangox-1.0.0.0,pangoxft-1.0.0.0::devel/pango \ gdk-x11-2.0.0.0,gdk_pixbuf-2.0.0.0,gtk-x11-2.0.0.0::x11/gtk+2 .endif # make auto*shit not try to regenerate when it shouldn't be trying to and then just fail. pre-build: @find ${WRKSRC} -name 'Makefile.in' -exec touch {} \; @find ${WRKSRC} -name 'Makefile' -exec touch {} \; @cd ${WRKSRC}; touch aclocal.m4 stamp-h.in configure stamp-h config.status post-install: ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/dopewars ${INSTALL_DATA} ${WRKSRC}/doc/example-cfg \ ${PREFIX}/share/examples/dopewars/dopewars.cfg .include