Tweaking build options a bit more

This commit is contained in:
Dan Buch 2012-07-13 22:05:43 -04:00
parent e5755ec1b1
commit ccdc162b07

View File

@ -1,6 +1,8 @@
HERE := $(PWD)
DOWNLOAD_ROOT := http://ftp.postgresql.org/pub/source/
PG_PORT := 25432
PG_VERSION := 9.1.4
PYTHON3 := $(shell which python3)
TARBALL_BASENAME := postgresql-$(PG_VERSION)
TARBALL_URL := $(DOWNLOAD_ROOT)/v$(PG_VERSION)/$(TARBALL_BASENAME).tar.bz2
@ -22,7 +24,8 @@ $(TARBALL_BASENAME)/configure: $(TARBALL_BASENAME).tar.bz2
tar xjvf $< && touch $@
$(HERE)/bin/pg_ctl: $(TARBALL_BASENAME)/configure
cd $(TARBALL_BASENAME) && ./configure \
cd $(TARBALL_BASENAME) && \
PYTHON=$(PYTHON3) ./configure \
--prefix=$(HERE) \
--with-python \
--with-perl \
@ -30,7 +33,8 @@ $(HERE)/bin/pg_ctl: $(TARBALL_BASENAME)/configure
--with-tclconfig=/usr/lib/tcl8.5 \
--with-openssl \
--with-libxml \
--with-libxslt && \
--with-libxslt \
--with-pgport=$(PG_PORT) && \
make && \
make install