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