8d82ef0028fec3b801aa1f555cd263842fc0ca96
[feed/packages.git] / libs / libirecovery / Makefile
1 #
2 # This is free software, licensed under the GNU General Public License v2.
3 # See /LICENSE for more information.
4 #
5
6 include $(TOPDIR)/rules.mk
7
8 PKG_NAME:=libirecovery
9 PKG_VERSION:=1.0.0
10 PKG_RELEASE:=2
11
12 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
13 PKG_SOURCE_URL:=https://www.libimobiledevice.org/downloads
14 PKG_HASH:=cda0aba10a5b6fc2e1d83946b009e3e64d0be36912a986e35ad6d34b504ad9b4
15
16 PKG_MAINTAINER:=Rosen Penev <rosenp@gmail.com>
17 PKG_LICENSE:=LGPL-2.1-or-later
18 PKG_LICENSE_FILES:=COPYING
19
20 PKG_INSTALL:=1
21 PKG_BUILD_PARALLEL:=1
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/libirecovery/Default
26 URL:=https://github.com/libimobiledevice/libirecovery
27 SUBMENU:=libimobiledevice
28 endef
29
30 define Package/libirecovery/Default/description
31 libirecovery is a cross-platform library which implements communication
32 to iBoot/iBSS found on Apple's iOS devices via USB.
33 endef
34
35 define Package/libirecovery
36 $(call Package/libirecovery/Default)
37 TITLE:=A library that talks to Apple iBoot/iBSS
38 SECTION:=libs
39 CATEGORY:=Libraries
40 DEPENDS:=+libreadline +libusb-1.0
41 endef
42
43 define Package/libirecovery/description
44 $(call Package/libirecovery/Default/description)
45 endef
46
47 define Package/irecovery
48 $(call Package/libirecovery/Default)
49 TITLE:=A utility that talks to Apple iBoot/iBSS
50 SECTION:=utils
51 CATEGORY:=Utilities
52 DEPENDS:=+libirecovery
53 endef
54
55 define Package/irecovery/description
56 $(call Package/libirecovery/Default/description)
57 This package contains the libirecovery utilities.
58 endef
59
60 CONFIGURE_ARGS += \
61 --disable-static \
62 --without-udev
63
64 define Build/InstallDev
65 $(INSTALL_DIR) $(1)/usr/include
66 $(CP) $(PKG_INSTALL_DIR)/usr/include/libirecovery.h $(1)/usr/include/
67 $(INSTALL_DIR) $(1)/usr/lib
68 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libirecovery-1.0.so* $(1)/usr/lib/
69 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
70 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libirecovery-1.0.pc $(1)/usr/lib/pkgconfig/
71 endef
72
73 define Package/libirecovery/install
74 $(INSTALL_DIR) $(1)/usr/lib
75 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libirecovery-1.0.so.* $(1)/usr/lib/
76 endef
77
78 define Package/irecovery/install
79 $(INSTALL_DIR) $(1)/usr/bin
80 $(CP) $(PKG_INSTALL_DIR)/usr/bin/irecovery $(1)/usr/bin/
81 endef
82
83 $(eval $(call BuildPackage,libirecovery))
84 $(eval $(call BuildPackage,irecovery))