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.

93 lines
2.3 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.2.0
  10. PKG_RELEASE:=3
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  12. PKG_SOURCE_URL:=https://www.libimobiledevice.org/downloads
  13. PKG_HASH:=4a5517e5377ec421df84c586ba85bb4e1d26f11ad203d7d450a907c0156fbd9a
  14. PKG_MAINTAINER:=Rosen Penev <rosenp@gmail.com>
  15. PKG_CPE_ID:=cpe:/a:libimobiledevice:libplist
  16. PKG_INSTALL:=1
  17. PKG_BUILD_PARALLEL:=1
  18. include $(INCLUDE_DIR)/package.mk
  19. define Package/libplist/Default
  20. TITLE:=Apple property list
  21. URL:=https://www.libimobiledevice.org/
  22. SUBMENU:=libimobiledevice
  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/plistutil
  40. $(call Package/libplist/Default)
  41. SECTION:=utils
  42. CATEGORY:=Utilities
  43. DEPENDS:=+libplist
  44. TITLE+= converter
  45. LICENSE:=GPL-2.0-or-later
  46. LICENSE_FILES:=COPYING
  47. endef
  48. define Package/plistutil/description
  49. $(call Package/libplist/Default/description)
  50. This package contains the libplist utilities.
  51. endef
  52. CONFIGURE_ARGS += \
  53. --disable-static \
  54. --without-cython
  55. TARGET_CFLAGS += -flto
  56. TARGET_LDFLAGS += -Wl,--gc-sections
  57. define Build/InstallDev
  58. $(INSTALL_DIR) $(1)/usr/include
  59. $(CP) $(PKG_INSTALL_DIR)/usr/include/plist $(1)/usr/include/
  60. $(INSTALL_DIR) $(1)/usr/lib
  61. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libplist-2.0*.so* $(1)/usr/lib/
  62. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  63. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libplist-2.0.pc $(1)/usr/lib/pkgconfig/
  64. $(LN) libplist-2.0.pc $(1)/usr/lib/pkgconfig/libplist.pc
  65. endef
  66. define Package/libplist/install
  67. $(INSTALL_DIR) $(1)/usr/lib
  68. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libplist-2.0.so.* $(1)/usr/lib/
  69. endef
  70. define Package/plistutil/install
  71. $(INSTALL_DIR) $(1)/usr/bin
  72. $(CP) $(PKG_INSTALL_DIR)/usr/bin/plistutil $(1)/usr/bin/
  73. endef
  74. $(eval $(call BuildPackage,libplist))
  75. $(eval $(call BuildPackage,plistutil))