diff options
Diffstat (limited to 'meta-oe/recipes-support/postgresql/postgresql.inc')
-rw-r--r-- | meta-oe/recipes-support/postgresql/postgresql.inc | 66 |
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 @@ | |||
1 | DESCRIPTION = "PostgreSQL is a powerful, open source relational database system." | ||
2 | HOMEPAGE = "http://www.postgresql.com" | ||
3 | LICENSE = "BSD" | ||
4 | |||
5 | DEPENDS = "zlib readline tzcode-native" | ||
6 | |||
7 | ARM_INSTRUCTION_SET = "arm" | ||
8 | |||
9 | #WARNING: this recipe assumes you have the timezone compiler present in /usr/sbin/zic | ||
10 | |||
11 | SRC_URI = "ftp://ftp-archives.postgresql.org/pub/source/v${PV}/${P}.tar.bz2" | ||
12 | |||
13 | LEAD_SONAME = "libpq.so" | ||
14 | |||
15 | # LDFLAGS for shared libraries | ||
16 | export LDFLAGS_SL = "${LDFLAGS}" | ||
17 | |||
18 | inherit autotools pkgconfig | ||
19 | |||
20 | do_compile_append() { | ||
21 | cp /usr/sbin/zic ${S}/src/timezone/ | ||
22 | } | ||
23 | |||
24 | PACKAGES =+ "${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 | |||
30 | FILES_${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 | |||
46 | FILES_${PN}-doc += "${prefix}/doc/" | ||
47 | FILES_${PN}-timezone = "${datadir}/${PN}/timezone" | ||
48 | FILES_${PN}-server-dev = "${includedir}/${PN}/server" | ||
49 | |||
50 | FILES_libecpg = "${libdir}/libecpg*.so.*" | ||
51 | FILES_libecpg-dbg = "${libdir}/.debug/libecpg*" | ||
52 | FILES_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 | |||
58 | FILES_libpq = "${libdir}/libpq*.so.*" | ||
59 | FILES_libpq-dbg = "${libdir}/.debug/libpq* ${libdir}/${PN}/pgxs/src/test/regress/.debug/*" | ||
60 | FILES_libpq-dev = "${libdir}/libpq*.a ${libdir}/libpq*.so ${libdir}/libpgport.a \ | ||
61 | ${includedir}" | ||
62 | |||
63 | FILES_libecpg-compat = "${libdir}/libecpg_compat*.so.*" | ||
64 | FILES_libecpg-compat-dbg = "${libdir}/.debug/libecpg_compat*" | ||
65 | FILES_libpgtypes = "${libdir}/libpgtypes*.so.*" | ||
66 | FILES_libpgtypes-dbg = "${libdir}/.debug/libpgtypes*" | ||