From 6fc9f9f085ab68f89ba6b22465fbdfc5411d41ba Mon Sep 17 00:00:00 2001 From: Kazumasa Mitsunari Date: Fri, 22 Jul 2016 10:32:11 +0900 Subject: First version of ported tizen application manager Change-Id: I46735869fe8113be58348d575e01734e498d2de2 Signed-off-by: Kazumasa Mitsunari --- .../recipes-others/bullet/bullet-extraconf.inc | 0 .../recipes-others/bullet/bullet.inc | 135 +++++++++++++++++++++ .../recipes-others/bullet/bullet_git.bb | 10 ++ 3 files changed, 145 insertions(+) create mode 100644 meta-application-manager/recipes-others/bullet/bullet-extraconf.inc create mode 100644 meta-application-manager/recipes-others/bullet/bullet.inc create mode 100644 meta-application-manager/recipes-others/bullet/bullet_git.bb (limited to 'meta-application-manager/recipes-others/bullet') diff --git a/meta-application-manager/recipes-others/bullet/bullet-extraconf.inc b/meta-application-manager/recipes-others/bullet/bullet-extraconf.inc new file mode 100644 index 0000000..e69de29 diff --git a/meta-application-manager/recipes-others/bullet/bullet.inc b/meta-application-manager/recipes-others/bullet/bullet.inc new file mode 100644 index 0000000..1a02eb3 --- /dev/null +++ b/meta-application-manager/recipes-others/bullet/bullet.inc @@ -0,0 +1,135 @@ +DESCRIPTION = "Bullet Continuous Collision Detection and Physics Library" +HOMEPAGE = "http://nohomepage.org" +SECTION = "System/Libraries" +LICENSE = "Zlib" +PV = "2.81" + +SRC_URI = "" + +S = "${WORKDIR}/git" + +inherit autotools-brokensep + +BBCLASSEXTEND = "" +PROVIDES = "" + +#PROVIDES by bullet-dev +PROVIDES += "bullet-dev" + + +#PROVIDES by libbullet +PROVIDES += "libbullet" + + +#PROVIDES by bullet + + +RDEPENDS = "" +#RDEPENDS of bullet-dev (${PN}-dev) +RDEPENDS_${PN}-dev += "libbullet" + + +DEPENDS = "" +#DEPENDS of bullet +inherit tizen_cmake + +do_prep() { + cd ${S} + chmod -Rf a+rX,u+w,g-w,o-w ${S} + #setup -q + cp ${S}/packaging/bullet.manifest . + + +} +do_patch_append() { + bb.build.exec_func('do_prep', d) +} + +do_configure() { +} + +do_compile() { + cd ${S} + LANG=C + export LANG + unset DISPLAY + LD_AS_NEEDED=1; export LD_AS_NEEDED ; + + + + cmake \ + -DCMAKE_VERBOSE_MAKEFILE=ON \ + -DCMAKE_INSTALL_PREFIX:PATH=${prefix} \ + -DCMAKE_INSTALL_LIBDIR:PATH=${prefix}/lib \ + -DINCLUDE_INSTALL_DIR:PATH=${prefix}/include \ + -DLIB_INSTALL_DIR:PATH=${prefix}/lib \ + -DSYSCONF_INSTALL_DIR:PATH=${sysconfdir} \ + -DSHARE_INSTALL_PREFIX:PATH=${prefix}/share \ + -DCMAKE_SKIP_RPATH:BOOL=ON \ + -DBUILD_SHARED_LIBS:BOOL=ON \ + -DCMAKE_TOOLCHAIN_FILE=${WORKDIR}/toolchain.cmake \ + ${EXTRA_OECMAKE} . -G "Unix Makefiles" -DBUILD_SHARED_LIBS=ON -DBUILD_EXTRAS=OFF -DBUILD_DEMOS=OFF -DBUILD_CPU_DEMOS=OFF -DUSE_GRAPHICAL_BENCHMARK=OFF -DCMAKE_INSTALL_PREFIX=/usr -DUSE_GLUT=OFF + + make ${PARALLEL_MAKE} + + + +} + +do_install() { + export RPM_BUILD_ROOT=${D} + cd ${S} + LANG=C + export LANG + unset DISPLAY + rm -rf ${D} + mkdir -p ${D} + + + oe_runmake \ + DESTDIR=${D} \ + INSTALL_ROOT=${D} \ + BINDIR=${prefix}/bin \ + install + rm -f ${D}${infodir}/dir + find ${D} -regex ".*\.la$" | xargs rm -f -- + find ${D} -regex ".*\.a$" | xargs rm -f -- + + +} + +pkg_postinst_libbullet() { + #!/bin/sh -e + + [ "x$D" == "x" ] && ldconfig +} + +pkg_postrm_libbullet() { + #!/bin/sh -e + + [ "x$D" == "x" ] && ldconfig +} + +PACKAGES = "${PN}-dbg ${PN}-doc ${PN}-locale" +PACKAGES += " bullet-dev " +PACKAGES += " libbullet " + +bullet-dev_files = "" +bullet-dev_files += "${prefix}/include/*" +bullet-dev_files += "${prefix}/lib/*.so" +bullet-dev_files += "${prefix}/lib/pkgconfig/*" +MANIFESTFILES_${PN}-dev = "bullet.manifest" + +libbullet_files = "" +libbullet_files += "${prefix}/lib/*.so.2.81" +libbullet_files += "" +MANIFESTFILES_lib${PN} = "bullet.manifest" + +FILES_${PN}-dev = "${bullet-dev_files}" +FILES_lib${PN} = "${libbullet_files}" + +PKG_bullet-dev= "bullet-dev" +PKG_libbullet= "libbullet" + +require bullet-extraconf.inc + diff --git a/meta-application-manager/recipes-others/bullet/bullet_git.bb b/meta-application-manager/recipes-others/bullet/bullet_git.bb new file mode 100644 index 0000000..1989d19 --- /dev/null +++ b/meta-application-manager/recipes-others/bullet/bullet_git.bb @@ -0,0 +1,10 @@ +require bullet.inc + +PRIORITY = "10" + +LIC_FILES_CHKSUM ??= "file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6" + +SRC_URI += "git://review.tizen.org/platform/upstream/libbullet;tag=03875b02d03ae029f38cb35dc90ee3ff6d5fe696;nobranch=1" + +BBCLASSEXTEND += " native " + -- cgit 1.2.3-korg