forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-08-21 fc437ccf3419c424092701f3d883215fa4552a8b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
RV1108_LIBPNG_SITE = $(TOPDIR)/../external/libpng
RV1108_LIBPNG_SITE_METHOD = local
RV1108_LIBPNG_INSTALL_STAGING = YES
 
RV1108_LIBPNG_DEPENDENCIES = zlib
 
RV1108_LIBPNG_CONF_OPTS = \
   --host=arm-linux \
    --with-pic
 
INCLUDE_PATH=$(STAGING_DIR)/usr/include/
define RV1108_LIBPNG_CONFIGURE_CMDS
    cd $(@D); $(TARGET_MAKE_ENV) ./configure $(RV1108_LIBPNG_CONF_OPTS) CFLAGS="$(CFLAGS) -I $(INCLUDE_PATH)"
endef
 
define RV1108_LIBPNG_BUILD_CMDS
    $(TARGET_MAKE_ENV) $(MAKE) -C $(@D)
endef
 
define RV1108_LIBPNG_INSTALL_STAGING_CMDS
    $(INSTALL) -D $(@D)/*.h $(STAGING_DIR)/usr/include/
    $(INSTALL) -D $(@D)/.libs/*.so* $(STAGING_DIR)/usr/lib/
endef
 
#define RV1108_LIBPNG_INSTALL_TARGET_CMDS
#    $(INSTALL) -D $(@D)/*.h $(TARGET_DIR)/usr/include/
#    $(INSTALL) -D $(@D)/.libs/*.so* $(TARGET_DIR)/usr/lib/
#endef
 
$(eval $(generic-package))