1 ################################################################################
5 ################################################################################
7 HIREDIS_VERSION
= v0.13
.3
8 HIREDIS_SITE
= $(call github
,redis
,hiredis
,$(HIREDIS_VERSION
))
9 HIREDIS_LICENSE
= BSD-3c
10 HIREDIS_LICENSE_FILES
= COPYING
11 HIREDIS_INSTALL_STAGING
= YES
14 $(TARGET_CONFIGURE_OPTS
) \
17 HIREDIS_TARGETS
= hiredis.
pc
18 ifeq ($(BR2_STATIC_LIBS
),y
)
19 HIREDIS_TARGETS
+= static
20 else ifeq ($(BR2_SHARED_LIBS
),y
)
21 HIREDIS_TARGETS
+= dynamic
22 else ifeq ($(BR2_SHARED_STATIC_LIBS
),y
)
23 HIREDIS_TARGETS
+= dynamic static
26 define HIREDIS_BUILD_CMDS
27 $(TARGET_MAKE_ENV
) $(MAKE
) $(HIREDIS_MAKE_OPTS
) -C
$(@D
) \
31 HIREDIS_INCLUDE_DIR
= $(STAGING_DIR
)/usr
/include/hiredis
33 # Do not call make install as this target will build shared and static libraries
34 define HIREDIS_INSTALL_STAGING_CMDS
35 mkdir
-p
$(HIREDIS_INCLUDE_DIR
)
36 cp
-dpfr
$(@D
)/hiredis.h
$(@D
)/async.h
$(@D
)/read.h
$(@D
)/sds.h \
37 $(@D
)/adapters
$(HIREDIS_INCLUDE_DIR
)
38 $(INSTALL
) -D
-m
0644 $(@D
)/hiredis.
pc \
39 $(STAGING_DIR
)/usr
/lib
/pkgconfig
/hiredis.
pc
40 $(INSTALL
) -m
0644 -t
$(STAGING_DIR
)/usr
/lib
$(@D
)/libhiredis
*
43 define HIREDIS_INSTALL_TARGET_CMDS
44 mkdir
-p
$(TARGET_DIR
)/usr
/lib
45 $(INSTALL
) -m
0644 -t
$(TARGET_DIR
)/usr
/lib
$(@D
)/libhiredis
*
48 $(eval
$(generic-package
))