2012-12-13 08:47:28 +01:00
|
|
|
# Created by: Geoffrey Mainland <mainland@apeiron.net>
|
2002-03-03 04:39:37 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= texmacs
|
2014-02-13 09:56:53 +01:00
|
|
|
PORTVERSION= 1.0.7.21
|
2015-06-04 14:45:57 +02:00
|
|
|
PORTREVISION= 5
|
2002-03-03 04:39:37 +01:00
|
|
|
CATEGORIES= editors print
|
2011-12-25 08:51:16 +01:00
|
|
|
MASTER_SITES= ftp://ftp.texmacs.org/TeXmacs/tmftp/source/ \
|
2010-01-07 05:52:28 +01:00
|
|
|
http://www.predatorlabs.net/dl/
|
2004-10-23 23:30:54 +02:00
|
|
|
DISTNAME= TeXmacs-${PORTVERSION}-src
|
2002-03-03 04:39:37 +01:00
|
|
|
|
2012-12-04 21:39:22 +01:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2013-01-07 03:07:26 +01:00
|
|
|
COMMENT= WYSIWYG scientific text editor
|
2003-10-15 03:48:01 +02:00
|
|
|
|
2014-02-13 09:56:53 +01:00
|
|
|
LICENSE= GPLv3
|
2015-04-08 21:43:40 +02:00
|
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
2002-03-03 04:39:37 +01:00
|
|
|
|
2014-02-13 09:56:53 +01:00
|
|
|
LIB_DEPENDS= libguile.so:${PORTSDIR}/lang/guile
|
2010-02-04 00:18:16 +01:00
|
|
|
|
2015-04-08 21:43:40 +02:00
|
|
|
USES= cpe gmake shared-mime-info desktop-file-utils python shebangfix
|
2013-05-11 19:58:55 +02:00
|
|
|
USE_TEX= tex
|
2005-08-30 04:56:28 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2011-09-24 00:26:39 +02:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
2011-10-22 21:28:04 +02:00
|
|
|
CONFIGURE_ARGS= --enable-optimize="${CXXFLAGS}"
|
2005-08-30 04:56:28 +02:00
|
|
|
MAKE_ARGS= CP="${CP} -R -f"
|
2014-05-05 11:45:36 +02:00
|
|
|
ALL_TARGET= ${PORTNAME:tu}
|
2014-02-13 09:56:53 +01:00
|
|
|
INSTALL_ICONS= yes
|
2002-03-03 04:39:37 +01:00
|
|
|
|
2014-08-28 20:20:28 +02:00
|
|
|
SHEBANG_FILES= plugins/asymptote/bin/tm_asy2 \
|
|
|
|
plugins/feynmf/bin/bbox_add.pl \
|
|
|
|
plugins/asymptote/bin/perl-tm_asy
|
|
|
|
|
2011-03-07 14:40:14 +01:00
|
|
|
DATADIR= ${PREFIX}/share/TeXmacs
|
|
|
|
|
2012-12-13 08:47:28 +01:00
|
|
|
OPTIONS_DEFINE= FREETYPE GHOSTSCRIPT ICONV IMLIB2 PDF QT4
|
2014-08-28 20:20:28 +02:00
|
|
|
OPTIONS_DEFAULT=FREETYPE GHOSTSCRIPT ICONV IMLIB2 QT4
|
2012-12-13 08:47:28 +01:00
|
|
|
PDF_DESC= Experimental PDF renderer
|
2011-03-07 14:40:14 +01:00
|
|
|
|
2014-08-28 20:20:28 +02:00
|
|
|
FREETYPE_LIB_DEPENDS= libfreetype.so:${PORTSDIR}/print/freetype2
|
|
|
|
FREETYPE_CONFIGURE_WITH=freetype=linked
|
|
|
|
|
|
|
|
GHOSTSCRIPT_USE= GHOSTSCRIPT=yes
|
|
|
|
GHOSTSCRIPT_CONFIGURE_WITH= gs=yes
|
|
|
|
|
|
|
|
ICONV_USES= iconv
|
|
|
|
ICONV_CONFIGURE_WITH= iconv
|
|
|
|
|
2014-12-27 01:09:02 +01:00
|
|
|
IMLIB2_LIB_DEPENDS= libImlib2.so:${PORTSDIR}/graphics/imlib2
|
2014-08-28 20:20:28 +02:00
|
|
|
IMLIB2_CONFIGURE_ON= --with-imlib2
|
|
|
|
IMLIB2_CONFIGURE_OFF= --without-imlib
|
|
|
|
|
|
|
|
PDF_CONFIGURE_ON= --enable-pdf-renderer
|
|
|
|
|
|
|
|
QT4_USE= QT4=gui,moc_build,qmake_build,rcc,uic_build
|
|
|
|
QT4_CONFIGURE_ON= --with-qt --enable-qtpipes
|
|
|
|
QT4_CONFIGURE_OFF= --disable-qt
|
2009-01-24 10:58:07 +01:00
|
|
|
|
2005-08-30 04:56:28 +02:00
|
|
|
post-patch:
|
|
|
|
@${GREP} -lR "#!/bin/bash" ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} -e \
|
|
|
|
's|#!/bin/bash|#!/bin/sh|g'
|
2010-12-15 08:06:23 +01:00
|
|
|
@${FIND} ${WRKSRC} -name \*.bak -delete
|
2011-12-25 08:51:16 +01:00
|
|
|
@${FIND} ${WRKSRC} -name \*.DS_Store -delete
|
2010-01-07 05:52:28 +01:00
|
|
|
@${REINPLACE_CMD} -e 's|ICONV_LDFLAGS/-liconv|ICONV_LDFLAGS|' \
|
|
|
|
${WRKSRC}/configure
|
2011-12-25 08:51:16 +01:00
|
|
|
@ #fix for namespace clash with Qt3
|
2011-10-22 21:28:04 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|qdrawutil.h|qt4/Qt/qdrawutil.h|' \
|
|
|
|
${WRKSRC}/src/Plugins/Qt/QTMStyle.cpp
|
2005-08-30 04:56:28 +02:00
|
|
|
|
2015-06-04 14:45:57 +02:00
|
|
|
post-install:
|
|
|
|
.for f in realpath texmacs.bin tm_axiom tm_graphviz tm_maple_5 tm_r tm_shell
|
|
|
|
${STRIP_CMD} ${STAGEDIR}${PREFIX}/libexec/TeXmacs/bin/${f}
|
|
|
|
.endfor
|
|
|
|
|
2014-08-28 20:20:28 +02:00
|
|
|
.include <bsd.port.mk>
|