cdparanoia: create libcdparanoia packages
authorAndreas Oberritter <obi@opendreambox.org>
Wed, 29 Sep 2010 10:36:30 +0000 (10:36 +0000)
committerFrans Meulenbroeks <fransmeulenbroeks@gmail.com>
Thu, 30 Sep 2010 20:58:55 +0000 (22:58 +0200)
* Create separate packages for the libraries, which
  use a different license than the executable:

"The cdparanoia command line tool versions 10.1 and later are
 distributed under the GNU General Public Licence v2.0 or, at your
 option, any later version of the GPL."

"The 10.1 and later release versions of the cdda-interface and
 cdda-paranoia libraries are distributed the GNU Lesser General Public
 License v2.1 or, at your option, any later version of the GNU LGPL."

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
Signed-off-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
recipes/cdparanoia/cdparanoia_10.2.bb
recipes/cdparanoia/cdparanoia_svn.bb

index 7bb6035..894c038 100644 (file)
@@ -2,6 +2,7 @@
 # Copyright (C) 2005, Advanced Micro Devices, Inc.  All Rights Reserved
 # Released under the MIT license (see packages/COPYING)
 LICENSE = "GPL"
+PR = "r1"
 
 SRC_URI = "http://downloads.xiph.org/releases/cdparanoia/cdparanoia-III-10.2.src.tgz \
          file://fixes10.patch \
@@ -17,6 +18,19 @@ S = "${WORKDIR}/cdparanoia-III-10.2"
 
 inherit autotools
 
+PACKAGES += "libcdparanoia libcdparanoia-dev libcdparanoia-static"
+
+LICENSE_libcdparanoia = "LGPLv2.1"
+LICENSE_libcdparanoia-dev = "LGPLv2.1"
+LICENSE_libcdparanoia-static = "LGPLv2.1"
+
+FILES_${PN} = "${bindir}/*"
+FILES_${PN}-dev = ""
+FILES_${PN}-static = ""
+FILES_libcdparanoia = "${libdir}/lib*${SOLIBS}"
+FILES_libcdparanoia-dev = "${includedir} ${libdir}/lib*${SOLIBSDEV}"
+FILES_libcdparanoia-static = "${libdir}/*.a"
+
 do_install() {
         oe_runmake BINDIR="${D}/usr/bin" MANDIR="${D}/usr/share/man/" \
                    INCLUDEDIR="${D}/usr/include/" LIBDIR="${D}/usr/lib" install
index 0f81d6c..5610450 100644 (file)
@@ -2,7 +2,7 @@
 # Copyright (C) 2005, Advanced Micro Devices, Inc.  All Rights Reserved
 # Released under the MIT license (see packages/COPYING)
 
-PR = "r2"
+PR = "r3"
 LICENSE = "GPL"
 
 PV = "10.2+svnr${SRCPV}"
@@ -21,6 +21,19 @@ PARALLEL_MAKE = ""
 
 inherit autotools
 
+PACKAGES += "libcdparanoia libcdparanoia-dev libcdparanoia-static"
+
+LICENSE_libcdparanoia = "LGPLv2.1"
+LICENSE_libcdparanoia-dev = "LGPLv2.1"
+LICENSE_libcdparanoia-static = "LGPLv2.1"
+
+FILES_${PN} = "${bindir}/*"
+FILES_${PN}-dev = ""
+FILES_${PN}-static = ""
+FILES_libcdparanoia = "${libdir}/lib*${SOLIBS}"
+FILES_libcdparanoia-dev = "${includedir} ${libdir}/lib*${SOLIBSDEV}"
+FILES_libcdparanoia-static = "${libdir}/*.a"
+
 do_install() {
        oe_runmake BINDIR="${D}/usr/bin" MANDIR="${D}/usr/share/man/" \
                   INCLUDEDIR="${D}/usr/include/" LIBDIR="${D}/usr/lib" install