annotate src/postgresql.mk @ 587:226e462a8a73

add OpenSSL support to package postgresql
author Volker Grabsch <vog@notjusthosting.com>
date Fri, 11 Dec 2009 14:52:04 +0100
parents 0f2e4e754420
children 72e6bc298b7f
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)
587
226e462a8a73 add OpenSSL support to package postgresql
Volker Grabsch <vog@notjusthosting.com>
parents: 583
diff changeset
33 $(PKG)_DEPS := gcc zlib openssl readline
527
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
587
226e462a8a73 add OpenSSL support to package postgresql
Volker Grabsch <vog@notjusthosting.com>
parents: 583
diff changeset
44 # The static OpenSSL libraries are in unix (not win32) naming style.
226e462a8a73 add OpenSSL support to package postgresql
Volker Grabsch <vog@notjusthosting.com>
parents: 583
diff changeset
45 $(SED) 's,SSLEAY32,SSL,' -i '$(1)'/configure
226e462a8a73 add OpenSSL support to package postgresql
Volker Grabsch <vog@notjusthosting.com>
parents: 583
diff changeset
46 $(SED) 's,ssleay32,ssl,' -i '$(1)'/configure
226e462a8a73 add OpenSSL support to package postgresql
Volker Grabsch <vog@notjusthosting.com>
parents: 583
diff changeset
47 $(SED) 's,EAY32,CRYPTO,' -i '$(1)'/configure
226e462a8a73 add OpenSSL support to package postgresql
Volker Grabsch <vog@notjusthosting.com>
parents: 583
diff changeset
48 $(SED) 's,eay32,crypto,' -i '$(1)'/configure
226e462a8a73 add OpenSSL support to package postgresql
Volker Grabsch <vog@notjusthosting.com>
parents: 583
diff changeset
49 $(SED) 's,ssleay32,ssl,' -i '$(1)'/src/interfaces/libpq/Makefile
226e462a8a73 add OpenSSL support to package postgresql
Volker Grabsch <vog@notjusthosting.com>
parents: 583
diff changeset
50 $(SED) 's,eay32,crypto,' -i '$(1)'/src/interfaces/libpq/Makefile
527
6f7fcfe88cf3 new package: postgresql (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
51 # 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
52 cd '$(1)' && ./configure \
528
cc31dacda67d improved coding style
Volker Grabsch <vog@notjusthosting.com>
parents: 527
diff changeset
53 --prefix='$(PREFIX)/$(TARGET)' \
cc31dacda67d improved coding style
Volker Grabsch <vog@notjusthosting.com>
parents: 527
diff changeset
54 --host='$(TARGET)' \
580
3e5503e5ed58 build static library in package postgresql
Volker Grabsch <vog@notjusthosting.com>
parents: 528
diff changeset
55 --disable-shared \
528
cc31dacda67d improved coding style
Volker Grabsch <vog@notjusthosting.com>
parents: 527
diff changeset
56 --disable-rpath \
580
3e5503e5ed58 build static library in package postgresql
Volker Grabsch <vog@notjusthosting.com>
parents: 528
diff changeset
57 --without-tcl \
3e5503e5ed58 build static library in package postgresql
Volker Grabsch <vog@notjusthosting.com>
parents: 528
diff changeset
58 --without-perl \
3e5503e5ed58 build static library in package postgresql
Volker Grabsch <vog@notjusthosting.com>
parents: 528
diff changeset
59 --without-python \
3e5503e5ed58 build static library in package postgresql
Volker Grabsch <vog@notjusthosting.com>
parents: 528
diff changeset
60 --without-gssapi \
3e5503e5ed58 build static library in package postgresql
Volker Grabsch <vog@notjusthosting.com>
parents: 528
diff changeset
61 --without-krb5 \
3e5503e5ed58 build static library in package postgresql
Volker Grabsch <vog@notjusthosting.com>
parents: 528
diff changeset
62 --without-pam \
3e5503e5ed58 build static library in package postgresql
Volker Grabsch <vog@notjusthosting.com>
parents: 528
diff changeset
63 --without-ldap \
3e5503e5ed58 build static library in package postgresql
Volker Grabsch <vog@notjusthosting.com>
parents: 528
diff changeset
64 --without-bonjour \
587
226e462a8a73 add OpenSSL support to package postgresql
Volker Grabsch <vog@notjusthosting.com>
parents: 583
diff changeset
65 --with-openssl \
583
0f2e4e754420 add readline support to package postgresql (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents: 582
diff changeset
66 --with-readline \
580
3e5503e5ed58 build static library in package postgresql
Volker Grabsch <vog@notjusthosting.com>
parents: 528
diff changeset
67 --without-ossp-uuid \
3e5503e5ed58 build static library in package postgresql
Volker Grabsch <vog@notjusthosting.com>
parents: 528
diff changeset
68 --without-libxml \
3e5503e5ed58 build static library in package postgresql
Volker Grabsch <vog@notjusthosting.com>
parents: 528
diff changeset
69 --without-libxslt \
528
cc31dacda67d improved coding style
Volker Grabsch <vog@notjusthosting.com>
parents: 527
diff changeset
70 --with-zlib \
582
6be6f016a86f build the psql.exe command line tool of package postgresql
Volker Grabsch <vog@notjusthosting.com>
parents: 581
diff changeset
71 --with-system-tzdata=/dev/null \
587
226e462a8a73 add OpenSSL support to package postgresql
Volker Grabsch <vog@notjusthosting.com>
parents: 583
diff changeset
72 LIBS='-lsecur32 -lws2_32 -lgdi32'
581
4483a31d18ee improved coding style
Volker Grabsch <vog@notjusthosting.com>
parents: 580
diff changeset
73 $(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
74 $(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
75 $(MAKE) -C '$(1)'/src/bin/psql -j '$(JOBS)' install haslibarule= shlib=
527
6f7fcfe88cf3 new package: postgresql (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
76 $(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
77 $(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
78 endef