toolchain: bump Codescape IMG MIPS version to 2016.05-06
[buildroot-gz.git] / package / libamcodec / libamcodec.mk
blob8fab95dce7ccfca8218d6d8dc910beb794b286e8
1 ################################################################################
3 # libamcodec
5 ################################################################################
7 LIBAMCODEC_VERSION = 6f9b99182f94be14fce785c75aa1e9bce868e229
8 LIBAMCODEC_SITE = $(call github,mdrjr,c2_aml_libs,$(LIBAMCODEC_VERSION))
9 LIBAMCODEC_DEPENDENCIES = alsa-lib
10 LIBAMCODEC_LICENSE = Unclear
11 LIBAMCODEC_INSTALL_STAGING = YES
13 # This package uses the AML_LIBS_STAGING_DIR variable to construct the
14 # header and library paths used when compiling
15 define LIBAMCODEC_BUILD_CMDS
16 $(foreach d,amavutils amadec amcodec,\
17 $(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) \
18 -C $(@D)/$(d) AML_LIBS_STAGING_DIR=$(STAGING_DIR)
20 endef
22 define LIBAMCODEC_INSTALL_STAGING_CMDS
23 $(INSTALL) -D -m 0755 $(@D)/amavutils/libamavutils.so $(STAGING_DIR)/usr/lib/libamavutils.so
24 $(INSTALL) -D -m 0555 $(@D)/amadec/libamadec.so $(STAGING_DIR)/usr/lib/libamadec.so
25 $(INSTALL) -D -m 0555 $(@D)/amcodec/libamcodec.so $(STAGING_DIR)/usr/lib/libamcodec.so
26 mkdir -p $(STAGING_DIR)/usr/include/amcodec
27 cp -rf $(@D)/amcodec/include/* $(STAGING_DIR)/usr/include/amcodec
28 endef
30 define LIBAMCODEC_INSTALL_TARGET_CMDS
31 $(INSTALL) -D -m 0755 $(@D)/amavutils/libamavutils.so $(TARGET_DIR)/usr/lib/libamavutils.so
32 $(INSTALL) -D -m 0555 $(@D)/amadec/libamadec.so $(TARGET_DIR)/usr/lib/libamadec.so
33 $(INSTALL) -D -m 0555 $(@D)/amcodec/libamcodec.so $(TARGET_DIR)/usr/lib/libamcodec.so
34 endef
36 $(eval $(generic-package))