summaryrefslogtreecommitdiff
path: root/recipes/db/db4-native.inc
blob: cc83d86dd8621cf86d2cd7980b7eacc3074563e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# This wrapper builds a native version of the Oracal
# Berkeley DB for those packages which need it (e.g.
# perl).

VIRTUAL_NAME = "virtual/db-native"
CONFLICTS = "db3-native"
#PR tracks the non-native package

inherit native

do_package() {
:
}

PACKAGES = ""

do_stage() {
         # The .h files get installed read-only, the autostage
         # function just uses cp -pPR, so do this by hand
         rm -rf ${STAGE_TEMP}
         mkdir -p ${STAGE_TEMP}
         oe_runmake DESTDIR="${STAGE_TEMP}" install_include
         cp -pPRf ${STAGE_TEMP}/${includedir}/* ${STAGING_INCDIR}/.
         rm -rf ${STAGE_TEMP}
         oe_libinstall -so -C .libs libdb-${PVM} ${STAGING_LIBDIR}
         ln -sf libdb-${PVM}.so ${STAGING_LIBDIR}/libdb.so
         ln -sf libdb-${PVM}.a ${STAGING_LIBDIR}/libdb.a
}