annotate src/postgresql.mk @ 581:4483a31d18ee

improved coding style
author Volker Grabsch <vog@notjusthosting.com>
date Sun, 06 Dec 2009 19:45:00 +0100
parents 3e5503e5ed58
children 6be6f016a86f
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
527
6f7fcfe88cf3 new package: postgresql (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
1 # Copyright (C) 2009 Mark Brand
6f7fcfe88cf3 new package: postgresql (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
2 # Volker Grabsch
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 # Permission is hereby granted, free of charge, to any person obtaining
6f7fcfe88cf3 new package: postgresql (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
5 # a copy of this software and associated documentation files (the
6f7fcfe88cf3 new package: postgresql (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
6 # "Software"), to deal in the Software without restriction, including
6f7fcfe88cf3 new package: postgresql (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
7 # without limitation the rights to use, copy, modify, merge, publish,
6f7fcfe88cf3 new package: postgresql (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
8 # distribute, sublicense, and/or sell copies of the Software, and to
6f7fcfe88cf3 new package: postgresql (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
9 # permit persons to whom the Software is furnished to do so, subject
6f7fcfe88cf3 new package: postgresql (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
10 # to the following conditions:
6f7fcfe88cf3 new package: postgresql (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
11 #
6f7fcfe88cf3 new package: postgresql (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
12 # The above copyright notice and this permission notice shall be
6f7fcfe88cf3 new package: postgresql (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
13 # included in all copies or substantial portions of the Software.
6f7fcfe88cf3 new package: postgresql (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
14 #
6f7fcfe88cf3 new package: postgresql (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
15 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
6f7fcfe88cf3 new package: postgresql (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
16 # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
6f7fcfe88cf3 new package: postgresql (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
17 # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
6f7fcfe88cf3 new package: postgresql (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
18 # IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
6f7fcfe88cf3 new package: postgresql (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
19 # CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
6f7fcfe88cf3 new package: postgresql (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
20 # TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
6f7fcfe88cf3 new package: postgresql (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
21 # SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
6f7fcfe88cf3 new package: postgresql (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
22
6f7fcfe88cf3 new package: postgresql (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
23 # PostgreSQL
6f7fcfe88cf3 new package: postgresql (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
24 PKG := postgresql
6f7fcfe88cf3 new package: postgresql (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
25 $(PKG)_IGNORE :=
6f7fcfe88cf3 new package: postgresql (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
26 $(PKG)_VERSION := 8.4.1
6f7fcfe88cf3 new package: postgresql (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
27 $(PKG)_CHECKSUM := e6903f0029402ef8fb12645a177204499ea5b2b7
6f7fcfe88cf3 new package: postgresql (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
28 $(PKG)_SUBDIR := postgresql-$($(PKG)_VERSION)
6f7fcfe88cf3 new package: postgresql (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
29 $(PKG)_FILE := postgresql-$($(PKG)_VERSION).tar.bz2
6f7fcfe88cf3 new package: postgresql (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
30 $(PKG)_WEBSITE := http://www.postgresql.org/
6f7fcfe88cf3 new package: postgresql (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
31 $(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
32 $(PKG)_URL_2 := http://ftp10.us.postgresql.org/postgresql/source/v$($(PKG)_VERSION)/$($(PKG)_FILE)
6f7fcfe88cf3 new package: postgresql (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
33 $(PKG)_DEPS := gcc zlib
6f7fcfe88cf3 new package: postgresql (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
34
6f7fcfe88cf3 new package: postgresql (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
35 define $(PKG)_UPDATE
6f7fcfe88cf3 new package: postgresql (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
36 wget -q -O- 'http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/' | \
6f7fcfe88cf3 new package: postgresql (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
37 grep '<option>REL' | \
6f7fcfe88cf3 new package: postgresql (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
38 $(SED) -n 's,.*REL\([0-9][0-9_]*\)<.*,\1,p' | \
6f7fcfe88cf3 new package: postgresql (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
39 $(SED) 's,_,.,g' | \
6f7fcfe88cf3 new package: postgresql (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
40 head -1
6f7fcfe88cf3 new package: postgresql (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
41 endef
6f7fcfe88cf3 new package: postgresql (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
42
6f7fcfe88cf3 new package: postgresql (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
43 define $(PKG)_BUILD
6f7fcfe88cf3 new package: postgresql (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
44 # 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
45 # We have to build the shared library, but we won't install it.
6f7fcfe88cf3 new package: postgresql (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
46 cd '$(1)' && ./configure \
528
cc31dacda67d improved coding style
Volker Grabsch <vog@notjusthosting.com>
parents: 527
diff changeset
47 --prefix='$(PREFIX)/$(TARGET)' \
cc31dacda67d improved coding style
Volker Grabsch <vog@notjusthosting.com>
parents: 527
diff changeset
48 --host='$(TARGET)' \
580
3e5503e5ed58 build static library in package postgresql
Volker Grabsch <vog@notjusthosting.com>
parents: 528
diff changeset
49 --disable-shared \
528
cc31dacda67d improved coding style
Volker Grabsch <vog@notjusthosting.com>
parents: 527
diff changeset
50 --disable-rpath \
580
3e5503e5ed58 build static library in package postgresql
Volker Grabsch <vog@notjusthosting.com>
parents: 528
diff changeset
51 --without-tcl \
3e5503e5ed58 build static library in package postgresql
Volker Grabsch <vog@notjusthosting.com>
parents: 528
diff changeset
52 --without-perl \
3e5503e5ed58 build static library in package postgresql
Volker Grabsch <vog@notjusthosting.com>
parents: 528
diff changeset
53 --without-python \
3e5503e5ed58 build static library in package postgresql
Volker Grabsch <vog@notjusthosting.com>
parents: 528
diff changeset
54 --without-gssapi \
3e5503e5ed58 build static library in package postgresql
Volker Grabsch <vog@notjusthosting.com>
parents: 528
diff changeset
55 --without-krb5 \
3e5503e5ed58 build static library in package postgresql
Volker Grabsch <vog@notjusthosting.com>
parents: 528
diff changeset
56 --without-pam \
3e5503e5ed58 build static library in package postgresql
Volker Grabsch <vog@notjusthosting.com>
parents: 528
diff changeset
57 --without-ldap \
3e5503e5ed58 build static library in package postgresql
Volker Grabsch <vog@notjusthosting.com>
parents: 528
diff changeset
58 --without-bonjour \
3e5503e5ed58 build static library in package postgresql
Volker Grabsch <vog@notjusthosting.com>
parents: 528
diff changeset
59 --without-openssl \
528
cc31dacda67d improved coding style
Volker Grabsch <vog@notjusthosting.com>
parents: 527
diff changeset
60 --without-readline \
580
3e5503e5ed58 build static library in package postgresql
Volker Grabsch <vog@notjusthosting.com>
parents: 528
diff changeset
61 --without-ossp-uuid \
3e5503e5ed58 build static library in package postgresql
Volker Grabsch <vog@notjusthosting.com>
parents: 528
diff changeset
62 --without-libxml \
3e5503e5ed58 build static library in package postgresql
Volker Grabsch <vog@notjusthosting.com>
parents: 528
diff changeset
63 --without-libxslt \
528
cc31dacda67d improved coding style
Volker Grabsch <vog@notjusthosting.com>
parents: 527
diff changeset
64 --with-zlib \
cc31dacda67d improved coding style
Volker Grabsch <vog@notjusthosting.com>
parents: 527
diff changeset
65 --with-system-tzdata=/dev/null
581
4483a31d18ee improved coding style
Volker Grabsch <vog@notjusthosting.com>
parents: 580
diff changeset
66 $(MAKE) -C '$(1)'/src/interfaces/libpq -j '$(JOBS)' install haslibarule= shlib=
527
6f7fcfe88cf3 new package: postgresql (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
67 $(INSTALL) -m664 '$(1)/src/include/pg_config.h' '$(PREFIX)/$(TARGET)/include/'
6f7fcfe88cf3 new package: postgresql (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
68 $(INSTALL) -m664 '$(1)/src/include/postgres_ext.h' '$(PREFIX)/$(TARGET)/include/'
6f7fcfe88cf3 new package: postgresql (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
69 endef