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"
--- /dev/null
+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
--- /dev/null
+################################################################################
+#
+# 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))