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.

108 lines
2.7 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:=2.0.0
  10. PKG_RELEASE:=3
  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:=62ec804736435fa34e37e66e228e17e2aacee1d7
  18. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
  19. PKG_MIRROR_HASH:=0b6a7656b431f78b0f11370938e577bc16f30d2255ad675bf4b63a96876fb290
  20. PKG_FIXUP:=autoreconf
  21. PKG_INSTALL:=1
  22. include $(INCLUDE_DIR)/package.mk
  23. define Package/libplist/Default
  24. TITLE:=Apple property list
  25. URL:=http://www.libimobiledevice.org/
  26. endef
  27. define Package/libplist/Default/description
  28. A library to handle Apple Property List format whereas it's binary or XML
  29. endef
  30. define Package/libplist
  31. $(call Package/libplist/Default)
  32. SECTION:=libs
  33. CATEGORY:=Libraries
  34. DEPENDS:=+libxml2
  35. TITLE+= library
  36. endef
  37. define Package/libplist/description
  38. $(call Package/libplist/Default/description)
  39. endef
  40. define Package/libplistcxx
  41. $(call Package/libplist/Default)
  42. SECTION:=libs
  43. CATEGORY:=Libraries
  44. DEPENDS:=+libplist +libstdcpp
  45. TITLE+= C++ library
  46. endef
  47. define Package/libplistcxx/description
  48. $(call Package/libplist/Default/description)
  49. This package contains the libplist C++ shared library.
  50. endef
  51. define Package/libplist-utils
  52. $(call Package/libplist/Default)
  53. SECTION:=utils
  54. CATEGORY:=Utilities
  55. DEPENDS:=+libplist
  56. TITLE+= converter
  57. endef
  58. define Package/libplist-utils/description
  59. $(call Package/libplist/Default/description)
  60. This package contains the libplist utilities.
  61. endef
  62. CONFIGURE_ARGS += \
  63. --without-cython
  64. TARGET_LDFLAGS += -lz
  65. define Build/InstallDev
  66. $(INSTALL_DIR) $(1)/usr/include
  67. $(CP) $(PKG_INSTALL_DIR)/usr/include/plist $(1)/usr/include/
  68. $(INSTALL_DIR) $(1)/usr/lib
  69. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libplist*.so* $(1)/usr/lib/
  70. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  71. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libplist*.pc $(1)/usr/lib/pkgconfig/
  72. endef
  73. define Package/libplist/install
  74. $(INSTALL_DIR) $(1)/usr/lib
  75. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libplist.so.* $(1)/usr/lib/
  76. endef
  77. define Package/libplistcxx/install
  78. $(INSTALL_DIR) $(1)/usr/lib
  79. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libplist++.so.* $(1)/usr/lib/
  80. endef
  81. define Package/libplist-utils/install
  82. $(INSTALL_DIR) $(1)/usr/bin
  83. $(CP) $(PKG_INSTALL_DIR)/usr/bin/plistutil $(1)/usr/bin/
  84. endef
  85. $(eval $(call BuildPackage,libplist))
  86. $(eval $(call BuildPackage,libplistcxx))
  87. $(eval $(call BuildPackage,libplist-utils))