2 # Copyright (C) 2011-2012 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
16 PKG_SOURCE_URL
:=http
://www.digip.org
/jansson
/releases
/
17 PKG_MD5SUM
:=ebf4ebc7af47de27f7b9d79ad5853176
22 include $(INCLUDE_DIR
)/package.mk
24 define Package
/jansson
30 TARGET_CFLAGS
+= $(FPIC
)
32 define Build
/InstallDev
33 $(INSTALL_DIR
) $(1)/usr
/{lib
,include}
34 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libjansson
* $(1)/usr
/lib
35 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/* $(1)/usr
/include/
38 define Package
/jansson
/install
39 $(INSTALL_DIR
) $(1)/usr
/lib
40 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libjansson
*so
* $(1)/usr
/lib
/
43 $(eval
$(call BuildPackage
,jansson
))