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.

107 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:=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_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. TARGET_LDFLAGS += -lz
  64. define Build/InstallDev
  65. $(INSTALL_DIR) $(1)/usr/include
  66. $(CP) $(PKG_INSTALL_DIR)/usr/include/plist $(1)/usr/include/
  67. $(INSTALL_DIR) $(1)/usr/lib
  68. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libplist*.so* $(1)/usr/lib/
  69. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  70. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libplist*.pc $(1)/usr/lib/pkgconfig/
  71. endef
  72. define Package/libplist/install
  73. $(INSTALL_DIR) $(1)/usr/lib
  74. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libplist.so.* $(1)/usr/lib/
  75. endef
  76. define Package/libplistcxx/install
  77. $(INSTALL_DIR) $(1)/usr/lib
  78. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libplist++.so.* $(1)/usr/lib/
  79. endef
  80. define Package/libplist-utils/install
  81. $(INSTALL_DIR) $(1)/usr/bin
  82. $(CP) $(PKG_INSTALL_DIR)/usr/bin/plistutil $(1)/usr/bin/
  83. endef
  84. $(eval $(call BuildPackage,libplist))
  85. $(eval $(call BuildPackage,libplistcxx))
  86. $(eval $(call BuildPackage,libplist-utils))