aboutsummaryrefslogtreecommitdiff
path: root/biology/libsbml
diff options
context:
space:
mode:
authorJason Helfman <jgh@FreeBSD.org>2013-03-18 06:50:12 +0000
committerJason Helfman <jgh@FreeBSD.org>2013-03-18 06:50:12 +0000
commit21ff3eb3b79b9d1d452ce762f8b1e01cd8e8a6ad (patch)
tree0a7df103fc38449c80dc482039841eb3244564d8 /biology/libsbml
parentaa6aea716da228d0154786727f7050dbcd4d5d06 (diff)
downloadports-21ff3eb3b79b9d1d452ce762f8b1e01cd8e8a6ad.tar.gz
ports-21ff3eb3b79b9d1d452ce762f8b1e01cd8e8a6ad.zip
- adoption of optionsNG
- trim historical header - tighten COMMENT Approved by: portmgr (miwi)
Notes
Notes: svn path=/head/; revision=314530
Diffstat (limited to 'biology/libsbml')
-rw-r--r--biology/libsbml/Makefile19
1 files changed, 8 insertions, 11 deletions
diff --git a/biology/libsbml/Makefile b/biology/libsbml/Makefile
index 099e3e757a14..ea6926109c35 100644
--- a/biology/libsbml/Makefile
+++ b/biology/libsbml/Makefile
@@ -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}/${PORTVERSION}
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}-${PORTVERSION}
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}/\{} \; \