summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Lecher <jlec@gentoo.org>2010-10-27 17:19:45 +0000
committerJustin Lecher <jlec@gentoo.org>2010-10-27 17:19:45 +0000
commit6debd3b0bf26d9e24a41cae8f1c41658ef8681a3 (patch)
treee0760c35d6765f02c979dd69e5bc8f0bd9e9a400 /sci-chemistry
parentVersion Bump, support python abis (diff)
downloadhistorical-6debd3b0bf26d9e24a41cae8f1c41658ef8681a3.tar.gz
historical-6debd3b0bf26d9e24a41cae8f1c41658ef8681a3.tar.bz2
historical-6debd3b0bf26d9e24a41cae8f1c41658ef8681a3.zip
Version Bump, tinker support removed
Package-Manager: portage-2.2.0_alpha1/cvs/Linux x86_64
Diffstat (limited to 'sci-chemistry')
-rw-r--r--sci-chemistry/apbs/ChangeLog10
-rw-r--r--sci-chemistry/apbs/Manifest18
-rw-r--r--sci-chemistry/apbs/apbs-1.2.1b-r4.ebuild18
-rw-r--r--sci-chemistry/apbs/apbs-1.3.ebuild140
-rw-r--r--sci-chemistry/apbs/files/apbs-1.3-contrib.patch12
-rw-r--r--sci-chemistry/apbs/files/apbs-1.3-link.patch25
-rw-r--r--sci-chemistry/apbs/files/apbs-1.3-openmp.patch61
-rw-r--r--sci-chemistry/apbs/files/apbs-1.3-shared.patch96
8 files changed, 361 insertions, 19 deletions
diff --git a/sci-chemistry/apbs/ChangeLog b/sci-chemistry/apbs/ChangeLog
index 9cdb4283eaf1..e5ccc8e3b40e 100644
--- a/sci-chemistry/apbs/ChangeLog
+++ b/sci-chemistry/apbs/ChangeLog
@@ -1,6 +1,14 @@
# ChangeLog for sci-chemistry/apbs
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/apbs/ChangeLog,v 1.40 2010/07/09 16:09:03 jlec Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/apbs/ChangeLog,v 1.41 2010/10/27 17:19:45 jlec Exp $
+
+*apbs-1.3 (27 Oct 2010)
+
+ 27 Oct 2010; Justin Lecher <jlec@gentoo.org> apbs-1.2.1b-r4.ebuild,
+ +apbs-1.3.ebuild, +files/apbs-1.3-contrib.patch,
+ +files/apbs-1.3-link.patch, +files/apbs-1.3-openmp.patch,
+ +files/apbs-1.3-shared.patch:
+ Version Bump, tinker support removed
09 Jul 2010; Justin Lecher <jlec@gentoo.org> metadata.xml:
Update metadata.xml
diff --git a/sci-chemistry/apbs/Manifest b/sci-chemistry/apbs/Manifest
index b2fa076d1f0c..ec2c9850a291 100644
--- a/sci-chemistry/apbs/Manifest
+++ b/sci-chemistry/apbs/Manifest
@@ -9,14 +9,20 @@ AUX apbs-1.2.1b-multilib.patch 762 RMD160 24093fa4dec54c95882c77113dd37e59fc0ba5
AUX apbs-1.2.1b-openmp.patch 1471 RMD160 456d2b1b74a3cb403c7e77814bcb017e7726b578 SHA1 386ffbe0e68398168ede30a33706227e6da64e48 SHA256 ba91c8e780035c884e344c6c84c7bdbd606f3c9919a9aa803ff831d6f41bc905
AUX apbs-1.2.1b-parallelbuild.patch 371 RMD160 22369e3923307f5cc17602a4cab0326131ac3b72 SHA1 d0b775bf826cc96a799bf1ef9273b79de64164d0 SHA256 907caa55463f5dd0bfc3bbc890c0f97f70bab782c3f76938b59b03e34a9e448c
AUX apbs-1.2.1b-shared.patch 2508 RMD160 e122f33b7a64a70ebb17631e93085f982ff48074 SHA1 84d835d823e8fa82bc9aa7e274d63c59a4998a12 SHA256 9d35a22be4ea3cd1a0c821b25fbcaf0c44212a2004581e14a8245af4338d73f8
+AUX apbs-1.3-contrib.patch 402 RMD160 18bdf5ef5940e8cb3b610acbc3c855105cb2dca7 SHA1 956fdaebbd0f1b3c1b15f8d3c139ab532109bcf0 SHA256 fdddd8da9a333ae1b96942f3bd4ca0fd6d1be5a888369144d43e836dfdf0b280
+AUX apbs-1.3-link.patch 1578 RMD160 e103808470dd500d2077a27906ed4cc1f9ec3aee SHA1 1ea909005bb0ce6976978a93864e976146df381a SHA256 7261cb286599681669ce67b8c4cf376515db177ebece2aa555d730e1dd981284
+AUX apbs-1.3-openmp.patch 1843 RMD160 58030d378e217752c56b925e7e17ec4b4eb43e52 SHA1 d73cb3d1e061fd03b3785b29c093d8e0aabefc8a SHA256 e9810790f0ed06ce6948bc5b1eea496c23117139277fb04d8830bb064b370164
+AUX apbs-1.3-shared.patch 2871 RMD160 040ae70e0d7f9151efca275432ef92208c5d3ef4 SHA1 64a43ed1a7bacc96a848df5bb533013ee5aa9e3b SHA256 955bf488c5638f351c4c91766036ef7a2c3fac2e5c99a556b76d73be34d7d845
DIST apbs-1.2.1b-source.tar.gz 40647966 RMD160 4ba1f72a7f9adcf7b283dc18743488143025b398 SHA1 dc3e6933a987ff9fdf88db510db79b3dacb100d6 SHA256 7d088def1ed7689127eb64014ea44069b9d7bfc995941fe5800ff753d48c87be
-EBUILD apbs-1.2.1b-r4.ebuild 3771 RMD160 b61cbde00fbbe895143bf7e8b0fdf7c8be939f58 SHA1 c0324578dace543dc40af6176787d1593d963d40 SHA256 4b2c56077d308ba2643c536bf2a0c12b0448f2795d0787292e3dffee8149fd06
-MISC ChangeLog 6860 RMD160 9b20b3ffe650c012cb228782b409a7d2f7d7b465 SHA1 33ed7ba275f2ffa3a996b88ef11db1acfedceecb SHA256 472da1d3431ba1cd37e120a6b2d7437e93cd5bfbcfa6a5c60348fd44bb8770ec
+DIST apbs-1.3-source.tar.gz 48625351 RMD160 c075a747dc28f382f3a383a0944a1b20e0c8a9f1 SHA1 1494f36e35f2e4b1a18d4b22516fad4948c6391f SHA256 5fa5b597f7d5a3d9bb55429ec4fefc69e7d0f918d568c3c4a288088c0fde9ef2
+EBUILD apbs-1.2.1b-r4.ebuild 3541 RMD160 c45fce9c4a847495d0f77d15c5aa5867cbad8bc3 SHA1 53635842194acf3c9dc1eac5281bf92894c74635 SHA256 2d449cb42235431190e9ea848291c361ea4280fa7efbde2b06c34be90d043fe3
+EBUILD apbs-1.3.ebuild 3560 RMD160 18b2ea81031c6786c04616a5943c0f86cf432433 SHA1 f57c0d57c51ca2d55d7ea3ab7668121d8c26773d SHA256 ae4d27b4351e2f59460a8c3482150e1e23155892527c96807e8bd1975a58e3b5
+MISC ChangeLog 7138 RMD160 296ab0b11fa52223115161bb00745a9c03875e10 SHA1 c362f099c2c8571676bc339ab4745d04143673db SHA256 a57ef7e37406944b01bc854c0ff2a9a895106eff13e75147ff98e0fd7bf27edc
MISC metadata.xml 1012 RMD160 d2f1f8dfda6530d6927b84438d522aa96299b9db SHA1 292b22c76e37a9053da93c108e25e6661e8acfa5 SHA256 8eccbbce3f408f25d11c5b690d5dc814e422fcc00f472f0292e4a000a1f415e0
-----BEGIN PGP SIGNATURE-----
-Version: GnuPG v2.0.15 (GNU/Linux)
+Version: GnuPG v2.0.16 (GNU/Linux)
-iEYEARECAAYFAkw3SaQACgkQgAnW8HDreRazCACeOKlJs4RzTd7OkIprlHRd0QDW
-Z+8An3nvZnyIS4rTJI50L+HDsOmkHLZG
-=V/SZ
+iEYEARECAAYFAkzIXzcACgkQgAnW8HDreRY3DwCgmwyL+zFX6S4PAhm6EhZc/eE4
+mj0Anj6qkGNq/htJkFSKiZfsRIAQ67wo
+=5aiG
-----END PGP SIGNATURE-----
diff --git a/sci-chemistry/apbs/apbs-1.2.1b-r4.ebuild b/sci-chemistry/apbs/apbs-1.2.1b-r4.ebuild
index 34454d748029..151b2b833424 100644
--- a/sci-chemistry/apbs/apbs-1.2.1b-r4.ebuild
+++ b/sci-chemistry/apbs/apbs-1.2.1b-r4.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/apbs/apbs-1.2.1b-r4.ebuild,v 1.7 2010/07/09 13:36:47 fauli Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/apbs/apbs-1.2.1b-r4.ebuild,v 1.8 2010/10/27 17:19:45 jlec Exp $
EAPI="3"
@@ -18,7 +18,7 @@ SRC_URI="mirror://sourceforge/${PN}/${P}-source.tar.gz"
SLOT="0"
LICENSE="BSD"
-IUSE="arpack doc mpi openmp python tinker tools"
+IUSE="arpack doc mpi openmp python tools"
KEYWORDS="amd64 ppc x86 ~amd64-linux ~x86-linux"
DEPEND="dev-libs/maloc[mpi=]
@@ -81,21 +81,15 @@ src_configure() {
--with-blas=-lblas \
$(use_enable openmp) \
$(use_enable python) \
- $(use_enable tinker) \
$(use_enable tools) \
${myconf}
}
src_test() {
- if use tinker; then
- elog "tinker code make apbs to not reach the expected precission"
- elog "https://sourceforge.net/tracker/?func=detail&aid=3019465&group_id=148472&atid=771704"
- else
- export LC_NUMERIC=C
- cd examples && make test \
- || die "Tests failed"
- grep -q 'FAILED' "${S}"/examples/TESTRESULTS.log && die "Tests failed"
- fi
+ export LC_NUMERIC=C
+ cd examples && make test \
+ || die "Tests failed"
+ grep -q 'FAILED' "${S}"/examples/TESTRESULTS.log && die "Tests failed"
}
src_install() {
diff --git a/sci-chemistry/apbs/apbs-1.3.ebuild b/sci-chemistry/apbs/apbs-1.3.ebuild
new file mode 100644
index 000000000000..20063b3c0a8e
--- /dev/null
+++ b/sci-chemistry/apbs/apbs-1.3.ebuild
@@ -0,0 +1,140 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/apbs/apbs-1.3.ebuild,v 1.1 2010/10/27 17:19:45 jlec Exp $
+
+EAPI="3"
+
+PYTHON_DEPEND="python? 2"
+FORTRAN="g77 gfortran ifc"
+
+inherit autotools eutils flag-o-matic fortran python versionator
+
+MY_PV=$(get_version_component_range 1-3)
+MY_P="${PN}-${MY_PV}"
+
+DESCRIPTION="Software for evaluating the electrostatic properties of nanoscale biomolecular systems"
+HOMEPAGE="http://apbs.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}-source.tar.gz"
+
+SLOT="0"
+LICENSE="BSD"
+IUSE="arpack doc mpi openmp python tools"
+KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux"
+
+DEPEND="dev-libs/maloc[mpi=]
+ virtual/blas
+ sys-libs/readline
+ arpack? ( sci-libs/arpack )
+ mpi? ( virtual/mpi )"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}"/"${MY_P}-source"
+
+pkg_setup() {
+ use python && python_set_active_version 2
+ fortran_pkg_setup
+}
+
+src_prepare() {
+ epatch \
+ "${FILESDIR}"/${P}-openmp.patch \
+ "${FILESDIR}"/${PN}-1.2.1b-install-fix.patch \
+ "${FILESDIR}"/${P}-contrib.patch \
+ "${FILESDIR}"/${P}-link.patch \
+ "${FILESDIR}"/${PN}-1.2.1b-autoconf-2.64.patch \
+ "${FILESDIR}"/${P}-shared.patch \
+ "${FILESDIR}"/${PN}-1.2.1b-multilib.patch \
+ "${FILESDIR}"/${PN}-1.2.1b-parallelbuild.patch
+ sed "s:GENTOO_PKG_NAME:${PN}:g" \
+ -i Makefile.am || die "Cannot correct package name"
+ # this test is broken
+ sed '/ion-pmf/d' -i examples/Makefile.am || die
+ eautoreconf
+ find . -name "._*" -exec rm -f '{}' \;
+}
+
+src_configure() {
+ local myconf="--docdir=${EPREFIX}/usr/share/doc/${PF}"
+ use arpack && myconf="${myconf} --with-arpack=${EPREFIX}/usr/$(get_libdir)"
+
+ # check which mpi version is installed and tell configure
+ if use mpi; then
+ export CC="${EPREFIX}/usr/bin/mpicc"
+ export F77="${EPREFIX}/usr/bin/mpif77"
+
+ if has_version sys-cluster/mpich; then
+ myconf="${myconf} --with-mpich=${EPREFIX}/usr"
+ elif has_version sys-cluster/mpich2; then
+ myconf="${myconf} --with-mpich2=${EPREFIX}/usr"
+ elif has_version sys-cluster/openmpi; then
+ myconf="${myconf} --with-openmpi=${EPREFIX}/usr"
+ fi
+ fi || die "Failed to select proper mpi implementation"
+
+ # we need the tools target for python
+ if use python && ! use tools; then
+ myconf="${myconf} --enable-tools"
+ fi
+
+ econf \
+ --disable-maloc-rebuild \
+ --enable-shared \
+ --with-blas=-lblas \
+ $(use_enable openmp) \
+ $(use_enable python) \
+ $(use_enable tools) \
+ ${myconf}
+}
+
+src_test() {
+ export LC_NUMERIC=C
+ cd examples && make test \
+ || die "Tests failed"
+ grep -q 'FAILED' "${S}"/examples/TESTRESULTS.log && die "Tests failed"
+}
+
+src_install() {
+ emake -j1 DESTDIR="${D}" install \
+ || die "make install failed"
+
+ if use tools; then
+ mv tools/mesh/{,mesh-}analysis || die
+ dobin tools/mesh/* || die
+
+ if use arpack; then
+ dobin tools/arpack/* || die
+ fi
+
+ insinto /usr/share/${PN}
+ doins -r tools/conversion || die
+ doins -r tools/visualization/opendx || die
+
+ dobin tools/manip/{born,coulomb} || die
+
+ doins -r tools/matlab || die
+ fi
+
+ insinto $(python_get_sitedir)/${PN}
+ doins tools/manip/*.py || die
+
+ if use python && ! use mpi; then
+ insinto $(python_get_sitedir)/${PN}
+ doins tools/python/{*.py,*.pqr,*.so} || die
+ doins tools/python/*/{*.py,*.so} || die
+ fi
+
+ dodoc AUTHORS INSTALL README NEWS ChangeLog \
+ || die "Failed to install docs"
+
+ if use doc; then
+ dohtml -r doc/* || die "Failed to install html docs"
+ fi
+}
+
+pkg_postinst() {
+ python_mod_optimize ${PN}
+}
+
+pkg_postrm() {
+ python_mod_cleanup ${PN}
+}
diff --git a/sci-chemistry/apbs/files/apbs-1.3-contrib.patch b/sci-chemistry/apbs/files/apbs-1.3-contrib.patch
new file mode 100644
index 000000000000..9971f032dcbc
--- /dev/null
+++ b/sci-chemistry/apbs/files/apbs-1.3-contrib.patch
@@ -0,0 +1,12 @@
+diff --git a/contrib/Makefile.am b/contrib/Makefile.am
+index bddb563..6a882ca 100644
+--- a/contrib/Makefile.am
++++ b/contrib/Makefile.am
+@@ -9,6 +9,6 @@
+ AUTOMAKE_OPTIONS = no-dependencies
+ SUFFIXES = .H .h .C .c .f .o
+
+-always_built_SUBDIRS = @apbs_do_blas@ @apbs_do_maloc@ pmgZ aqua opal @zlib@
++always_built_SUBDIRS = @apbs_do_blas@ @apbs_do_maloc@ pmgZ aqua
+
+ SUBDIRS = $(always_built_SUBDIRS) .
diff --git a/sci-chemistry/apbs/files/apbs-1.3-link.patch b/sci-chemistry/apbs/files/apbs-1.3-link.patch
new file mode 100644
index 000000000000..54b66235a2d0
--- /dev/null
+++ b/sci-chemistry/apbs/files/apbs-1.3-link.patch
@@ -0,0 +1,25 @@
+diff --git a/tools/python/Makefile.am b/tools/python/Makefile.am
+index 73d25f7..431640c 100644
+--- a/tools/python/Makefile.am
++++ b/tools/python/Makefile.am
+@@ -15,5 +15,5 @@ SUBDIRS = vgrid
+
+ noinst_PROGRAMS = _apbslib.so
+ _apbslib_so_SOURCES = apbslib.c
+-_apbslib_so_LINK = $(PY_CC) $(PY_LINKFLAGS) -o $@ $(PY_SHARED)
+-_apbslib_so_LDADD = ${top_builddir}/bin/.libs/libapbsmainroutines.a ${top_builddir}/src/aaa_lib/.libs/libapbs.a ${top_builddir}/contrib/lib/libmaloc.a ${top_builddir}/contrib/blas/.libs/libapbsblas.a $(PY_LDFLAGS) ${z_lib}
++_apbslib_so_LINK = $(PY_CC) $(PY_LINKFLAGS) $(LDFLAGS) -o $@ $(PY_SHARED)
++_apbslib_so_LDADD = ${top_builddir}/bin/.libs/libapbsmainroutines.a ${top_builddir}/src/aaa_lib/.libs/libapbs.a $(PY_LDFLAGS) ${z_lib}
+diff --git a/tools/python/vgrid/Makefile.am b/tools/python/vgrid/Makefile.am
+index b573268..b31c9b6 100644
+--- a/tools/python/vgrid/Makefile.am
++++ b/tools/python/vgrid/Makefile.am
+@@ -15,6 +15,6 @@ CLEANFILES = _vgrid.so
+ if PY_PRESENT
+ noinst_PROGRAMS = _vgrid.so
+ _vgrid_so_SOURCES = vgridlib.c
+- _vgrid_so_LINK = $(PY_CC) $(PY_LINKFLAGS) -o $@ $(PY_SHARED)
+- _vgrid_so_LDADD = ${top_builddir}/bin/.libs/libapbsmainroutines.a ${top_builddir}/src/aaa_lib/.libs/libapbs.a $(PY_LDFLAGS) ${top_builddir}/contrib/lib/libmaloc.a @lib_list@
++ _vgrid_so_LINK = $(PY_CC) $(PY_LINKFLAGS) $(LDFLAGS) -o $@ $(PY_SHARED)
++ _vgrid_so_LDADD = ${top_builddir}/bin/.libs/libapbsmainroutines.a ${top_builddir}/src/aaa_lib/.libs/libapbs.a @lib_list@
+ endif
diff --git a/sci-chemistry/apbs/files/apbs-1.3-openmp.patch b/sci-chemistry/apbs/files/apbs-1.3-openmp.patch
new file mode 100644
index 000000000000..d5aefd893325
--- /dev/null
+++ b/sci-chemistry/apbs/files/apbs-1.3-openmp.patch
@@ -0,0 +1,61 @@
+diff --git a/configure.ac b/configure.ac
+index 6020fbf..73fbe21 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -982,7 +982,6 @@ AC_MSG_CHECKING([for --disable-tools])
+ AC_ARG_ENABLE(
+ [tools],
+ AS_HELP_STRING([--disable-tools],[disable tool compilation]),,
+- [enable_tools=yes]
+ )
+ apbs_do_tools=""
+ if test x"$enable_tools" != "xno"; then
+@@ -1048,7 +1047,6 @@ AC_MSG_CHECKING([--disable-zlib])
+ AC_ARG_ENABLE(
+ [zlib],
+ AS_HELP_STRING([--disable-zlib], [disable zlib compilation]),,
+- [disable_zlib=no]
+ )
+ if test x"$disable_zlib" == "xno"; then
+ AC_MSG_RESULT([yes])
+@@ -1160,11 +1158,8 @@ AC_MSG_CHECKING([for --disable-openmp])
+ AC_ARG_ENABLE(
+ [openmp],
+ AS_HELP_STRING([--disable-openmp],[disables OpenMP compiler support]),,
+- [disable_openmp=yes]
+ )
+-if test x"$disable_openmp" != "xyes"; then
+- AC_MSG_RESULT([yes])
+-else
++if test x"$disable_openmp" != "xno"; then
+ AC_MSG_RESULT([no])
+ if [[ "${CC}" = "icc" ] && [ "${F77}" = "ifort" ]]; then
+ CFLAGS="${CFLAGS} -openmp"
+@@ -1172,20 +1167,25 @@ else
+ LDFLAGS="${LDFLAGS} -static-intel"
+ fi
+
+- if [[ "${CC}" = "gcc" ] && [ "${F77}" = "gfortran" ]]; then
+- gcc_version=`gcc --version`
++ if [[[ "${CC}" = *gcc* ]]] && [[[ "${F77}" = *gfortran* ]]]; then
++ gcc_version=`${CC} --version`
+ gcc_complete_version=`echo ${gcc_version} | awk '{printf("%s",$3)}' | awk -F'.' '{print $1$2}'`
+
+ if test ["${gcc_complete_version}" -ge 42]; then
+ CFLAGS="${CFLAGS} -fopenmp"
+ FFLAGS="${FFLAGS} -fopenmp"
++ OPENMP_LIBS="-lgomp"
+ else
+ AC_MSG_RESULT([WARNING])
+ AC_MSG_RESULT([WARNING Version of gcc/gfortran does not support OpenMP. Disabling.])
+ AC_MSG_RESULT([WARNING])
+ fi
+ fi
++else
++ AC_MSG_RESULT([yes])
++ disable_openmp=yes
+ fi
++AC_SUBST(OPENMP_LIBS)
+
+ dnl # -----------------------
+ dnl # CHECK FOR WINDOWS SPECIFIC LIBRARIES
diff --git a/sci-chemistry/apbs/files/apbs-1.3-shared.patch b/sci-chemistry/apbs/files/apbs-1.3-shared.patch
new file mode 100644
index 000000000000..1a237b066345
--- /dev/null
+++ b/sci-chemistry/apbs/files/apbs-1.3-shared.patch
@@ -0,0 +1,96 @@
+diff --git a/Makefile.am b/Makefile.am
+index b400095..9e6d698 100644
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -16,6 +16,9 @@ SUFFIXES = .H .h .C .cc .c .f .o
+
+ SUBDIRS = contrib src bin @apbs_do_tools@
+
++pkgconfigdir = @pkgconfigdir@
++pkgconfig_DATA = apbs.pc
++
+ distclean-local: clean-local
+
+ clean-local: clean-ac
+diff --git a/apbs.pc.in b/apbs.pc.in
+new file mode 100644
+index 0000000..c177512
+--- /dev/null
++++ b/apbs.pc.in
+@@ -0,0 +1,11 @@
++prefix=@prefix@
++exec_prefix=@exec_prefix@
++libdir=@libdir@
++includedir=@includedir@/apbs
++
++Name: apbs
++Description: apbs
++Version: @PACKAGE_VERSION@
++Libs: -L${libdir} -lapbsmainroutines -lapbs
++Libs.private: @LIBS@
++Cflags: -I${includedir}
+diff --git a/configure.ac b/configure.ac
+index 73fbe21..31a0053 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -71,7 +71,10 @@ AM_CONFIG_HEADER(src/aaa_inc/apbscfg.h)
+ AC_CONFIG_AUX_DIR(config)
+ AC_PREFIX_DEFAULT(${HOME})
+ AC_CANONICAL_SYSTEM
+-
++LT_INIT
++LT_LANG([Fortran 77])
++AC_F77_DUMMY_MAIN
++AC_F77_LIBRARY_LDFLAGS
+ dnl ##########################################################################
+ dnl 1. automake initialization (uncomment only if rebuilding Makefile.in's)
+ dnl ##########################################################################
+@@ -1037,6 +1040,7 @@ else
+ blas_lib=${contrib_path}/blas/.libs/libapbsblas.a
+ fi
+ AC_SUBST(apbs_do_blas)
++AC_SUBST(blas_lib)
+
+ dnl # --------------------------------
+ dnl # HANDLE ZLIB COMPILATION
+@@ -1284,6 +1288,17 @@ else
+ fi
+ AC_SUBST(apbs_build_libraries)
+
++# Additional arguments (and substitutions)
++# Allow the pkg-config directory to be set
++AC_ARG_WITH(pkgconfigdir,
++ AC_HELP_STRING([--with-pkgconfigdir],
++ [Use the specified pkgconfig dir (default is libdir/pkgconfig)]),
++ [pkgconfigdir=${withval}],
++ [pkgconfigdir='${libdir}/pkgconfig'])
++
++AC_SUBST([pkgconfigdir])
++AC_MSG_NOTICE([pkgconfig directory is ${pkgconfigdir}])
++
+ dnl ##########################################################################
+ dnl 11. generate the makefiles
+ dnl ##########################################################################
+@@ -1332,6 +1347,8 @@ AC_CONFIG_FILES([
+
+ bin/Makefile
+
++ apbs.pc:apbs.pc.in
++
+ ])
+ AC_OUTPUT
+
+diff --git a/src/aaa_lib/Makefile.am b/src/aaa_lib/Makefile.am
+index 2c5026b..d8d0650 100644
+--- a/src/aaa_lib/Makefile.am
++++ b/src/aaa_lib/Makefile.am
+@@ -22,7 +22,8 @@ libdir = ${prefix}/lib
+ lib_LTLIBRARIES = libapbs.la
+
+ libapbs_la_SOURCES = apbs_link.c
+-libapbs_la_LIBADD = ${GEN_LIBS} ${FEM_LIBS} ${MG_LIBS} ${PMGZ_LIBS} ${AQUA_LIBS} ${BLAS_LIBS}
++libapbs_la_LIBADD = ${GEN_LIBS} ${FEM_LIBS} ${MG_LIBS} ${PMGZ_LIBS} ${AQUA_LIBS} ${BLAS_LIBS} \
++ @OPENMP_LIBS@ @maloc_lib@
+ libapbs_la_LDFLAGS = -version-info ${APBS_VERSION}
+
+ INCLUDES = -I${top_srcdir}/src/generic -I${top_srcdir}/src/mg -I${top_srcdir}/src/fem @inc_list@