libcddb: new package
authorJulien Boibessot <julien.boibessot@armadeus.com>
Fri, 31 Jul 2015 09:31:01 +0000 (11:31 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Fri, 18 Sep 2015 08:10:17 +0000 (10:10 +0200)
Signed-off-by: Julien Boibessot <julien.boibessot@armadeus.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/Config.in
package/libcddb/Config.in [new file with mode: 0644]
package/libcddb/libcddb.hash [new file with mode: 0644]
package/libcddb/libcddb.mk [new file with mode: 0644]

index de072e18f0381f2f463fecda05d92bf51f2559dd..8c82534dc151b4d650e059dc26407749eb88bc95 100644 (file)
@@ -696,6 +696,7 @@ menu "Audio/Sound"
        source "package/libao/Config.in"
        source "package/libbroadvoice/Config.in"
        source "package/libcdaudio/Config.in"
+       source "package/libcddb/Config.in"
        source "package/libcdio/Config.in"
        source "package/libcodec2/Config.in"
        source "package/libcue/Config.in"
diff --git a/package/libcddb/Config.in b/package/libcddb/Config.in
new file mode 100644 (file)
index 0000000..f2bb827
--- /dev/null
@@ -0,0 +1,20 @@
+config BR2_PACKAGE_LIBCDDB
+       bool "libcddb"
+       select BR2_PACKAGE_LIBICONV if !BR2_ENABLE_LOCALE
+       help
+         Libcddb is a C library to access data on a CDDB server
+         (freedb.org). It allows you to:
+           * search the database for possible CD matches;
+           * retrieve detailed information about a specific CD;
+           * submit new CD entries to the database.
+
+         http://libcddb.sourceforge.net/index.html
+
+if BR2_PACKAGE_LIBCDDB
+
+config BR2_PACKAGE_LIBCDDB_INSTALL_CDDB_QUERY
+       bool "install cddb_query"
+       help
+         cddb_query is an optionnal libcddb test program.
+
+endif
diff --git a/package/libcddb/libcddb.hash b/package/libcddb/libcddb.hash
new file mode 100644 (file)
index 0000000..9e60683
--- /dev/null
@@ -0,0 +1,2 @@
+# Locally computed:
+sha256 35ce0ee1741ea38def304ddfe84a958901413aa829698357f0bee5bb8f0a223b        libcddb-1.3.2.tar.bz2
diff --git a/package/libcddb/libcddb.mk b/package/libcddb/libcddb.mk
new file mode 100644 (file)
index 0000000..7ddb1e7
--- /dev/null
@@ -0,0 +1,26 @@
+################################################################################
+#
+# libcddb
+#
+################################################################################
+
+LIBCDDB_VERSION = 1.3.2
+LIBCDDB_SOURCE = libcddb-$(LIBCDDB_VERSION).tar.bz2
+LIBCDDB_SITE = http://downloads.sourceforge.net/libcddb/
+LIBCDDB_LICENSE = LGPLv2+
+LIBCDDB_LICENSE_FILES = COPYING
+LIBCDDB_INSTALL_STAGING = YES
+
+ifeq ($(BR2_ENABLE_LOCALE),)
+LIBCDDB_DEPENDENCIES += libiconv
+endif
+
+define LIBCDDB_REMOVE_CDDB_QUERY
+       rm -f $(TARGET_DIR)/usr/bin/cddb_query
+endef
+
+ifeq ($(BR2_PACKAGE_LIBCDDB_INSTALL_CDDB_QUERY),)
+LIBCDDB_POST_INSTALL_TARGET_HOOKS += LIBCDDB_REMOVE_CDDB_QUERY
+endif
+
+$(eval $(autotools-package))