summaryrefslogtreecommitdiff
path: root/utils/gammu
diff options
context:
space:
mode:
authorDirk Neukirchen <dirkneukirchen@web.de>2015-03-05 10:19:24 +0100
committerDirk Neukirchen <dirkneukirchen@web.de>2015-03-07 10:39:44 +0100
commit5819a55155fed93fd3d67c44ca428b8ef085d33a (patch)
treed03fe4dac222f83fb84db08666ec2cf4d9956823 /utils/gammu
parentf9aed6ae3f5eefeee80a61018a40d0a601c538fc (diff)
gammu: use cmake.mk
- remove not needed legacy stuff - fix lib64 suffix when installing fixes build error when target is x86_64 Signed-off-by: Dirk Neukirchen <dirkneukirchen@web.de>
Diffstat (limited to 'utils/gammu')
-rw-r--r--utils/gammu/Makefile27
1 files changed, 6 insertions, 21 deletions
diff --git a/utils/gammu/Makefile b/utils/gammu/Makefile
index 11a5885a7..83df842ed 100644
--- a/utils/gammu/Makefile
+++ b/utils/gammu/Makefile
@@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=gammu
PKG_VERSION:=1.34.0
-PKG_RELEASE:=1
+PKG_RELEASE:=2
PKG_SOURCE_URL:=http://dl.cihar.com/gammu/releases/
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
@@ -18,8 +18,11 @@ PKG_MD5SUM:=5bc2508389d9b291ca0b8d4f210d0012
PKG_MAINTAINER:=Vitaly Protsko <villy@sft.ru>
PKG_LICENCE:=GPL-2.0
+PKG_INSTALL:=1
+
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/nls.mk
+include $(INCLUDE_DIR)/cmake.mk
define Package/gammu
SECTION:=utils
@@ -32,30 +35,12 @@ define Package/gammu
DEPENDS+=+PACKAGE_libusb-1.0:libusb-1.0
endef
-CONFIGURE_ARGS:= \
- --prefix=/usr \
- --cross-root="$(STAGING_DIR) $(TOOLCHAIN_DIR)" \
- --enable-shared \
- --without-libdbi
-
-define Build/Compile
- $(MAKE) -C $(PKG_BUILD_DIR) \
- $(TARGET_CONFIGURE_OPTS) \
- LDSHARED="$(TARGET_CROSS)ld -shared" \
- CFLAGS="$(TARGET_CFLAGS) $(FPIC)"
-endef
-
-define Build/Install
- $(MAKE) -C $(PKG_BUILD_DIR) \
- DESTDIR="$(PKG_INSTALL_DIR)" \
- install
-endef
define Build/InstallDev
mkdir -p $(1)/usr/include
$(CP) -r $(PKG_INSTALL_DIR)/usr/include/gammu $(1)/usr/include/
mkdir -p $(1)/usr/lib
- $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib{Gammu*,gsmsd*} $(1)/usr/lib/
+ $(CP) $(PKG_INSTALL_DIR)/usr/lib$(LIB_SUFFIX)/lib{Gammu*,gsmsd*} $(1)/usr/lib/
endef
define Package/gammu/install
@@ -63,7 +48,7 @@ define Package/gammu/install
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/gammu $(1)/usr/bin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/gammu-{smsd,smsd-inject,smsd-monitor} $(1)/usr/bin
$(INSTALL_DIR) $(1)/usr/lib
- $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/lib{Gammu*,gsmsd*} $(1)/usr/lib
+ $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib$(LIB_SUFFIX)/lib{Gammu*,gsmsd*} $(1)/usr/lib
$(INSTALL_DIR) $(1)/etc/init.d
$(INSTALL_DIR) $(1)/etc/config
$(INSTALL_CONF) ./files/gammu $(1)/etc/config/gammu