1 ################################################################################
5 ################################################################################
7 LIBAMCODEC_VERSION
= 296f39bc6fc47ddf5d88b9fd3cfb82a5b39048ca
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
)
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
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
36 $(eval
$(generic-package
))