Makefile 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. #
  2. # Copyright (C) 2015 Superglue
  3. #
  4. include $(TOPDIR)/rules.mk
  5. SOURCE_ROOT_DIR:=$(TOPDIR)/..
  6. PKG_NAME:=jansson
  7. PKG_VERSION:=2.2
  8. PKG_RELEASE:=1
  9. PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
  10. PKG_BUILD_PARALLEL:=1
  11. include $(INCLUDE_DIR)/package.mk
  12. PKG_INSTALL=1
  13. # Custom variable in order to copy straight from source tree into build tree
  14. PKG_LOCAL_SOURCE_DIR:=$(TOPDIR)/../jansson
  15. PKG_UNPACK:=$(CP) -r $(PKG_LOCAL_SOURCE_DIR)/* $(PKG_BUILD_DIR)
  16. define Package/jansson
  17. SECTION:=jansson
  18. CATEGORY:=Superglue
  19. TITLE:=jansson
  20. MAINTAINER:=Superglue
  21. endef
  22. CONFIGURE_ARGS+= LIBS="-Wl,-rpath-link=$(STAGING_DIR)/usr/lib"
  23. define Package/jansson/description
  24. jansson - C library for encoding, decoding and manipulating JSON data
  25. endef
  26. define Build/InstallDev
  27. $(INSTALL_DIR) $(1)/usr/{lib,include}
  28. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libjansson* $(1)/usr/lib
  29. $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
  30. endef
  31. define Package/jansson/install
  32. $(INSTALL_DIR) $(1)/usr/lib/
  33. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libjansson*so* $(1)/usr/lib/
  34. endef
  35. $(eval $(call BuildPackage,jansson))