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.

64 lines
1.8 KiB

  1. #
  2. # Copyright (C) 2006-2015 OpenWrt.org
  3. # 2014-2015 Vitaly Protsko
  4. #
  5. # This is free software, licensed under the GNU General Public License v2.
  6. # See /LICENSE for more information.
  7. #
  8. include $(TOPDIR)/rules.mk
  9. PKG_NAME:=gammu
  10. PKG_VERSION:=1.36.3
  11. PKG_RELEASE:=1
  12. PKG_SOURCE_URL:=http://dl.cihar.com/gammu/releases/
  13. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  14. PKG_MD5SUM:=d5a6914996ebedcd6cac6622f2e4018b
  15. PKG_MAINTAINER:=Vitaly Protsko <villy@sft.ru>
  16. PKG_LICENCE:=GPL-2.0
  17. PKG_INSTALL:=1
  18. include $(INCLUDE_DIR)/package.mk
  19. include $(INCLUDE_DIR)/nls.mk
  20. include $(INCLUDE_DIR)/cmake.mk
  21. define Package/gammu
  22. SECTION:=utils
  23. CATEGORY:=Utilities
  24. TITLE:=Cell phone/modem SMS and control tool
  25. URL:=http://dl.cihar.com/gammu/releases/
  26. DEPENDS:=+libpthread +libcurl +glib2 $(ICONV_DEPENDS) $(INTL_DEPENDS)
  27. DEPENDS+=+PACKAGE_python:python +PACKAGE_bluez-libs:bluez-libs
  28. DEPENDS+=+PACKAGE_libmysqlclient:libmysqlclient +PACKAGE_unixodbc:unixodbc +PACKAGE_libpq:libpq
  29. DEPENDS+=+PACKAGE_libusb-1.0:libusb-1.0
  30. endef
  31. CMAKE_OPTIONS += -DWITH_LibDBI:BOOL=OFF
  32. define Build/InstallDev
  33. mkdir -p $(1)/usr/include
  34. $(CP) -r $(PKG_INSTALL_DIR)/usr/include/gammu $(1)/usr/include/
  35. mkdir -p $(1)/usr/lib
  36. $(CP) $(PKG_INSTALL_DIR)/usr/lib$(LIB_SUFFIX)/lib{Gammu*,gsmsd*} $(1)/usr/lib/
  37. endef
  38. define Package/gammu/install
  39. $(INSTALL_DIR) $(1)/usr/bin
  40. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/gammu $(1)/usr/bin
  41. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/gammu-{smsd,smsd-inject,smsd-monitor} $(1)/usr/bin
  42. $(INSTALL_DIR) $(1)/usr/lib
  43. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib$(LIB_SUFFIX)/lib{Gammu*,gsmsd*} $(1)/usr/lib
  44. $(INSTALL_DIR) $(1)/etc/init.d
  45. $(INSTALL_DIR) $(1)/etc/config
  46. $(INSTALL_CONF) ./files/gammu $(1)/etc/config/gammu
  47. $(INSTALL_BIN) ./files/gammu.init $(1)/etc/init.d/gammu
  48. endef
  49. define Package/gammu/conffiles
  50. /etc/config/gammu
  51. endef
  52. $(eval $(call BuildPackage,gammu))