annotate src/postgresql.mk @ 5893:53a6c7df43f8

Mesa 3D: Update to version 21.1.8. * src/mesa.mk: Update version and checksum. * src/mesa-2-uninitialized.patch: Remove file. * dist-files.mk: Remove file from list.
author Markus Mützel <markus.muetzel@gmx.de>
date Thu, 16 Sep 2021 22:37:45 +0200
parents e6b05cb48ec6
children 8e25c982dc2b
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2333
f653602a0500 Rebrand to new project name MXE
Volker Grabsch <vog@notjusthosting.com>
parents: 2259
diff changeset
1 # This file is part of MXE.
2353
99516e73b368 Move doc/index.html -> index.html
Volker Grabsch <vog@notjusthosting.com>
parents: 2349
diff changeset
2 # See index.html for further information.
527
6f7fcfe88cf3 new package: postgresql (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
3
6f7fcfe88cf3 new package: postgresql (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
4 PKG := postgresql
6f7fcfe88cf3 new package: postgresql (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
5 $(PKG)_IGNORE :=
5313
e6b05cb48ec6 * src/postgresql.mk: update to v9.4.26
John Donoghue
parents: 5216
diff changeset
6 $(PKG)_VERSION := 9.4.26
e6b05cb48ec6 * src/postgresql.mk: update to v9.4.26
John Donoghue
parents: 5216
diff changeset
7 $(PKG)_CHECKSUM := 832094c944c57ac19ddcd552ada732a77609de75
527
6f7fcfe88cf3 new package: postgresql (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
8 $(PKG)_SUBDIR := postgresql-$($(PKG)_VERSION)
6f7fcfe88cf3 new package: postgresql (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
9 $(PKG)_FILE := postgresql-$($(PKG)_VERSION).tar.bz2
2168
c35b92508318 update package postgresql
Mark Brand <mabrand@mabrand.nl>
parents: 2143
diff changeset
10 $(PKG)_URL := http://ftp.postgresql.org/pub/source/v$($(PKG)_VERSION)/$($(PKG)_FILE)
4219
c955d4b97330 don't depend on openssl
John W. Eaton <jwe@octave.org>
parents: 3879
diff changeset
11 $(PKG)_DEPS := zlib
527
6f7fcfe88cf3 new package: postgresql (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
12
2997
4f9b72cf7ee7 allow native builds too
John W. Eaton <jwe@octave.org>
parents: 2924
diff changeset
13 ifeq ($(MXE_NATIVE_BUILD),yes)
4f9b72cf7ee7 allow native builds too
John W. Eaton <jwe@octave.org>
parents: 2924
diff changeset
14 $(PKG)_CONFIGURE_FLAGS_OPTION := $(CONFIGURE_CPPFLAGS) $(CONFIGURE_LDFLAGS)
4f9b72cf7ee7 allow native builds too
John W. Eaton <jwe@octave.org>
parents: 2924
diff changeset
15 endif
4f9b72cf7ee7 allow native builds too
John W. Eaton <jwe@octave.org>
parents: 2924
diff changeset
16
4f9b72cf7ee7 allow native builds too
John W. Eaton <jwe@octave.org>
parents: 2924
diff changeset
17 ifeq ($(MXE_SYSTEM),mingw)
3395
1ad098269cfb postgresql: create and install host pg_config tool.
John Donoghue <john.donoghue@ieee.org>
parents: 3393
diff changeset
18 $(PKG)_LIBS := -lsecur32
3648
35404cf378db postgres: update to install libpq.dll correctly
John Donoghue <john.donoghue@ieee.org>
parents: 3614
diff changeset
19 $(PKG)_CONFIGURE_FLAGS_OPTION += ac_cv_func_getaddrinfo=no
2997
4f9b72cf7ee7 allow native builds too
John W. Eaton <jwe@octave.org>
parents: 2924
diff changeset
20 endif
4f9b72cf7ee7 allow native builds too
John W. Eaton <jwe@octave.org>
parents: 2924
diff changeset
21
527
6f7fcfe88cf3 new package: postgresql (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
22 define $(PKG)_UPDATE
2525
4d0f3a9da57e all packages: use $(WGET) portability variable
Tony Theodore <tonyt@logyst.com>
parents: 2365
diff changeset
23 $(WGET) -q -O- 'http://git.postgresql.org/gitweb?p=postgresql.git;a=tags' | \
1523
70d4afbbd76a package postgresql: fix update macro
Mark Brand <mabrand@mabrand.nl>
parents: 1522
diff changeset
24 grep 'refs/tags/REL9[0-9_]*"' | \
1357
e5a89f1ee73e upgrade package postgresql and fix UPDATE macro
Mark Brand <mabrand@mabrand.nl>
parents: 1166
diff changeset
25 $(SED) 's,.*refs/tags/REL\(.*\)".*,\1,g;' | \
527
6f7fcfe88cf3 new package: postgresql (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
26 $(SED) 's,_,.,g' | \
2789
f20bbf45b91a update package postgresql
Mark Brand <mabrand@mabrand.nl>
parents: 2722
diff changeset
27 grep -v '^9\.[01]' | \
527
6f7fcfe88cf3 new package: postgresql (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
28 head -1
6f7fcfe88cf3 new package: postgresql (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
29 endef
6f7fcfe88cf3 new package: postgresql (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
30
6f7fcfe88cf3 new package: postgresql (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
31 define $(PKG)_BUILD
2047
5828a4a777a2 package postgresql: replace sed with patch
Mark Brand <mabrand@mabrand.nl>
parents: 2004
diff changeset
32 cd '$(1)' && autoconf
1500
09e48fb4aa19 avoid double unpacking in package postgresql
Tony Theodore <tonyt@logyst.com>
parents: 1390
diff changeset
33 cp -Rp '$(1)' '$(1).native'
527
6f7fcfe88cf3 new package: postgresql (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
34 # Since we build only client libary, use bogus tzdata to satisfy configure.
6f7fcfe88cf3 new package: postgresql (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
35 cd '$(1)' && ./configure \
2997
4f9b72cf7ee7 allow native builds too
John W. Eaton <jwe@octave.org>
parents: 2924
diff changeset
36 $($(PKG)_CONFIGURE_FLAGS_OPTION) \
3012
100e618349f7 Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents: 3006
diff changeset
37 --prefix='$(HOST_PREFIX)' \
3013
bcc26ffe9a0f use variable for --host and --build configure arguments
John W. Eaton <jwe@octave.org>
parents: 3012
diff changeset
38 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \
3393
166294cad9f0 Update postqresql to 9.2.4 from mxe_devel repo
John Donoghue <john.donoghue@ieee.org>
parents: 3216
diff changeset
39 $(ENABLE_SHARED_OR_STATIC) \
3614
dac2f860f581 postgresql: set --with-libraries option in configure
John Donoghue <john.donoghue@ieee.org>
parents: 3607
diff changeset
40 --with-libraries='$(HOST_LIBDIR)' \
528
cc31dacda67d improved coding style
Volker Grabsch <vog@notjusthosting.com>
parents: 527
diff changeset
41 --disable-rpath \
580
3e5503e5ed58 build static library in package postgresql
Volker Grabsch <vog@notjusthosting.com>
parents: 528
diff changeset
42 --without-tcl \
3e5503e5ed58 build static library in package postgresql
Volker Grabsch <vog@notjusthosting.com>
parents: 528
diff changeset
43 --without-perl \
3e5503e5ed58 build static library in package postgresql
Volker Grabsch <vog@notjusthosting.com>
parents: 528
diff changeset
44 --without-python \
3e5503e5ed58 build static library in package postgresql
Volker Grabsch <vog@notjusthosting.com>
parents: 528
diff changeset
45 --without-gssapi \
3e5503e5ed58 build static library in package postgresql
Volker Grabsch <vog@notjusthosting.com>
parents: 528
diff changeset
46 --without-krb5 \
3e5503e5ed58 build static library in package postgresql
Volker Grabsch <vog@notjusthosting.com>
parents: 528
diff changeset
47 --without-pam \
3e5503e5ed58 build static library in package postgresql
Volker Grabsch <vog@notjusthosting.com>
parents: 528
diff changeset
48 --without-ldap \
3e5503e5ed58 build static library in package postgresql
Volker Grabsch <vog@notjusthosting.com>
parents: 528
diff changeset
49 --without-bonjour \
4219
c955d4b97330 don't depend on openssl
John W. Eaton <jwe@octave.org>
parents: 3879
diff changeset
50 --without-openssl \
589
72e6bc298b7f disable readline support because it doesn't work for package postgresql
Volker Grabsch <vog@notjusthosting.com>
parents: 587
diff changeset
51 --without-readline \
580
3e5503e5ed58 build static library in package postgresql
Volker Grabsch <vog@notjusthosting.com>
parents: 528
diff changeset
52 --without-ossp-uuid \
3e5503e5ed58 build static library in package postgresql
Volker Grabsch <vog@notjusthosting.com>
parents: 528
diff changeset
53 --without-libxml \
3e5503e5ed58 build static library in package postgresql
Volker Grabsch <vog@notjusthosting.com>
parents: 528
diff changeset
54 --without-libxslt \
528
cc31dacda67d improved coding style
Volker Grabsch <vog@notjusthosting.com>
parents: 527
diff changeset
55 --with-zlib \
582
6be6f016a86f build the psql.exe command line tool of package postgresql
Volker Grabsch <vog@notjusthosting.com>
parents: 581
diff changeset
56 --with-system-tzdata=/dev/null \
4219
c955d4b97330 don't depend on openssl
John W. Eaton <jwe@octave.org>
parents: 3879
diff changeset
57 LIBS="$($(PKG)_LIBS)"
3775
7f250bf4c472 postgresql: update to v9.4.0
John Donoghue
parents: 3648
diff changeset
58 $(MAKE) -C '$(1)'/src/common -j '$(JOBS)'
3648
35404cf378db postgres: update to install libpq.dll correctly
John Donoghue <john.donoghue@ieee.org>
parents: 3614
diff changeset
59 $(MAKE) -C '$(1)'/src/interfaces/libpq -j '$(JOBS)' install DESTDIR='$(3)'
35404cf378db postgres: update to install libpq.dll correctly
John Donoghue <john.donoghue@ieee.org>
parents: 3614
diff changeset
60 $(MAKE) -C '$(1)'/src/port -j '$(JOBS)'
35404cf378db postgres: update to install libpq.dll correctly
John Donoghue <john.donoghue@ieee.org>
parents: 3614
diff changeset
61 $(MAKE) -C '$(1)'/src/bin/psql -j '$(JOBS)' install DESTDIR='$(3)'
35404cf378db postgres: update to install libpq.dll correctly
John Donoghue <john.donoghue@ieee.org>
parents: 3614
diff changeset
62 $(MAKE) -C '$(1)'/src/bin/pg_config -j '$(JOBS)' install DESTDIR='$(3)'
3395
1ad098269cfb postgresql: create and install host pg_config tool.
John Donoghue <john.donoghue@ieee.org>
parents: 3393
diff changeset
63 $(INSTALL) -m644 '$(1)/src/include/pg_config.h' '$(3)$(HOST_INCDIR)'
3775
7f250bf4c472 postgresql: update to v9.4.0
John Donoghue
parents: 3648
diff changeset
64 $(INSTALL) -m644 '$(1)/src/include/pg_config_ext.h' '$(3)$(HOST_INCDIR)'
7f250bf4c472 postgresql: update to v9.4.0
John Donoghue
parents: 3648
diff changeset
65 $(INSTALL) -m644 '$(1)/src/include/pg_config_os.h' '$(3)$(HOST_INCDIR)'
3395
1ad098269cfb postgresql: create and install host pg_config tool.
John Donoghue <john.donoghue@ieee.org>
parents: 3393
diff changeset
66 $(INSTALL) -m644 '$(1)/src/include/postgres_ext.h' '$(3)$(HOST_INCDIR)'
1ad098269cfb postgresql: create and install host pg_config tool.
John Donoghue <john.donoghue@ieee.org>
parents: 3393
diff changeset
67 $(INSTALL) -d '$(3)$(HOST_INCDIR)/libpq'
1ad098269cfb postgresql: create and install host pg_config tool.
John Donoghue <john.donoghue@ieee.org>
parents: 3393
diff changeset
68 $(INSTALL) -m644 '$(1)'/src/include/libpq/* '$(3)$(HOST_INCDIR)/libpq/'
3607
b3e27f5b5b33 postgresql: only build additional native tools in cross build
John Donoghue
parents: 3480
diff changeset
69 # Build a native pg_config (if cross build).
3216
11f8ec654cd4 Avoid copying or linking files that are the same when doing native build
John W. Eaton <jwe@octave.org>
parents: 3048
diff changeset
70 if [ $(MXE_NATIVE_BUILD) = no ]; then \
3607
b3e27f5b5b33 postgresql: only build additional native tools in cross build
John Donoghue
parents: 3480
diff changeset
71 $(SED) -i 's,-DVAL_,-D_DISABLED_VAL_,g' '$(1).native'/src/bin/pg_config/Makefile; \
b3e27f5b5b33 postgresql: only build additional native tools in cross build
John Donoghue
parents: 3480
diff changeset
72 cd '$(1).native' && ./configure \
b3e27f5b5b33 postgresql: only build additional native tools in cross build
John Donoghue
parents: 3480
diff changeset
73 --prefix='$(BUILD_TOOLS_PREFIX)' \
b3e27f5b5b33 postgresql: only build additional native tools in cross build
John Donoghue
parents: 3480
diff changeset
74 $(ENABLE_SHARED_OR_STATIC) \
b3e27f5b5b33 postgresql: only build additional native tools in cross build
John Donoghue
parents: 3480
diff changeset
75 --disable-rpath \
b3e27f5b5b33 postgresql: only build additional native tools in cross build
John Donoghue
parents: 3480
diff changeset
76 --without-tcl \
b3e27f5b5b33 postgresql: only build additional native tools in cross build
John Donoghue
parents: 3480
diff changeset
77 --without-perl \
b3e27f5b5b33 postgresql: only build additional native tools in cross build
John Donoghue
parents: 3480
diff changeset
78 --without-python \
b3e27f5b5b33 postgresql: only build additional native tools in cross build
John Donoghue
parents: 3480
diff changeset
79 --without-gssapi \
b3e27f5b5b33 postgresql: only build additional native tools in cross build
John Donoghue
parents: 3480
diff changeset
80 --without-krb5 \
b3e27f5b5b33 postgresql: only build additional native tools in cross build
John Donoghue
parents: 3480
diff changeset
81 --without-pam \
b3e27f5b5b33 postgresql: only build additional native tools in cross build
John Donoghue
parents: 3480
diff changeset
82 --without-ldap \
b3e27f5b5b33 postgresql: only build additional native tools in cross build
John Donoghue
parents: 3480
diff changeset
83 --without-bonjour \
b3e27f5b5b33 postgresql: only build additional native tools in cross build
John Donoghue
parents: 3480
diff changeset
84 --without-openssl \
b3e27f5b5b33 postgresql: only build additional native tools in cross build
John Donoghue
parents: 3480
diff changeset
85 --without-readline \
b3e27f5b5b33 postgresql: only build additional native tools in cross build
John Donoghue
parents: 3480
diff changeset
86 --without-ossp-uuid \
b3e27f5b5b33 postgresql: only build additional native tools in cross build
John Donoghue
parents: 3480
diff changeset
87 --without-libxml \
b3e27f5b5b33 postgresql: only build additional native tools in cross build
John Donoghue
parents: 3480
diff changeset
88 --without-libxslt \
b3e27f5b5b33 postgresql: only build additional native tools in cross build
John Donoghue
parents: 3480
diff changeset
89 --without-zlib \
b3e27f5b5b33 postgresql: only build additional native tools in cross build
John Donoghue
parents: 3480
diff changeset
90 --with-system-tzdata=/dev/null; \
b3e27f5b5b33 postgresql: only build additional native tools in cross build
John Donoghue
parents: 3480
diff changeset
91 $(MAKE) -C '$(1).native'/src/port -j '$(JOBS)'; \
b3e27f5b5b33 postgresql: only build additional native tools in cross build
John Donoghue
parents: 3480
diff changeset
92 $(MAKE) -C '$(1).native'/src/bin/pg_config -j '$(JOBS)' install DESTDIR=$(3); \
b3e27f5b5b33 postgresql: only build additional native tools in cross build
John Donoghue
parents: 3480
diff changeset
93 $(INSTALL) -m755 '$(3)$(BUILD_TOOLS_PREFIX)/bin/pg_config' '$(3)$(BUILD_TOOLS_PREFIX)/bin/$(MXE_TOOL_PREFIX)pg_config'; \
3216
11f8ec654cd4 Avoid copying or linking files that are the same when doing native build
John W. Eaton <jwe@octave.org>
parents: 3048
diff changeset
94 fi
527
6f7fcfe88cf3 new package: postgresql (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
95 endef