Makefile 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. # $OpenBSD: Makefile,v 1.35 2017/05/31 08:08:15 espie Exp $
  2. COMMENT = emulates the Super Nintendo Entertainment System
  3. BROKEN-alpha = ICE/failure on filter/hq2x.cpp
  4. BROKEN-hppa = ICE/failure on filter/hq2x.cpp
  5. BROKEN-powerpc =ICE/failure on filter/hq2x.cpp
  6. DISTNAME = snes9x-1.54.1
  7. CATEGORIES = emulators games
  8. HOMEPAGE = http://www.snes9x.com/
  9. # non-commercial
  10. PERMIT_PACKAGE_CDROM = No
  11. PERMIT_PACKAGE_FTP = Yes
  12. WANTLIB += SDL X11 Xcomposite Xcursor Xdamage Xext Xfixes Xi Xinerama
  13. WANTLIB += Xrandr Xrender Xv atk-1.0 c cairo fontconfig freetype
  14. WANTLIB += gdk-x11-2.0 gdk_pixbuf-2.0 gio-2.0 glib-2.0 gobject-2.0
  15. WANTLIB += gthread-2.0 gtk-x11-2.0 m pango-1.0 pangocairo-1.0
  16. WANTLIB += pangoft2-1.0 png pthread xml2 z ${LIBECXX}
  17. MASTER_SITES = https://sites.google.com/site/bearoso/snes9x/
  18. EXTRACT_SUFX = .tar.bz2
  19. RUN_DEPENDS = devel/desktop-file-utils \
  20. x11/gtk+3,-guic
  21. LIB_DEPENDS = devel/sdl \
  22. graphics/png \
  23. textproc/libxml \
  24. x11/gtk+2
  25. MODULES = devel/gettext \
  26. textproc/intltool \
  27. COMPILER = gcc
  28. USE_GMAKE = Yes
  29. CONFIGURE_STYLE = gnu
  30. CONFIGURE_ARGS = --without-portaudio \
  31. --without-oss \
  32. --without-alsa \
  33. --without-pulseaudio \
  34. --without-opengl
  35. CONFIGURE_ENV = CFLAGS="${CFLAGS} -I${LOCALBASE}/include" \
  36. LIBS="-L${X11BASE}/lib -L${LOCALBASE}/lib"
  37. NO_TEST = Yes
  38. WRKSRC = ${WRKDIST}/gtk
  39. # fix build with glib2>=2.50
  40. pre-configure:
  41. sed -i "s,-pedantic,," ${WRKSRC}/configure
  42. post-install:
  43. ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/snes9x
  44. ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/snes9x
  45. cd ${WRKDIST}/docs && ${INSTALL_DATA} \
  46. control-inputs.txt controls.txt snapshots.txt snes9x-license.txt \
  47. ${PREFIX}/share/doc/snes9x
  48. cd ${WRKDIST}/docs && ${INSTALL_DATA} snes9x.conf.default \
  49. ${PREFIX}/share/examples/snes9x
  50. .include <bsd.port.mk>