Date: Mon, 18 Mar 2013 06:50:13 +0000 (UTC) From: Jason Helfman <jgh@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r314530 - head/biology/libsbml Message-ID: <201303180650.r2I6oDg5030940@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: jgh Date: Mon Mar 18 06:50:12 2013 New Revision: 314530 URL: http://svnweb.freebsd.org/changeset/ports/314530 Log: - adoption of optionsNG - trim historical header - tighten COMMENT Approved by: portmgr (miwi) Modified: head/biology/libsbml/Makefile Modified: head/biology/libsbml/Makefile ============================================================================== --- head/biology/libsbml/Makefile Mon Mar 18 06:48:55 2013 (r314529) +++ head/biology/libsbml/Makefile Mon Mar 18 06:50:12 2013 (r314530) @@ -1,9 +1,5 @@ -# New ports collection makefile for: libsbml -# Date created: 29 May, 2009 -# Whom: Wen Heping <wenheping@gmail.com> -# +# Created by: Wen Heping <wenheping@gmail.com> # $FreeBSD$ -# PORTNAME= libsbml PORTVERSION= 4.2.0 @@ -13,12 +9,11 @@ MASTER_SITE_SUBDIR= sbml/${PORTNAME}/${P DISTNAME= ${PORTNAME}-${PORTVERSION}-src MAINTAINER= wen@FreeBSD.org -COMMENT= An API Library for Working with SBML File +COMMENT= API Library for Working with SBML File LIB_DEPENDS= xml2.5:${PORTSDIR}/textproc/libxml2 -OPTIONS= PYTHON "Support for Python" off \ - RUBY "Support for Ruby" off +OPTIONS_DEFINE= PYTHON RUBY USE_GMAKE= yes USE_ZIP= yes @@ -28,7 +23,9 @@ WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVER MAKE_JOBS_UNSAFE= yes .include <bsd.port.pre.mk> -.if defined(WITH_PYTHON) +.include <bsd.port.options.mk> + +.if ${PORT_OPTIONS:MPYTHON} .include "../../Mk/bsd.python.mk" BUILD_DEPENDS+= ${LOCALBASE}/bin/python:${PORTSDIR}/lang/python CONFIGURE_ARGS+= --with-python @@ -38,7 +35,7 @@ PLIST_SUB+= WITH_PYTHON="" \ PLIST_SUB+= WITH_PYTHON="@comment " .endif -.if defined(WITH_RUBY) +.if ${PORT_OPTIONS:MRUBY} .include "../../Mk/bsd.ruby.mk" BUILD_DEPENDS+= ${LOCALBASE}/bin/ruby:${PORTSDIR}/lang/ruby18 CONFIGURE_ARGS+= --with-ruby @@ -52,7 +49,7 @@ post-patch: ${WRKSRC}/Makefile.in post-install: -.if !defined(NOPORTEXAMPLES) +.if ${PORT_OPTIONS:MEXAMPLES} ${MKDIR} ${EXAMPLESDIR} cd ${WRKSRC}/examples \ && ${FIND} . -type d -exec ${MKDIR} ${EXAMPLESDIR}/\{} \; \
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201303180650.r2I6oDg5030940>