diff src/postgresql.mk @ 2047:5828a4a777a2

package postgresql: replace sed with patch
author Mark Brand <mabrand@mabrand.nl>
date Mon, 24 Oct 2011 17:47:39 +0200
parents 99b4d1f0e484
children ea0ef211bc28
line wrap: on
line diff
--- a/src/postgresql.mk	Mon Oct 24 23:57:30 2011 +1100
+++ b/src/postgresql.mk	Mon Oct 24 17:47:39 2011 +0200
@@ -23,14 +23,8 @@
 endef
 
 define $(PKG)_BUILD
+    cd '$(1)' && autoconf
     cp -Rp '$(1)' '$(1).native'
-    # The static OpenSSL libraries are in unix (not win32) naming style.
-    $(SED) -i 's,SSLEAY32,SSL,' '$(1)'/configure
-    $(SED) -i 's,ssleay32,ssl,' '$(1)'/configure
-    $(SED) -i 's,EAY32,CRYPTO,' '$(1)'/configure
-    $(SED) -i 's,eay32,crypto,' '$(1)'/configure
-    $(SED) -i 's,ssleay32,ssl,' '$(1)'/src/interfaces/libpq/Makefile
-    $(SED) -i 's,eay32,crypto,' '$(1)'/src/interfaces/libpq/Makefile
     # Since we build only client libary, use bogus tzdata to satisfy configure.
     cd '$(1)' && ./configure \
         --prefix='$(PREFIX)/$(TARGET)' \
@@ -52,7 +46,7 @@
         --without-libxslt \
         --with-zlib \
         --with-system-tzdata=/dev/null \
-        LIBS='-lsecur32 -lws2_32 -lgdi32'
+        LIBS="-lsecur32 `'i686-pc-mingw32-pkg-config' openssl --libs`"
     $(MAKE) -C '$(1)'/src/interfaces/libpq -j '$(JOBS)' install haslibarule= shlib=
     $(MAKE) -C '$(1)'/src/port             -j '$(JOBS)'         haslibarule= shlib=
     $(MAKE) -C '$(1)'/src/bin/psql         -j '$(JOBS)' install haslibarule= shlib=