PageRenderTime 53ms CodeModel.GetById 26ms RepoModel.GetById 0ms app.codeStats 1ms

/editors/TeXmacs-devel/Makefile

https://github.com/jkjuopperi/pkgsrc
Makefile | 76 lines | 59 code | 13 blank | 4 comment | 0 complexity | a62443422918147b084ee12fd021a8df MD5 | raw file
  1. # $NetBSD: Makefile,v 1.3 2011/09/12 16:59:25 drochner Exp $
  2. DISTNAME= TeXmacs-1.0.7.12-src
  3. PKGNAME= ${DISTNAME:S/-src//}
  4. CATEGORIES= editors
  5. MASTER_SITES= ftp://ftp.texmacs.org/TeXmacs/tmftp/source/
  6. MAINTAINER= pkgsrc-users@NetBSD.org
  7. HOMEPAGE= http://www.texmacs.org/
  8. COMMENT= GNU TeXmacs (free scientific text editor)
  9. PKG_DESTDIR_SUPPORT= user-destdir
  10. BUILD_TARGET= TEXMACS
  11. USE_TOOLS+= gmake
  12. USE_LANGUAGES= c c++
  13. GNU_CONFIGURE= yes
  14. # XXX workaround for bug in configure
  15. CONFIGURE_ARGS+= --datadir=${PREFIX}/share
  16. CONFIGURE_ARGS+= --with-qt=${QTDIR}/bin
  17. MAKE_ENV+= QT_QTDIR=${QTDIR}
  18. TEX_ACCEPTED= teTeX3
  19. PYTHON_PATCH_SCRIPTS= plugins/python/bin/tm_python
  20. PYTHON_PATCH_SCRIPTS+= plugins/mathematica/bin/realpath.py
  21. PYTHON_PATCH_SCRIPTS+= plugins/sage/bin/tm_sage
  22. SUBST_CLASSES+= init
  23. SUBST_STAGE.init= post-patch
  24. SUBST_FILES.init= plugins/python/progs/init-python.scm
  25. SUBST_SED.init= -e 's,@PYTHONBIN@,${PYTHONBIN},g'
  26. REPLACE_SH+= plugins/asymptote/bin/tm_asy
  27. REPLACE_SH+= plugins/dratex/bin/tm_dratex
  28. REPLACE_SH+= plugins/eukleides/bin/tm_eukleides
  29. REPLACE_SH+= plugins/gnuplot/bin/tm_gnuplot
  30. REPLACE_SH+= plugins/lisp/bin/tm_lisp
  31. REPLACE_SH+= plugins/lush/bin/tm_lush
  32. REPLACE_SH+= plugins/matlab/bin/tm_matlab
  33. REPLACE_SH+= plugins/maxima/bin/maxima_detect
  34. REPLACE_SH+= plugins/maxima/bin/tm_maxima
  35. REPLACE_SH+= plugins/mupad/bin/tm_mupad_help
  36. REPLACE_SH+= plugins/octave/bin/tm_octave
  37. REPLACE_SH+= plugins/reduce/bin/tm_reduce
  38. REPLACE_SH+= plugins/texgraph/bin/tm_texgraph
  39. REPLACE_SH+= plugins/xypic/bin/tm_xypic
  40. REPLACE_PERL+= plugins/asymptote/bin/perl-tm_asy
  41. REPLACE_PERL+= plugins/asymptote/bin/tm_asy2
  42. pre-install:
  43. ${RM} -f ${WRKSRC}/TeXmacs/doc/devel/format/.log
  44. ${FIND} ${WRKSRC}/plugins/ -name '*.orig' | ${XARGS} ${RM}
  45. # just a helper script, not worth a full perl dependency
  46. CHECK_INTERPRETER_SKIP= libexec/TeXmacs/bin/bbox_add.pl
  47. # but be friendly and set the path to something reasonable
  48. REPLACE_INTERPRETER+= optionalperl
  49. REPLACE.optionalperl.old= .*perl[^[:space:]]*
  50. REPLACE.optionalperl.new= ${LOCALBASE}/bin/perl
  51. REPLACE_FILES.optionalperl= plugins/feynmf/bin/bbox_add.pl
  52. BUILDLINK_DEPMETHOD.libXt?= build
  53. .include "../../converters/libiconv/buildlink3.mk"
  54. .include "../../graphics/freetype2/buildlink3.mk"
  55. .include "../../lang/guile/buildlink3.mk"
  56. .include "../../lang/python/application.mk"
  57. .include "../../mk/tex.buildlink3.mk"
  58. .include "../../x11/qt4-libs/buildlink3.mk"
  59. .include "../../x11/qt4-tools/buildlink3.mk"
  60. .include "../../x11/libX11/buildlink3.mk"
  61. .include "../../x11/libXext/buildlink3.mk"
  62. .include "../../x11/libXt/buildlink3.mk"
  63. .include "../../mk/bsd.pkg.mk"