2002-03-03 04:39:37 +01:00
|
|
|
# New ports collection makefile for: texmacs
|
|
|
|
# Date created: 1 December 2001
|
|
|
|
# Whom: Geoffrey Mainland <mainland@apeiron.net>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= texmacs
|
2011-12-25 08:51:16 +01:00
|
|
|
PORTVERSION= 1.0.7.14
|
2012-06-01 07:26:28 +02:00
|
|
|
PORTREVISION= 1
|
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
|
2005-08-30 04:56:28 +02:00
|
|
|
COMMENT= A free WYSIWYG scientific text editor
|
2003-10-15 03:48:01 +02:00
|
|
|
|
2005-08-30 04:56:28 +02:00
|
|
|
BUILD_DEPENDS= tex:${PORTSDIR}/print/teTeX-base
|
2011-10-22 21:28:04 +02:00
|
|
|
LIB_DEPENDS= guile.21:${PORTSDIR}/lang/guile
|
2005-08-30 04:56:28 +02:00
|
|
|
RUN_DEPENDS= tex:${PORTSDIR}/print/teTeX-base
|
2002-03-03 04:39:37 +01:00
|
|
|
|
2010-02-04 00:18:16 +01:00
|
|
|
MAKE_JOBS_SAFE= yes
|
|
|
|
|
2005-12-12 13:03:25 +01:00
|
|
|
USE_PYTHON= yes
|
2011-10-22 21:28:04 +02:00
|
|
|
|
2003-08-26 12:30:29 +02:00
|
|
|
USE_GMAKE= yes
|
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"
|
|
|
|
ALL_TARGET= ${PORTNAME:U}
|
2002-03-03 04:39:37 +01:00
|
|
|
|
2011-03-07 14:40:14 +01:00
|
|
|
DATADIR= ${PREFIX}/share/TeXmacs
|
|
|
|
|
2002-03-03 04:39:37 +01:00
|
|
|
MAN1= texmacs.1 fig2ps.1
|
|
|
|
MANCOMPRESSED= yes
|
|
|
|
|
2011-10-22 21:28:04 +02:00
|
|
|
OPTIONS= FREETYPE "FreeType support" ON \
|
|
|
|
GHOSTSCRIPT "Ghostscript support" ON \
|
|
|
|
ICONV "Iconv support" ON \
|
|
|
|
IMLIB2 "Use imlib2" ON \
|
2011-03-07 14:40:14 +01:00
|
|
|
PDF "Experimental PDF renderer" OFF \
|
2011-10-22 21:28:04 +02:00
|
|
|
QT4 "QT4 GUI" ON
|
2011-03-07 14:40:14 +01:00
|
|
|
|
|
|
|
DESKTOP_ENTRIES= "TeXmacs" "${COMMENT}" \
|
|
|
|
"${DATADIR}/misc/pixmaps/TeXmacs.xpm" "texmacs" \
|
|
|
|
"Application;Education;Science;" false
|
|
|
|
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
2011-10-22 21:28:04 +02:00
|
|
|
.if !defined(WITHOUT_FREETYPE)
|
|
|
|
LIB_DEPENDS+= freetype.9:${PORTSDIR}/print/freetype2
|
|
|
|
CONFIGURE_ARGS+= --with-freetype=linked
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-freetype
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !defined(WITHOUT_GHOSTSCRIPT)
|
|
|
|
USE_GHOSTSCRIPT= yes
|
|
|
|
CONFIGURE_ARGS+= --with-gs=yes
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-gs
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !defined(WITHOUT_ICONV)
|
|
|
|
USE_ICONV= yes
|
|
|
|
CONFIGURE_ARGS+= --with-iconv="${LOCALBASE}"
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-iconv
|
|
|
|
.endif
|
|
|
|
|
2005-12-12 13:03:25 +01:00
|
|
|
.if !defined(WITHOUT_IMLIB2)
|
2008-03-11 22:13:53 +01:00
|
|
|
USE_EFL= imlib2
|
2005-12-12 13:03:25 +01:00
|
|
|
CONFIGURE_ARGS+= --with-imlib2
|
2011-10-22 21:28:04 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-imlib
|
2005-12-12 13:03:25 +01:00
|
|
|
.endif
|
|
|
|
|
2011-03-07 14:40:14 +01:00
|
|
|
.if !defined(WITHOUT_PDF)
|
|
|
|
CONFIGURE_ARGS+= --enable-pdf-renderer
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !defined(WITHOUT_QT4)
|
2012-06-06 08:44:37 +02:00
|
|
|
USE_QT4= gui moc_build qmake_build rcc uic_build
|
2011-10-22 21:28:04 +02:00
|
|
|
CONFIGURE_ARGS+= --with-qt --enable-qtpipes
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-qt
|
2011-03-07 14:40:14 +01:00
|
|
|
.endif
|
|
|
|
|
2009-01-24 10:58:07 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
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
|
|
|
|
|
|
|
post-install:
|
|
|
|
${CHOWN} -R ${LIBOWN}:${LIBGRP} ${PREFIX}/libexec/TeXmacs
|
2011-03-07 14:40:14 +01:00
|
|
|
${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${DATADIR}
|
2004-09-29 07:45:34 +02:00
|
|
|
|
2009-01-24 10:58:07 +01:00
|
|
|
.include <bsd.port.post.mk>
|