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.

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