Merge pull request #12516 from rozhuk-im/fbsd_build
[feed/packages.git] / utils / idevicerestore / 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:=idevicerestore
9 PKG_VERSION:=1.0.0
10 PKG_RELEASE:=1
11
12 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
13 PKG_SOURCE_URL:=https://www.libimobiledevice.org/downloads
14 PKG_HASH:=32712e86315397fd2e8999e77a2d2f790c67f6b4aa50d4d1c64cb2c4609836f7
15
16 PKG_MAINTAINER:=Rosen Penev <rosenp@gmail.com>
17 PKG_LICENSE:=GPL-2.0-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/idevicerestore
26 SECTION:=utils
27 CATEGORY:=Utilities
28 SUBMENU:=libimobiledevice
29 TITLE:=Restore/upgrade firmware of iOS devices
30 URL:=https://github.com/libimobiledevice/idevicerestore
31 DEPENDS:=+libirecovery +libzip +libcurl +usbmuxd
32 endef
33
34 define Package/idevicerestore/description
35 The idevicerestore tool allows to restore firmware files to iOS devices.
36 It is a full reimplementation of all granular steps which are performed
37 during restore of a firmware to a device.
38 endef
39
40 TARGET_LDFLAGS += $(if $(CONFIG_USE_GLIBC),-lpthread)
41
42 define Package/idevicerestore/install
43 $(INSTALL_DIR) $(1)/usr/bin
44 $(CP) $(PKG_INSTALL_DIR)/usr/bin/idevicerestore $(1)/usr/bin/
45 endef
46
47 $(eval $(call BuildPackage,idevicerestore))