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-04-26 20:21:29 +02:00
|
|
|
PORTVERSION= 1.0.7.10
|
2011-07-31 17:07:08 +02:00
|
|
|
PORTREVISION= 1
|
2002-03-03 04:39:37 +01:00
|
|
|
CATEGORIES= editors print
|
2011-04-26 20:21:29 +02:00
|
|
|
MASTER_SITES= ftp://ftp.texmacs.org/pub/TeXmacs/targz/ \
|
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
|
|
|
|
2010-01-07 05:52:28 +01:00
|
|
|
MAINTAINER= rfarmer@predatorlabs.net
|
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-07-31 17:07:08 +02:00
|
|
|
LIB_DEPENDS= guile.21:${PORTSDIR}/lang/guile \
|
2005-08-30 04:56:28 +02:00
|
|
|
freetype.9:${PORTSDIR}/print/freetype2
|
|
|
|
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
|
2005-08-30 04:56:28 +02:00
|
|
|
USE_ICONV= yes
|
2003-08-26 12:30:29 +02:00
|
|
|
USE_GMAKE= yes
|
2011-03-07 14:40:14 +01:00
|
|
|
USE_GHOSTSCRIPT= 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
|
2006-01-10 15:18:14 +01:00
|
|
|
CONFIGURE_ARGS= --enable-optimize="${CXXFLAGS}" \
|
2005-08-30 04:56:28 +02:00
|
|
|
--with-iconv="${LOCALBASE}"
|
2006-01-10 15:18:14 +01:00
|
|
|
|
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-03-07 14:40:14 +01:00
|
|
|
OPTIONS= IMLIB2 "Use imlib2" ON \
|
|
|
|
PDF "Experimental PDF renderer" OFF \
|
|
|
|
QT4 "Experimental QT4 GUI" OFF
|
|
|
|
|
|
|
|
DESKTOP_ENTRIES= "TeXmacs" "${COMMENT}" \
|
|
|
|
"${DATADIR}/misc/pixmaps/TeXmacs.xpm" "texmacs" \
|
|
|
|
"Application;Education;Science;" false
|
|
|
|
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
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
|
|
|
|
.endif
|
|
|
|
|
2011-03-07 14:40:14 +01:00
|
|
|
.if !defined(WITHOUT_PDF)
|
|
|
|
CONFIGURE_ARGS+= --enable-pdf-renderer
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !defined(WITHOUT_QT4)
|
|
|
|
CONFIGURE_ARGS+= --enable-qt
|
|
|
|
USE_QT_VER= 4
|
|
|
|
QT_COMPONENTS= gui moc_build qmake_build uic_build
|
|
|
|
.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
|
2010-01-07 05:52:28 +01:00
|
|
|
@${REINPLACE_CMD} -e 's|ICONV_LDFLAGS/-liconv|ICONV_LDFLAGS|' \
|
|
|
|
${WRKSRC}/configure
|
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>
|