Makefile 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. #
  2. # Copyright (C) 2016 Velocloud Inc.
  3. # Copyright (C) 2016 Aleksander Morgado <aleksander@aleksander.es>
  4. #
  5. # This is free software, licensed under the GNU General Public License v2.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=libqrtr-glib
  9. PKG_VERSION:=1.2.2
  10. PKG_RELEASE:=3
  11. PKG_SOURCE_PROTO:=git
  12. PKG_SOURCE_URL:=https://gitlab.freedesktop.org/mobile-broadband/libqrtr-glib.git
  13. PKG_SOURCE_VERSION:=$(PKG_VERSION)
  14. PKG_MIRROR_HASH:=ffb918edf96581d4ba310bd1e975297e9a7006a7e26f37934afde462585125f2
  15. PKG_BUILD_FLAGS:=gc-sections
  16. PKG_MAINTAINER:=Nicholas Smith <nicholas.smith@telcoantennas.com.au>
  17. include $(INCLUDE_DIR)/package.mk
  18. include $(INCLUDE_DIR)/nls.mk
  19. include $(INCLUDE_DIR)/meson.mk
  20. TARGET_CFLAGS += -fno-merge-all-constants -fmerge-constants
  21. define Package/libqrtr-glib
  22. SECTION:=libs
  23. CATEGORY:=Libraries
  24. DEPENDS:=+glib2
  25. TITLE:=Helper library to talk to QRTR enabled modems
  26. URL:=https://gitlab.freedesktop.org/mobile-broadband/libqrtr-glib
  27. LICENSE:=LGPL-2.1-or-later
  28. LICENSE_FILES:=COPYING.LIB
  29. endef
  30. define Package/libqrtr-glib/description
  31. Helper library talk to QRTR enabled modems.
  32. endef
  33. MESON_ARGS += \
  34. -Dintrospection=false \
  35. -Dgtk_doc=false \
  36. -Db_lto=true
  37. define Build/InstallDev
  38. $(INSTALL_DIR) $(1)/usr/include
  39. $(CP) \
  40. $(PKG_INSTALL_DIR)/usr/include/libqrtr-glib \
  41. $(1)/usr/include/
  42. $(INSTALL_DIR) $(1)/usr/lib
  43. $(CP) \
  44. $(PKG_INSTALL_DIR)/usr/lib/libqrtr-glib*.so* \
  45. $(1)/usr/lib/
  46. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  47. $(CP) \
  48. $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/qrtr-glib.pc \
  49. $(1)/usr/lib/pkgconfig
  50. endef
  51. define Package/libqrtr-glib/install
  52. $(INSTALL_DIR) $(1)/usr/lib
  53. $(CP) \
  54. $(PKG_INSTALL_DIR)/usr/lib/libqrtr-glib*.so.* \
  55. $(1)/usr/lib/
  56. endef
  57. $(eval $(call BuildPackage,libqrtr-glib))