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:=5
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  12. PKG_SOURCE_URL:=https://www.libimobiledevice.org/downloads
  13. PKG_HASH:=3a7e9694c2d9a85174ba1fa92417cfabaea7f6d19631e544948dc7e17e82f602
  14. PKG_MAINTAINER:=Lukasz Baj <l.baj@radytek.com>
  15. PKG_LICENSE:=LGPL-2.1-or-later
  16. PKG_LICENSE_FILES:=COPYING.LESSER
  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. endef
  25. define Package/libplist/Default/description
  26. A library to handle Apple Property List format whereas it's binary or XML
  27. endef
  28. define Package/libplist
  29. $(call Package/libplist/Default)
  30. SECTION:=libs
  31. CATEGORY:=Libraries
  32. DEPENDS:=+libxml2
  33. TITLE+= library
  34. endef
  35. define Package/libplist/description
  36. $(call Package/libplist/Default/description)
  37. endef
  38. define Package/libplistcxx
  39. $(call Package/libplist/Default)
  40. SECTION:=libs
  41. CATEGORY:=Libraries
  42. DEPENDS:=+libplist $(CXX_DEPENDS)
  43. TITLE+= C++ library
  44. endef
  45. define Package/libplistcxx/description
  46. $(call Package/libplist/Default/description)
  47. This package contains the libplist C++ shared library.
  48. endef
  49. define Package/libplist-utils
  50. $(call Package/libplist/Default)
  51. SECTION:=utils
  52. CATEGORY:=Utilities
  53. DEPENDS:=+libplist
  54. TITLE+= converter
  55. endef
  56. define Package/libplist-utils/description
  57. $(call Package/libplist/Default/description)
  58. This package contains the libplist utilities.
  59. endef
  60. CONFIGURE_ARGS += \
  61. --without-cython
  62. TARGET_CFLAGS += -flto
  63. TARGET_CXXFLAGS += -std=c++11 -fno-rtti
  64. TARGET_LDFLAGS += -Wl,--gc-sections
  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))