debianutils: bump to version 4.8.1
[buildroot-gz.git] / package / sunxi-cedarx / sunxi-cedarx.mk
blob219f1bc74b86eeac5b6770fe911a6e615a459625
1 ################################################################################
3 # sunxi-cedarx
5 ################################################################################
7 SUNXI_CEDARX_VERSION = b8f52d913f73720e50d8f1b2f8610467b575dc45
8 SUNXI_CEDARX_SITE = $(call github,linux-sunxi,cedarx-libs,$(SUNXI_CEDARX_VERSION))
10 SUNXI_CEDARX_INSTALL_STAGING = YES
12 SUNXI_CEDARX_CONFIGURE_OPTS = \
13 CROSS_COMPILE=$(TARGET_CROSS)
15 ifeq ($(BR2_ARM_EABIHF),y)
16 SUNXI_CEDARX_BIN_DIR = $(@D)/libcedarv/linux-armhf
17 else
18 SUNXI_CEDARX_BIN_DIR = $(@D)/libcedarv/linux-armel2
19 endif
21 define SUNXI_CEDARX_BUILD_AVHEAP
22 $(TARGET_CC) $(TARGET_CFLAGS) \
23 -c $(SUNXI_CEDARX_BIN_DIR)/adapter/avheap/avheap.c \
24 -o $(SUNXI_CEDARX_BIN_DIR)/adapter/avheap/avheap.o \
25 -I $(SUNXI_CEDARX_BIN_DIR)/adapter/avheap \
26 -I $(SUNXI_CEDARX_BIN_DIR)/
27 $(TARGET_CC) -shared -L./ -Wl,-soname,libavheap.so \
28 -o $(SUNXI_CEDARX_BIN_DIR)/adapter/avheap/libavheap.so \
29 $(SUNXI_CEDARX_BIN_DIR)/adapter/avheap/avheap.o
30 endef
32 define SUNXI_CEDARX_INSTALL_AVHEAP
33 $(INSTALL) -D -m 755 $(SUNXI_CEDARX_BIN_DIR)/adapter/avheap/libavheap.so \
34 $(1)/usr/lib/libavheap.so
35 endef
37 define SUNXI_CEDARX_BUILD_CMDS
38 $(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(SUNXI_CEDARX_BIN_DIR) \
39 $(SUNXI_CEDARX_CONFIGURE_OPTS)
40 $(SUNXI_CEDARX_BUILD_AVHEAP)
41 endef
43 define SUNXI_CEDARX_INSTALL_STAGING_CMDS
44 $(INSTALL) -d -m 755 $(STAGING_DIR)/usr/include/libvecore
45 $(INSTALL) -m 664 $(SUNXI_CEDARX_BIN_DIR)/libvecore/*.h \
46 $(STAGING_DIR)/usr/include/libvecore
47 $(INSTALL) -m 644 $(SUNXI_CEDARX_BIN_DIR)/*.h \
48 $(STAGING_DIR)/usr/include/
49 $(INSTALL) -D -m 755 $(SUNXI_CEDARX_BIN_DIR)/libvecore/libvecore.so \
50 $(STAGING_DIR)/usr/lib/libvecore.so
51 $(call SUNXI_CEDARX_INSTALL_AVHEAP, $(STAGING_DIR))
52 endef
54 define SUNXI_CEDARX_INSTALL_TARGET_CMDS
55 $(INSTALL) -D -m 755 $(SUNXI_CEDARX_BIN_DIR)/libvecore/libvecore.so \
56 $(TARGET_DIR)/usr/lib/libvecore.so
57 $(call SUNXI_CEDARX_INSTALL_AVHEAP, $(TARGET_DIR))
58 endef
60 $(eval $(generic-package))