• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/hiredis/hiredis.mk
Romain NaourRomain Naour committed 10ffe1f65ce14 Apr 2017
Raw file
Source viewDiff to previous
xxxxxxxxxx
 
1
################################################################################
2
#
3
# hiredis
4
#
5
################################################################################
6
​
7
HIREDIS_VERSION_MAJOR = 0.13
8
HIREDIS_VERSION = v$(HIREDIS_VERSION_MAJOR).3
9
HIREDIS_SITE = $(call github,redis,hiredis,$(HIREDIS_VERSION))
10
HIREDIS_LICENSE = BSD-3-Clause
11
HIREDIS_LICENSE_FILES = COPYING
12
HIREDIS_INSTALL_STAGING = YES
13
​
14
HIREDIS_MAKE_OPTS = \
15
    $(TARGET_CONFIGURE_OPTS) \
16
    PREFIX=/usr
17
​
18
HIREDIS_TARGETS = hiredis.pc
19
ifeq ($(BR2_STATIC_LIBS),y)
20
HIREDIS_TARGETS += static
21
else ifeq ($(BR2_SHARED_LIBS),y)
22
HIREDIS_TARGETS += dynamic
23
else ifeq ($(BR2_SHARED_STATIC_LIBS),y)
24
HIREDIS_TARGETS += dynamic static
25
endif
26
​
27
define HIREDIS_BUILD_CMDS
28
    $(TARGET_MAKE_ENV) $(MAKE) $(HIREDIS_MAKE_OPTS) -C $(@D) \
29
        $(HIREDIS_TARGETS)
30
endef
31
​
32
HIREDIS_INCLUDE_DIR = $(STAGING_DIR)/usr/include/hiredis
33
​
34
ifeq ($(BR2_SHARED_LIBS),)
35
define HIREDIS_INSTALL_STAGING_STATIC_LIB
36
    $(INSTALL) -D -m 0755 $(@D)/libhiredis.a \
37
        $(STAGING_DIR)/usr/lib/libhiredis.a
38
endef
39
endif
40
​
41
ifeq ($(BR2_STATIC_LIBS),)
42
define HIREDIS_INSTALL_STAGING_SHARED_LIB
43
    $(INSTALL) -D -m 0755 $(@D)/libhiredis.so \
44
        $(STAGING_DIR)/usr/lib/libhiredis.so.$(HIREDIS_VERSION_MAJOR)
45
    ln -sf libhiredis.so.$(HIREDIS_VERSION_MAJOR) $(STAGING_DIR)/usr/lib/libhiredis.so
46
endef
47
define HIREDIS_INSTALL_TARGET_SHARED_LIB
48
    $(INSTALL) -D -m 0755 $(@D)/libhiredis.so \
49
        $(TARGET_DIR)/usr/lib/libhiredis.so.$(HIREDIS_VERSION_MAJOR)
50
    ln -sf libhiredis.so.$(HIREDIS_VERSION_MAJOR) $(TARGET_DIR)/usr/lib/libhiredis.so
51
endef
52
endif
53
​
54
# Do not call make install as this target will build shared and static libraries
55
define HIREDIS_INSTALL_STAGING_CMDS
56
    mkdir -p $(HIREDIS_INCLUDE_DIR)
57
    cp -dpfr $(@D)/hiredis.h $(@D)/async.h $(@D)/read.h $(@D)/sds.h \
58
        $(@D)/adapters $(HIREDIS_INCLUDE_DIR)
59
    $(INSTALL) -D -m 0644 $(@D)/hiredis.pc \
60
        $(STAGING_DIR)/usr/lib/pkgconfig/hiredis.pc
61
    $(HIREDIS_INSTALL_STAGING_STATIC_LIB)
62
    $(HIREDIS_INSTALL_STAGING_SHARED_LIB)
63
endef
64
​
65
define HIREDIS_INSTALL_TARGET_CMDS
66
    $(HIREDIS_INSTALL_TARGET_SHARED_LIB)
67
endef
68
​
69
$(eval $(generic-package))
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.