aboutsummaryrefslogtreecommitdiffstats
path: root/editors/texmacs/Makefile
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2012-12-13 15:47:28 +0800
committerbapt <bapt@FreeBSD.org>2012-12-13 15:47:28 +0800
commit06608bbca1dcacc9879867f656e294fed7e9120e (patch)
tree5e49f844ada334f12d02a71f7b333bae8d1b3602 /editors/texmacs/Makefile
parentb3d47dd0aad52bc62be73d419d6cf7b150ba6a0d (diff)
downloadfreebsd-ports-gnome-06608bbca1dcacc9879867f656e294fed7e9120e.tar.gz
freebsd-ports-gnome-06608bbca1dcacc9879867f656e294fed7e9120e.tar.zst
freebsd-ports-gnome-06608bbca1dcacc9879867f656e294fed7e9120e.zip
Convert to new options framework
Diffstat (limited to 'editors/texmacs/Makefile')
-rw-r--r--editors/texmacs/Makefile28
1 files changed, 11 insertions, 17 deletions
diff --git a/editors/texmacs/Makefile b/editors/texmacs/Makefile
index 86874a94d58d..4e85e125e5cb 100644
--- a/editors/texmacs/Makefile
+++ b/editors/texmacs/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: texmacs
-# Date created: 1 December 2001
-# Whom: Geoffrey Mainland <mainland@apeiron.net>
-#
+# Created by: Geoffrey Mainland <mainland@apeiron.net>
# $FreeBSD$
-#
PORTNAME= texmacs
PORTVERSION= 1.0.7.14
@@ -37,12 +33,10 @@ DATADIR= ${PREFIX}/share/TeXmacs
MAN1= texmacs.1 fig2ps.1
MANCOMPRESSED= yes
-OPTIONS= FREETYPE "FreeType support" ON \
- GHOSTSCRIPT "Ghostscript support" ON \
- ICONV "Iconv support" ON \
- IMLIB2 "Use imlib2" ON \
- PDF "Experimental PDF renderer" OFF \
- QT4 "QT4 GUI" ON
+OPTIONS_DEFINE= FREETYPE GHOSTSCRIPT ICONV IMLIB2 PDF QT4
+OPTIONS_DEFAULT= FREETYPE GHOSTSCRIPT ICONV IMLIB2 QT4
+GHOSTSCRIPT_DESC= Ghostscript support
+PDF_DESC= Experimental PDF renderer
DESKTOP_ENTRIES= "TeXmacs" "${COMMENT}" \
"${DATADIR}/misc/pixmaps/TeXmacs.xpm" "texmacs" \
@@ -50,39 +44,39 @@ DESKTOP_ENTRIES= "TeXmacs" "${COMMENT}" \
.include <bsd.port.options.mk>
-.if !defined(WITHOUT_FREETYPE)
+.if ${PORT_OPTIONS:MFREETYPE}
LIB_DEPENDS+= freetype.9:${PORTSDIR}/print/freetype2
CONFIGURE_ARGS+= --with-freetype=linked
.else
CONFIGURE_ARGS+= --without-freetype
.endif
-.if !defined(WITHOUT_GHOSTSCRIPT)
+.if ${PORT_OPTIONS:MGHOSTSCRIPT}
USE_GHOSTSCRIPT= yes
CONFIGURE_ARGS+= --with-gs=yes
.else
CONFIGURE_ARGS+= --without-gs
.endif
-.if !defined(WITHOUT_ICONV)
+.if ${PORT_OPTIONS:MICONv}
USE_ICONV= yes
CONFIGURE_ARGS+= --with-iconv="${LOCALBASE}"
.else
CONFIGURE_ARGS+= --without-iconv
.endif
-.if !defined(WITHOUT_IMLIB2)
+.if ${PORT_OPTIONS:MIMLIB2}
USE_EFL= imlib2
CONFIGURE_ARGS+= --with-imlib2
.else
CONFIGURE_ARGS+= --without-imlib
.endif
-.if !defined(WITHOUT_PDF)
+.if ${PORT_OPTIONS:MPDF}
CONFIGURE_ARGS+= --enable-pdf-renderer
.endif
-.if !defined(WITHOUT_QT4)
+.if ${PORT_OPTIONS:MQT4}
USE_QT4= gui moc_build qmake_build rcc uic_build
CONFIGURE_ARGS+= --with-qt --enable-qtpipes
.else