aboutsummaryrefslogtreecommitdiff
path: root/libs/libirecovery/Makefile
blob: 8d82ef0028fec3b801aa1f555cd263842fc0ca96 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#

include $(TOPDIR)/rules.mk

PKG_NAME:=libirecovery
PKG_VERSION:=1.0.0
PKG_RELEASE:=2

PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
PKG_SOURCE_URL:=https://www.libimobiledevice.org/downloads
PKG_HASH:=cda0aba10a5b6fc2e1d83946b009e3e64d0be36912a986e35ad6d34b504ad9b4

PKG_MAINTAINER:=Rosen Penev <rosenp@gmail.com>
PKG_LICENSE:=LGPL-2.1-or-later
PKG_LICENSE_FILES:=COPYING

PKG_INSTALL:=1
PKG_BUILD_PARALLEL:=1

include $(INCLUDE_DIR)/package.mk

define Package/libirecovery/Default
  URL:=https://github.com/libimobiledevice/libirecovery
  SUBMENU:=libimobiledevice
endef

define Package/libirecovery/Default/description
  libirecovery is a cross-platform library which implements communication
  to iBoot/iBSS found on Apple's iOS devices via USB.
endef

define Package/libirecovery
  $(call Package/libirecovery/Default)
  TITLE:=A library that talks to Apple iBoot/iBSS
  SECTION:=libs
  CATEGORY:=Libraries
  DEPENDS:=+libreadline +libusb-1.0
endef

define Package/libirecovery/description
  $(call Package/libirecovery/Default/description)
endef

define Package/irecovery
  $(call Package/libirecovery/Default)
  TITLE:=A utility that talks to Apple iBoot/iBSS
  SECTION:=utils
  CATEGORY:=Utilities
  DEPENDS:=+libirecovery
endef

define Package/irecovery/description
  $(call Package/libirecovery/Default/description)
  This package contains the libirecovery utilities.
endef

CONFIGURE_ARGS += \
	--disable-static \
	--without-udev

define Build/InstallDev
	$(INSTALL_DIR) $(1)/usr/include
	$(CP) $(PKG_INSTALL_DIR)/usr/include/libirecovery.h $(1)/usr/include/
	$(INSTALL_DIR) $(1)/usr/lib
	$(CP) $(PKG_INSTALL_DIR)/usr/lib/libirecovery-1.0.so* $(1)/usr/lib/
	$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
	$(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libirecovery-1.0.pc $(1)/usr/lib/pkgconfig/
endef

define Package/libirecovery/install
	$(INSTALL_DIR) $(1)/usr/lib
	$(CP) $(PKG_INSTALL_DIR)/usr/lib/libirecovery-1.0.so.* $(1)/usr/lib/
endef

define Package/irecovery/install
	$(INSTALL_DIR) $(1)/usr/bin
	$(CP) $(PKG_INSTALL_DIR)/usr/bin/irecovery $(1)/usr/bin/
endef

$(eval $(call BuildPackage,libirecovery))
$(eval $(call BuildPackage,irecovery))