From owner-svn-ports-head@FreeBSD.ORG Thu Dec 13 07:47:29 2012 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A9F01147; Thu, 13 Dec 2012 07:47:29 +0000 (UTC) (envelope-from bapt@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id 732958FC08; Thu, 13 Dec 2012 07:47:29 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.5/8.14.5) with ESMTP id qBD7lTFG078577; Thu, 13 Dec 2012 07:47:29 GMT (envelope-from bapt@svn.freebsd.org) Received: (from bapt@localhost) by svn.freebsd.org (8.14.5/8.14.5/Submit) id qBD7lTg8078576; Thu, 13 Dec 2012 07:47:29 GMT (envelope-from bapt@svn.freebsd.org) Message-Id: <201212130747.qBD7lTg8078576@svn.freebsd.org> From: Baptiste Daroussin Date: Thu, 13 Dec 2012 07:47:29 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r308826 - head/editors/texmacs X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Dec 2012 07:47:29 -0000 Author: bapt Date: Thu Dec 13 07:47:28 2012 New Revision: 308826 URL: http://svnweb.freebsd.org/changeset/ports/308826 Log: Convert to new options framework Modified: head/editors/texmacs/Makefile Modified: head/editors/texmacs/Makefile ============================================================================== --- head/editors/texmacs/Makefile Thu Dec 13 07:37:45 2012 (r308825) +++ head/editors/texmacs/Makefile Thu Dec 13 07:47:28 2012 (r308826) @@ -1,9 +1,5 @@ -# New ports collection makefile for: texmacs -# Date created: 1 December 2001 -# Whom: Geoffrey Mainland -# +# Created by: Geoffrey Mainland # $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 -.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