| b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame] | 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:=libideviceactivation |
| 9 | PKG_RELEASE:=1 |
| 10 | |
| 11 | PKG_SOURCE_PROTO:=git |
| 12 | PKG_SOURCE_URL:=https://github.com/libimobiledevice/libideviceactivation.git |
| 13 | PKG_SOURCE_DATE:=2024-04-16 |
| 14 | PKG_SOURCE_VERSION:=6925d58ef7994168fb9585aa6f48421149982329 |
| 15 | PKG_MIRROR_HASH:=671a4feef00d6cc1b81df1e8f305a2e7a26752848b23c8ab60432940f307fe57 |
| 16 | |
| 17 | PKG_MAINTAINER:=Rosen Penev <rosenp@gmail.com> |
| 18 | PKG_LICENSE:=LGPL-2.1-or-later |
| 19 | PKG_LICENSE_FILES:=COPYING.LESSER |
| 20 | PKG_CPE_ID:=cpe:/a:libimobiledevice:libideviceactivation |
| 21 | |
| 22 | PKG_FIXUP:=autoreconf |
| 23 | PKG_INSTALL:=1 |
| 24 | PKG_BUILD_PARALLEL:=1 |
| 25 | |
| 26 | include $(INCLUDE_DIR)/package.mk |
| 27 | |
| 28 | define Package/libideviceactivation/Default |
| 29 | TITLE:=Manage the activation of Apple iOS devices |
| 30 | URL:=https://www.libimobiledevice.org/ |
| 31 | SUBMENU:=libimobiledevice |
| 32 | endef |
| 33 | |
| 34 | define Package/libideviceactivation/Default/description |
| 35 | A library to manage the activation process of Apple iOS devices. |
| 36 | This project provides an interface to activate and deactivate iOS devices |
| 37 | by talking to Apple's webservice alongside a command-line utility named |
| 38 | ideviceactivation. |
| 39 | - Status: Implements complete activation and deactivation process |
| 40 | - Compatibility: Supports legacy and latest activation webservice APIs |
| 41 | - Utility: Provides ideviceactivation utility for command-line usage |
| 42 | - Interactive: Requests user input if the activation process uses forms |
| 43 | - Cross-Platform: Tested on Linux, macOS, Windows and Android platforms |
| 44 | endef |
| 45 | |
| 46 | define Package/libideviceactivation |
| 47 | $(call Package/libideviceactivation/Default) |
| 48 | SECTION:=libs |
| 49 | CATEGORY:=Libraries |
| 50 | DEPENDS:=+libcurl +libimobiledevice +usbmuxd |
| 51 | LICENSE:=LGPL-2.1-or-later |
| 52 | LICENSE_FILES:=COPYING.LESSER |
| 53 | endef |
| 54 | |
| 55 | define Package/libideviceactivation/description |
| 56 | $(call Package/libideviceactivation/Default/description) |
| 57 | endef |
| 58 | |
| 59 | define Package/libideviceactivation-utils |
| 60 | $(call Package/libideviceactivation/Default) |
| 61 | SECTION:=utils |
| 62 | CATEGORY:=Utilities |
| 63 | DEPENDS:=+libideviceactivation |
| 64 | LICENSE:=GPL-3.0-or-later |
| 65 | ICENSE_FILES:=COPYING |
| 66 | endef |
| 67 | |
| 68 | define Package/libideviceactivation-utils/description |
| 69 | $(call Package/libideviceactivation/Default/description) |
| 70 | This package contains the libideviceactivation utilities. |
| 71 | endef |
| 72 | |
| 73 | CONFIGURE_ARGS += \ |
| 74 | PACKAGE_VERSION=$(PKG_VERSION) |
| 75 | |
| 76 | define Build/InstallDev |
| 77 | $(INSTALL_DIR) $(1)/usr/include |
| 78 | $(CP) $(PKG_INSTALL_DIR)/usr/include/libideviceactivation.h $(1)/usr/include/ |
| 79 | $(INSTALL_DIR) $(1)/usr/lib |
| 80 | $(CP) $(PKG_INSTALL_DIR)/usr/lib/libideviceactivation-1.0.so* $(1)/usr/lib/ |
| 81 | $(INSTALL_DIR) $(1)/usr/lib/pkgconfig |
| 82 | $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libideviceactivation-1.0.pc $(1)/usr/lib/pkgconfig/ |
| 83 | endef |
| 84 | |
| 85 | define Package/libideviceactivation/install |
| 86 | $(INSTALL_DIR) $(1)/usr/lib |
| 87 | $(CP) $(PKG_INSTALL_DIR)/usr/lib/libideviceactivation-1.0.so.* $(1)/usr/lib/ |
| 88 | endef |
| 89 | |
| 90 | define Package/libideviceactivation-utils/install |
| 91 | $(INSTALL_DIR) $(1)/usr/bin |
| 92 | $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/ideviceactivation $(1)/usr/bin/ |
| 93 | endef |
| 94 | |
| 95 | $(eval $(call BuildPackage,libideviceactivation)) |
| 96 | $(eval $(call BuildPackage,libideviceactivation-utils)) |