Makefile 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. # $OpenBSD: Makefile,v 1.62 2015/04/21 18:45:27 sthen Exp $
  2. COMMENT= game where you deal drugs on the streets of NY
  3. DISTNAME= dopewars-1.5.12
  4. REVISION= 12
  5. CATEGORIES= games
  6. MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=dopewars/}
  7. HOMEPAGE= http://dopewars.sourceforge.net/
  8. # GPL
  9. PERMIT_PACKAGE_CDROM= Yes
  10. WANTLIB += c glib-2.0 ncurses pthread
  11. MODULES+= devel/gettext
  12. LIB_DEPENDS+= devel/glib2
  13. LOCALSTATEDIR= ${BASELOCALSTATEDIR}/games
  14. CONFIGURE_STYLE= gnu
  15. CONFIGURE_ARGS+= --enable-nls \
  16. --enable-strict \
  17. --without-esd \
  18. --disable-gui-server \
  19. --disable-plugins \
  20. --without-sdl
  21. CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
  22. LDFLAGS="-L${LOCALBASE}/lib"
  23. FLAVORS= no_x11
  24. FLAVOR?=
  25. .if ${FLAVOR:Mno_x11}
  26. CONFIGURE_ARGS+= --disable-gui-client
  27. .else
  28. RUN_DEPENDS+= devel/xdg-utils
  29. LIB_DEPENDS+= x11/gtk+2
  30. WANTLIB += GL X11 Xcomposite Xcursor Xdamage Xext Xfixes Xi Xinerama
  31. WANTLIB += Xrandr Xrender atk-1.0 cairo expat fontconfig freetype
  32. WANTLIB += gdk-x11-2.0 gdk_pixbuf-2.0 gio-2.0 gobject-2.0 gtk-x11-2.0
  33. WANTLIB += m pango-1.0 pangocairo-1.0 pangoft2-1.0 pixman-1 png
  34. WANTLIB += pthread-stubs xcb xcb-render xcb-shm z
  35. .endif
  36. post-patch:
  37. @perl -pi -e 's,/usr/local,${LOCALBASE},' ${WRKSRC}/src/dopewars.c
  38. post-install:
  39. ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/dopewars
  40. ${INSTALL_DATA} ${WRKSRC}/doc/example-cfg \
  41. ${PREFIX}/share/examples/dopewars/dopewars.cfg
  42. ${INSTALL_DATA} /dev/null ${PREFIX}/share/examples/dopewars/dopewars.sco
  43. ${PREFIX}/bin/dopewars -C ${PREFIX}/share/examples/dopewars/dopewars.sco
  44. ${INSTALL_DATA} ${WRKSRC}/dopewars.desktop \
  45. ${PREFIX}/share/examples/dopewars
  46. .include <bsd.port.mk>