summaryrefslogtreecommitdiffstats
path: root/recipes-support/postgresql/postgresql.inc
diff options
context:
space:
mode:
authorKoen Kooi <koen@dominion.thruhere.net>2011-01-03 11:45:04 +0100
committerKoen Kooi <koen@dominion.thruhere.net>2011-01-03 12:02:34 +0100
commit982fc759b16d655474acf5236f7f1633b62e510d (patch)
tree596b069f4d15e1d79bad37f461c6602bf480e43f /recipes-support/postgresql/postgresql.inc
parentef3de09a6bec187e1b6b8db46c55a237ba226a2c (diff)
downloadmeta-openembedded-982fc759b16d655474acf5236f7f1633b62e510d.tar.gz
postgresql: import from OE
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Diffstat (limited to 'recipes-support/postgresql/postgresql.inc')
-rw-r--r--recipes-support/postgresql/postgresql.inc65
1 files changed, 65 insertions, 0 deletions
diff --git a/recipes-support/postgresql/postgresql.inc b/recipes-support/postgresql/postgresql.inc
new file mode 100644
index 0000000000..54a046e568
--- /dev/null
+++ b/recipes-support/postgresql/postgresql.inc
@@ -0,0 +1,65 @@
1DESCRIPTION = "PostgreSQL is a powerful, open source relational database system."
2HOMEPAGE = "http://www.postgresql.com"
3LICENSE = "BSD"
4DEPENDS = "zlib readline"
5
6ARM_INSTRUCTION_SET = "arm"
7
8#WARNING: this recipe assumes you have the timezone compiler present in /usr/sbin/zic
9
10SRC_URI = "ftp://ftp-archives.postgresql.org/pub/source/v${PV}/${P}.tar.bz2"
11
12LEAD_SONAME = "libpq.so"
13
14# LDFLAGS for shared libraries
15export LDFLAGS_SL = "${LDFLAGS}"
16
17inherit autotools pkgconfig
18
19do_compile_append() {
20 cp /usr/sbin/zic ${S}/src/timezone/
21}
22
23PACKAGES =+ "${PN}-client ${PN}-server-dev ${PN}-timezone \
24 libecpg-compat-dbg libecpg-compat \
25 libecpg-dbg libecpg libecpg-dev \
26 libpq-dbg libpq libpq-dev \
27 libpgtypes-dbg libpgtypes "
28
29FILES_${PN}-client = "${bindir}/clusterdb \
30 ${bindir}/createdb \
31 ${bindir}/createlang \
32 ${bindir}/createuser \
33 ${bindir}/dropdb \
34 ${bindir}/droplang \
35 ${bindir}/dropuser \
36 ${bindir}/pg_dump \
37 ${bindir}/pg_dumpall \
38 ${bindir}/pg_restore \
39 ${bindir}/psql \
40 ${bindir}/reindexdb \
41 ${bindir}/vacuumdb \
42 ${bindir}/vacuumlo \
43 ${datadir}/${PN}/psqlrc.sample"
44
45FILES_${PN}-doc += "${prefix}/doc/"
46FILES_${PN}-timezone = "${datadir}/${PN}/timezone"
47FILES_${PN}-server-dev = "${includedir}/${PN}/server"
48
49FILES_libecpg = "${libdir}/libecpg*.so.*"
50FILES_libecpg-dbg = "${libdir}/.debug/libecpg*"
51FILES_libecpg-dev = "${libdir}/libecpg*.a ${libdir}/libecpg*.so \
52 ${libdir}/libpgtypes*.a ${libdir}/libpgtypes*.so \
53 ${includedir}/ecpg*.h ${includedir}/${PN}/ecpg*.h \
54 ${includedir}/pgtypes*.h ${includedir}/${PN}/informix \
55 ${includedir}/sql3types.h ${includedir}/sqlca.h"
56
57FILES_libpq = "${libdir}/libpq*.so.*"
58FILES_libpq-dbg = "${libdir}/.debug/libpq* ${libdir}/${PN}/pgxs/src/test/regress/.debug/*"
59FILES_libpq-dev = "${libdir}/libpq*.a ${libdir}/libpq*.so ${libdir}/libpgport.a \
60 ${includedir}"
61
62FILES_libecpg-compat = "${libdir}/libecpg_compat*.so.*"
63FILES_libecpg-compat-dbg = "${libdir}/.debug/libecpg_compat*"
64FILES_libpgtypes = "${libdir}/libpgtypes*.so.*"
65FILES_libpgtypes-dbg = "${libdir}/.debug/libpgtypes*"