Ticket #12851: libwwwopensslfix

File libwwwopensslfix, 2.3 KB (added by frew@…, 17 years ago)

Patch to make libwww happy with MacPort's OpenSSL

Line 
1--- Portfile    Mon Oct 15 17:16:23 2007 -0700
2+++ Portfile    Tue Oct 16 01:47:22 2007 -0700
3@@ -31,7 +31,7 @@ checksums       [suffix ${distname}] \
4                 ltmain13 \
5                     md5 e094ae92724c4015dbab97de151c2525
6 
7-patchfiles      patch-configure
8+patchfiles      patch-configure patch-libwwwopenssl
9 
10 post-patch {
11     system "cp ${distpath}/ltconfig13 ${worksrcpath}/config/ltconfig"
12@@ -41,7 +41,7 @@ configure.args  --enable-shared \
13 configure.args  --enable-shared \
14                 --enable-static \
15                 --with-zlib \
16-                --with-ssl
17+                --with-ssl="/opt/local"
18 
19 variant expat {
20     depends_build-append    lib:libexpat.0:expat
21diff -r 4ff8ad9a7e9a -r 26b655122f65 files/patch-configure
22--- files/patch-configure       Mon Oct 15 17:16:23 2007 -0700
23+++ files/patch-configure       Tue Oct 16 01:47:22 2007 -0700
24@@ -1,5 +1,5 @@
25---- configure  Wed May 23 08:48:30 2001
26-+++ configure  Wed May 23 08:50:29 2001
27+--- configure.orig     2007-10-16 01:18:03.000000000 -0700
28++++ configure  2007-10-16 01:22:14.000000000 -0700
29 @@ -3284,16 +3284,16 @@
30  fi
31  rm -f conftest*
32@@ -26,3 +26,18 @@
33  done
34 
35  for ac_hdr in arpa/inet.h inet.h
36+@@ -7610,10 +7610,12 @@
37+     ;;
38+   *)
39+     if test "x$withval" = "xyes"; then
40+-      withval=$ssllib
41++      LIBS="$LIBS $ssllib"
42+       SSLINC=$sslinc
43++    else
44++      LIBS="$LIBS -L$withval/lib -lssl -lcrypto"
45++      SSLINC="-I$withval/include/openssl"
46+     fi
47+-    LIBS="$LIBS $withval"
48+     cat > conftest.$ac_ext <<EOF
49+ #line 7619 "configure"
50+ #include "confdefs.h"
51diff -r 4ff8ad9a7e9a -r 26b655122f65 files/patch-libwwwopenssl
52--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
53+++ files/patch-libwwwopenssl   Tue Oct 16 01:47:22 2007 -0700
54@@ -0,0 +1,11 @@
55+--- Library/src/SSL/Makefile.in.orig   2007-10-16 01:30:17.000000000 -0700
56++++ Library/src/SSL/Makefile.in        2007-10-16 01:31:04.000000000 -0700
57+@@ -155,7 +155,7 @@
58+ LDADD =       libwwwssl.la
59+
60+
61+-INCLUDES =    -I/usr/local/include    -I${top_srcdir}/modules/md5     -I${top_srcdir}/modules/expat/xmlparse  -I$(top_srcdir)/Library/src     @SSLINC@
62++INCLUDES =    @SSLINC@        -I/usr/local/include    -I${top_srcdir}/modules/md5     -I${top_srcdir}/modules/expat/xmlparse  -I$(top_srcdir)/Library/src
63+
64+
65+ BUILT_SOURCES =       WWWSSL.h        HTSSL.h         HTSSLMan.h      HTSSLReader.h   HTSSLWriter.h   HTSSLhttps.h