summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVolker Grabsch <vog@notjusthosting.com>2009-12-11 13:52:04 (GMT)
committerVolker Grabsch <vog@notjusthosting.com>2009-12-11 13:52:04 (GMT)
commit8b2cb099dddfbe0411524126f27dab7e238a3286 (patch)
tree78a8a98cf97ea2e3d4c662e368a9085c70e4fee9
parentc5eea46c5882996876a9322fcf2d3e851e8de386 (diff)
downloadmxe-8b2cb099dddfbe0411524126f27dab7e238a3286.zip
mxe-8b2cb099dddfbe0411524126f27dab7e238a3286.tar.gz
mxe-8b2cb099dddfbe0411524126f27dab7e238a3286.tar.bz2
add OpenSSL support to package postgresql
-rw-r--r--src/postgresql.mk14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/postgresql.mk b/src/postgresql.mk
index 3c96f09..171dafb 100644
--- a/src/postgresql.mk
+++ b/src/postgresql.mk
@@ -30,7 +30,7 @@ $(PKG)_FILE := postgresql-$($(PKG)_VERSION).tar.bz2
$(PKG)_WEBSITE := http://www.postgresql.org/
$(PKG)_URL := http://ftp2.nl.postgresql.org/source/v$($(PKG)_VERSION)/$($(PKG)_FILE)
$(PKG)_URL_2 := http://ftp10.us.postgresql.org/postgresql/source/v$($(PKG)_VERSION)/$($(PKG)_FILE)
-$(PKG)_DEPS := gcc zlib readline
+$(PKG)_DEPS := gcc zlib openssl readline
define $(PKG)_UPDATE
wget -q -O- 'http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/' | \
@@ -41,8 +41,14 @@ define $(PKG)_UPDATE
endef
define $(PKG)_BUILD
+ # The static OpenSSL libraries are in unix (not win32) naming style.
+ $(SED) 's,SSLEAY32,SSL,' -i '$(1)'/configure
+ $(SED) 's,ssleay32,ssl,' -i '$(1)'/configure
+ $(SED) 's,EAY32,CRYPTO,' -i '$(1)'/configure
+ $(SED) 's,eay32,crypto,' -i '$(1)'/configure
+ $(SED) 's,ssleay32,ssl,' -i '$(1)'/src/interfaces/libpq/Makefile
+ $(SED) 's,eay32,crypto,' -i '$(1)'/src/interfaces/libpq/Makefile
# Since we build only client libary, use bogus tzdata to satisfy configure.
- # We have to build the shared library, but we won't install it.
cd '$(1)' && ./configure \
--prefix='$(PREFIX)/$(TARGET)' \
--host='$(TARGET)' \
@@ -56,14 +62,14 @@ define $(PKG)_BUILD
--without-pam \
--without-ldap \
--without-bonjour \
- --without-openssl \
+ --with-openssl \
--with-readline \
--without-ossp-uuid \
--without-libxml \
--without-libxslt \
--with-zlib \
--with-system-tzdata=/dev/null \
- LIBS='-lsecur32'
+ LIBS='-lsecur32 -lws2_32 -lgdi32'
$(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=