2015-04-25 11:16:48 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# libdcadec
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2016-03-28 21:49:28 +02:00
|
|
|
LIBDCADEC_VERSION = v0.2.0
|
2015-04-25 11:16:48 +02:00
|
|
|
LIBDCADEC_SITE = $(call github,foo86,dcadec,$(LIBDCADEC_VERSION))
|
2017-03-30 15:43:34 +02:00
|
|
|
LIBDCADEC_LICENSE = LGPL-2.1+
|
2015-04-25 11:16:48 +02:00
|
|
|
LIBDCADEC_LICENSE_FILES = COPYING.LGPLv2.1
|
|
|
|
LIBDCADEC_INSTALL_STAGING = YES
|
|
|
|
|
2015-10-19 20:38:51 +02:00
|
|
|
ifeq ($(BR2_STATIC_LIBS),)
|
|
|
|
LIBDCADEC_SHARED = CONFIG_SHARED=1
|
|
|
|
endif
|
|
|
|
|
2015-04-25 11:16:48 +02:00
|
|
|
define LIBDCADEC_BUILD_CMDS
|
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) \
|
2015-10-19 20:38:51 +02:00
|
|
|
CFLAGS="$(TARGET_CFLAGS) -std=gnu99" \
|
|
|
|
$(LIBDCADEC_SHARED) -C $(@D)
|
2015-04-25 11:16:48 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define LIBDCADEC_INSTALL_STAGING_CMDS
|
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) \
|
2015-10-19 20:38:51 +02:00
|
|
|
$(LIBDCADEC_SHARED) DESTDIR=$(STAGING_DIR) PREFIX=/usr install
|
2015-04-25 11:16:48 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define LIBDCADEC_INSTALL_TARGET_CMDS
|
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) \
|
2015-10-19 20:38:51 +02:00
|
|
|
$(LIBDCADEC_SHARED) DESTDIR=$(TARGET_DIR) PREFIX=/usr install
|
2015-04-25 11:16:48 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(generic-package))
|