2 # Copyright (C) 2016 Velocloud Inc.
3 # Copyright (C) 2016 Aleksander Morgado <aleksander@aleksander.es>
5 # This is free software, licensed under the GNU General Public License v2.
8 include $(TOPDIR
)/rules.mk
11 PKG_SOURCE_VERSION
:=1.28.4
15 PKG_SOURCE_URL
:=https
://gitlab.freedesktop.org
/mobile-broadband
/libmbim.git
16 PKG_MIRROR_HASH
:=7ecc6d1e565392817311254045337907bbad015b46ec88542ea63594f47778be
18 PKG_BUILD_FLAGS
:=gc-sections
20 PKG_MAINTAINER
:=Nicholas Smith
<nicholas@nbembedded.com
>
22 include $(INCLUDE_DIR
)/package.mk
23 include $(INCLUDE_DIR
)/nls.mk
24 include $(INCLUDE_DIR
)/meson.mk
26 TARGET_CFLAGS
+= -fno-merge-all-constants
-fmerge-constants
29 -Dintrospection
=false \
31 -Dbash_completion
=false \
34 define Package
/libmbim
38 TITLE
:=Helper library and utils to talk to MBIM enabled modems
39 URL
:=https
://www.freedesktop.org
/wiki
/Software
/libmbim
40 LICENSE
:=LGPL-2.0
-or-later
41 LICENSE_FILES
:=COPYING.LIB
44 define Package
/libmbim
/description
45 Helper library to talk to MBIM enabled modems.
46 Add mbim-utils for extra utilities.
49 define Package
/mbim-utils
53 TITLE
:=Utilities to talk to MBIM enabled modems
54 URL
:=https
://www.freedesktop.org
/wiki
/Software
/libmbim
55 LICENSE
:=GPL-2.0
-or-later
56 LICENSE_FILES
:=COPYING
59 define Build
/InstallDev
60 $(INSTALL_DIR
) $(1)/usr
/include
62 $(PKG_INSTALL_DIR
)/usr
/include/libmbim-glib \
65 $(INSTALL_DIR
) $(1)/usr
/lib
67 $(PKG_INSTALL_DIR
)/usr
/lib
/libmbim
*.so
* \
70 $(INSTALL_DIR
) $(1)/usr
/lib
/pkgconfig
72 $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/mbim-glib.
pc \
73 $(1)/usr
/lib
/pkgconfig
76 define Package
/libmbim
/install
82 $(PKG_INSTALL_DIR
)/usr
/lib
/libmbim
*.so.
* \
85 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/libexec
/mbim-proxy
$(1)/usr
/libexec
/
88 define Package
/mbim-utils
/install
89 $(INSTALL_DIR
) $(1)/usr
/bin
90 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/mbimcli
$(1)/usr
/bin
/
91 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/mbim-network
$(1)/usr
/bin
/
94 $(eval
$(call BuildPackage
,libmbim
))
95 $(eval
$(call BuildPackage
,mbim-utils
))