Makefile 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. # $OpenBSD: Makefile,v 1.16 2017/05/31 08:08:15 espie Exp $
  2. BROKEN-hppa = ../../include/mednafen/state.h:21:7: error: 'exception_ptr' in namespace 'std' does not name a type
  3. COMMENT = emulates numerous game consoles
  4. V = 0.9.39.2
  5. DISTNAME = mednafen-${V}
  6. CATEGORIES = emulators games
  7. HOMEPAGE = http://mednafen.fobby.net/
  8. MAINTAINER = Jeremy Evans <jeremy@openbsd.org>
  9. # GPLv2
  10. PERMIT_PACKAGE_CDROM = Yes
  11. MASTER_SITES = http://mednafen.fobby.net/releases/files/
  12. EXTRACT_SUFX = .tar.bz2
  13. MODULES = devel/gettext
  14. WANTLIB += SDL c m pthread sndfile sndio usbhid z
  15. WANTLIB += FLAC ogg vorbis vorbisenc ${LIBECXX}
  16. USE_GMAKE = Yes
  17. COMPILER = gcc
  18. LIB_DEPENDS = audio/libsndfile \
  19. devel/sdl
  20. WRKDIST = ${WRKDIR}/mednafen
  21. USE_WXNEEDED = Yes
  22. CONFIGURE_STYLE = gnu
  23. CONFIGURE_ENV = CFLAGS="-I${LOCALBASE}/include -I${LOCALBASE}/include/SDL" \
  24. LDFLAGS="-L${LOCALBASE}/lib -pthread"
  25. CONFIGURE_ARGS = --disable-alsa \
  26. --disable-rpath \
  27. --disable-jack \
  28. --with-x \
  29. --with-gnu-ld
  30. # this intrinsic is not supported with our old gcc
  31. CONFIGURE_ARGS += --disable-altivec
  32. pre-configure:
  33. sed -i.beforesubst 's/^__inline//' ${WRKDIST}/src/quicklz/quicklz.c
  34. post-install:
  35. ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/mednafen
  36. ${INSTALL_DATA} ${WRKSRC}/Documentation/* ${PREFIX}/share/doc/mednafen/
  37. .include <bsd.port.mk>