043ce69d39
manipulate, translate, and validate SBML files and data streams. It is not an application itself (though it does come with example programs), but rather a library you can embed in your own applications. LibSBML understands all Levels and Versions of SBML, as well as the SBML Layout proposal by Gauges, Rost, Sahle and Wegner. It's written in ISO C and C++ but can be used from all the languages listed in the right-hand box. WWW: http://www.sbml.org/ PR: ports/135022 Submitted by: Wen Heping <wenheping at gmail.com>
56 lines
1.4 KiB
Makefile
56 lines
1.4 KiB
Makefile
# New ports collection makefile for: libsbml
|
|
# Date created: 29 May, 2009
|
|
# Whom: Wen Heping <wenheping@gmail.com>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= libsbml
|
|
PORTVERSION= 3.3.2
|
|
CATEGORIES= biology devel
|
|
MASTER_SITES= SF
|
|
MASTER_SITE_SUBDIR= sbml
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION}-src
|
|
|
|
MAINTAINER= wenheping@gmail.com
|
|
COMMENT= An 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
|
|
|
|
USE_GMAKE= yes
|
|
USE_ZIP= yes
|
|
GNU_CONFIGURE= yes
|
|
USE_LDCONFIG= yes
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
|
|
|
.include <bsd.port.pre.mk>
|
|
.if defined(WITH_PYTHON)
|
|
.include "../../Mk/bsd.python.mk"
|
|
BUILD_DEPENDS+= ${LOCALBASE}/bin/python:${PORTSDIR}/lang/python
|
|
CONFIGURE_ARGS+= --with-python
|
|
PLIST_SUB+= WITH_PYTHON="" \
|
|
SBML_EGGINFO=${PORTNAME}-${PORTVERSION}-${PYTHON_VERSION:S/thon//}.egg-info
|
|
.else
|
|
PLIST_SUB+= WITH_PYTHON="@comment "
|
|
.endif
|
|
|
|
.if defined(WITH_RUBY)
|
|
.include "../../Mk/bsd.ruby.mk"
|
|
BUILD_DEPENDS+= ${LOCALBASE}/bin/ruby:${PORTSDIR}/lang/ruby18
|
|
CONFIGURE_ARGS+= --with-ruby
|
|
PLIST_SUB+= WITH_RUBY=""
|
|
.else
|
|
PLIST_SUB+= WITH_RUBY="@comment "
|
|
.endif
|
|
|
|
post-install:
|
|
.if !defined(NOPORTEXAMPLES)
|
|
${MKDIR} ${EXAMPLESDIR}
|
|
cd ${WRKSRC}/examples \
|
|
&& ${FIND} . -type d -exec ${MKDIR} ${EXAMPLESDIR}/\{} \; \
|
|
&& ${FIND} . -type f -exec ${INSTALL_DATA} \{} ${EXAMPLESDIR}/\{} \;
|
|
.endif
|
|
.include <bsd.port.post.mk>
|