python-dataproperty: bump version to 0.17.0
[buildroot-gz.git] / package / freescale-imx / imx-codec / imx-codec.mk
blob911ad8b1b0ecb995102aafaba4554bdc85a3f29d
1 ################################################################################
3 # imx-codec
5 ################################################################################
7 IMX_CODEC_VERSION = 4.1.4
8 IMX_CODEC_SITE = $(FREESCALE_IMX_SITE)
9 IMX_CODEC_SOURCE = imx-codec-$(IMX_CODEC_VERSION).bin
10 IMX_CODEC_INSTALL_STAGING = YES
12 IMX_CODEC_LICENSE = NXP Semiconductor Software License Agreement, BSD-3c (flac, ogg headers)
13 IMX_CODEC_LICENSE_FILES = EULA COPYING
14 IMX_CODEC_REDISTRIBUTE = NO
16 ifeq ($(BR2_ARM_EABIHF),y)
17 IMX_CODEC_CONF_OPTS += --enable-fhw
18 endif
20 ifeq ($(BR2_PACKAGE_IMX_VPU),y)
21 IMX_CODEC_CONF_OPTS += --enable-vpu
22 endif
24 define IMX_CODEC_EXTRACT_CMDS
25 $(call FREESCALE_IMX_EXTRACT_HELPER,$(DL_DIR)/$(IMX_CODEC_SOURCE))
26 endef
28 # FIXME The Makefile installs both the arm9 and arm11 versions of the
29 # libraries, but we only need one of them.
31 # Upstream installs libraries into usr/lib/imx-mm, but the dynamic
32 # loader only looks in usr/lib, so move the libraries there
33 define IMX_CODEC_FIXUP_TARGET_PATH
34 find $(TARGET_DIR)/usr/lib/imx-mm -not -type d \
35 -exec mv {} $(TARGET_DIR)/usr/lib \;
36 rm -rf $(TARGET_DIR)/usr/lib/imx-mm
37 endef
38 IMX_CODEC_POST_INSTALL_TARGET_HOOKS += IMX_CODEC_FIXUP_TARGET_PATH
40 $(eval $(autotools-package))