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.

105 lines
2.6 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_VERSION:=1.13
  10. PKG_RELEASE:=1
  11. PKG_MAINTAINER:=Lukasz Baj <l.baj@radytek.com>
  12. PKG_LICENSE:=LGPL-2.1+
  13. PKG_LICENSE_FILES:=COPYING.LESSER
  14. PKG_SOURCE_PROTO:=git
  15. PKG_SOURCE_URL:=https://github.com/libimobiledevice/libplist.git
  16. PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
  17. PKG_SOURCE_VERSION:=cc907c0f162ee84e5698b9c27ac6fb0be8bb9bc0
  18. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
  19. PKG_FIXUP:=autoreconf
  20. PKG_INSTALL:=1
  21. include $(INCLUDE_DIR)/package.mk
  22. define Package/libplist/Default
  23. TITLE:=Apple property list
  24. URL:=http://www.libimobiledevice.org/
  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. 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 +libstdcpp
  44. TITLE+= C++ library
  45. endef
  46. define Package/libplistcxx/description
  47. $(call Package/libplist/Default/description)
  48. This package contains the libplist C++ shared library.
  49. endef
  50. define Package/libplist-utils
  51. $(call Package/libplist/Default)
  52. SECTION:=utils
  53. CATEGORY:=Utilities
  54. DEPENDS:=+libplist
  55. TITLE+= converter
  56. endef
  57. define Package/libplist-utils/description
  58. $(call Package/libplist/Default/description)
  59. This package contains the libplist utilities.
  60. endef
  61. CONFIGURE_ARGS += \
  62. --without-cython
  63. define Build/InstallDev
  64. $(INSTALL_DIR) $(1)/usr/include
  65. $(CP) $(PKG_INSTALL_DIR)/usr/include/plist $(1)/usr/include/
  66. $(INSTALL_DIR) $(1)/usr/lib
  67. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libplist*.so* $(1)/usr/lib/
  68. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  69. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libplist*.pc $(1)/usr/lib/pkgconfig/
  70. endef
  71. define Package/libplist/install
  72. $(INSTALL_DIR) $(1)/usr/lib
  73. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libplist.so.* $(1)/usr/lib/
  74. endef
  75. define Package/libplistcxx/install
  76. $(INSTALL_DIR) $(1)/usr/lib
  77. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libplist++.so.* $(1)/usr/lib/
  78. endef
  79. define Package/libplist-utils/install
  80. $(INSTALL_DIR) $(1)/usr/bin
  81. $(CP) $(PKG_INSTALL_DIR)/usr/bin/plistutil $(1)/usr/bin/
  82. endef
  83. $(eval $(call BuildPackage,libplist))
  84. $(eval $(call BuildPackage,libplistcxx))
  85. $(eval $(call BuildPackage,libplist-utils))