btsco: unify
authorRolf Leggewie <oe-devel@rolf.leggewie.biz>
Tue, 19 Dec 2006 12:51:21 +0000 (12:51 +0000)
committerRolf Leggewie <oe-devel@rolf.leggewie.biz>
Tue, 19 Dec 2006 12:51:21 +0000 (12:51 +0000)
packages/btsco/btsco-module.inc [new file with mode: 0644]
packages/btsco/btsco-module_0.41.bb
packages/btsco/btsco-module_0.42.bb
packages/btsco/btsco.inc [new file with mode: 0644]
packages/btsco/btsco_0.41.bb
packages/btsco/btsco_0.42.bb

diff --git a/packages/btsco/btsco-module.inc b/packages/btsco/btsco-module.inc
new file mode 100644 (file)
index 0000000..5c38fb1
--- /dev/null
@@ -0,0 +1,19 @@
+DESCRIPTION = "Bluetooth-alsa headset module"
+SECTION = "kernel/modules"
+HOMEPAGE = "http://bluetooth-alsa.sourceforge.net/"
+LICENSE = "GPL"
+DEPENDS = "alsa-lib bluez-libs"
+
+inherit module
+
+SRC_URI = "${SOURCEFORGE_MIRROR}/bluetooth-alsa/btsco-${PV}.tar.gz \
+          file://makefile.patch;patch=1"
+
+S = "${WORKDIR}/btsco-${PV}/kernel"
+
+MAKE_TARGETS = "KERNEL_PATH=${STAGING_KERNEL_DIR} MAKE='make -e'"
+
+do_install() {
+       install -m 0755 -d ${D}${base_libdir}/modules/${KERNEL_VERSION}/extra
+       install -m 0644 ${S}/snd-bt-sco${KERNEL_OBJECT_SUFFIX} ${D}${base_libdir}/modules/${KERNEL_VERSION}/extra/
+}
index 4122bf8..46f6479 100644 (file)
@@ -1,20 +1,3 @@
-DESCRIPTION = "Bluetooth-alsa headset module"
-SECTION = "kernel/modules"
-HOMEPAGE = "http://bluetooth-alsa.sourceforge.net/"
-LICENSE = "GPL"
-DEPENDS = "alsa-lib bluez-libs"
-PR = "r1"
-
-inherit module
-
-SRC_URI = "${SOURCEFORGE_MIRROR}/bluetooth-alsa/btsco-0.41.tar.gz \
-          file://makefile.patch;patch=1"
+require btsco-module.inc
 
-S = "${WORKDIR}/btsco-${PV}/kernel"
-
-MAKE_TARGETS = "KERNEL_PATH=${STAGING_KERNEL_DIR} MAKE='make -e'"
-
-do_install() {
-       install -m 0755 -d ${D}${base_libdir}/modules/${KERNEL_VERSION}/extra
-       install -m 0644 ${S}/snd-bt-sco${KERNEL_OBJECT_SUFFIX} ${D}${base_libdir}/modules/${KERNEL_VERSION}/extra/
-}
+PR = "r1"
index 68c13a3..85b7790 100644 (file)
@@ -1,20 +1 @@
-DESCRIPTION = "Bluetooth-alsa headset module"
-SECTION = "kernel/modules"
-HOMEPAGE = "http://bluetooth-alsa.sourceforge.net/"
-LICENSE = "GPL"
-DEPENDS = "alsa-lib bluez-libs"
-PR = "r0"
-
-inherit module
-
-SRC_URI = "${SOURCEFORGE_MIRROR}/bluetooth-alsa/btsco-${PV}.tar.gz \
-          file://makefile.patch;patch=1"
-
-S = "${WORKDIR}/btsco-${PV}/kernel"
-
-MAKE_TARGETS = "KERNEL_PATH=${STAGING_KERNEL_DIR} MAKE='make -e'"
-
-do_install() {
-       install -m 0755 -d ${D}${base_libdir}/modules/${KERNEL_VERSION}/extra
-       install -m 0644 ${S}/snd-bt-sco${KERNEL_OBJECT_SUFFIX} ${D}${base_libdir}/modules/${KERNEL_VERSION}/extra/
-}
+require btsco-module.inc
diff --git a/packages/btsco/btsco.inc b/packages/btsco/btsco.inc
new file mode 100644 (file)
index 0000000..32009b9
--- /dev/null
@@ -0,0 +1,12 @@
+DESCRIPTION = "Bluetooth-alsa headset tool"
+HOMEPAGE = "http://bluetooth-alsa.sourceforge.net/"
+LICENSE = "GPL"
+DEPENDS = "alsa-lib bluez-libs"
+
+inherit autotools pkgconfig
+
+SRC_URI = "${SOURCEFORGE_MIRROR}/bluetooth-alsa/btsco-${PV}.tar.gz"
+
+S = "${WORKDIR}/${PN}-${PV}"
+
+CFLAGS += " -I${STAGING_INCDIR} "
index 04c8ae1..46c388a 100644 (file)
@@ -1,11 +1,3 @@
-DESCRIPTION = "Bluetooth-alsa headset tool"
-HOMEPAGE = "http://bluetooth-alsa.sourceforge.net/"
-LICENSE = "GPL"
-DEPENDS = "alsa-lib bluez-libs"
-PR = "r2"
-
-inherit autotools pkgconfig
+require btsco.inc
 
-SRC_URI = "${SOURCEFORGE_MIRROR}/bluetooth-alsa/btsco-0.41.tar.gz"
-
-S = "${WORKDIR}/${PN}-${PV}"
+PR = "r2"
index a4dd11b..1a8061c 100644 (file)
@@ -1,16 +1,4 @@
-DESCRIPTION = "Bluetooth-alsa headset tool"
-HOMEPAGE = "http://bluetooth-alsa.sourceforge.net/"
-LICENSE = "GPL"
-DEPENDS = "alsa-lib bluez-libs"
-PR = "r0"
-
-inherit autotools pkgconfig
-
-SRC_URI = "${SOURCEFORGE_MIRROR}/bluetooth-alsa/btsco-${PV}.tar.gz"
-
-S = "${WORKDIR}/${PN}-${PV}"
-
-CFLAGS += " -I${STAGING_INCDIR} "
+require btsco.inc
 
 #there are some bogus macros putting -I/usr/include into C(PP)FLAGS, lets fix that
 do_configure() {