You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

115 lines
2.8 KiB

  1. #
  2. # Copyright (C) 2012-2014 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:=libplist
  9. PKG_SOURCE_VERSION:=2.1.0
  10. PKG_RELEASE:=2
  11. PKG_SOURCE_PROTO:=git
  12. PKG_SOURCE_URL:=https://github.com/libimobiledevice/libplist
  13. PKG_MIRROR_HASH:=452ef5d6e87461a8b7a47a2274878cf200ccf480b4e81924f22ec1c445e353d0
  14. PKG_MAINTAINER:=Rosen Penev <rosenp@gmail.com>
  15. PKG_CPE_ID:=cpe:/a:libimobiledevice:libplist
  16. PKG_FIXUP:=autoreconf
  17. PKG_INSTALL:=1
  18. PKG_BUILD_PARALLEL:=1
  19. include $(INCLUDE_DIR)/uclibc++.mk
  20. include $(INCLUDE_DIR)/package.mk
  21. define Package/libplist/Default
  22. TITLE:=Apple property list
  23. URL:=https://www.libimobiledevice.org/
  24. SUBMENU:=libimobiledevice
  25. endef
  26. define Package/libplist/Default/description
  27. A library to handle Apple Property List format whereas it's binary or XML
  28. endef
  29. define Package/libplist
  30. $(call Package/libplist/Default)
  31. SECTION:=libs
  32. CATEGORY:=Libraries
  33. DEPENDS:=+libxml2
  34. TITLE+= library
  35. PKG_LICENSE:=LGPL-2.1-or-later
  36. PKG_LICENSE_FILES:=COPYING.LESSER
  37. endef
  38. define Package/libplist/description
  39. $(call Package/libplist/Default/description)
  40. endef
  41. define Package/libplistcxx
  42. $(call Package/libplist/Default)
  43. SECTION:=libs
  44. CATEGORY:=Libraries
  45. DEPENDS:=+libplist $(CXX_DEPENDS)
  46. TITLE+= C++ library
  47. PKG_LICENSE:=LGPL-2.1-or-later
  48. PKG_LICENSE_FILES:=COPYING.LESSER
  49. endef
  50. define Package/libplistcxx/description
  51. $(call Package/libplist/Default/description)
  52. This package contains the libplist C++ shared library.
  53. endef
  54. define Package/plistutil
  55. $(call Package/libplist/Default)
  56. SECTION:=utils
  57. CATEGORY:=Utilities
  58. DEPENDS:=+libplist
  59. TITLE+= converter
  60. LICENSE:=GPL-2.0-or-later
  61. LICENSE_FILES:=COPYING
  62. endef
  63. define Package/plistutil/description
  64. $(call Package/libplist/Default/description)
  65. This package contains the libplist utilities.
  66. endef
  67. CONFIGURE_ARGS += \
  68. --without-cython
  69. TARGET_CFLAGS += -flto
  70. TARGET_CXXFLAGS += -std=c++11 -fno-rtti
  71. TARGET_LDFLAGS += -Wl,--gc-sections
  72. define Build/InstallDev
  73. $(INSTALL_DIR) $(1)/usr/include
  74. $(CP) $(PKG_INSTALL_DIR)/usr/include/plist $(1)/usr/include/
  75. $(INSTALL_DIR) $(1)/usr/lib
  76. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libplist*.so* $(1)/usr/lib/
  77. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  78. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libplist*.pc $(1)/usr/lib/pkgconfig/
  79. endef
  80. define Package/libplist/install
  81. $(INSTALL_DIR) $(1)/usr/lib
  82. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libplist.so.* $(1)/usr/lib/
  83. endef
  84. define Package/libplistcxx/install
  85. $(INSTALL_DIR) $(1)/usr/lib
  86. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libplist++.so.* $(1)/usr/lib/
  87. endef
  88. define Package/plistutil/install
  89. $(INSTALL_DIR) $(1)/usr/bin
  90. $(CP) $(PKG_INSTALL_DIR)/usr/bin/plistutil $(1)/usr/bin/
  91. endef
  92. $(eval $(call BuildPackage,libplist))
  93. $(eval $(call BuildPackage,libplistcxx))
  94. $(eval $(call BuildPackage,plistutil))