annotate src/postgresql.mk @ 527:6f7fcfe88cf3

new package: postgresql (by Mark Brand)
author Volker Grabsch <vog@notjusthosting.com>
date Mon, 09 Nov 2009 02:13:41 +0100
parents
children cc31dacda67d
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 \
6f7fcfe88cf3 new package: postgresql (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
47 --prefix='$(PREFIX)/$(TARGET)' \
6f7fcfe88cf3 new package: postgresql (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
48 --host='$(TARGET)' \
6f7fcfe88cf3 new package: postgresql (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
49 --disable-rpath \
6f7fcfe88cf3 new package: postgresql (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
50 --without-readline \
6f7fcfe88cf3 new package: postgresql (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
51 --with-zlib \
6f7fcfe88cf3 new package: postgresql (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
52 --with-system-tzdata=/dev/null
6f7fcfe88cf3 new package: postgresql (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
53 $(MAKE) -C '$(1)'/src/interfaces/libpq -j '$(JOBS)'
6f7fcfe88cf3 new package: postgresql (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
54 $(MAKE) -C '$(1)'/src/interfaces/libpq -j '$(JOBS)' install enable_shared=no
6f7fcfe88cf3 new package: postgresql (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
55 $(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
56 $(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
57 endef