Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / editors / TeXmacs-devel / Makefile
blobe1a3031dcec8882180042612f16d52c34f69b3bf
1 # $NetBSD: Makefile,v 1.20 2013/02/16 11:20:52 wiz Exp $
3 DISTNAME= TeXmacs-1.0.7.19-src
4 PKGNAME= ${DISTNAME:S/-src//}
5 CATEGORIES= editors
6 MASTER_SITES= ftp://ftp.texmacs.org/TeXmacs/tmftp/source/
8 MAINTAINER= pkgsrc-users@NetBSD.org
9 HOMEPAGE= http://www.texmacs.org/
10 COMMENT= GNU TeXmacs (free scientific text editor)
12 BUILD_TARGET= TEXMACS
14 USE_TOOLS+= gmake
15 USE_LANGUAGES= c c++
16 GNU_CONFIGURE= yes
17 # XXX workaround for bug in configure
18 CONFIGURE_ARGS+= --datadir=${PREFIX}/share
19 CONFIGURE_ARGS+= --with-qt=${QTDIR}/bin
20 MAKE_ENV+= QT_QTDIR=${QTDIR}
21 TEX_ACCEPTED= teTeX3
23 PYTHON_PATCH_SCRIPTS= plugins/python/bin/tm_python
24 PYTHON_PATCH_SCRIPTS+= plugins/mathematica/bin/realpath.py
25 PYTHON_PATCH_SCRIPTS+= plugins/sage/bin/tm_sage
27 SUBST_CLASSES+= init
28 SUBST_STAGE.init= post-patch
29 SUBST_FILES.init= plugins/python/progs/init-python.scm
30 SUBST_SED.init= -e 's,@PYTHONBIN@,${PYTHONBIN},g'
32 REPLACE_SH+= plugins/asymptote/bin/tm_asy
33 REPLACE_SH+= plugins/dratex/bin/tm_dratex
34 REPLACE_SH+= plugins/eukleides/bin/tm_eukleides
35 REPLACE_SH+= plugins/gnuplot/bin/tm_gnuplot
36 REPLACE_SH+= plugins/lisp/bin/tm_lisp
37 REPLACE_SH+= plugins/lush/bin/tm_lush
38 REPLACE_SH+= plugins/matlab/bin/tm_matlab
39 REPLACE_SH+= plugins/maxima/bin/maxima_detect
40 REPLACE_SH+= plugins/maxima/bin/tm_maxima
41 REPLACE_SH+= plugins/mupad/bin/tm_mupad_help
42 REPLACE_SH+= plugins/octave/bin/tm_octave
43 REPLACE_SH+= plugins/reduce/bin/tm_reduce
44 REPLACE_SH+= plugins/texgraph/bin/tm_texgraph
45 REPLACE_SH+= plugins/xypic/bin/tm_xypic
47 REPLACE_PERL+= plugins/asymptote/bin/perl-tm_asy
48 REPLACE_PERL+= plugins/asymptote/bin/tm_asy2
50 post-extract:
51 ${RM} -f ${WRKSRC}/plugins/eukleides/bin/tm_eukleides.old
52 ${RM} -f ${WRKSRC}/plugins/maxima/bin/maxima_filter
54 pre-install:
55 ${RM} -f ${WRKSRC}/TeXmacs/doc/devel/format/.log
56 ${FIND} ${WRKSRC}/plugins/ -name '*.orig' | ${XARGS} ${RM} -f
58 # just a helper script, not worth a full perl dependency
59 CHECK_INTERPRETER_SKIP= libexec/TeXmacs/bin/bbox_add.pl
60 # but be friendly and set the path to something reasonable
61 REPLACE_INTERPRETER+= optionalperl
62 REPLACE.optionalperl.old= .*perl[^[:space:]]*
63 REPLACE.optionalperl.new= ${LOCALBASE}/bin/perl
64 REPLACE_FILES.optionalperl= plugins/feynmf/bin/bbox_add.pl
66 BUILDLINK_DEPMETHOD.libXt?= build
68 .include "../../converters/libiconv/buildlink3.mk"
69 .include "../../graphics/freetype2/buildlink3.mk"
70 .include "../../lang/guile/buildlink3.mk"
71 .include "../../lang/python/application.mk"
72 #.include "../../mk/tex.buildlink3.mk"
73 .include "../../x11/qt4-libs/buildlink3.mk"
74 .include "../../x11/qt4-tools/buildlink3.mk"
75 .include "../../x11/libX11/buildlink3.mk"
76 .include "../../x11/libXext/buildlink3.mk"
77 .include "../../x11/libXt/buildlink3.mk"
78 .include "../../databases/shared-mime-info/mimedb.mk"
79 .include "../../sysutils/desktop-file-utils/desktopdb.mk"
80 .include "../../graphics/gnome-icon-theme/buildlink3.mk"
81 .include "../../mk/bsd.pkg.mk"