1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-16 03:24:07 +00:00
freebsd-ports/editors/texmacs/Makefile
Mark Linimon c095cd43d0 Mark some ports failing on armv6, for errors classified as "???".
While here, pet portlint.

Approved by:	portmgr (tier-2 blanket)
2017-05-26 20:02:44 +00:00

97 lines
3.0 KiB
Makefile

# Created by: Geoffrey Mainland <mainland@apeiron.net>
# $FreeBSD$
PORTNAME= texmacs
PORTVERSION= 1.99.4
PORTREVISION= 2
CATEGORIES= editors print
MASTER_SITES= http://www.texmacs.org/Download/ftp/tmftp/source/
DISTNAME= TeXmacs-${PORTVERSION}-src
MAINTAINER= ports@FreeBSD.org
COMMENT= WYSIWYG scientific text editor
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/LICENSE
LIB_DEPENDS= libltdl.so:devel/libltdl \
libguile.so:lang/guile \
libgmp.so:math/gmp
RUN_DEPENDS= fig2dev:print/transfig
BROKEN_armv6= fails to compile: call to min is ambiguous
USES= cpe desktop-file-utils gmake iconv localbase pkgconfig python \
shared-mime-info shebangfix
USE_TEX= tex:run dvipsk:run
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --enable-optimize="${CXXFLAGS}"
MAKE_ARGS= CP="${CP} -R -f"
ALL_TARGET= ${PORTNAME:tu}
SHEBANG_FILES= plugins/asymptote/bin/* plugins/dratex/bin/* \
plugins/eukleides/bin/* plugins/feynmf/bin/* \
plugins/mupad/bin/* plugins/texgraph/bin/* \
plugins/xypic/bin/* \
plugins/python/bin/tm_python plugins/sage/bin/tm_sage \
plugins/mathematica/bin/realpath.py
DATADIR= ${PREFIX}/share/TeXmacs
OPTIONS_DEFINE= ASPELL FREETYPE GHOSTSCRIPT IMLIB2 PDF QT4 SQLITE
OPTIONS_DEFAULT=ASPELL FREETYPE GHOSTSCRIPT IMLIB2 PDF QT4 SQLITE
OPTIONS_SUB= yes
ASPELL_RUN_DEPENDS= aspell:textproc/aspell
FREETYPE_LIB_DEPENDS= libfreetype.so:print/freetype2
FREETYPE_CONFIGURE_ENABLE= freetype
FREETYPE_CONFIGURE_ENV_OFF= FREETYPE_CFLAGS=" " FREETYPE_LDFLAGS=" " \
ac_cv_header_ft2build_h=no
GHOSTSCRIPT_USES= ghostscript:x11
GHOSTSCRIPT_CONFIGURE_ON= --with-gs=yes
GHOSTSCRIPT_CONFIGURE_OFF= --with-gs=no
IMLIB2_LIB_DEPENDS= libImlib2.so:graphics/imlib2
IMLIB2_CONFIGURE_WITH= imlib2
PDF_CONFIGURE_ENABLE= pdf-renderer
PDF_LDFLAGS= -lz
PDF_IMPLIES= FREETYPE GHOSTSCRIPT
QT4_USE= qt4=accessible,corelib,gui,imageformats \
qt4=moc_build,qmake_build,rcc_build,uic_build
QT4_USE_OFF= xorg=xext
QT4_CONFIGURE_ON= --with-qt=${PREFIX} --enable-qtpipes
QT4_CONFIGURE_OFF= --disable-qt
QT4_VARS= QT_PLUGINS_LIST="accessible imageformats"
QT4_VARS_OFF= QT_PLUGINS_LIST=""
SQLITE_USES= sqlite
SQLITE_CONFIGURE_ON= --with-sqlite3
post-patch:
@${REINPLACE_CMD} -e \
'/SVNREV\//s|^|#| ; \
s|LIBS="-liconv"|LIBS="-liconv $$LIBS"| ; \
s|/-liconv}|}| ; \
s|"-Wl,-rpath,"|""| ; \
s|\[\[ |[ |g ; \
s| \]\]| ]|g ; \
s|== no|= no| ; \
s|$${QT_PLUGINS_LIST/,/ }|${QT_PLUGINS_LIST}|' \
${WRKSRC}/configure
@${REINPLACE_CMD} -e \
'/require/s|"python"|"${PYTHON_CMD:T}"|' \
${WRKSRC}/plugins/python/progs/init-python.scm
@${REINPLACE_CMD} -e \
's|int tab=.*)|int tab)|' \
${WRKSRC}/src/Kernel/Types/tree.hpp
@${REINPLACE_CMD} -e \
's|int dpi=.*)|int dpi)|' \
${WRKSRC}/src/Typeset/boxes.hpp
post-install:
@${FIND} ${STAGEDIR}${DATADIR} -name "._*" -delete
@${FIND} ${STAGEDIR}${DATADIR} -name "*.bak" -delete
.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>