package/libdcadec: new package
authorBernd Kuhls <bernd.kuhls@t-online.de>
Sat, 25 Apr 2015 09:16:48 +0000 (11:16 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sat, 25 Apr 2015 09:26:46 +0000 (11:26 +0200)
Needed for next ffmpeg release:
http://git.videolan.org/?p=ffmpeg.git;a=blobdiff;f=Changelog;h=4542e324d8ab722468ed251325a3efddb28bff8e;hp=46304d83a90d2a846421a61f9391dfcd1e52ba31;hb=72025ac36c740f031d7e413041fdfe97087c83c4;hpb=6fe2641d6e410b7bc203138fa97e1118b411f16d

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/Config.in
package/libdcadec/Config.in [new file with mode: 0644]
package/libdcadec/libdcadec.mk [new file with mode: 0644]

index 7e25109710d31083d0431362cbf576a0563d8743..3370d59139cee61dc299e79139c020eb39edcc03 100644 (file)
@@ -896,6 +896,7 @@ endmenu
 menu "Multimedia"
        source "package/libass/Config.in"
        source "package/libbluray/Config.in"
+       source "package/libdcadec/Config.in"
        source "package/libdvbcsa/Config.in"
        source "package/libdvbsi/Config.in"
        source "package/libdvdnav/Config.in"
diff --git a/package/libdcadec/Config.in b/package/libdcadec/Config.in
new file mode 100644 (file)
index 0000000..2687a18
--- /dev/null
@@ -0,0 +1,7 @@
+config BR2_PACKAGE_LIBDCADEC
+       bool "libdcadec"
+       help
+         dcadec is a free DTS Coherent Acoustics decoder with support
+         for HD extensions.
+
+         https://github.com/foo86/dcadec
diff --git a/package/libdcadec/libdcadec.mk b/package/libdcadec/libdcadec.mk
new file mode 100644 (file)
index 0000000..1c423f0
--- /dev/null
@@ -0,0 +1,28 @@
+################################################################################
+#
+# libdcadec
+#
+################################################################################
+
+LIBDCADEC_VERSION = 7b3b44cd180c9345c98be9062eac701eab5c7454
+LIBDCADEC_SITE = $(call github,foo86,dcadec,$(LIBDCADEC_VERSION))
+LIBDCADEC_LICENSE = LGPLv2.1+
+LIBDCADEC_LICENSE_FILES = COPYING.LGPLv2.1
+LIBDCADEC_INSTALL_STAGING = YES
+
+define LIBDCADEC_BUILD_CMDS
+       $(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) \
+               CFLAGS="$(TARGET_CFLAGS) -std=gnu99" -C $(@D)
+endef
+
+define LIBDCADEC_INSTALL_STAGING_CMDS
+       $(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) \
+               DESTDIR=$(STAGING_DIR) PREFIX=/usr install
+endef
+
+define LIBDCADEC_INSTALL_TARGET_CMDS
+       $(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) \
+               DESTDIR=$(TARGET_DIR) PREFIX=/usr install
+endef
+
+$(eval $(generic-package))