2 # Copyright (C) 2012-2014 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=http://www.libimobiledevice.org/downloads
16 PKG_MD5SUM:=3f1d4bd0c0a1a4d7bf96219e117ec499
20 include $(INCLUDE_DIR)/package.mk
22 define Package/libusbmuxd/Default
23 TITLE:=USB multiplexing daemon
24 URL:=http://www.libimobiledevice.org/
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.
35 define Package/libusbmuxd
36 $(call Package/libusbmuxd/Default)
40 DEPENDS:=+libplist +libpthread +libxml2 +zlib
43 define Package/libusbmuxd/description
44 $(call Package/libusbmuxd/Default/description)
45 This package contains the libusbmuxd shared library.
48 define Package/libusbmuxd-utils
49 $(call Package/libusbmuxd/Default)
56 define Package/libusbmuxd-utils/description
57 $(call Package/libusbmuxd/Default/description)
58 This package contains the libusbmuxd utilities.
61 TARGET_CFLAGS += $(FPIC)
63 define Build/InstallDev
64 $(INSTALL_DIR) $(1)/usr/include
65 $(CP) $(PKG_INSTALL_DIR)/usr/include/*.h $(1)/usr/include/
66 $(INSTALL_DIR) $(1)/usr/lib
67 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libusbmuxd.so* $(1)/usr/lib/
68 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
69 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libusbmuxd.pc $(1)/usr/lib/pkgconfig/
72 define Package/libusbmuxd/install
73 $(INSTALL_DIR) $(1)/usr/lib
74 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libusbmuxd.so.* $(1)/usr/lib/
77 define Package/libusbmuxd-utils/install
78 $(INSTALL_DIR) $(1)/usr/bin
79 $(CP) $(PKG_INSTALL_DIR)/usr/bin/iproxy $(1)/usr/bin/
82 $(eval $(call BuildPackage,libusbmuxd))
83 $(eval $(call BuildPackage,libusbmuxd-utils))