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_VERSION:=1.1.0
  10. PKG_RELEASE:=2
  11. PKG_MAINTAINER:=Lukasz Baj <l.baj@radytek.com>
  12. PKG_LICENSE:=LGPL-2.1+
  13. PKG_LICENSE_FILES:=COPYING.LGPLv2.1
  14. PKG_SOURCE_PROTO:=git
  15. PKG_SOURCE_URL:=https://github.com/libimobiledevice/libusbmuxd.git
  16. PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
  17. PKG_SOURCE_VERSION:=4397b3376dc4e4cb1c991d0aed61ce6482614196
  18. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
  19. PKG_MIRROR_HASH:=e145b567cdefb1d2536f3eec863769c77474ce9a5d9c4c81ab0a75dc6fe3056a
  20. PKG_FIXUP:=autoreconf
  21. PKG_INSTALL:=1
  22. include $(INCLUDE_DIR)/package.mk
  23. define Package/libusbmuxd/Default
  24. TITLE:=USB multiplexing daemon
  25. URL:=http://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. TARGET_CFLAGS += $(FPIC)
  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))