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