Makefile 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. # $OpenBSD: Makefile,v 1.14 2017/04/10 11:45:27 sthen Exp $
  2. BROKEN-alpha = OOM or ICE on hqx/src/hq4x_32.c
  3. BROKEN-hppa = OOM or ICE on hqx/src/hq4x_32.c
  4. BROKEN-powerpc = OOM or ICE on hqx/src/hq4x_32.c
  5. COMMENT = Sega Megadrive/Genesis emulator
  6. DISTNAME = dgen-sdl-1.33
  7. CATEGORIES = emulators games
  8. HOMEPAGE = http://dgen.sourceforge.net/
  9. MAINTAINER = Edd Barrett <edd@openbsd.org>
  10. FLAVORS = debugger
  11. FLAVOR ?=
  12. # Various parts of dgen are under different licenses
  13. # Mainly a 3 clause BSD license, but also:
  14. # - musa non-commercial license
  15. # - starscream non-commercial license
  16. # - mz80 non-commercial license
  17. # - cz80 non-commercial license
  18. # - scale2x GPLv2
  19. # - hqx LGPL
  20. PERMIT_PACKAGE_CDROM = No
  21. PERMIT_PACKAGE_FTP = Yes
  22. WANTLIB = GL SDL archive c m pthread ${LIBCXX}
  23. MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=dgen/}
  24. BUILD_DEPENDS = devel/sdl
  25. # optimisation for x86 using asm
  26. .if ${MACHINE_ARCH} == "i386"
  27. BUILD_DEPENDS += devel/nasm
  28. .endif
  29. LIB_DEPENDS = devel/sdl \
  30. archivers/libarchive
  31. CONFIGURE_STYLE = gnu
  32. CONFIGURE_ENV += LDFLAGS="-L${LOCALBASE}/lib"
  33. CONFIGURE_ARGS += --without-doxygen
  34. # m68k debugger, at a slight performance cost
  35. .if ${FLAVOR:Mdebugger}
  36. CONFIGURE_ARGS += --enable-debugger
  37. .endif
  38. SAMPLEDIR = ${PREFIX}/share/examples/dgen-sdl/
  39. DOCDIR = ${PREFIX}/share/doc/dgen-sdl/
  40. # cover our asses by providing copies of the non-free(ish) licenses
  41. # particularly starscream:
  42. # "Starscream may be distributed freely in unmodified form, as long as this
  43. # documentation is included."
  44. LICENSES = musa/musa-readme.txt star/stardoc.txt \
  45. mz80/mz80.txt cz80/cz80-readme.txt
  46. post-install:
  47. mkdir ${SAMPLEDIR}
  48. cp ${WRKSRC}/sample.dgenrc ${SAMPLEDIR}
  49. mkdir -p ${DOCDIR}
  50. cp ${WRKSRC}/musa/readme.txt ${WRKSRC}/musa/musa-readme.txt
  51. cp ${WRKSRC}/cz80/readme.txt ${WRKSRC}/cz80/cz80-readme.txt
  52. .for i in ${LICENSES}
  53. cp ${WRKSRC}/$i ${DOCDIR}
  54. .endfor
  55. .include <bsd.port.mk>