Merge commit 'origin/opendreambox-1.6' into vuplus-1.6
[vuplus_openembedded] / recipes / db / db4-native.inc
1 # This wrapper builds a native version of the Oracal
2 # Berkeley DB for those packages which need it (e.g.
3 # perl).
4
5 VIRTUAL_NAME = "virtual/db-native"
6 CONFLICTS = "db3-native"
7 #PR tracks the non-native package
8
9 inherit native
10
11 do_package() {
12 :
13 }
14
15 PACKAGES = ""
16
17 do_stage() {
18          # The .h files get installed read-only, the autostage
19          # function just uses cp -pPR, so do this by hand
20          rm -rf ${STAGE_TEMP}
21          mkdir -p ${STAGE_TEMP}
22          oe_runmake DESTDIR="${STAGE_TEMP}" install_include
23          cp -pPRf ${STAGE_TEMP}/${includedir}/* ${STAGING_INCDIR}/.
24          rm -rf ${STAGE_TEMP}
25          oe_libinstall -so -C .libs libdb-${PVM} ${STAGING_LIBDIR}
26          ln -sf libdb-${PVM}.so ${STAGING_LIBDIR}/libdb.so
27          ln -sf libdb-${PVM}.a ${STAGING_LIBDIR}/libdb.a
28 }