Community maintained packages for ImmortalWrt.
Revision | 7508755357e80e02c38819a5bc287ee0cbf18951 (tree) |
---|---|
Time | 2022-12-02 19:39:42 |
Author | Maxim Anisimov <maxim.anisimov.ua@gmai...> |
Commiter | Florian Eckert |
libqmi: polish Makefile
PKG_VERSION replaced by PKG_SOURCE_VERSION.
Simplify for collection selection.
Removed unneeded python3/host dep.
Signed-off-by: Maxim Anisimov <maxim.anisimov.ua@gmail.com>
(cherry picked from commit ff5837ee8f483bb425d33b18c1185586507d495c)
(cherry picked from commit 94b824423bc0f668a2f607497d26cc00f47e521e)
@@ -8,18 +8,16 @@ | ||
8 | 8 | include $(TOPDIR)/rules.mk |
9 | 9 | |
10 | 10 | PKG_NAME:=libqmi |
11 | -PKG_VERSION:=1.30.4 | |
11 | +PKG_SOURCE_VERSION:=1.30.4 | |
12 | 12 | PKG_RELEASE:=$(AUTORELEASE) |
13 | 13 | |
14 | 14 | PKG_SOURCE_PROTO:=git |
15 | 15 | PKG_SOURCE_URL:=https://gitlab.freedesktop.org/mobile-broadband/libqmi.git |
16 | -PKG_SOURCE_VERSION:=$(PKG_VERSION) | |
17 | 16 | PKG_MIRROR_HASH:=537eae29c36aba9757afd86e48b91c37c3fe3232037ad11fdd426297f6040a6b |
18 | 17 | |
19 | 18 | PKG_MAINTAINER:=Nicholas Smith <nicholas@nbembedded.com> |
20 | 19 | |
21 | 20 | PKG_INSTALL:=1 |
22 | -PKG_BUILD_DEPENDS:=python3/host | |
23 | 21 | |
24 | 22 | include $(INCLUDE_DIR)/package.mk |
25 | 23 | include $(INCLUDE_DIR)/nls.mk |
@@ -69,27 +67,11 @@ MESON_ARGS += \ | ||
69 | 67 | -Dintrospection=false \ |
70 | 68 | -Dman=false \ |
71 | 69 | -Dbash_completion=false \ |
72 | - -Db_lto=true | |
73 | - | |
74 | -ifeq ($(CONFIG_LIBQMI_WITH_MBIM_QMUX),y) | |
75 | - MESON_ARGS += -Dmbim_qmux=true | |
76 | -else | |
77 | - MESON_ARGS += -Dmbim_qmux=false | |
78 | -endif | |
79 | - | |
80 | -ifeq ($(CONFIG_LIBQMI_WITH_QRTR_GLIB),y) | |
81 | - MESON_ARGS += -Dqrtr=true | |
82 | -else | |
83 | - MESON_ARGS += -Dqrtr=false | |
84 | -endif | |
85 | - | |
86 | -ifeq ($(CONFIG_LIBQMI_COLLECTION_MINIMAL),y) | |
87 | - MESON_ARGS += -Dcollection=minimal | |
88 | -else ifeq ($(CONFIG_LIBQMI_COLLECTION_BASIC),y) | |
89 | - MESON_ARGS += -Dcollection=basic | |
90 | -else | |
91 | - MESON_ARGS += -Dcollection=full | |
92 | -endif | |
70 | + -Db_lto=true \ | |
71 | + -Dmbim_qmux=$(if $(CONFIG_LIBQMI_WITH_MBIM_QMUX),true,false) \ | |
72 | + -Dqrtr=$(if $(CONFIG_LIBQMI_WITH_QRTR_GLIB),true,false) \ | |
73 | + -Dcollection=$(if $(CONFIG_LIBQMI_COLLECTION_MINIMAL),minimal\ | |
74 | + ,$(if $(CONFIG_LIBQMI_COLLECTION_BASIC),basic,full)) | |
93 | 75 | |
94 | 76 | define Build/InstallDev |
95 | 77 | $(INSTALL_DIR) $(1)/usr/include |