libusbmuxd: update to 2.1.0
[feed/packages.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:=2.1.0
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=https://github.com/libimobiledevice/libusbmuxd/releases/download/$(PKG_VERSION)
16 PKG_HASH:=c35bf68f8e248434957bd5b234c389b02206a06ecd9303a7fb931ed7a5636b16
17
18 PKG_MAINTAINER:=Rosen Penev <rosenp@gmail.com>
19 PKG_CPE_ID:=cpe:/a:libimobiledevice:libusbmuxd
20
21 PKG_INSTALL:=1
22 PKG_BUILD_PARALLEL:=1
23
24 include $(INCLUDE_DIR)/package.mk
25
26 define Package/libusbmuxd/Default
27 TITLE:=USB multiplexing daemon
28 URL:=https://www.libimobiledevice.org/
29 SUBMENU:=libimobiledevice
30 endef
31
32 define Package/libusbmuxd/Default/description
33 This daemon is in charge of multiplexing connections over USB to an iPhone or
34 iPod touch. To users, it means you can sync your music, contacts, photos, etc.
35 over USB. To developers, it means you can connect to any listening localhost
36 socket on the device. usbmuxd is not used for tethering data transfer, which
37 uses a dedicated USB interface as a virtual network device.
38 endef
39
40 define Package/libusbmuxd
41 $(call Package/libusbmuxd/Default)
42 SECTION:=libs
43 CATEGORY:=Libraries
44 TITLE+= library
45 DEPENDS:=+libplist +libimobiledevice-glue +libpthread +libxml2 +zlib
46 PKG_LICENSE:=LGPL-2.1-or-later
47 PKG_LICENSE_FILES:=COPYING
48 endef
49
50 define Package/libusbmuxd/description
51 $(call Package/libusbmuxd/Default/description)
52 This package contains the libusbmuxd shared library.
53 endef
54
55 define Package/libusbmuxd-utils
56 $(call Package/libusbmuxd/Default)
57 SECTION:=utils
58 CATEGORY:=Utilities
59 TITLE+= utilies
60 DEPENDS:=+libusbmuxd
61 LICENSE:=GPL-2.0-or-later
62 endef
63
64 define Package/libusbmuxd-utils/description
65 $(call Package/libusbmuxd/Default/description)
66 This package contains the libusbmuxd utilities.
67 endef
68
69 CONFIGURE_ARGS += \
70 --disable-static
71
72 define Build/InstallDev
73 $(INSTALL_DIR) $(1)/usr/include
74 $(CP) $(PKG_INSTALL_DIR)/usr/include/*.h $(1)/usr/include/
75 $(INSTALL_DIR) $(1)/usr/lib
76 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libusbmuxd-2.0.so* $(1)/usr/lib/
77 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
78 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libusbmuxd-2.0.pc $(1)/usr/lib/pkgconfig/
79 endef
80
81 define Package/libusbmuxd/install
82 $(INSTALL_DIR) $(1)/usr/lib
83 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libusbmuxd-2.0.so.* $(1)/usr/lib/
84 endef
85
86 define Package/libusbmuxd-utils/install
87 $(INSTALL_DIR) $(1)/usr/bin
88 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/iproxy $(1)/usr/bin/
89 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/inetcat $(1)/usr/bin/
90 endef
91
92 $(eval $(call BuildPackage,libusbmuxd))
93 $(eval $(call BuildPackage,libusbmuxd-utils))