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.26.2
12 PKG_RELEASE
:=$(AUTORELEASE
)
15 PKG_SOURCE_URL
:=https
://gitlab.freedesktop.org
/mobile-broadband
/libmbim.git
16 PKG_MIRROR_HASH
:=47eb6511818271be66336fb67ec97de7925119b09ddbd0ffd06b3f76893a461e
18 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
+= -ffunction-sections
-fdata-sections
-fno-merge-all-constants
-fmerge-constants
27 TARGET_LDFLAGS
+= -Wl
,--gc-sections
30 -Dintrospection
=false \
32 -Dbash_completion
=false \
35 define Package
/libmbim
39 TITLE
:=Helper library and utils to talk to MBIM enabled modems
40 URL
:=https
://www.freedesktop.org
/wiki
/Software
/libmbim
41 LICENSE
:=LGPL-2.0
-or-later
42 LICENSE_FILES
:=COPYING.LIB
45 define Package
/libmbim
/description
46 Helper library to talk to MBIM enabled modems.
47 Add mbim-utils for extra utilities.
50 define Package
/mbim-utils
54 TITLE
:=Utilities to talk to MBIM enabled modems
55 URL
:=https
://www.freedesktop.org
/wiki
/Software
/libmbim
56 LICENSE
:=GPL-2.0
-or-later
57 LICENSE_FILES
:=COPYING
60 define Build
/InstallDev
61 $(INSTALL_DIR
) $(1)/usr
/include
63 $(PKG_INSTALL_DIR
)/usr
/include/libmbim-glib \
66 $(INSTALL_DIR
) $(1)/usr
/lib
68 $(PKG_INSTALL_DIR
)/usr
/lib
/libmbim
*.so
* \
71 $(INSTALL_DIR
) $(1)/usr
/lib
/pkgconfig
73 $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/mbim-glib.
pc \
74 $(1)/usr
/lib
/pkgconfig
77 define Package
/libmbim
/install
83 $(PKG_INSTALL_DIR
)/usr
/lib
/libmbim
*.so.
* \
86 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/libexec
/mbim-proxy
$(1)/usr
/libexec
/
89 define Package
/mbim-utils
/install
90 $(INSTALL_DIR
) $(1)/usr
/bin
91 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/mbimcli
$(1)/usr
/bin
/
92 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/mbim-network
$(1)/usr
/bin
/
95 $(eval
$(call BuildPackage
,libmbim
))
96 $(eval
$(call BuildPackage
,mbim-utils
))