Mercurial > mxe-octave
annotate src/postgresql.mk @ 641:dab071eac9c0
simplified file markers
author | Volker Grabsch <vog@notjusthosting.com> |
---|---|
date | Sat, 16 Jan 2010 23:02:02 +0100 |
parents | 084660a420ed |
children | 73ebc5c43231 |
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. |
dab071eac9c0
simplified file markers
Volker Grabsch <vog@notjusthosting.com>
parents:
598
diff
changeset
|
2 # See doc/index.html or doc/README 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 := |
598
084660a420ed
update version of package postgresql
Mark Brand <mabrand@mabrand.nl>
parents:
589
diff
changeset
|
7 $(PKG)_VERSION := 8.4.2 |
084660a420ed
update version of package postgresql
Mark Brand <mabrand@mabrand.nl>
parents:
589
diff
changeset
|
8 $(PKG)_CHECKSUM := a617698ef3b41a74fe2c4af346172eb03e7f8a7f |
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 |
6f7fcfe88cf3
new package: postgresql (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
17 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
|
18 grep '<option>REL' | \ |
6f7fcfe88cf3
new package: postgresql (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
19 $(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
|
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 |
587
226e462a8a73
add OpenSSL support to package postgresql
Volker Grabsch <vog@notjusthosting.com>
parents:
583
diff
changeset
|
25 # 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
|
26 $(SED) 's,SSLEAY32,SSL,' -i '$(1)'/configure |
226e462a8a73
add OpenSSL support to package postgresql
Volker Grabsch <vog@notjusthosting.com>
parents:
583
diff
changeset
|
27 $(SED) 's,ssleay32,ssl,' -i '$(1)'/configure |
226e462a8a73
add OpenSSL support to package postgresql
Volker Grabsch <vog@notjusthosting.com>
parents:
583
diff
changeset
|
28 $(SED) 's,EAY32,CRYPTO,' -i '$(1)'/configure |
226e462a8a73
add OpenSSL support to package postgresql
Volker Grabsch <vog@notjusthosting.com>
parents:
583
diff
changeset
|
29 $(SED) 's,eay32,crypto,' -i '$(1)'/configure |
226e462a8a73
add OpenSSL support to package postgresql
Volker Grabsch <vog@notjusthosting.com>
parents:
583
diff
changeset
|
30 $(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
|
31 $(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
|
32 # 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
|
33 cd '$(1)' && ./configure \ |
528
cc31dacda67d
improved coding style
Volker Grabsch <vog@notjusthosting.com>
parents:
527
diff
changeset
|
34 --prefix='$(PREFIX)/$(TARGET)' \ |
cc31dacda67d
improved coding style
Volker Grabsch <vog@notjusthosting.com>
parents:
527
diff
changeset
|
35 --host='$(TARGET)' \ |
580
3e5503e5ed58
build static library in package postgresql
Volker Grabsch <vog@notjusthosting.com>
parents:
528
diff
changeset
|
36 --disable-shared \ |
528
cc31dacda67d
improved coding style
Volker Grabsch <vog@notjusthosting.com>
parents:
527
diff
changeset
|
37 --disable-rpath \ |
580
3e5503e5ed58
build static library in package postgresql
Volker Grabsch <vog@notjusthosting.com>
parents:
528
diff
changeset
|
38 --without-tcl \ |
3e5503e5ed58
build static library in package postgresql
Volker Grabsch <vog@notjusthosting.com>
parents:
528
diff
changeset
|
39 --without-perl \ |
3e5503e5ed58
build static library in package postgresql
Volker Grabsch <vog@notjusthosting.com>
parents:
528
diff
changeset
|
40 --without-python \ |
3e5503e5ed58
build static library in package postgresql
Volker Grabsch <vog@notjusthosting.com>
parents:
528
diff
changeset
|
41 --without-gssapi \ |
3e5503e5ed58
build static library in package postgresql
Volker Grabsch <vog@notjusthosting.com>
parents:
528
diff
changeset
|
42 --without-krb5 \ |
3e5503e5ed58
build static library in package postgresql
Volker Grabsch <vog@notjusthosting.com>
parents:
528
diff
changeset
|
43 --without-pam \ |
3e5503e5ed58
build static library in package postgresql
Volker Grabsch <vog@notjusthosting.com>
parents:
528
diff
changeset
|
44 --without-ldap \ |
3e5503e5ed58
build static library in package postgresql
Volker Grabsch <vog@notjusthosting.com>
parents:
528
diff
changeset
|
45 --without-bonjour \ |
587
226e462a8a73
add OpenSSL support to package postgresql
Volker Grabsch <vog@notjusthosting.com>
parents:
583
diff
changeset
|
46 --with-openssl \ |
589
72e6bc298b7f
disable readline support because it doesn't work for package postgresql
Volker Grabsch <vog@notjusthosting.com>
parents:
587
diff
changeset
|
47 --without-readline \ |
580
3e5503e5ed58
build static library in package postgresql
Volker Grabsch <vog@notjusthosting.com>
parents:
528
diff
changeset
|
48 --without-ossp-uuid \ |
3e5503e5ed58
build static library in package postgresql
Volker Grabsch <vog@notjusthosting.com>
parents:
528
diff
changeset
|
49 --without-libxml \ |
3e5503e5ed58
build static library in package postgresql
Volker Grabsch <vog@notjusthosting.com>
parents:
528
diff
changeset
|
50 --without-libxslt \ |
528
cc31dacda67d
improved coding style
Volker Grabsch <vog@notjusthosting.com>
parents:
527
diff
changeset
|
51 --with-zlib \ |
582
6be6f016a86f
build the psql.exe command line tool of package postgresql
Volker Grabsch <vog@notjusthosting.com>
parents:
581
diff
changeset
|
52 --with-system-tzdata=/dev/null \ |
587
226e462a8a73
add OpenSSL support to package postgresql
Volker Grabsch <vog@notjusthosting.com>
parents:
583
diff
changeset
|
53 LIBS='-lsecur32 -lws2_32 -lgdi32' |
581
4483a31d18ee
improved coding style
Volker Grabsch <vog@notjusthosting.com>
parents:
580
diff
changeset
|
54 $(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
|
55 $(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
|
56 $(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
|
57 $(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
|
58 $(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
|
59 endef |