Makefile 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. # $OpenBSD: Makefile,v 1.7 2017/05/31 08:08:16 espie Exp $
  2. COMMENT-main = graphical sdl rogue-like game
  3. COMMENT-data = data for Tales of Maj'Eyal
  4. # '
  5. V = 1.5.1
  6. PKGNAME-main = tome4-${V}
  7. PKGNAME-data = tome4-data-${V}
  8. CATEGORIES = games x11
  9. MASTER_SITES = http://te4.org/dl/t-engine/ \
  10. http://distfiles-openbsd.perso.pw/
  11. DISTNAME = t-engine4-src-${V}
  12. EXTRACT_SUFX = .tar.bz2
  13. HOMEPAGE = http://te4.org
  14. MULTI_PACKAGES =-main -data
  15. MAINTAINER = Solene Rapenne <solene@perso.pw>
  16. # GPLV3+ and bundled MIT, zlib, BSD in games/thirdparty/licenses/
  17. PERMIT_PACKAGE_CDROM = Yes
  18. WANTLIB-main = GL GLU SDL2 SDL2_image SDL2_ttf openal c m \
  19. png pthread vorbisfile
  20. BUILD_DEPENDS = devel/premake4
  21. LIB_DEPENDS-main = devel/sdl2 \
  22. devel/sdl2-image \
  23. devel/sdl2-ttf \
  24. audio/libvorbis \
  25. audio/openal
  26. RUN_DEPENDS-main = games/tome4,-data
  27. LIB_DEPENDS-data =
  28. WANTLIB-data =
  29. COMPILER = gcc
  30. COMPILER_LANGS = c
  31. NO_TEST = Yes
  32. USE_GMAKE = Yes
  33. MAKE_FLAGS = verbose=1 CC='${CC}'
  34. MAKE_ENV = config=release
  35. GAMEDIR = ${PREFIX}/share/tome4
  36. SUBST_VARS += GAMEDIR V
  37. # The build system hardcodes the use of the "gcc" command
  38. do-configure:
  39. sed -i 's/gcc /${CC} /g' ${WRKSRC}/build/te4core.lua
  40. ${SUBST_CMD} ${WRKSRC}/src/getself.c
  41. ${SUBST_CMD} ${WRKSRC}/premake4.lua
  42. @cd ${WRKSRC} ; premake4 gmake
  43. do-install:
  44. ${INSTALL_PROGRAM} ${WRKSRC}/t-engine ${PREFIX}/bin/tome4
  45. ${INSTALL_DATA_DIR} ${GAMEDIR}
  46. cd ${WRKSRC}; tar cf - bootstrap game | tar xf - -C ${GAMEDIR}
  47. rm -R ${GAMEDIR}/game/modules/example*
  48. rm ${GAMEDIR}/bootstrap/boot.lua.orig
  49. .include <bsd.port.mk>