Nessuna descrizione

Makefile 2.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  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:=1
  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:=f347085157006523622b0a7160be68d14f037c00
  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/libusbmuxd/Default
  23. TITLE:=USB multiplexing daemon
  24. URL:=http://www.libimobiledevice.org/
  25. endef
  26. define Package/libusbmuxd/Default/description
  27. This daemon is in charge of multiplexing connections over USB to an iPhone or
  28. iPod touch. To users, it means you can sync your music, contacts, photos, etc.
  29. over USB. To developers, it means you can connect to any listening localhost
  30. socket on the device. usbmuxd is not used for tethering data transfer, which
  31. uses a dedicated USB interface as a virtual network device.
  32. endef
  33. define Package/libusbmuxd
  34. $(call Package/libusbmuxd/Default)
  35. SECTION:=libs
  36. CATEGORY:=Libraries
  37. TITLE+= library
  38. DEPENDS:=+libplist +libpthread +libxml2 +zlib
  39. endef
  40. define Package/libusbmuxd/description
  41. $(call Package/libusbmuxd/Default/description)
  42. This package contains the libusbmuxd shared library.
  43. endef
  44. define Package/libusbmuxd-utils
  45. $(call Package/libusbmuxd/Default)
  46. SECTION:=utils
  47. CATEGORY:=Utilities
  48. TITLE+= utilies
  49. DEPENDS:=+libusbmuxd
  50. endef
  51. define Package/libusbmuxd-utils/description
  52. $(call Package/libusbmuxd/Default/description)
  53. This package contains the libusbmuxd utilities.
  54. endef
  55. TARGET_CFLAGS += $(FPIC)
  56. define Build/InstallDev
  57. $(INSTALL_DIR) $(1)/usr/include
  58. $(CP) $(PKG_INSTALL_DIR)/usr/include/*.h $(1)/usr/include/
  59. $(INSTALL_DIR) $(1)/usr/lib
  60. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libusbmuxd.so* $(1)/usr/lib/
  61. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  62. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libusbmuxd.pc $(1)/usr/lib/pkgconfig/
  63. endef
  64. define Package/libusbmuxd/install
  65. $(INSTALL_DIR) $(1)/usr/lib
  66. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libusbmuxd.so.* $(1)/usr/lib/
  67. endef
  68. define Package/libusbmuxd-utils/install
  69. $(INSTALL_DIR) $(1)/usr/bin
  70. $(CP) $(PKG_INSTALL_DIR)/usr/bin/iproxy $(1)/usr/bin/
  71. endef
  72. $(eval $(call BuildPackage,libusbmuxd))
  73. $(eval $(call BuildPackage,libusbmuxd-utils))