Mercurial > mxe-octave
comparison src/postgresql.mk @ 6428:11a3af7e5c3e
postgresql: update to v14.5
* src/postgresql-1-autoconf.patch: update patch
* src/postgresql.mk: update version, use MAKELEVEL=0, update update rule for v14
author | John Donoghue <john.donoghue@ieee.org> |
---|---|
date | Mon, 26 Sep 2022 13:12:48 -0400 |
parents | 8e25c982dc2b |
children | 376abdc61336 |
comparison
equal
deleted
inserted
replaced
6427:152618b5b2a1 | 6428:11a3af7e5c3e |
---|---|
1 # This file is part of MXE. | 1 # This file is part of MXE. |
2 # See index.html for further information. | 2 # See index.html for further information. |
3 | 3 |
4 PKG := postgresql | 4 PKG := postgresql |
5 $(PKG)_IGNORE := | 5 $(PKG)_IGNORE := |
6 $(PKG)_VERSION := 9.4.26 | 6 $(PKG)_VERSION := 14.5 |
7 $(PKG)_CHECKSUM := 832094c944c57ac19ddcd552ada732a77609de75 | 7 $(PKG)_CHECKSUM := 3f2bb7d0b6d56f985fa5dfd2dd2675e7b6b2fef9 |
8 $(PKG)_SUBDIR := postgresql-$($(PKG)_VERSION) | 8 $(PKG)_SUBDIR := postgresql-$($(PKG)_VERSION) |
9 $(PKG)_FILE := postgresql-$($(PKG)_VERSION).tar.bz2 | 9 $(PKG)_FILE := postgresql-$($(PKG)_VERSION).tar.bz2 |
10 $(PKG)_URL := http://ftp.postgresql.org/pub/source/v$($(PKG)_VERSION)/$($(PKG)_FILE) | 10 $(PKG)_URL := http://ftp.postgresql.org/pub/source/v$($(PKG)_VERSION)/$($(PKG)_FILE) |
11 $(PKG)_DEPS := zlib | 11 $(PKG)_DEPS := zlib |
12 | 12 |
19 $(PKG)_CONFIGURE_FLAGS_OPTION += ac_cv_func_getaddrinfo=no | 19 $(PKG)_CONFIGURE_FLAGS_OPTION += ac_cv_func_getaddrinfo=no |
20 endif | 20 endif |
21 | 21 |
22 define $(PKG)_UPDATE | 22 define $(PKG)_UPDATE |
23 $(WGET) -q -O- 'http://git.postgresql.org/gitweb?p=postgresql.git;a=tags' | \ | 23 $(WGET) -q -O- 'http://git.postgresql.org/gitweb?p=postgresql.git;a=tags' | \ |
24 grep 'refs/tags/REL9[0-9_]*"' | \ | 24 grep 'refs/tags/REL_14[0-9_]*"' | \ |
25 $(SED) 's,.*refs/tags/REL\(.*\)".*,\1,g;' | \ | 25 $(SED) 's,.*refs/tags/REL_\(.*\)".*,\1,g;' | \ |
26 $(SED) 's,_,.,g' | \ | 26 $(SED) 's,_,.,g' | \ |
27 grep '^9\.4' | \ | 27 $(SORT) -V | \ |
28 head -1 | 28 tail -1 |
29 endef | 29 endef |
30 | 30 |
31 define $(PKG)_BUILD | 31 define $(PKG)_BUILD |
32 cd '$(1)' && autoconf | 32 cd '$(1)' && autoconf |
33 cp -Rp '$(1)' '$(1).native' | 33 cp -Rp '$(1)' '$(1).native' |
53 --without-libxml \ | 53 --without-libxml \ |
54 --without-libxslt \ | 54 --without-libxslt \ |
55 --with-zlib \ | 55 --with-zlib \ |
56 --with-system-tzdata=/dev/null \ | 56 --with-system-tzdata=/dev/null \ |
57 LIBS="$($(PKG)_LIBS)" | 57 LIBS="$($(PKG)_LIBS)" |
58 $(MAKE) -C '$(1)'/src/common -j '$(JOBS)' | 58 $(MAKE) MAKELEVEL=0 -C '$(1)'/src/common -j '$(JOBS)' |
59 $(MAKE) -C '$(1)'/src/interfaces/libpq -j '$(JOBS)' install DESTDIR='$(3)' | 59 $(MAKE) MAKELEVEL=0 -C '$(1)'/src/interfaces/libpq -j '$(JOBS)' install DESTDIR='$(3)' |
60 $(MAKE) -C '$(1)'/src/port -j '$(JOBS)' | 60 $(MAKE) MAKELEVEL=0 -C '$(1)'/src/port -j '$(JOBS)' |
61 $(MAKE) -C '$(1)'/src/bin/psql -j '$(JOBS)' install DESTDIR='$(3)' | 61 $(MAKE) MAKELEVEL=0 -C '$(1)'/src/bin/psql -j '$(JOBS)' install DESTDIR='$(3)' |
62 $(MAKE) -C '$(1)'/src/bin/pg_config -j '$(JOBS)' install DESTDIR='$(3)' | 62 $(MAKE) MAKELEVEL=0 -C '$(1)'/src/bin/pg_config -j '$(JOBS)' install DESTDIR='$(3)' |
63 $(INSTALL) -m644 '$(1)/src/include/pg_config.h' '$(3)$(HOST_INCDIR)' | 63 $(INSTALL) -m644 '$(1)/src/include/pg_config.h' '$(3)$(HOST_INCDIR)' |
64 $(INSTALL) -m644 '$(1)/src/include/pg_config_ext.h' '$(3)$(HOST_INCDIR)' | 64 $(INSTALL) -m644 '$(1)/src/include/pg_config_ext.h' '$(3)$(HOST_INCDIR)' |
65 $(INSTALL) -m644 '$(1)/src/include/pg_config_os.h' '$(3)$(HOST_INCDIR)' | 65 $(INSTALL) -m644 '$(1)/src/include/pg_config_os.h' '$(3)$(HOST_INCDIR)' |
66 $(INSTALL) -m644 '$(1)/src/include/postgres_ext.h' '$(3)$(HOST_INCDIR)' | 66 $(INSTALL) -m644 '$(1)/src/include/postgres_ext.h' '$(3)$(HOST_INCDIR)' |
67 $(INSTALL) -d '$(3)$(HOST_INCDIR)/libpq' | 67 $(INSTALL) -d '$(3)$(HOST_INCDIR)/libpq' |
86 --without-ossp-uuid \ | 86 --without-ossp-uuid \ |
87 --without-libxml \ | 87 --without-libxml \ |
88 --without-libxslt \ | 88 --without-libxslt \ |
89 --without-zlib \ | 89 --without-zlib \ |
90 --with-system-tzdata=/dev/null; \ | 90 --with-system-tzdata=/dev/null; \ |
91 $(MAKE) -C '$(1).native'/src/port -j '$(JOBS)'; \ | 91 $(MAKE) MAKELEVEL=0 -C '$(1).native'/src/port -j '$(JOBS)'; \ |
92 $(MAKE) -C '$(1).native'/src/bin/pg_config -j '$(JOBS)' install DESTDIR=$(3); \ | 92 $(MAKE) MAKELEVEL=0 -C '$(1).native'/src/bin/pg_config -j '$(JOBS)' install DESTDIR=$(3); \ |
93 $(INSTALL) -m755 '$(3)$(BUILD_TOOLS_PREFIX)/bin/pg_config' '$(3)$(BUILD_TOOLS_PREFIX)/bin/$(MXE_TOOL_PREFIX)pg_config'; \ | 93 $(INSTALL) -m755 '$(3)$(BUILD_TOOLS_PREFIX)/bin/pg_config' '$(3)$(BUILD_TOOLS_PREFIX)/bin/$(MXE_TOOL_PREFIX)pg_config'; \ |
94 fi | 94 fi |
95 endef | 95 endef |