Makefile 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. # $OpenBSD: Makefile,v 1.21 2017/05/24 15:50:19 espie Exp $
  2. COMMENT = cross-platform interactive fiction player
  3. GH_ACCOUNT = garglk
  4. GH_PROJECT = garglk
  5. GH_TAGNAME = stable-2011.1
  6. DISTNAME = gargoyle-${GH_TAGNAME:S/stable-//}
  7. EPOCH = 0
  8. REVISION = 1
  9. CATEGORIES = games x11
  10. HOMEPAGE = http://ccxvii.net/gargoyle/
  11. MAINTAINER = Stuart Henderson <sthen@openbsd.org>
  12. # Various. Gargoyle is a frontend for various other included
  13. # programs under differing licenses; many GPL but some others.
  14. # Refer to ${WRKSRC}/License.txt.
  15. PERMIT_PACKAGE_CDROM = noncommercial only for some parts
  16. PERMIT_PACKAGE_FTP = Yes
  17. WANTLIB += SDL SDL_mixer SDL_sound X11 Xcomposite Xcursor Xdamage
  18. WANTLIB += Xext Xfixes Xi Xinerama Xrandr Xrender atk-1.0 c cairo
  19. WANTLIB += expat fontconfig freetype gdk-x11-2.0 gdk_pixbuf-2.0
  20. WANTLIB += gio-2.0 glib-2.0 gobject-2.0 gtk-x11-2.0 jpeg m pango-1.0
  21. WANTLIB += pangocairo-1.0 pangoft2-1.0 png pthread smpeg ${LIBCXX}
  22. WANTLIB += vorbisfile z
  23. MODULES = devel/gettext
  24. BUILD_DEPENDS = devel/jam
  25. LIB_DEPENDS = devel/sdl-sound \
  26. devel/sdl-mixer \
  27. x11/gtk+2 \
  28. graphics/jpeg
  29. NO_TEST = Yes
  30. INSTALL_TARGET = install install_man
  31. JAMDEBUG = -d x # display command-lines
  32. JAMDEBUG += -q # die quickly on build failure
  33. MAKE_ENV += CC='${CC} -fgnu89-inline' CXX=${CXX}
  34. DESTDIRNAME = DESTPREFIX
  35. # dos line-endings in file needing patch
  36. post-extract:
  37. @cd ${WRKSRC} && perl -i -pe 's/\r$$//' garglk/launchgtk.c tads/Jamfile garglk/Jamfile garglk/glk.h
  38. pre-configure:
  39. ${SUBST_CMD} ${WRKSRC}/garglk/launchgtk.c
  40. do-build:
  41. cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} jam ${JAMDEBUG}
  42. do-install:
  43. cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} \
  44. DESTDIR=${PREFIX}/libexec/gargoyle jam ${JAMDEBUG} install
  45. post-install:
  46. ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/gargoyle
  47. ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/gargoyle
  48. ${INSTALL_SCRIPT} ${WRKSRC}/build/openbsd.release/garglk/gargoyle \
  49. ${PREFIX}/libexec/gargoyle/
  50. ln -s ${TRUEPREFIX}/libexec/gargoyle/gargoyle ${PREFIX}/bin/
  51. ln -s ${TRUEPREFIX}/libexec/gargoyle/libgarglk.so ${PREFIX}/lib/
  52. .for i in License.txt licenses/* garglk/*txt
  53. cd ${WRKSRC} && ${INSTALL_DATA} $i ${PREFIX}/share/doc/gargoyle
  54. .endfor
  55. ${INSTALL_DATA} ${WRKSRC}/garglk/garglk.ini \
  56. ${PREFIX}/share/examples/gargoyle
  57. .include <bsd.port.mk>