2009-05-28 23:36:10 +00:00
|
|
|
# New ports collection makefile for: libsbml
|
|
|
|
# Date created: 29 May, 2009
|
|
|
|
# Whom: Wen Heping <wenheping@gmail.com>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= libsbml
|
2010-10-08 02:06:53 +00:00
|
|
|
PORTVERSION= 4.2.0
|
2009-05-28 23:36:10 +00:00
|
|
|
CATEGORIES= biology devel
|
2009-09-23 01:06:29 +00:00
|
|
|
MASTER_SITES= SF
|
|
|
|
MASTER_SITE_SUBDIR= sbml/${PORTNAME}/${PORTVERSION}
|
2009-05-28 23:36:10 +00:00
|
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION}-src
|
|
|
|
|
2009-09-23 01:06:29 +00:00
|
|
|
MAINTAINER= wen@FreeBSD.org
|
2009-05-28 23:36:10 +00:00
|
|
|
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}
|
2009-11-20 22:53:09 +00:00
|
|
|
MAKE_JOBS_UNSAFE= yes
|
2009-05-28 23:36:10 +00:00
|
|
|
|
|
|
|
.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
|
|
|
|
|
2009-09-23 01:06:29 +00:00
|
|
|
post-patch:
|
|
|
|
${REINPLACE_CMD} -e 's#%%PREFIX%%#${PREFIX}#' \
|
|
|
|
${WRKSRC}/Makefile.in
|
|
|
|
|
2009-05-28 23:36:10 +00:00
|
|
|
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>
|