You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

70 lines
1.7 KiB

  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:=$(AUTORELEASE)
  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_MAINTAINER:=Nicholas Smith <nicholas.smith@telcoantennas.com.au>
  16. PKG_INSTALL:=1
  17. PKG_BUILD_PARALLEL:=1
  18. include $(INCLUDE_DIR)/package.mk
  19. include $(INCLUDE_DIR)/nls.mk
  20. include $(INCLUDE_DIR)/meson.mk
  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. define Build/InstallDev
  37. $(INSTALL_DIR) $(1)/usr/include
  38. $(CP) \
  39. $(PKG_INSTALL_DIR)/usr/include/libqrtr-glib \
  40. $(1)/usr/include/
  41. $(INSTALL_DIR) $(1)/usr/lib
  42. $(CP) \
  43. $(PKG_INSTALL_DIR)/usr/lib/libqrtr-glib*.so* \
  44. $(1)/usr/lib/
  45. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  46. $(CP) \
  47. $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/qrtr-glib.pc \
  48. $(1)/usr/lib/pkgconfig
  49. endef
  50. define Package/libqrtr-glib/install
  51. $(INSTALL_DIR) $(1)/usr/lib
  52. $(CP) \
  53. $(PKG_INSTALL_DIR)/usr/lib/libqrtr-glib*.so.* \
  54. $(1)/usr/lib/
  55. endef
  56. $(eval $(call BuildPackage,libqrtr-glib))