27470e1676
* print/ghostscript{7,8,9,9-agpl}-base Installs Ghostscript binary, libgs, and related files. These ports do not depend on X11 libraries (i.e. x11* devices are not available). USES=ghostscript will set dependency on one of them depending on GHOSTSCRIPT_DEFAULT. The default device is set to "display" or "bbox". * print/ghostscript{7,8,9,9-agpl}-x11 Installs a shared library which provides X11 support to the installed Ghostscript binaries. x11* devices will be enabled when the library is available. This depends on *-base (RUN_DEPENDS). USES=ghostscript:x11 will set dependency on one of them. - Fix integer overflow reported as CVE-2015-3228. - Update Uses/ghostscript.mk: * Add x11 keyword. nox11 keyword is now obsolete. * Use packagename in *_DEPENDS line to prevent relationship between -base and -x11 packages from being broken. - Fix x11/nox11 keyword and bump PORTREVISION in ports using USES=ghostscript to update dependency of pre-compiled packages.
75 lines
2.1 KiB
Makefile
75 lines
2.1 KiB
Makefile
# Created by: Geoffrey Mainland <mainland@apeiron.net>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= texmacs
|
|
PORTVERSION= 1.0.7.21
|
|
PORTREVISION= 6
|
|
CATEGORIES= editors print
|
|
MASTER_SITES= ftp://ftp.texmacs.org/TeXmacs/tmftp/source/ \
|
|
http://www.predatorlabs.net/dl/
|
|
DISTNAME= TeXmacs-${PORTVERSION}-src
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= WYSIWYG scientific text editor
|
|
|
|
LICENSE= GPLv3
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
LIB_DEPENDS= libguile.so:${PORTSDIR}/lang/guile
|
|
|
|
USES= cpe gmake shared-mime-info desktop-file-utils python shebangfix
|
|
USE_TEX= tex
|
|
GNU_CONFIGURE= yes
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
|
CONFIGURE_ARGS= --enable-optimize="${CXXFLAGS}"
|
|
MAKE_ARGS= CP="${CP} -R -f"
|
|
ALL_TARGET= ${PORTNAME:tu}
|
|
INSTALL_ICONS= yes
|
|
|
|
SHEBANG_FILES= plugins/asymptote/bin/tm_asy2 \
|
|
plugins/feynmf/bin/bbox_add.pl \
|
|
plugins/asymptote/bin/perl-tm_asy
|
|
|
|
DATADIR= ${PREFIX}/share/TeXmacs
|
|
|
|
OPTIONS_DEFINE= FREETYPE GHOSTSCRIPT ICONV IMLIB2 PDF QT4
|
|
OPTIONS_DEFAULT=FREETYPE GHOSTSCRIPT ICONV IMLIB2 QT4
|
|
PDF_DESC= Experimental PDF renderer
|
|
|
|
FREETYPE_LIB_DEPENDS= libfreetype.so:${PORTSDIR}/print/freetype2
|
|
FREETYPE_CONFIGURE_WITH=freetype=linked
|
|
|
|
GHOSTSCRIPT_USES= ghostscript:x11
|
|
GHOSTSCRIPT_CONFIGURE_WITH= gs=yes
|
|
|
|
ICONV_USES= iconv
|
|
ICONV_CONFIGURE_WITH= iconv
|
|
|
|
IMLIB2_LIB_DEPENDS= libImlib2.so:${PORTSDIR}/graphics/imlib2
|
|
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
|
|
|
|
post-patch:
|
|
@${GREP} -lR "#!/bin/bash" ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} -e \
|
|
's|#!/bin/bash|#!/bin/sh|g'
|
|
@${FIND} ${WRKSRC} -name \*.bak -delete
|
|
@${FIND} ${WRKSRC} -name \*.DS_Store -delete
|
|
@${REINPLACE_CMD} -e 's|ICONV_LDFLAGS/-liconv|ICONV_LDFLAGS|' \
|
|
${WRKSRC}/configure
|
|
@ #fix for namespace clash with Qt3
|
|
@${REINPLACE_CMD} -e 's|qdrawutil.h|qt4/Qt/qdrawutil.h|' \
|
|
${WRKSRC}/src/Plugins/Qt/QTMStyle.cpp
|
|
|
|
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
|
|
|
|
.include <bsd.port.mk>
|