add package alsa-scenario-0.2 59/21259/1
authorRonan Le Martret <ronan@fridu.net>
Fri, 16 May 2014 12:48:16 +0000 (14:48 +0200)
committerRonan Le Martret <ronan@fridu.net>
Fri, 16 May 2014 12:48:16 +0000 (14:48 +0200)
Change-Id: I5f84ecc76063bf9c0f0fe14b0c3a1c5f579a6167
Signed-off-by: Ronan Le Martret <ronan@fridu.net>
recipes-tizen/alsa-scenario-0.2/alsa-scenario-0.2-extraconf.inc [new file with mode: 0644]
recipes-tizen/alsa-scenario-0.2/alsa-scenario-0.2.inc [new file with mode: 0644]
recipes-tizen/alsa-scenario-0.2/alsa-scenario-0.2_git.bb [new file with mode: 0644]

diff --git a/recipes-tizen/alsa-scenario-0.2/alsa-scenario-0.2-extraconf.inc b/recipes-tizen/alsa-scenario-0.2/alsa-scenario-0.2-extraconf.inc
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/recipes-tizen/alsa-scenario-0.2/alsa-scenario-0.2.inc b/recipes-tizen/alsa-scenario-0.2/alsa-scenario-0.2.inc
new file mode 100644 (file)
index 0000000..0625d2c
--- /dev/null
@@ -0,0 +1,126 @@
+DESCRIPTION = "ALSA Scenario pkg"
+HOMEPAGE = "http://nohomepage.org"
+SECTION = "Multimedia/Audio"
+LICENSE = "LGPLv2+"
+
+SRC_URI = ""
+
+S = "${WORKDIR}/git"
+
+inherit autotools-brokensep
+
+BBCLASSEXTEND += ""
+PROVIDES = ""
+
+#PROVIDES by alsa-scenario-dev 
+
+
+#PROVIDES by alsa-scenario 
+
+
+RDEPENDS = ""
+#RDEPENDS of alsa-scenario-dev (alsa-scenario-dev)
+RDEPENDS_alsa-scenario-dev += "alsa-scenario"
+
+
+DEPENDS = ""
+#DEPENDS of alsa-scenario 
+DEPENDS += "alsa-lib"
+
+do_prep() {
+ cd ${S}
+ chmod -Rf a+rX,u+w,g-w,o-w ${S}
+ #setup -q
+ cp ${S}/packaging/alsa-scenario.manifest .
+}
+do_patch_append() {
+    bb.build.exec_func('do_prep', d)
+}
+
+do_configure() {
+}
+
+do_compile() {
+ cd ${S}
+ LANG=C
+ export LANG
+ unset DISPLAY
+ CFLAGS="-O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables" ; export CFLAGS ; 
+ CXXFLAGS="${CXXFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CXXFLAGS ; 
+ FFLAGS="${FFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -I%_fmoddir}" ; export FFLAGS ; 
+ LD_AS_NEEDED=1; export LD_AS_NEEDED ; 
+ cp -f /usr/share/libtool/config/config.guess ${WORKDIR}/alsa-scenario-0.2.1/
+ cp -f /usr/share/libtool/config/config.sub ${WORKDIR}/alsa-scenario-0.2.1/
+   CFLAGS="${CFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CFLAGS ; 
+   CXXFLAGS="${CXXFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CXXFLAGS ; 
+   FFLAGS="${FFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -I%_fmoddir}" ; export FFLAGS ; 
+   autotools_do_configure --build=${TARGET_SYS} --host=${HOST_SYS} \
+         --target=x86_64-tizen-linux \
+         --program-prefix= \
+         --prefix=${prefix} \
+         --exec-prefix=${prefix} \
+         --bindir=${prefix}/bin \
+         --sbindir=${prefix}/sbin \
+         --sysconfdir=${sysconfdir} \
+         --datadir=${prefix}/share \
+         --includedir=${prefix}/include \
+         --libdir=${prefix}/lib \
+         --libexecdir=${prefix}/libexec \
+         --localstatedir=${localstatedir} \
+         --sharedstatedir=${prefix}/com \
+         --mandir=${mandir} \
+         --infodir=${infodir} --disable-static
+ make -j16
+}
+
+do_install() {
+ echo 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 --
+}
+
+PACKAGES += " alsa-scenario-dev "
+PACKAGES += " alsa-scenario "
+
+alsa-scenario-dev_files = ""
+alsa-scenario-dev_files += "alsa-scenario.manifest"
+alsa-scenario-dev_files += "${prefix}/include/alsa/*.h"
+alsa-scenario-dev_files += "${prefix}/lib/libascenario.so"
+alsa-scenario-dev_files += "${prefix}/lib/pkgconfig/libascenario.pc"
+
+alsa-scenario_files = ""
+alsa-scenario_files += "alsa-scenario.manifest"
+alsa-scenario_files += "${prefix}/lib/libascenario-0.2.so.*"
+
+FILES_${PN}-dev = "${alsa-scenario-dev_files}"
+FILES_${PN} = "${alsa-scenario_files}"
+
+PKG_alsa-scenario-dev= "alsa-scenario-dev"
+PKG_alsa-scenario= "alsa-scenario"
+
+require alsa-scenario-0.2-extraconf.inc
+
diff --git a/recipes-tizen/alsa-scenario-0.2/alsa-scenario-0.2_git.bb b/recipes-tizen/alsa-scenario-0.2/alsa-scenario-0.2_git.bb
new file mode 100644 (file)
index 0000000..7177dc4
--- /dev/null
@@ -0,0 +1,10 @@
+require alsa-scenario-0.2.inc
+
+PRIORITY = "10"
+
+LIC_FILES_CHKSUM ??= "file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6"
+
+SRC_URI += "git://review.tizen.org/platform/core/multimedia/alsa-scenario-0.2;tag=8a7abb902764c6afdd4c3fab4d0ac29716117207;nobranch=1"
+
+BBCLASSEXTEND += " native "
+