Advertisement
Guest User

libmbim-make

a guest
Feb 23rd, 2013
121
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #
  2. # This is free software, licensed under the GNU General Public License v2.
  3. # See /LICENSE for more information.
  4. #
  5.  
  6. include $(TOPDIR)/rules.mk
  7.  
  8. PKG_NAME:=libmbim
  9. PKG_VERSION:=0.0.1-1rz
  10. PKG_RELEASE:=1
  11.  
  12. PKG_SOURCE:=libmbim-$(PKG_VERSION).tar.bz2
  13. PKG_SOURCE_URL:=https://dl.dropbox.com/u/58437849/LIBMBIM_OPENWRT/
  14. PKG_BUILD_DIR:=$(BUILD_DIR)/libmbim-$(PKG_VERSION)
  15.  
  16. PKG_FIXUP:=autoreconf
  17. #PKG_REMOVE_FILES = autogen.sh aclocal.m4
  18. PKG_INSTALL:=1
  19.  
  20. include $(INCLUDE_DIR)/package.mk
  21. include $(INCLUDE_DIR)/nls.mk
  22.  
  23. define Package/libmbim
  24. SECTION:=libs
  25. CATEGORY:=Libraries
  26. DEPENDS:=+glib2 +zlib
  27. TITLE:=libmbim
  28. URL:=http://www.lanedo.com/~aleksander
  29. endef
  30.  
  31. define Package/libmbim/description
  32. Helper library and utils to talk to QMI enabled modems
  33. endef
  34.  
  35. CONFIGURE_VARS+= CFLAGS="$$$$CFLAGS -DMESSAGE_ENABLE_TRACE"
  36.  
  37. define Build/InstallDev
  38. $(INSTALL_DIR) $(1)/usr/include
  39. $(CP) \
  40. $(PKG_INSTALL_DIR)/usr/include/libmbim-glib \
  41. $(1)/usr/include/
  42.  
  43. $(INSTALL_DIR) $(1)/usr/lib
  44. $(CP) \
  45. $(PKG_INSTALL_DIR)/usr/lib/*.{so*,a,la} \
  46. $(1)/usr/lib/
  47. endef
  48.  
  49. define Package/libmbim/install
  50. $(INSTALL_DIR) $(1)/usr/lib
  51. $(CP) \
  52. $(PKG_INSTALL_DIR)/usr/lib/*.so* \
  53. $(1)/usr/lib/
  54.  
  55. $(INSTALL_DIR) $(1)/usr/bin
  56. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/mbimcli $(1)/usr/bin/
  57.  
  58. endef
  59.  
  60. $(eval $(call BuildPackage,libmbim))
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement