Makefile 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. # $OpenBSD: Makefile,v 1.62 2014/11/20 09:11:21 brad Exp $
  2. COMMENT= X11-based presentation tool
  3. DISTNAME= magicpoint-1.09a
  4. REVISION= 0
  5. EPOCH= 0
  6. CATEGORIES= misc productivity
  7. MASTER_SITES= ftp://sh.wide.ad.jp/WIDE/free-ware/mgp/
  8. HOMEPAGE= http://member.wide.ad.jp/wg/mgp/
  9. PERMIT_PACKAGE_CDROM= Yes
  10. WANTLIB= ICE SM X11 Xau Xdmcp Xext Xmu Xt Xtst c gif m mng png ttf util
  11. # plus sign is for localized (i.e. Japanese) version
  12. LIB_DEPENDS+= print/freetype \
  13. graphics/png \
  14. graphics/libmng \
  15. graphics/giflib
  16. RUN_DEPENDS+= graphics/netpbm \
  17. print/ghostscript/gnu-fonts
  18. MODULES= devel/gettext
  19. AUTOCONF_VERSION=2.13
  20. # XXX while autoconf will append gnu in CONFIGURE_STYLE, we explicitely
  21. # set it anyway because order matters
  22. CONFIGURE_STYLE=autoconf gnu imake no-autoheader
  23. CONFIGURE_ARGS= --disable-vflib
  24. CONFIGURE_ARGS+= --enable-gif
  25. CONFIGURE_ARGS+= --enable-freetype-charset16
  26. NO_TEST= Yes
  27. post-configure:
  28. @cd ${WRKSRC}/contrib/xmindpath && \
  29. ac_cv_path_install='install -c' \
  30. ./configure --prefix='$${DESTDIR}${PREFIX}'
  31. post-build:
  32. @cd ${WRKSRC}/contrib/xmindpath && ${MAKE_PROGRAM}
  33. @cd ${WRKSRC}/contrib/xwintoppm && ${XMKMF}
  34. DOCS= COPYRIGHT COPYRIGHT.jp FAQ README README.fonts README.fonts.jp \
  35. README.lang SYNTAX TODO.jp USAGE USAGE.jp
  36. SAMPLES= README README.jp cloud.jpg dad.eps dad.jpg default.mgp \
  37. embed-jp.mgp embed.mgp gradation-jp.mgp \
  38. gradation.mgp mgp-old1.jpg mgp-old2.jpg mgp-old3.jpg \
  39. mgp.mng mgp1.jpg mgp2.jpg mgp3.jpg mgp3.xbm mgprc-sample \
  40. multilingual.mgp sample-fr.mgp sample-jp.mgp sample.mgp \
  41. sendmail6-jp.mgp sendmail6.mgp tutorial-jp.mgp tutorial.mgp \
  42. v6-jp.mgp v6.mgp v6header.eps v6header.jpg
  43. EMACS= README mgp.el mgp.sty sample.tex ../mgp-mode.el
  44. MAKE_FLAGS += CDEBUGFLAGS="${CFLAGS}"
  45. # NOTE: there are some discussions/twists in gzip'ing xmindpath.1.
  46. post-install:
  47. @cd ${WRKSRC}/contrib/xmindpath && ${MAKE_PROGRAM} install
  48. ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/mgp/sample
  49. ${INSTALL_DATA_DIR} ${PREFIX}/share/mgp/emacs
  50. @for i in $(DOCS); do \
  51. ${INSTALL_DATA} ${WRKSRC}/$$i ${PREFIX}/share/doc/mgp; \
  52. done
  53. @for i in $(SAMPLES); do \
  54. ${INSTALL_DATA} ${WRKSRC}/sample/$$i ${PREFIX}/share/doc/mgp/sample; \
  55. done
  56. @for i in $(EMACS); do \
  57. ${INSTALL_DATA} ${WRKSRC}/contrib/mgp-el/$$i \
  58. ${PREFIX}/share/mgp/emacs; \
  59. done
  60. ${INSTALL_SCRIPT} ${WRKSRC}/contrib/eqn2eps.sh \
  61. ${PREFIX}/bin/eqn2eps
  62. ${INSTALL_SCRIPT} ${WRKSRC}/contrib/mgp2html.pl \
  63. ${PREFIX}/bin/mgp2html
  64. ${INSTALL_SCRIPT} ${WRKSRC}/contrib/mgp2latex.pl \
  65. ${PREFIX}/bin/mgp2latex
  66. ${INSTALL_SCRIPT} ${WRKSRC}/contrib/tex2eps.sh \
  67. ${PREFIX}/bin/tex2eps
  68. .include <bsd.port.mk>