From owner-svn-ports-head@FreeBSD.ORG Thu Mar 21 00:21:22 2013 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 4D0629C0; Thu, 21 Mar 2013 00:21:22 +0000 (UTC) (envelope-from jgh@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 26B5DD44; Thu, 21 Mar 2013 00:21:22 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.6/8.14.6) with ESMTP id r2L0LLc5045408; Thu, 21 Mar 2013 00:21:21 GMT (envelope-from jgh@svn.freebsd.org) Received: (from jgh@localhost) by svn.freebsd.org (8.14.6/8.14.5/Submit) id r2L0LLMQ045406; Thu, 21 Mar 2013 00:21:21 GMT (envelope-from jgh@svn.freebsd.org) Message-Id: <201303210021.r2L0LLMQ045406@svn.freebsd.org> From: Jason Helfman Date: Thu, 21 Mar 2013 00:21:21 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r314788 - head/textproc/sablotron 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, 21 Mar 2013 00:21:22 -0000 Author: jgh Date: Thu Mar 21 00:21:21 2013 New Revision: 314788 URL: http://svnweb.freebsd.org/changeset/ports/314788 Log: - adopt optionsNG - trim historical header Approved by: portmgr (miwi) Modified: head/textproc/sablotron/Makefile Modified: head/textproc/sablotron/Makefile ============================================================================== --- head/textproc/sablotron/Makefile Thu Mar 21 00:19:00 2013 (r314787) +++ head/textproc/sablotron/Makefile Thu Mar 21 00:21:21 2013 (r314788) @@ -1,9 +1,5 @@ -# New ports collection makefile for: sablotron -# Date created: 13 Nov 2000 -# Whom: Sergey Skvortsov -# +# Created by: Sergey Skvortsov # $FreeBSD$ -# PORTNAME= Sablot PORTVERSION= 1.0.3 @@ -15,12 +11,14 @@ COMMENT= XML toolkit implementing XSLT 1 LIB_DEPENDS= expat:${PORTSDIR}/textproc/expat2 -OPTIONS= DISABLE_META "Do not output the META html tag" off \ - ICONV_TYPECAST "Use iconv typecast" off \ - DOM "Use DOM" on \ - DOCUMENT_ERRORS "Allow document errors" on \ - CHECK_LEAKS "Enable memory leaks checking" off \ - DEBUGGER "Enable debugger" off +OPTIONS_DEFINE= DISABLE_META ICONV_TYPECAST DOM DOCUMENT_ERRORS CHECK_LEAKS DEBUGGER DOCS +DISABLE_META_DESC= Do not output the META html tag +ICONV_TYPECAST_DESC= Use iconv typecast +DOM_DESC= Use DOM +DOCUMENT_ERRORS_DESC= Allow document errors +CHECK_LEAKS_DESC= Enable memory leaks checking +DEBUGGER_DESC= Enable debugger +OPTIONS_DEFAULT= DOM DOCUMENT_ERRORS USE_LDCONFIG= yes @@ -39,32 +37,33 @@ USE_PERL5_BUILD= yes MAN1= sabcmd.1 .include +.include -.if defined(WITH_DISABLE_META) +.if ${PORT_OPTIONS:MDISABLE_META} CONFIGURE_ARGS+= --disable-adding-meta .endif -.if defined(WITH_ICONV_TYPECAST) +.if ${PORT_OPTIONS:MICONV_TYPECAST} CONFIGURE_ARGS+= --enable-iconv-typecast .endif -.if defined(WITHOUT_DOM) +.if ! ${PORT_OPTIONS:MDOM} CONFIGURE_ARGS+= --disable-dom .endif -.if defined(WITHOUT_DOCUMENT_ERRORS) +.if ! ${PORT_OPTIONS:MDOCUMENT_ERRORS} CONFIGURE_ARGS+= --disable-document-errors .endif -.if defined(WITH_CHECK_LEAKS) +.if ${PORT_OPTIONS:MCHECK_LEAKS} CONFIGURE_ARGS+= --enable-check-leaks .endif -.if defined(WITH_DEBUGGER) +.if ${PORT_OPTIONS:MDEBUGGER} CONFIGURE_ARGS+= --enable-debugger .endif -.ifndef(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} BUILD_DEPENDS+= p5-XML-Parser>=0:${PORTSDIR}/textproc/p5-XML-Parser CONFIGURE_ARGS+= --with-html-dir=${DOCSDIR} .endif @@ -81,7 +80,7 @@ post-patch: .endif post-install: -.ifndef(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} @${ECHO_MSG} "===> Installing additional documentation for ${PKGNAME}" @${INSTALL_DATA} ${DOCSLIST:S!^!${WRKSRC}/!} ${DOCSDIR} .endif