|
|
|
@ -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
|
|
|
|
|
|
|
|
|
|