2 # Copyright (C) 2006-2015 OpenWrt.org
3 # 2014-2015 Vitaly Protsko
5 # This is free software, licensed under the GNU General Public License v2.
6 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
15 PKG_SOURCE_URL
:=https
://dl.cihar.com
/gammu
/releases
16 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.xz
17 PKG_HASH
:=66d1d991d7a993fdf254d4c425f0fdd38c9cca15b1735936695a486067a6a9f8
19 PKG_MAINTAINER
:=Vitaly Protsko
<villy@sft.ru
>
25 include $(INCLUDE_DIR
)/package.mk
26 include $(INCLUDE_DIR
)/nls.mk
27 include $(INCLUDE_DIR
)/cmake.mk
32 TITLE
:=Cell phone
/modem SMS and control tool
33 URL
:=https
://wammu.eu
/gammu
/
34 DEPENDS
:=+libpthread
+libcurl
+glib2
$(ICONV_DEPENDS
) $(INTL_DEPENDS
)
35 DEPENDS
+=+PACKAGE_python
:python
+PACKAGE_bluez-libs
:bluez-libs
36 DEPENDS
+=+PACKAGE_libmariadb
:libmariadb
+PACKAGE_unixodbc
:unixodbc
+PACKAGE_libpq
:libpq
37 DEPENDS
+=+PACKAGE_libusb-1.0
:libusb-1.0
40 CMAKE_OPTIONS
+= -DWITH_LibDBI
:BOOL
=OFF
42 CMAKE_OPTIONS
+= -DLIBINTL_INCLUDE_DIRS
:PATH
=$(INTL_PREFIX
)/include
43 CMAKE_OPTIONS
+= -DLIBINTL_LIBRARIES
:STRING
=intl
45 ifneq ($(ICONV_FULL
),)
46 CMAKE_OPTIONS
+= -DDISABLE_ICONV
=OFF
47 CMAKE_OPTIONS
+= -DICONV_INCLUDE_DIRS
:PATH
=$(ICONV_PREFIX
)/include
48 CMAKE_OPTIONS
+= -DICONV_LIBRARIES
:STRING
=iconv
51 define Build
/InstallDev
52 mkdir
-p
$(1)/usr
/include
53 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/gammu
$(1)/usr
/include/
55 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/lib
{Gammu
*,gsmsd
*} $(1)/usr
/lib
/
58 define Package
/gammu
/install
59 $(INSTALL_DIR
) $(1)/usr
/bin
60 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/gammu
$(1)/usr
/bin
61 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/gammu-
{smsd
,smsd-inject
,smsd-monitor
} $(1)/usr
/bin
62 $(INSTALL_DIR
) $(1)/usr
/lib
63 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/lib
/lib
{Gammu
*,gsmsd
*} $(1)/usr
/lib
64 $(INSTALL_DIR
) $(1)/etc
/init.d
65 $(INSTALL_DIR
) $(1)/etc
/config
66 $(INSTALL_CONF
) .
/files
/gammu
$(1)/etc
/config
/gammu
67 $(INSTALL_BIN
) .
/files
/gammu.init
$(1)/etc
/init.d
/gammu
70 define Package
/gammu
/conffiles
74 $(eval
$(call BuildPackage
,gammu
))