[packages] libusbmuxd: add separate libusbmuxd & tools package that was split from...
[openwrt/svn-archive/archive.git] / libs / libusbmuxd / Makefile
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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=libusbmuxd
11 PKG_VERSION:=1.0.9
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=http://www.libimobiledevice.org/downloads
16 PKG_MD5SUM:=3f1d4bd0c0a1a4d7bf96219e117ec499
17
18 PKG_INSTALL:=1
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/libusbmuxd/Default
23 TITLE:=USB multiplexing daemon
24 URL:=http://www.libimobiledevice.org/
25 endef
26
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
35 define Package/libusbmuxd
36 $(call Package/libusbmuxd/Default)
37 SECTION:=libs
38 CATEGORY:=Libraries
39 TITLE+= library
40 DEPENDS:=+libplist +libpthread +libxml2 +zlib
41 endef
42
43 define Package/libusbmuxd/description
44 $(call Package/libusbmuxd/Default/description)
45 This package contains the libusbmuxd shared library.
46 endef
47
48 define Package/libusbmuxd-utils
49 $(call Package/libusbmuxd/Default)
50 SECTION:=utils
51 CATEGORY:=Utilities
52 TITLE+= utilies
53 DEPENDS:=+libusbmuxd
54 endef
55
56 define Package/libusbmuxd-utils/description
57 $(call Package/libusbmuxd/Default/description)
58 This package contains the libusbmuxd utilities.
59 endef
60
61 TARGET_CFLAGS += $(FPIC)
62
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/
70 endef
71
72 define Package/libusbmuxd/install
73 $(INSTALL_DIR) $(1)/usr/lib
74 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libusbmuxd.so.* $(1)/usr/lib/
75 endef
76
77 define Package/libusbmuxd-utils/install
78 $(INSTALL_DIR) $(1)/usr/bin
79 $(CP) $(PKG_INSTALL_DIR)/usr/bin/iproxy $(1)/usr/bin/
80 endef
81
82 $(eval $(call BuildPackage,libusbmuxd))
83 $(eval $(call BuildPackage,libusbmuxd-utils))