Makefile 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. # $OpenBSD: Makefile,v 1.70 2017/06/01 11:57:42 espie Exp $
  2. COMMENT= graphical adventure game interpreter
  3. V= 1.9.0
  4. REVISION= 0
  5. DISTNAME= scummvm-${V}
  6. CATEGORIES= games x11 emulators
  7. MASTER_SITES= http://www.scummvm.org/frs/scummvm/${V}/
  8. HOMEPAGE= http://www.scummvm.org/
  9. MAINTAINER= Jonathan Gray <jsg@openbsd.org>
  10. # GPLv2+
  11. PERMIT_PACKAGE_CDROM= Yes
  12. WANTLIB += FLAC SDL2 c faad freetype jpeg m mad png sndio ${LIBECXX}
  13. WANTLIB += theoradec z
  14. .if ${MACHINE_ARCH} == "i386"
  15. BUILD_DEPENDS= devel/nasm
  16. .endif
  17. # GCC 4.2.1 miscompiles this on at least ppc, so play safe and
  18. # just use a newer compiler everywhere.
  19. COMPILER= gcc
  20. RUN_DEPENDS= devel/desktop-file-utils
  21. LIB_DEPENDS= audio/libmad \
  22. audio/flac \
  23. audio/faad>=2.7 \
  24. devel/sdl2 \
  25. graphics/png \
  26. graphics/jpeg \
  27. multimedia/libtheora
  28. CONFIGURE_STYLE=simple
  29. CONFIGURE_ARGS+= --disable-alsa \
  30. --disable-debug \
  31. --disable-fluidsynth \
  32. --disable-seq-midi \
  33. --disable-mpeg2 \
  34. --disable-sdlnet \
  35. --disable-libcurl \
  36. --enable-sndio \
  37. --mandir="${LOCALBASE}/man"
  38. CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include" \
  39. LDFLAGS="-L${LOCALBASE}/lib"
  40. .if ${MACHINE_ARCH} == "arm"
  41. CONFIGURE_ARGS += --enable-tremor --disable-vorbis
  42. LIB_DEPENDS += audio/tremor
  43. WANTLIB += vorbisidec>=1
  44. .else
  45. LIB_DEPENDS += audio/libvorbis
  46. WANTLIB += ogg vorbis>=0 vorbisfile>=1
  47. .endif
  48. NO_TEST= Yes
  49. USE_GMAKE= Yes
  50. MAKE_ENV+= CXXFLAGS="${CXXFLAGS}" CXX="${CXX}" VERBOSE_BUILD=1
  51. post-install:
  52. ${INSTALL_DATA_DIR} ${PREFIX}/share/applications
  53. ${INSTALL_DATA} ${WRKSRC}/dists/scummvm.desktop \
  54. ${PREFIX}/share/applications
  55. .include <bsd.port.mk>