Skip to content
This repository has been archived by the owner on Sep 29, 2022. It is now read-only.

Commit

Permalink
Update postgresql-9.3 with readline support and attempt for libxml/li…
Browse files Browse the repository at this point in the history
…bxslt on mac.
  • Loading branch information
tpn committed Feb 20, 2014
1 parent 72e3c0b commit 6121f47
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 8 deletions.
23 changes: 20 additions & 3 deletions postgresql-9.3/build.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,27 @@
#!/bin/sh

export CFLAGS="-I$PREFIX/include"
export LDFLAGS="-L$PREFIX/lib -lxml2 -L$PREFIX/lib -lxslt"
export LDFLAGS_EX="$LDFLAGS -L$PREFIX/lib -lreadline"

if uname | grep Darwin > /dev/null; then
# libxml is causing configure to bomb out for me.
configure --prefix=$PREFIX --with-python --with-openssl
# 10.9 appears to have an issue with libxml2; clang/ld isn't respecting
# the flags above, and it attempts to link with /usr/lib/libxml2.2.dynlib,
# which results in an error and ./configure time. @Aaron, have you seen
# this before? Can you reproduce the error?
configure --prefix=$PREFIX \
--with-readline \
--with-python \
--with-openssl \
--with-libxml \
--with-libxslt
else
configure --prefix=$PREFIX --with-python --with-openssl --with-libxml --with-libxslt
configure --prefix=$PREFIX \
--with-readline \
--with-python \
--with-openssl \
--with-libxml \
--with-libxslt
fi

make
Expand Down
15 changes: 10 additions & 5 deletions postgresql-9.3/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,28 @@ source:
url: http://ftp.postgresql.org/pub/source/v9.3.2/postgresql-9.3.2.tar.bz2

build:
number: 2
number: 3

requirements:
build:
- python
- openssl
- readline
- libxml2 [not osx]
- libxslt [not osx]
- libxml2
- libxslt
# 10.9 appears to have an issue with libxml2.
#- libxml2 [not osx]
#- libxslt [not osx]
- zlib
- system [linux]
run:
- python
- openssl
- readline
- libxml2 [not osx]
- libxslt [not osx]
- libxml2
- libxslt
#- libxml2 [not osx]
#- libxslt [not osx]
- zlib
- system [linux]

Expand Down

0 comments on commit 6121f47

Please sign in to comment.