Created
January 15, 2015 23:05
-
-
Save aeickho/5e89597ce3faab552949 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Copyright (C) 2006-2014 OpenWrt.org | |
# | |
# This is free software, licensed under the GNU General Public License v2. | |
# See /LICENSE for more information. | |
# | |
include $(TOPDIR)/rules.mk | |
PKG_NAME:=jansson | |
PKG_VERSION:=2.7 | |
PKG_RELEASE:=1 | |
PKG_LICENSE:=MIT | |
PKG_LICENSE_FILES:=COPYING | |
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 | |
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION) | |
PKG_SOURCE_PROTO:=git | |
PKG_SOURCE_URL:=https://github.com/akheron/jansson.git | |
PKG_SOURCE_VERSION:=58c188e1d5967a1d905acce9beb450204d7da56b | |
PKG_MAINTAINER:=Alex Eickhoff <alex@artbanause.de> | |
PKG_LICENSE:=GPL-2.0 | |
PKG_FIXUP:=autoreconf | |
PKG_INSTALL:=1 | |
include $(INCLUDE_DIR)/package.mk | |
TARGET_CFLAGS += $(FPIC) | |
define Package/jansson | |
SECTION:=libs | |
CATEGORY:=Libraries | |
TITLE:=C library for encoding, decoding and manipulating JSON data | |
URL:=http://www.digip.org/jansson/ | |
DEPENDS:=+zlib +jansson | |
endef | |
define Package/jansson/description | |
C library for encoding, decoding and manipulating JSON data | |
endef | |
define Build/InstallDev | |
$(INSTALL_DIR) $(1)/usr/include | |
$(INSTALL_DIR) $(1)/usr/lib | |
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libjansson.{a,so*} $(1)/usr/lib/ | |
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig | |
$(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/jansson.pc $(1)/usr/lib/pkgconfig/ | |
$(CP) $(PKG_INSTALL_DIR)/usr/include/jansson.h $(1)/usr/include/ | |
$(CP) $(PKG_INSTALL_DIR)/usr/include/jansson_config.h $(1)/usr/include/ | |
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig | |
endef | |
define Package/jansson/install | |
$(INSTALL_DIR) $(1)/usr/lib | |
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libjansson.so.* $(1)/usr/lib/ | |
endef | |
$(eval $(call BuildPackage,jansson)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment