Makefile 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. # $OpenBSD: Makefile,v 1.16 2017/05/31 08:08:15 espie Exp $
  2. COMMENT-main = Game Boy Color/Advance emulator
  3. COMMENT-qt = Game Boy Color/Advance emulator with GUI
  4. COMMENT-libretro = Game Boy Color/Advance core for retroarch
  5. V = 0.5.2
  6. DISTNAME = mgba-$V
  7. PKGNAME-main = mgba-$V
  8. PKGNAME-qt = mgba-qt-$V
  9. PKGNAME-libretro = libretro-mgba-$V
  10. REVISION-qt = 0
  11. MULTI_PACKAGES = -main -qt -libretro
  12. .include <bsd.port.arch.mk>
  13. SHARED_LIBS += mgba 1.0 # 0.1
  14. CATEGORIES = emulators
  15. HOMEPAGE = https://mgba.io/
  16. MAINTAINER = Anthony J. Bentley <anthony@anjbe.name>
  17. # MPL 2.0
  18. PERMIT_PACKAGE_CDROM = Yes
  19. cWANTLIB = GL GLU MagickCore-6.Q16 MagickWand-6.Q16 SDL2 \
  20. avcodec avformat avresample avutil c edit m png \
  21. pthread swscale termcap z zip epoxy
  22. WANTLIB-main = ${cWANTLIB}
  23. WANTLIB-qt = ${cWANTLIB} Qt5Core Qt5Gui Qt5Multimedia \
  24. Qt5Network Qt5OpenGL Qt5Widgets ${LIBECXX} mgba
  25. WANTLIB-libretro = m pthread
  26. GH_ACCOUNT = mgba-emu
  27. GH_PROJECT = mgba
  28. GH_TAGNAME = $V
  29. MODULES = devel/cmake
  30. COMPILER = gcc
  31. LIB_DEPENDS-main = archivers/libzip \
  32. graphics/ImageMagick \
  33. graphics/ffmpeg \
  34. devel/sdl2
  35. LIB_DEPENDS-qt = ${LIB_DEPENDS-main} \
  36. ${MODQT_LIB_DEPENDS} \
  37. emulators/mgba,-main \
  38. x11/qt5/qtmultimedia
  39. LIB_DEPENDS-libretro =
  40. RUN_DEPENDS-qt = devel/desktop-file-utils \
  41. x11/gtk+3,-guic
  42. CONFIGURE_ARGS += -DBUILD_LIBRETRO=ON
  43. .if ${BUILD_PACKAGES:M-qt}
  44. MODULES += x11/qt5
  45. .endif
  46. NO_TEST = Yes
  47. post-install:
  48. ${INSTALL_DATA_DIR} ${PREFIX}/lib/libretro
  49. mv ${PREFIX}/lib/mgba_libretro.so ${PREFIX}/lib/libretro
  50. .include <bsd.port.mk>