mirror of
https://github.com/openwrt/packages.git
synced 2025-12-26 13:26:17 +04:00
Turns out that having a comment for QMI over QRTR in the CMAKE_OPTIONS will
drop anything after it, so lets move the comment above CMAKE_OPTIONS.
Fixes: 34f9d96b4c ("lpac: make APDU backends configurable")
Signed-off-by: Robert Marko <robert.marko@sartura.hr>
66 lines
1.6 KiB
Makefile
66 lines
1.6 KiB
Makefile
# SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=lpac
|
|
PKG_VERSION:=2.0.2
|
|
PKG_RELEASE:=3
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
PKG_SOURCE_URL:=https://codeload.github.com/estkme-group/lpac/tar.gz/refs/tags/v$(PKG_VERSION)?
|
|
PKG_HASH:=de25d0712cb61f4a24eda43a3ed271cdb84ec221229d236d47ea3da9e014d9f5
|
|
|
|
PKG_MAINTAINER:=David Bauer <mail@david-bauer.net>
|
|
PKG_LICENSE:=AGPL-3.0-only LGPL-2.0-only
|
|
|
|
CMAKE_INSTALL:=1
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
include $(INCLUDE_DIR)/cmake.mk
|
|
|
|
define Package/lpac
|
|
SECTION:=utils
|
|
CATEGORY:=Utilities
|
|
TITLE:=eUICC eSIM LPA written in C
|
|
DEPENDS:= \
|
|
+LPAC_WITH_PCSC:libpcsclite \
|
|
+LPAC_WITH_PCSC:pcscd \
|
|
+libcurl
|
|
URL:=https://github.com/estkme-group/lpac
|
|
endef
|
|
|
|
define Package/lpac/description
|
|
lpac is a eUICC eSIM LPA manager written in C. It allows to
|
|
manage eSIM profiles on eUICC SIM cards or modules using multiple
|
|
backends.
|
|
endef
|
|
|
|
define Package/lpac/config
|
|
source "$(SOURCE)/Config.in"
|
|
endef
|
|
|
|
define Package/lpac/conffiles
|
|
/etc/config/lpac
|
|
endef
|
|
|
|
TARGET_CFLAGS += $(FPIC)
|
|
|
|
# libqmi 1.35.4 or newer is required for QMI over QRTR
|
|
CMAKE_OPTIONS += \
|
|
-DLPAC_WITH_APDU_PCSC=$(if $(CONFIG_LPAC_WITH_PCSC),ON,OFF) \
|
|
-DLPAC_WITH_APDU_AT=$(if $(CONFIG_LPAC_WITH_AT),ON,OFF) \
|
|
-DLPAC_WITH_APDU_QMI_QRTR=OFF
|
|
|
|
define Package/lpac/install
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
$(INSTALL_BIN) ./files/lpac.sh $(1)/usr/bin/lpac
|
|
|
|
$(INSTALL_DIR) $(1)/etc/config
|
|
$(CP) ./files/lpac.uci $(1)/etc/config/lpac
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/lpac $(1)/usr/lib/lpac
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,lpac))
|