diff options
| author | João Henrique Ferreira de Freitas <joaohf@gmail.com> | 2014-02-25 19:26:26 -0300 |
|---|---|---|
| committer | João Henrique Ferreira de Freitas <joaohf@gmail.com> | 2014-02-25 19:26:26 -0300 |
| commit | 68f9a9c4ab01590d63506126660e3316ba668f99 (patch) | |
| tree | bb0a3b8dfb5aceba94c567c3ca2e4697d42f569f /recipes-extended/safplus | |
| download | meta-openclovis-68f9a9c4ab01590d63506126660e3316ba668f99.tar.gz | |
Initial population
Diffstat (limited to 'recipes-extended/safplus')
| -rw-r--r-- | recipes-extended/safplus/safplus_6.1.bb | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/recipes-extended/safplus/safplus_6.1.bb b/recipes-extended/safplus/safplus_6.1.bb new file mode 100644 index 0000000..0f35a94 --- /dev/null +++ b/recipes-extended/safplus/safplus_6.1.bb | |||
| @@ -0,0 +1,59 @@ | |||
| 1 | DESCRIPTION = "The canonical example of init scripts" | ||
| 2 | SECTION = "base" | ||
| 3 | LICENSE = "GPLv2" | ||
| 4 | LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f" | ||
| 5 | PR = "r0" | ||
| 6 | |||
| 7 | DEPENDS = "sqlite3 glib-2.0 gdbm" | ||
| 8 | RDEPENDS_${PN} = "sqlite3 glib-2.0 gdbm" | ||
| 9 | RPROVIDES_${PN} += "libClUtils.so libmw.so libClDbal.so" | ||
| 10 | |||
| 11 | SRC_URI = "git://github.com/OpenClovis/SAFplus-Availability-Scalability-Platform" | ||
| 12 | |||
| 13 | inherit autotools | ||
| 14 | |||
| 15 | S = "${WORKDIR}/${BP}/src/SAFplus" | ||
| 16 | |||
| 17 | OC_SDK = "${WORKDIR}/clovis" | ||
| 18 | OC_ASP_BUILD = "${WORKDIR}/asp_build" | ||
| 19 | |||
| 20 | OC_TARGET_DIR = "${prefix}/target/${TARGET_ARCH}/${TARGET_OS}" | ||
| 21 | |||
| 22 | EXTRA_OECONF = " \ | ||
| 23 | --with-sdk-dir=${OC_SDK} \ | ||
| 24 | --with-safplus-build \ | ||
| 25 | --without-snmp-build \ | ||
| 26 | --prefix=${D}${prefix} \ | ||
| 27 | " | ||
| 28 | |||
| 29 | do_configure () { | ||
| 30 | |||
| 31 | mkdir -p ${OC_SDK}/6.1/sdk | ||
| 32 | mkdir -p ${OC_SDK}/6.1/buildtools/yocto | ||
| 33 | mkdir -p ${OC_ASP_BUILD} | ||
| 34 | cd ${OC_ASP_BUILD} | ||
| 35 | |||
| 36 | TARGET=${TARGET_OS} \ | ||
| 37 | ARCH=${TARGET_ARCH} \ | ||
| 38 | MARCH=${TARGET_ARCH} \ | ||
| 39 | ${S}/configure ${EXTRA_OECONF} | ||
| 40 | } | ||
| 41 | |||
| 42 | do_compile () { | ||
| 43 | |||
| 44 | cd ${OC_ASP_BUILD}/asp/build/local | ||
| 45 | make | ||
| 46 | |||
| 47 | } | ||
| 48 | |||
| 49 | do_install () { | ||
| 50 | cd ${OC_ASP_BUILD}/asp/build/local | ||
| 51 | make safplus-install | ||
| 52 | } | ||
| 53 | |||
| 54 | INSANE_SKIP_${PN} += "dev-so libdir" | ||
| 55 | INSANE_SKIP_${PN}-dbg += "libdir" | ||
| 56 | |||
| 57 | FILES_${PN}-dbg += " ${OC_TARGET_DIR}/lib/.debug ${OC_TARGET_DIR}/lib/shared-*/.debug" | ||
| 58 | FILES_${PN}-staticdev += " ${OC_TARGET_DIR}/lib/*.a" | ||
| 59 | FILES_${PN} += " ${OC_TARGET_DIR}" | ||
