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.2
15 PKG_SOURCE_URL
:=https
://gitlab.freedesktop.org
/mobile-broadband
/libmbim.git
16 PKG_MIRROR_HASH
:=0b0b46016738fc22355d5a58c8a2d1b2f04906c49c51a50b57a09640d13b00b7
18 PKG_MAINTAINER
:=Nicholas Smith
<nicholas@nbembedded.com
>
20 include $(INCLUDE_DIR
)/package.mk
21 include $(INCLUDE_DIR
)/nls.mk
22 include $(INCLUDE_DIR
)/meson.mk
24 TARGET_CFLAGS
+= -ffunction-sections
-fdata-sections
-fno-merge-all-constants
-fmerge-constants
25 TARGET_LDFLAGS
+= -Wl
,--gc-sections
28 -Dintrospection
=false \
30 -Dbash_completion
=false \
33 define Package
/libmbim
37 TITLE
:=Helper library and utils to talk to MBIM enabled modems
38 URL
:=https
://www.freedesktop.org
/wiki
/Software
/libmbim
39 LICENSE
:=LGPL-2.0
-or-later
40 LICENSE_FILES
:=COPYING.LIB
43 define Package
/libmbim
/description
44 Helper library to talk to MBIM enabled modems.
45 Add mbim-utils for extra utilities.
48 define Package
/mbim-utils
52 TITLE
:=Utilities to talk to MBIM enabled modems
53 URL
:=https
://www.freedesktop.org
/wiki
/Software
/libmbim
54 LICENSE
:=GPL-2.0
-or-later
55 LICENSE_FILES
:=COPYING
58 define Build
/InstallDev
59 $(INSTALL_DIR
) $(1)/usr
/include
61 $(PKG_INSTALL_DIR
)/usr
/include/libmbim-glib \
64 $(INSTALL_DIR
) $(1)/usr
/lib
66 $(PKG_INSTALL_DIR
)/usr
/lib
/libmbim
*.so
* \
69 $(INSTALL_DIR
) $(1)/usr
/lib
/pkgconfig
71 $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/mbim-glib.
pc \
72 $(1)/usr
/lib
/pkgconfig
75 define Package
/libmbim
/install
81 $(PKG_INSTALL_DIR
)/usr
/lib
/libmbim
*.so.
* \
84 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/libexec
/mbim-proxy
$(1)/usr
/libexec
/
87 define Package
/mbim-utils
/install
88 $(INSTALL_DIR
) $(1)/usr
/bin
89 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/mbimcli
$(1)/usr
/bin
/
90 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/mbim-network
$(1)/usr
/bin
/
93 $(eval
$(call BuildPackage
,libmbim
))
94 $(eval
$(call BuildPackage
,mbim-utils
))