the Fink project is an effort to port
popular Unix programs to Mac OS X
Package: openbabel
Version: 2.2.3
Revision: 11
###
Depends: libopenbabel3-shlibs (>= %v-%r)
BuildDepends: <<
autoconf2.6,
automake1.11,
fink (>= 0.24.12),
libiconv-dev,
libstdinchi1-dev,
libtool2,
libxml2 (>= 2.6.30-1)
<<
Provides: babel
Conflicts: babel
Replaces: babel, openbabel-bin (<< 2.0.2-1)
###
Source: mirror:sourceforge:%n/%n-%v.tar.gz
Source-MD5: 7ea8845c54d6d3a9be378c78088af804
###
GCC: 4.0
###
PatchFile: %n-%v.patch
PatchFile-MD5: ebbb4e4d2e9a581dab068c7b27e23517
###
ConfigureParams: --enable-shared --enable-dependency-tracking --mandir=%p/share/man --disable-inchi
SetCFLAGS: -Wall -g -O2
SetCXXFLAGS: -Wall -g -O2
CompileScript: <<
autoreconf -fi
mv include/inchi_api.h include/inchi_api.h_UNUSED
./configure %c
make
<<
###
InstallScript: <<
make install DESTDIR=%d
<<
DocFiles: AUTHORS COPYING ChangeLog README THANKS
###
SplitOff: <<
Package: libopenbabel3-shlibs
Depends: <<
libiconv,
libstdinchi1-shlibs
<<
Files: <<
lib/libopenbabel.3*.dylib
lib/openbabel
share/openbabel
<<
Shlibs: <<
%p/lib/libopenbabel.3.dylib 4.0.0 %n (>= 2.2.3-1)
<<
DocFiles: AUTHORS COPYING ChangeLog README THANKS
<<
SplitOff3: <<
Package: libopenbabel3-dev
Depends: libopenbabel3-shlibs (= %v-%r)
Replaces: openbabel (<< 2.0.2-1), openbabel-dev
Conflicts: openbabel-dev
BuildDependsOnly: true
Files: <<
include
lib
<<
DocFiles: AUTHORS COPYING ChangeLog README THANKS
<<
###
Description: Chemical data converter/analysis tools
DescDetail: <<
Open Babel is a project designed to pick up where Babel left off, as a
cross-platform program and library designed to interconvert between many
file formats used in molecular modeling and computational chemistry.
Note: openbabel-common now absorbed by the -shlibs package.
<<
DescPackaging: <<
Former maintainer: Justin F. Hallett
Move modules to -shlibs (they are runtime-loaded by it, and in
a versioned dirctory now).
Borrow Fedora's patch to use external libstdinchi (rather than
expected libinchi)--it's same as included libinchi so no need
to build local. But hack to *only* use libstdinchi (more
deterministic than fallback to other). Also move included
inchi_api.h out of the way so compiler doesn't find it (want
external one)
<<
###
License: GPL
Maintainer: Daniel Macks
Homepage: http://openbabel.sourceforge.net/
diff -Nurd -x'*~' openbabel-2.2.3.orig/configure.in openbabel-2.2.3/configure.in
--- openbabel-2.2.3.orig/configure.in 2009-07-28 21:05:04.000000000 -0400
+++ openbabel-2.2.3/configure.in 2010-03-05 04:43:13.000000000 -0500
@@ -239,8 +239,11 @@
AM_PATH_XML2(2.6.5)
AM_CONDITIONAL(BUILD_XML, test x"$XML_LIBS" != "x")
-AC_CHECK_LIB(inchi, GetINCHI, LIBINCHI="-linchi", LIBINCHI="")
-AM_CONDITIONAL(BUILD_INCHI, test x"$LIBINCHI" = "x" -o "$inchi" = "yes")
+AC_CHECK_LIB(stdinchi, GetStdINCHI, LIBSTDINCHI="-lstdinchi", LIBSTDINCHI="")
+dnl AC_CHECK_LIB(inchi, GetINCHI, LIBINCHI="-linchi", LIBINCHI="")
+AM_CONDITIONAL(HAVE_INCHI, test x"$LIBINCHI" != "x" -o x"$LIBSTDINCHI" != "x" -o "$inchi" = "yes")
+AM_CONDITIONAL(HAVE_STDINCHI, test x"$LIBSTDINCHI" != "x")
+AM_CONDITIONAL(BUILD_INCHI, test "$inchi" = "yes")
AC_CHECK_LIB(z, inflateEnd, [zlib_cv_libz=yes], [zlib_cv_libz=no])
AC_CHECK_HEADER(zlib.h, [zlib_cv_zlib_h=yes], [zlib_cv_zlib_h=no])
diff -Nurd -x'*~' openbabel-2.2.3.orig/src/formats/Makefile.am openbabel-2.2.3/src/formats/Makefile.am
--- openbabel-2.2.3.orig/src/formats/Makefile.am 2009-07-09 09:05:02.000000000 -0400
+++ openbabel-2.2.3/src/formats/Makefile.am 2010-03-05 04:41:27.000000000 -0500
@@ -39,11 +39,17 @@
if !BUILD_SHARED
noinst_LTLIBRARIES = libformats.la
+if HAVE_INCHI
if BUILD_INCHI
libformats_la_LIBADD = inchi102/libinchi.la
else
+if HAVE_STDINCHI
+libformats_la_LIBADD = -lstdinchi
+else
libformats_la_LIBADD = -linchi
endif
+endif
+endif
libformats_la_SOURCES = \
APIInterface.cpp MCDLformat.cpp \
CSRformat.cpp PQSformat.cpp alchemyformat.cpp \
@@ -124,7 +130,7 @@
formats_LTLIBRARIES += chemdrawcdxformat.la chemkinformat.la \
rxnformat.la rsmiformat.la
endif
-if BUILD_INCHI
+if HAVE_INCHI
formats_LTLIBRARIES += inchiformat.la
endif
if BUILD_ZLIB
@@ -261,12 +267,18 @@
hinformat_la_LDFLAGS = -module -avoid-version -no-undefined $(win32ldflags) ../libopenbabel.la
inchiformat_la_SOURCES = inchiformat.cpp getinchi.cpp
+if HAVE_INCHI
if BUILD_INCHI
inchiformat_la_LDFLAGS = -module -avoid-version -no-undefined $(win32ldflags) ../libopenbabel.la inchi102/libinchi.la
else
inchiformat_la_LDFLAGS = -module -avoid-version -no-undefined $(win32ldflags) ../libopenbabel.la
+if HAVE_STDINCHI
+inchiformat_la_LIBADD = -lstdinchi
+else
inchiformat_la_LIBADD = -linchi
endif
+endif
+endif
jaguarformat_la_SOURCES = jaguarformat.cpp
jaguarformat_la_LDFLAGS = -module -avoid-version -no-undefined $(win32ldflags) ../libopenbabel.la