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