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.

91 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:=libusbmuxd
  9. PKG_SOURCE_DATE:=2019-03-23
  10. PKG_SOURCE_VERSION:=873252dc8b4e469c7dc692064ac616104fca5f65
  11. PKG_RELEASE:=2
  12. PKG_MAINTAINER:=Lukasz Baj <l.baj@radytek.com>
  13. PKG_LICENSE:=LGPL-2.1-or-later
  14. PKG_LICENSE_FILES:=COPYING.LGPLv2.1
  15. PKG_SOURCE:=$(PKG_NAME)-$(PKG_SOURCE_DATE).tar.gz
  16. PKG_SOURCE_URL:=https://codeload.github.com/libimobiledevice/libusbmuxd/tar.gz/$(PKG_SOURCE_VERSION)?
  17. PKG_HASH:=47e39ce87b05ca873c16efaa517247aa9db137625dd910d566fb3cd99b4a1d18
  18. PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_SOURCE_VERSION)
  19. PKG_FIXUP:=autoreconf
  20. PKG_INSTALL:=1
  21. PKG_BUILD_PARALLEL:=1
  22. include $(INCLUDE_DIR)/package.mk
  23. define Package/libusbmuxd/Default
  24. TITLE:=USB multiplexing daemon
  25. URL:=https://www.libimobiledevice.org/
  26. endef
  27. define Package/libusbmuxd/Default/description
  28. This daemon is in charge of multiplexing connections over USB to an iPhone or
  29. iPod touch. To users, it means you can sync your music, contacts, photos, etc.
  30. over USB. To developers, it means you can connect to any listening localhost
  31. socket on the device. usbmuxd is not used for tethering data transfer, which
  32. uses a dedicated USB interface as a virtual network device.
  33. endef
  34. define Package/libusbmuxd
  35. $(call Package/libusbmuxd/Default)
  36. SECTION:=libs
  37. CATEGORY:=Libraries
  38. TITLE+= library
  39. DEPENDS:=+libplist +libpthread +libxml2 +zlib
  40. endef
  41. define Package/libusbmuxd/description
  42. $(call Package/libusbmuxd/Default/description)
  43. This package contains the libusbmuxd shared library.
  44. endef
  45. define Package/libusbmuxd-utils
  46. $(call Package/libusbmuxd/Default)
  47. SECTION:=utils
  48. CATEGORY:=Utilities
  49. TITLE+= utilies
  50. DEPENDS:=+libusbmuxd
  51. endef
  52. define Package/libusbmuxd-utils/description
  53. $(call Package/libusbmuxd/Default/description)
  54. This package contains the libusbmuxd utilities.
  55. endef
  56. CONFIGURE_ARGS += --with-pic
  57. define Build/InstallDev
  58. $(INSTALL_DIR) $(1)/usr/include
  59. $(CP) $(PKG_INSTALL_DIR)/usr/include/*.h $(1)/usr/include/
  60. $(INSTALL_DIR) $(1)/usr/lib
  61. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libusbmuxd.so* $(1)/usr/lib/
  62. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  63. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libusbmuxd.pc $(1)/usr/lib/pkgconfig/
  64. endef
  65. define Package/libusbmuxd/install
  66. $(INSTALL_DIR) $(1)/usr/lib
  67. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libusbmuxd.so.* $(1)/usr/lib/
  68. endef
  69. define Package/libusbmuxd-utils/install
  70. $(INSTALL_DIR) $(1)/usr/bin
  71. $(CP) $(PKG_INSTALL_DIR)/usr/bin/iproxy $(1)/usr/bin/
  72. endef
  73. $(eval $(call BuildPackage,libusbmuxd))
  74. $(eval $(call BuildPackage,libusbmuxd-utils))