Changeset 2360


Ignore:
Timestamp:
Jan 3, 2014, 12:15:06 PM (5 years ago)
Author:
matthijs
Message:

libjson-c: Update to version 0.11

Package is copied from OpenWRT trunk (r39167) verbatim.

This changes the actual library name and binary package name to
libjson-c (it was just libjson).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/fon/libjson-c/Makefile

    r2275 r2360  
    99
    1010PKG_NAME:=json-c
    11 PKG_VERSION:=0.9
     11PKG_VERSION:=0.11
    1212PKG_RELEASE:=2
    1313
    1414PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
    15 PKG_SOURCE_URL:=http://oss.metaparadigm.com/json-c/
    16 PKG_MD5SUM:=3a13d264528dcbaf3931b0cede24abae
     15PKG_SOURCE_URL:=https://s3.amazonaws.com/json-c_releases/releases/
     16PKG_MD5SUM:=aa02367d2f7a830bf1e3376f77881e98
    1717
    1818PKG_LICENSE:=MIT
     
    2828TARGET_CFLAGS += $(FPIC)
    2929
    30 define Package/libjson
     30define Package/libjson-c
    3131  SECTION:=libs
    3232  CATEGORY:=Libraries
     
    3535endef
    3636
    37 define Package/libjson/description
     37define Package/libjson-c/description
    3838 This package contains a library for javascript object notation backends.
    3939endef
     40
     41define Package/libjson
     42  SECTION:=libs
     43  CATEGORY:=Libraries
     44  DEPENDS:=+libjson-c
     45  TITLE:=javascript object notation (compat library)
     46  URL:=http://oss.metaparadigm.com/json-c/
     47endef
     48
     49define Package/libjson/description
     50 This package contains a compatibility library for packages that have not
     51 been adapted to the json-c library rename yet
     52endef
     53
    4054
    4155define Build/InstallDev
    4256        $(INSTALL_DIR) $(1)/usr/include
    4357        $(CP) $(PKG_INSTALL_DIR)/usr/include/json $(1)/usr/include/
     58        $(CP) $(PKG_INSTALL_DIR)/usr/include/json-c $(1)/usr/include/
    4459        $(INSTALL_DIR) $(1)/usr/lib
    4560        $(CP) $(PKG_INSTALL_DIR)/usr/lib/libjson.{a,so*} $(1)/usr/lib/
     61        $(CP) $(PKG_INSTALL_DIR)/usr/lib/libjson-c.{a,so*} $(1)/usr/lib/
    4662        $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
    47         $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/json.pc $(1)/usr/lib/pkgconfig/
     63        $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/json-c.pc $(1)/usr/lib/pkgconfig/
     64endef
     65
     66define Package/libjson-c/install
     67        $(INSTALL_DIR) $(1)/usr/lib
     68        $(CP) $(PKG_INSTALL_DIR)/usr/lib/libjson-c.so.* $(1)/usr/lib/
    4869endef
    4970
     
    5374endef
    5475
     76$(eval $(call BuildPackage,libjson-c))
    5577$(eval $(call BuildPackage,libjson))
Note: See TracChangeset for help on using the changeset viewer.