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