From ccdc162b0759bb38056986a1a9a1db1413a6ebb7 Mon Sep 17 00:00:00 2001 From: Dan Buch Date: Fri, 13 Jul 2012 22:05:43 -0400 Subject: [PATCH] Tweaking build options a bit more --- postgresql/installation/Makefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/postgresql/installation/Makefile b/postgresql/installation/Makefile index 85e02c2..8527876 100644 --- a/postgresql/installation/Makefile +++ b/postgresql/installation/Makefile @@ -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