• 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/libjson/libjson.mk
Rahul BedarkarRahul Bedarkar committed 96e9480fbc730 Mar 2017
Raw file
Source viewDiff to previous
xxxxxxxxxx
 
1
################################################################################
2
#
3
# libjson
4
#
5
################################################################################
6
​
7
LIBJSON_VERSION = 7.6.1
8
LIBJSON_SITE = http://downloads.sourceforge.net/project/libjson
9
LIBJSON_SOURCE = libjson_$(LIBJSON_VERSION).zip
10
LIBJSON_INSTALL_STAGING = YES
11
LIBJSON_LICENSE = BSD-2-Clause
12
LIBJSON_LICENSE_FILES = License.txt
13
​
14
LIBJSON_CXXFLAGS = $(TARGET_CFLAGS) -DNDEBUG
15
​
16
ifeq ($(BR2_STATIC_LIBS),y)
17
LIBJSON_MAKE_OPTS += SHARED=0
18
else
19
LIBJSON_MAKE_OPTS += SHARED=1
20
LIBJSON_CXXFLAGS += -fPIC
21
endif
22
​
23
LIBJSON_MAKE_OPTS += BUILD_TYPE= CXXFLAGS="$(LIBJSON_CXXFLAGS)"
24
​
25
define LIBJSON_EXTRACT_CMDS
26
    $(UNZIP) -d $(@D) $(DL_DIR)/$(LIBJSON_SOURCE)
27
    mv $(@D)/libjson/* $(@D)
28
    $(RM) -r $(@D)/libjson
29
    $(SED) '/ldconfig/d' $(@D)/makefile
30
endef
31
​
32
define LIBJSON_BUILD_CMDS
33
    mkdir -p $(@D)/Objects_$(if $(BR2_STATIC_LIBS),static,shared) \
34
        $(@D)/_internal/Source/Dependencies
35
    $(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) \
36
        $(LIBJSON_MAKE_OPTS) -C $(@D)
37
endef
38
​
39
define LIBJSON_INSTALL_TARGET_CMDS
40
    $(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) \
41
        $(LIBJSON_MAKE_OPTS) prefix=$(TARGET_DIR)/usr install -C $(@D)
42
endef
43
​
44
define LIBJSON_INSTALL_STAGING_CMDS
45
    $(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) \
46
        $(LIBJSON_MAKE_OPTS) prefix=$(STAGING_DIR)/usr install -C $(@D)
47
endef
48
​
49
$(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.