1 |
jlec 10/11/04 09:40:09 |
2 |
|
3 |
Modified: apbs-1.3-shared.patch apbs-1.2.1b-multilib.patch |
4 |
Added: apbs-1.3-zlib.patch apbs-1.3-python.patch |
5 |
Log: |
6 |
Fix compilation of python module, fix support for zlib |
7 |
|
8 |
(Portage version: 2.2.0_alpha3/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.3 sci-chemistry/apbs/files/apbs-1.3-shared.patch |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/apbs/files/apbs-1.3-shared.patch?rev=1.3&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/apbs/files/apbs-1.3-shared.patch?rev=1.3&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/apbs/files/apbs-1.3-shared.patch?r1=1.2&r2=1.3 |
16 |
|
17 |
Index: apbs-1.3-shared.patch |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/sci-chemistry/apbs/files/apbs-1.3-shared.patch,v |
20 |
retrieving revision 1.2 |
21 |
retrieving revision 1.3 |
22 |
diff -u -r1.2 -r1.3 |
23 |
--- apbs-1.3-shared.patch 1 Nov 2010 17:25:23 -0000 1.2 |
24 |
+++ apbs-1.3-shared.patch 4 Nov 2010 09:40:09 -0000 1.3 |
25 |
@@ -90,7 +90,7 @@ |
26 |
libapbs_la_SOURCES = apbs_link.c |
27 |
-libapbs_la_LIBADD = ${GEN_LIBS} ${FEM_LIBS} ${MG_LIBS} ${PMGZ_LIBS} ${AQUA_LIBS} ${BLAS_LIBS} |
28 |
+libapbs_la_LIBADD = ${GEN_LIBS} ${FEM_LIBS} ${MG_LIBS} ${PMGZ_LIBS} ${AQUA_LIBS} ${BLAS_LIBS} \ |
29 |
-+ @OPENMP_LIBS@ @maloc_lib@ @mc_lib@ |
30 |
++ @OPENMP_LIBS@ @maloc_lib@ @mc_lib@ @z_lib@ |
31 |
libapbs_la_LDFLAGS = -version-info ${APBS_VERSION} |
32 |
|
33 |
INCLUDES = -I${top_srcdir}/src/generic -I${top_srcdir}/src/mg -I${top_srcdir}/src/fem @inc_list@ |
34 |
|
35 |
|
36 |
|
37 |
1.2 sci-chemistry/apbs/files/apbs-1.2.1b-multilib.patch |
38 |
|
39 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/apbs/files/apbs-1.2.1b-multilib.patch?rev=1.2&view=markup |
40 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/apbs/files/apbs-1.2.1b-multilib.patch?rev=1.2&content-type=text/plain |
41 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/apbs/files/apbs-1.2.1b-multilib.patch?r1=1.1&r2=1.2 |
42 |
|
43 |
Index: apbs-1.2.1b-multilib.patch |
44 |
=================================================================== |
45 |
RCS file: /var/cvsroot/gentoo-x86/sci-chemistry/apbs/files/apbs-1.2.1b-multilib.patch,v |
46 |
retrieving revision 1.1 |
47 |
retrieving revision 1.2 |
48 |
diff -u -r1.1 -r1.2 |
49 |
--- apbs-1.2.1b-multilib.patch 15 Jun 2010 18:02:50 -0000 1.1 |
50 |
+++ apbs-1.2.1b-multilib.patch 4 Nov 2010 09:40:09 -0000 1.2 |
51 |
@@ -20,13 +20,3 @@ |
52 |
lib_LTLIBRARIES = libapbsmainroutines.la |
53 |
libapbsmainroutines_la_SOURCES = routines.c |
54 |
libapbsmainroutines_la_LDFLAGS = -version-info ${APBS_VERSION} |
55 |
---- contrib/maloc/src/aaa_lib/Makefile.am |
56 |
-+++ contrib/maloc/src/aaa_lib/Makefile.am |
57 |
-@@ -49,7 +49,6 @@ |
58 |
- LIBEFENCE = |
59 |
- endif |
60 |
- |
61 |
--libdir = ${prefix}/lib |
62 |
- lib_LTLIBRARIES = libmaloc.la ${LIBEFENCE} |
63 |
- |
64 |
- libmaloc_la_SOURCES = |
65 |
|
66 |
|
67 |
|
68 |
1.1 sci-chemistry/apbs/files/apbs-1.3-zlib.patch |
69 |
|
70 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/apbs/files/apbs-1.3-zlib.patch?rev=1.1&view=markup |
71 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/apbs/files/apbs-1.3-zlib.patch?rev=1.1&content-type=text/plain |
72 |
|
73 |
Index: apbs-1.3-zlib.patch |
74 |
=================================================================== |
75 |
diff --git a/configure.ac b/configure.ac |
76 |
index 31a0053..7301f0f 100644 |
77 |
--- a/configure.ac |
78 |
+++ b/configure.ac |
79 |
@@ -1052,10 +1053,10 @@ AC_ARG_ENABLE( |
80 |
[zlib], |
81 |
AS_HELP_STRING([--disable-zlib], [disable zlib compilation]),, |
82 |
) |
83 |
-if test x"$disable_zlib" == "xno"; then |
84 |
+if test x"$disable_zlib" == "xyes"; then |
85 |
AC_MSG_RESULT([yes]) |
86 |
zlib="zlib" |
87 |
- z_lib=${contrib_path}/zlib/.libs/libz.a |
88 |
+ z_lib=-lz |
89 |
AC_DEFINE([HAVE_ZLIB], [], [have zlib compression enabled]) |
90 |
fi |
91 |
AC_SUBST(zlib) |
92 |
@@ -1307,12 +1308,8 @@ AC_CONFIG_FILES([ |
93 |
Makefile |
94 |
|
95 |
contrib/Makefile |
96 |
- contrib/blas/Makefile |
97 |
contrib/pmgZ/Makefile |
98 |
contrib/aqua/Makefile |
99 |
- contrib/opal/Makefile |
100 |
- contrib/opal/ZSI/Makefile |
101 |
- contrib/zlib/Makefile |
102 |
|
103 |
tools/Makefile |
104 |
tools/mesh/Makefile |
105 |
diff --git a/src/mg/vgrid.c b/src/mg/vgrid.c |
106 |
index d183bb2..e0669ab 100644 |
107 |
--- a/src/mg/vgrid.c |
108 |
+++ b/src/mg/vgrid.c |
109 |
@@ -432,7 +432,7 @@ VPUBLIC int Vgrid_gradient(Vgrid *thee, double pt[3], double grad[3]) { |
110 |
/////////////////////////////////////////////////////////////////////////// */ |
111 |
#ifdef HAVE_ZLIB |
112 |
#define off_t long |
113 |
-#include "../../contrib/zlib/zlib.h" |
114 |
+#include <zlib.h> |
115 |
#endif |
116 |
VPUBLIC int Vgrid_readGZ(Vgrid *thee, const char *fname) { |
117 |
|
118 |
|
119 |
|
120 |
|
121 |
1.1 sci-chemistry/apbs/files/apbs-1.3-python.patch |
122 |
|
123 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/apbs/files/apbs-1.3-python.patch?rev=1.1&view=markup |
124 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/apbs/files/apbs-1.3-python.patch?rev=1.1&content-type=text/plain |
125 |
|
126 |
Index: apbs-1.3-python.patch |
127 |
=================================================================== |
128 |
diff --git a/configure.ac b/configure.ac |
129 |
index 31a0053..7301f0f 100644 |
130 |
--- a/configure.ac |
131 |
+++ b/configure.ac |
132 |
@@ -585,6 +585,7 @@ if test x"$enable_python" != "xno"; then |
133 |
PY_SHARED="-shared" |
134 |
CC="${CC} -fPIC" |
135 |
F77="${F77} -fPIC" |
136 |
+ PY_LDFLAGS="-lpython$PY_VERSION" |
137 |
;; |
138 |
irix*) |
139 |
PY_SHARED="-shared" |
140 |
diff --git a/tools/python/Makefile.am b/tools/python/Makefile.am |
141 |
index 431640c..2c1fbea 100644 |
142 |
--- a/tools/python/Makefile.am |
143 |
+++ b/tools/python/Makefile.am |
144 |
@@ -16,4 +16,4 @@ SUBDIRS = vgrid |
145 |
noinst_PROGRAMS = _apbslib.so |
146 |
_apbslib_so_SOURCES = apbslib.c |
147 |
_apbslib_so_LINK = $(PY_CC) $(PY_LINKFLAGS) $(LDFLAGS) -o $@ $(PY_SHARED) |
148 |
-_apbslib_so_LDADD = ${top_builddir}/bin/.libs/libapbsmainroutines.a ${top_builddir}/src/aaa_lib/.libs/libapbs.a $(PY_LDFLAGS) ${z_lib} |
149 |
+_apbslib_so_LDADD = ${top_builddir}/bin/.libs/libapbsmainroutines.a ${top_builddir}/src/aaa_lib/.libs/libapbs.a $(PY_LDFLAGS) ${z_lib} @OPENMP_LIBS@ @maloc_lib@ @mc_lib@ |