Tweaking build options a bit more
This commit is contained in:
parent
e5755ec1b1
commit
ccdc162b07
@ -1,6 +1,8 @@
|
|||||||
HERE := $(PWD)
|
HERE := $(PWD)
|
||||||
DOWNLOAD_ROOT := http://ftp.postgresql.org/pub/source/
|
DOWNLOAD_ROOT := http://ftp.postgresql.org/pub/source/
|
||||||
|
PG_PORT := 25432
|
||||||
PG_VERSION := 9.1.4
|
PG_VERSION := 9.1.4
|
||||||
|
PYTHON3 := $(shell which python3)
|
||||||
TARBALL_BASENAME := postgresql-$(PG_VERSION)
|
TARBALL_BASENAME := postgresql-$(PG_VERSION)
|
||||||
TARBALL_URL := $(DOWNLOAD_ROOT)/v$(PG_VERSION)/$(TARBALL_BASENAME).tar.bz2
|
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 $@
|
tar xjvf $< && touch $@
|
||||||
|
|
||||||
$(HERE)/bin/pg_ctl: $(TARBALL_BASENAME)/configure
|
$(HERE)/bin/pg_ctl: $(TARBALL_BASENAME)/configure
|
||||||
cd $(TARBALL_BASENAME) && ./configure \
|
cd $(TARBALL_BASENAME) && \
|
||||||
|
PYTHON=$(PYTHON3) ./configure \
|
||||||
--prefix=$(HERE) \
|
--prefix=$(HERE) \
|
||||||
--with-python \
|
--with-python \
|
||||||
--with-perl \
|
--with-perl \
|
||||||
@ -30,7 +33,8 @@ $(HERE)/bin/pg_ctl: $(TARBALL_BASENAME)/configure
|
|||||||
--with-tclconfig=/usr/lib/tcl8.5 \
|
--with-tclconfig=/usr/lib/tcl8.5 \
|
||||||
--with-openssl \
|
--with-openssl \
|
||||||
--with-libxml \
|
--with-libxml \
|
||||||
--with-libxslt && \
|
--with-libxslt \
|
||||||
|
--with-pgport=$(PG_PORT) && \
|
||||||
make && \
|
make && \
|
||||||
make install
|
make install
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user