Makefile 928 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. #
  2. # Copyright (C) 2011-2012 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=jansson
  9. PKG_VERSION:=2.6
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=http://www.digip.org/jansson/releases/
  13. PKG_MD5SUM:=00dd7b55c01c74cac59df398208b92ed
  14. PKG_INSTALL:=1
  15. PKG_BUILD_PARALLEL:=1
  16. include $(INCLUDE_DIR)/package.mk
  17. define Package/jansson
  18. SECTION:=libs
  19. CATEGORY:=Libraries
  20. TITLE:=JSON library
  21. endef
  22. TARGET_CFLAGS += $(FPIC)
  23. define Build/InstallDev
  24. $(INSTALL_DIR) $(1)/usr/{lib,include}
  25. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libjansson* $(1)/usr/lib
  26. $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
  27. endef
  28. define Package/jansson/install
  29. $(INSTALL_DIR) $(1)/usr/lib
  30. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libjansson*so* $(1)/usr/lib/
  31. endef
  32. $(eval $(call BuildPackage,jansson))