2009-12-21 13:17:51 +01:00
|
|
|
# $NetBSD: Makefile,v 1.84 2009/12/21 12:17:51 drochner Exp $
|
2002-04-27 11:53:43 +02:00
|
|
|
|
2009-02-11 18:53:40 +01:00
|
|
|
DISTNAME= TeXmacs-1.0.6.15-src
|
2006-02-07 23:41:26 +01:00
|
|
|
PKGNAME= ${DISTNAME:S/-src//}
|
2009-12-21 13:17:51 +01:00
|
|
|
PKGREVISION= 4
|
2006-02-07 23:41:26 +01:00
|
|
|
CATEGORIES= editors
|
|
|
|
MASTER_SITES= ftp://ftp.texmacs.org/pub/TeXmacs/targz/
|
|
|
|
MASTER_SITES+= http://www.texmacs.org/Download/ftp/targz/
|
2002-04-27 11:53:43 +02:00
|
|
|
|
2008-04-21 21:07:53 +02:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2006-02-07 23:41:26 +01:00
|
|
|
HOMEPAGE= http://www.texmacs.org/
|
|
|
|
COMMENT= GNU TeXmacs (free scientific text editor)
|
2002-04-27 11:53:43 +02:00
|
|
|
|
2008-01-04 16:01:32 +01:00
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
|
2006-02-07 23:41:26 +01:00
|
|
|
BUILD_TARGET= TEXMACS
|
2002-04-27 11:53:43 +02:00
|
|
|
|
2005-05-22 22:07:36 +02:00
|
|
|
USE_TOOLS+= gmake
|
2004-04-27 13:56:26 +02:00
|
|
|
USE_LANGUAGES= c c++
|
|
|
|
GNU_CONFIGURE= yes
|
2009-02-11 18:53:40 +01:00
|
|
|
# XXX workaround for bug in configure
|
|
|
|
CONFIGURE_ARGS+= --datadir=${PREFIX}/share
|
2006-08-10 05:21:39 +02:00
|
|
|
TEX_ACCEPTED= teTeX3
|
2002-04-27 11:53:43 +02:00
|
|
|
|
2004-03-30 14:41:27 +02:00
|
|
|
PYTHON_PATCH_SCRIPTS= plugins/python/bin/tm_python
|
|
|
|
|
|
|
|
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'
|
|
|
|
|
2007-11-02 11:31:21 +01:00
|
|
|
REPLACE_SH+= plugins/dratex/bin/tm_dratex
|
|
|
|
REPLACE_SH+= plugins/eukleides/bin/tm_eukleides
|
|
|
|
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/xypic/bin/tm_xypic
|
2005-11-10 22:12:07 +01:00
|
|
|
|
|
|
|
pre-install:
|
2006-05-17 19:32:22 +02:00
|
|
|
${RM} -f ${WRKSRC}/TeXmacs/doc/devel/format/.log
|
|
|
|
${FIND} ${WRKSRC}/plugins/ -name '*.orig' | ${XARGS} ${RM}
|
2005-11-10 22:12:07 +01:00
|
|
|
|
2009-02-18 14:57:41 +01:00
|
|
|
# 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
|
|
|
|
|
2007-01-31 00:38:35 +01:00
|
|
|
BUILDLINK_DEPMETHOD.libXt?= build
|
|
|
|
|
2004-02-15 16:47:42 +01:00
|
|
|
.include "../../converters/libiconv/buildlink3.mk"
|
|
|
|
.include "../../graphics/freetype2/buildlink3.mk"
|
|
|
|
.include "../../lang/guile/buildlink3.mk"
|
2004-04-27 13:56:26 +02:00
|
|
|
.include "../../lang/python/application.mk"
|
2005-11-08 19:56:34 +01:00
|
|
|
.include "../../mk/tex.buildlink3.mk"
|
2007-01-31 00:38:35 +01:00
|
|
|
.include "../../x11/libX11/buildlink3.mk"
|
|
|
|
.include "../../x11/libXext/buildlink3.mk"
|
|
|
|
.include "../../x11/libXt/buildlink3.mk"
|
2002-04-27 11:53:43 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|