Merge pull request #4853 from StevenHessing/noddos
[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:=1.1.0
12 PKG_RELEASE:=2
13
14 PKG_MAINTAINER:=Lukasz Baj <l.baj@radytek.com>
15 PKG_LICENSE:=LGPL-2.1+
16 PKG_LICENSE_FILES:=COPYING.LGPLv2.1
17
18 PKG_SOURCE_PROTO:=git
19 PKG_SOURCE_URL:=https://github.com/libimobiledevice/libusbmuxd.git
20 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
21 PKG_SOURCE_VERSION:=4397b3376dc4e4cb1c991d0aed61ce6482614196
22 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
23 PKG_MIRROR_HASH:=e145b567cdefb1d2536f3eec863769c77474ce9a5d9c4c81ab0a75dc6fe3056a
24
25 PKG_FIXUP:=autoreconf
26 PKG_INSTALL:=1
27
28 include $(INCLUDE_DIR)/package.mk
29
30 define Package/libusbmuxd/Default
31 TITLE:=USB multiplexing daemon
32 URL:=http://www.libimobiledevice.org/
33 endef
34
35 define Package/libusbmuxd/Default/description
36 This daemon is in charge of multiplexing connections over USB to an iPhone or
37 iPod touch. To users, it means you can sync your music, contacts, photos, etc.
38 over USB. To developers, it means you can connect to any listening localhost
39 socket on the device. usbmuxd is not used for tethering data transfer, which
40 uses a dedicated USB interface as a virtual network device.
41 endef
42
43 define Package/libusbmuxd
44 $(call Package/libusbmuxd/Default)
45 SECTION:=libs
46 CATEGORY:=Libraries
47 TITLE+= library
48 DEPENDS:=+libplist +libpthread +libxml2 +zlib
49 endef
50
51 define Package/libusbmuxd/description
52 $(call Package/libusbmuxd/Default/description)
53 This package contains the libusbmuxd shared library.
54 endef
55
56 define Package/libusbmuxd-utils
57 $(call Package/libusbmuxd/Default)
58 SECTION:=utils
59 CATEGORY:=Utilities
60 TITLE+= utilies
61 DEPENDS:=+libusbmuxd
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 TARGET_CFLAGS += $(FPIC)
70
71 define Build/InstallDev
72 $(INSTALL_DIR) $(1)/usr/include
73 $(CP) $(PKG_INSTALL_DIR)/usr/include/*.h $(1)/usr/include/
74 $(INSTALL_DIR) $(1)/usr/lib
75 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libusbmuxd.so* $(1)/usr/lib/
76 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
77 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libusbmuxd.pc $(1)/usr/lib/pkgconfig/
78 endef
79
80 define Package/libusbmuxd/install
81 $(INSTALL_DIR) $(1)/usr/lib
82 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libusbmuxd.so.* $(1)/usr/lib/
83 endef
84
85 define Package/libusbmuxd-utils/install
86 $(INSTALL_DIR) $(1)/usr/bin
87 $(CP) $(PKG_INSTALL_DIR)/usr/bin/iproxy $(1)/usr/bin/
88 endef
89
90 $(eval $(call BuildPackage,libusbmuxd))
91 $(eval $(call BuildPackage,libusbmuxd-utils))