Makefile 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. # $OpenBSD: Makefile,v 1.87 2017/04/10 11:46:19 sthen Exp $
  2. COMMENT = client for The Mana World
  3. V = 1.6.3.26
  4. REVISION = 1
  5. DISTNAME = manaplus-${V}
  6. EXTRACT_SUFX = .tar.xz
  7. CATEGORIES = games x11
  8. HOMEPAGE = http://manaplus.org/
  9. # GPLv2+
  10. PERMIT_PACKAGE_CDROM = Yes
  11. WANTLIB += GL X11 c crypto curl m nghttp2 physfs png pthread ssl ${LIBCXX} xml2 z
  12. MASTER_SITES = http://download.evolonline.org/manaplus/download/${V}/
  13. FLAVORS = sdl2
  14. FLAVOR ?=
  15. MODULES = devel/gettext
  16. RUN_DEPENDS = devel/desktop-file-utils \
  17. devel/xdg-utils
  18. LIB_DEPENDS = devel/physfs \
  19. net/curl \
  20. textproc/libxml
  21. CONFIGURE_STYLE = gnu
  22. CONFIGURE_ENV = CPPFLAGS="-I${LOCALBASE}/include"
  23. CONFIGURE_ARGS = --without-librt
  24. BUILD_DEPENDS = ${MODGNU_AUTOCONF_DEPENDS} \
  25. ${MODGNU_AUTOMAKE_DEPENDS}
  26. .if ${FLAVOR:Msdl2}
  27. WANTLIB += SDL2 SDL2_gfx SDL2_image SDL2_mixer SDL2_net SDL2_ttf
  28. LIB_DEPENDS += devel/sdl2-gfx \
  29. devel/sdl2-image \
  30. devel/sdl2-mixer \
  31. devel/sdl2-net \
  32. devel/sdl2-ttf
  33. CONFIGURE_ARGS += --with-sdl2 --without-internalsdlgfx
  34. .else
  35. WANTLIB += SDL SDL_gfx SDL_image SDL_mixer SDL_net SDL_ttf
  36. LIB_DEPENDS += devel/sdl-gfx \
  37. devel/sdl-image \
  38. devel/sdl-mixer \
  39. devel/sdl-net \
  40. devel/sdl-ttf
  41. RUN_DEPENDS += x11/xsel
  42. .endif
  43. FAKE_FLAGS += desktopdir=${PREFIX}/share/applications/
  44. AUTOCONF_VERSION = 2.69
  45. AUTOMAKE_VERSION = 1.9
  46. pre-configure:
  47. cd ${WRKSRC} && \
  48. ${SETENV} AUTOMAKE_VERSION=${AUTOMAKE_VERSION} \
  49. AUTOCONF_VERSION=${AUTOCONF_VERSION} autoreconf -i
  50. .include <bsd.port.mk>