Mercurial > mxe-octave
annotate src/postgresql.mk @ 1500:09e48fb4aa19
avoid double unpacking in package postgresql
author | Tony Theodore <tonyt@logyst.com> |
---|---|
date | Sun, 12 Dec 2010 13:26:38 +1100 |
parents | 7fae546007a1 |
children | 09a726b9c1a4 |
rev | line source |
---|---|
641
dab071eac9c0
simplified file markers
Volker Grabsch <vog@notjusthosting.com>
parents:
598
diff
changeset
|
1 # This file is part of mingw-cross-env. |
714
29f1ba4559ae
point consequently to "doc/index.html" instead of "doc/index.html or doc/README"
Volker Grabsch <vog@notjusthosting.com>
parents:
656
diff
changeset
|
2 # See doc/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 # PostgreSQL |
6f7fcfe88cf3
new package: postgresql (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
5 PKG := postgresql |
6f7fcfe88cf3
new package: postgresql (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
6 $(PKG)_IGNORE := |
1357
e5a89f1ee73e
upgrade package postgresql and fix UPDATE macro
Mark Brand <mabrand@mabrand.nl>
parents:
1166
diff
changeset
|
7 $(PKG)_VERSION := 9.0.1 |
e5a89f1ee73e
upgrade package postgresql and fix UPDATE macro
Mark Brand <mabrand@mabrand.nl>
parents:
1166
diff
changeset
|
8 $(PKG)_CHECKSUM := 7adeb3c4b661115ec6eb4e5896edfee71f87245e |
527
6f7fcfe88cf3
new package: postgresql (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
9 $(PKG)_SUBDIR := postgresql-$($(PKG)_VERSION) |
6f7fcfe88cf3
new package: postgresql (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
10 $(PKG)_FILE := postgresql-$($(PKG)_VERSION).tar.bz2 |
6f7fcfe88cf3
new package: postgresql (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
11 $(PKG)_WEBSITE := http://www.postgresql.org/ |
6f7fcfe88cf3
new package: postgresql (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
12 $(PKG)_URL := http://ftp2.nl.postgresql.org/source/v$($(PKG)_VERSION)/$($(PKG)_FILE) |
6f7fcfe88cf3
new package: postgresql (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
13 $(PKG)_URL_2 := http://ftp10.us.postgresql.org/postgresql/source/v$($(PKG)_VERSION)/$($(PKG)_FILE) |
589
72e6bc298b7f
disable readline support because it doesn't work for package postgresql
Volker Grabsch <vog@notjusthosting.com>
parents:
587
diff
changeset
|
14 $(PKG)_DEPS := gcc zlib openssl |
527
6f7fcfe88cf3
new package: postgresql (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
15 |
6f7fcfe88cf3
new package: postgresql (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
16 define $(PKG)_UPDATE |
1357
e5a89f1ee73e
upgrade package postgresql and fix UPDATE macro
Mark Brand <mabrand@mabrand.nl>
parents:
1166
diff
changeset
|
17 wget -q -O- 'http://git.postgresql.org/gitweb?p=postgresql.git;a=tags' | \ |
e5a89f1ee73e
upgrade package postgresql and fix UPDATE macro
Mark Brand <mabrand@mabrand.nl>
parents:
1166
diff
changeset
|
18 grep 'refs/tags/REL[0-9_]*"' | \ |
e5a89f1ee73e
upgrade package postgresql and fix UPDATE macro
Mark Brand <mabrand@mabrand.nl>
parents:
1166
diff
changeset
|
19 $(SED) 's,.*refs/tags/REL\(.*\)".*,\1,g;' | \ |
527
6f7fcfe88cf3
new package: postgresql (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
20 $(SED) 's,_,.,g' | \ |
6f7fcfe88cf3
new package: postgresql (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
21 head -1 |
6f7fcfe88cf3
new package: postgresql (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
22 endef |
6f7fcfe88cf3
new package: postgresql (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
23 |
6f7fcfe88cf3
new package: postgresql (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
24 define $(PKG)_BUILD |
1500
09e48fb4aa19
avoid double unpacking in package postgresql
Tony Theodore <tonyt@logyst.com>
parents:
1390
diff
changeset
|
25 cp -Rp '$(1)' '$(1).native' |
587
226e462a8a73
add OpenSSL support to package postgresql
Volker Grabsch <vog@notjusthosting.com>
parents:
583
diff
changeset
|
26 # The static OpenSSL libraries are in unix (not win32) naming style. |
759
bf4bcb3370fa
changed coding style: make "-i" always the first argument of $(SED) (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
742
diff
changeset
|
27 $(SED) -i 's,SSLEAY32,SSL,' '$(1)'/configure |
bf4bcb3370fa
changed coding style: make "-i" always the first argument of $(SED) (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
742
diff
changeset
|
28 $(SED) -i 's,ssleay32,ssl,' '$(1)'/configure |
bf4bcb3370fa
changed coding style: make "-i" always the first argument of $(SED) (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
742
diff
changeset
|
29 $(SED) -i 's,EAY32,CRYPTO,' '$(1)'/configure |
bf4bcb3370fa
changed coding style: make "-i" always the first argument of $(SED) (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
742
diff
changeset
|
30 $(SED) -i 's,eay32,crypto,' '$(1)'/configure |
bf4bcb3370fa
changed coding style: make "-i" always the first argument of $(SED) (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
742
diff
changeset
|
31 $(SED) -i 's,ssleay32,ssl,' '$(1)'/src/interfaces/libpq/Makefile |
bf4bcb3370fa
changed coding style: make "-i" always the first argument of $(SED) (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
742
diff
changeset
|
32 $(SED) -i 's,eay32,crypto,' '$(1)'/src/interfaces/libpq/Makefile |
527
6f7fcfe88cf3
new package: postgresql (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
33 # 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
|
34 cd '$(1)' && ./configure \ |
528
cc31dacda67d
improved coding style
Volker Grabsch <vog@notjusthosting.com>
parents:
527
diff
changeset
|
35 --prefix='$(PREFIX)/$(TARGET)' \ |
cc31dacda67d
improved coding style
Volker Grabsch <vog@notjusthosting.com>
parents:
527
diff
changeset
|
36 --host='$(TARGET)' \ |
580
3e5503e5ed58
build static library in package postgresql
Volker Grabsch <vog@notjusthosting.com>
parents:
528
diff
changeset
|
37 --disable-shared \ |
528
cc31dacda67d
improved coding style
Volker Grabsch <vog@notjusthosting.com>
parents:
527
diff
changeset
|
38 --disable-rpath \ |
580
3e5503e5ed58
build static library in package postgresql
Volker Grabsch <vog@notjusthosting.com>
parents:
528
diff
changeset
|
39 --without-tcl \ |
3e5503e5ed58
build static library in package postgresql
Volker Grabsch <vog@notjusthosting.com>
parents:
528
diff
changeset
|
40 --without-perl \ |
3e5503e5ed58
build static library in package postgresql
Volker Grabsch <vog@notjusthosting.com>
parents:
528
diff
changeset
|
41 --without-python \ |
3e5503e5ed58
build static library in package postgresql
Volker Grabsch <vog@notjusthosting.com>
parents:
528
diff
changeset
|
42 --without-gssapi \ |
3e5503e5ed58
build static library in package postgresql
Volker Grabsch <vog@notjusthosting.com>
parents:
528
diff
changeset
|
43 --without-krb5 \ |
3e5503e5ed58
build static library in package postgresql
Volker Grabsch <vog@notjusthosting.com>
parents:
528
diff
changeset
|
44 --without-pam \ |
3e5503e5ed58
build static library in package postgresql
Volker Grabsch <vog@notjusthosting.com>
parents:
528
diff
changeset
|
45 --without-ldap \ |
3e5503e5ed58
build static library in package postgresql
Volker Grabsch <vog@notjusthosting.com>
parents:
528
diff
changeset
|
46 --without-bonjour \ |
587
226e462a8a73
add OpenSSL support to package postgresql
Volker Grabsch <vog@notjusthosting.com>
parents:
583
diff
changeset
|
47 --with-openssl \ |
589
72e6bc298b7f
disable readline support because it doesn't work for package postgresql
Volker Grabsch <vog@notjusthosting.com>
parents:
587
diff
changeset
|
48 --without-readline \ |
580
3e5503e5ed58
build static library in package postgresql
Volker Grabsch <vog@notjusthosting.com>
parents:
528
diff
changeset
|
49 --without-ossp-uuid \ |
3e5503e5ed58
build static library in package postgresql
Volker Grabsch <vog@notjusthosting.com>
parents:
528
diff
changeset
|
50 --without-libxml \ |
3e5503e5ed58
build static library in package postgresql
Volker Grabsch <vog@notjusthosting.com>
parents:
528
diff
changeset
|
51 --without-libxslt \ |
528
cc31dacda67d
improved coding style
Volker Grabsch <vog@notjusthosting.com>
parents:
527
diff
changeset
|
52 --with-zlib \ |
582
6be6f016a86f
build the psql.exe command line tool of package postgresql
Volker Grabsch <vog@notjusthosting.com>
parents:
581
diff
changeset
|
53 --with-system-tzdata=/dev/null \ |
587
226e462a8a73
add OpenSSL support to package postgresql
Volker Grabsch <vog@notjusthosting.com>
parents:
583
diff
changeset
|
54 LIBS='-lsecur32 -lws2_32 -lgdi32' |
581
4483a31d18ee
improved coding style
Volker Grabsch <vog@notjusthosting.com>
parents:
580
diff
changeset
|
55 $(MAKE) -C '$(1)'/src/interfaces/libpq -j '$(JOBS)' install haslibarule= shlib= |
582
6be6f016a86f
build the psql.exe command line tool of package postgresql
Volker Grabsch <vog@notjusthosting.com>
parents:
581
diff
changeset
|
56 $(MAKE) -C '$(1)'/src/port -j '$(JOBS)' haslibarule= shlib= |
6be6f016a86f
build the psql.exe command line tool of package postgresql
Volker Grabsch <vog@notjusthosting.com>
parents:
581
diff
changeset
|
57 $(MAKE) -C '$(1)'/src/bin/psql -j '$(JOBS)' install haslibarule= shlib= |
1390
7fae546007a1
fix dummy permissions (664 -> 644)
Volker Grabsch <vog@notjusthosting.com>
parents:
1357
diff
changeset
|
58 $(INSTALL) -m644 '$(1)/src/include/pg_config.h' '$(PREFIX)/$(TARGET)/include/' |
7fae546007a1
fix dummy permissions (664 -> 644)
Volker Grabsch <vog@notjusthosting.com>
parents:
1357
diff
changeset
|
59 $(INSTALL) -m644 '$(1)/src/include/postgres_ext.h' '$(PREFIX)/$(TARGET)/include/' |
656
73ebc5c43231
build a native pg_config in package postgresql
Volker Grabsch <vog@notjusthosting.com>
parents:
641
diff
changeset
|
60 # Build a native pg_config. |
759
bf4bcb3370fa
changed coding style: make "-i" always the first argument of $(SED) (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
742
diff
changeset
|
61 $(SED) -i 's,-DVAL_,-D_DISABLED_VAL_,g' '$(1).native'/src/bin/pg_config/Makefile |
742
6f9e59f9765c
improved native build of pg_config in package postgresql
Volker Grabsch <vog@notjusthosting.com>
parents:
714
diff
changeset
|
62 cd '$(1).native' && ./configure \ |
6f9e59f9765c
improved native build of pg_config in package postgresql
Volker Grabsch <vog@notjusthosting.com>
parents:
714
diff
changeset
|
63 --prefix='$(PREFIX)/$(TARGET)' \ |
6f9e59f9765c
improved native build of pg_config in package postgresql
Volker Grabsch <vog@notjusthosting.com>
parents:
714
diff
changeset
|
64 --disable-shared \ |
6f9e59f9765c
improved native build of pg_config in package postgresql
Volker Grabsch <vog@notjusthosting.com>
parents:
714
diff
changeset
|
65 --disable-rpath \ |
6f9e59f9765c
improved native build of pg_config in package postgresql
Volker Grabsch <vog@notjusthosting.com>
parents:
714
diff
changeset
|
66 --without-tcl \ |
6f9e59f9765c
improved native build of pg_config in package postgresql
Volker Grabsch <vog@notjusthosting.com>
parents:
714
diff
changeset
|
67 --without-perl \ |
6f9e59f9765c
improved native build of pg_config in package postgresql
Volker Grabsch <vog@notjusthosting.com>
parents:
714
diff
changeset
|
68 --without-python \ |
6f9e59f9765c
improved native build of pg_config in package postgresql
Volker Grabsch <vog@notjusthosting.com>
parents:
714
diff
changeset
|
69 --without-gssapi \ |
6f9e59f9765c
improved native build of pg_config in package postgresql
Volker Grabsch <vog@notjusthosting.com>
parents:
714
diff
changeset
|
70 --without-krb5 \ |
6f9e59f9765c
improved native build of pg_config in package postgresql
Volker Grabsch <vog@notjusthosting.com>
parents:
714
diff
changeset
|
71 --without-pam \ |
6f9e59f9765c
improved native build of pg_config in package postgresql
Volker Grabsch <vog@notjusthosting.com>
parents:
714
diff
changeset
|
72 --without-ldap \ |
6f9e59f9765c
improved native build of pg_config in package postgresql
Volker Grabsch <vog@notjusthosting.com>
parents:
714
diff
changeset
|
73 --without-bonjour \ |
6f9e59f9765c
improved native build of pg_config in package postgresql
Volker Grabsch <vog@notjusthosting.com>
parents:
714
diff
changeset
|
74 --without-openssl \ |
6f9e59f9765c
improved native build of pg_config in package postgresql
Volker Grabsch <vog@notjusthosting.com>
parents:
714
diff
changeset
|
75 --without-readline \ |
6f9e59f9765c
improved native build of pg_config in package postgresql
Volker Grabsch <vog@notjusthosting.com>
parents:
714
diff
changeset
|
76 --without-ossp-uuid \ |
6f9e59f9765c
improved native build of pg_config in package postgresql
Volker Grabsch <vog@notjusthosting.com>
parents:
714
diff
changeset
|
77 --without-libxml \ |
6f9e59f9765c
improved native build of pg_config in package postgresql
Volker Grabsch <vog@notjusthosting.com>
parents:
714
diff
changeset
|
78 --without-libxslt \ |
6f9e59f9765c
improved native build of pg_config in package postgresql
Volker Grabsch <vog@notjusthosting.com>
parents:
714
diff
changeset
|
79 --without-zlib \ |
6f9e59f9765c
improved native build of pg_config in package postgresql
Volker Grabsch <vog@notjusthosting.com>
parents:
714
diff
changeset
|
80 --with-system-tzdata=/dev/null |
6f9e59f9765c
improved native build of pg_config in package postgresql
Volker Grabsch <vog@notjusthosting.com>
parents:
714
diff
changeset
|
81 $(MAKE) -C '$(1).native'/src/port -j '$(JOBS)' |
782
53f3b214b02a
install "usr/bin/i686-pc-mingw32-pg_config" instead of "usr/i686-pc-mingw32/bin/pg_config"
Volker Grabsch <vog@notjusthosting.com>
parents:
759
diff
changeset
|
82 $(MAKE) -C '$(1).native'/src/bin/pg_config -j '$(JOBS)' |
53f3b214b02a
install "usr/bin/i686-pc-mingw32-pg_config" instead of "usr/i686-pc-mingw32/bin/pg_config"
Volker Grabsch <vog@notjusthosting.com>
parents:
759
diff
changeset
|
83 $(INSTALL) -m755 '$(1).native'/src/bin/pg_config/pg_config '$(PREFIX)/bin/$(TARGET)-pg_config' |
527
6f7fcfe88cf3
new package: postgresql (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
84 endef |