Creating directory /var/log/sysstat during install is wrong, as it will corrupt the...
[openwrt/svn-archive/archive.git] / utils / gnokii / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id: Makefile 0000 2007-00-00 00:00:00Z tst $
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=gnokii
12 PKG_VERSION:=0.6.21
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://gnokii.org/download/gnokii/0.6.x
17 PKG_MD5SUM:=bbf0aabe2436d8e927f3e2edb4efcac8
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/gnokii
22 SECTION:=utils
23 CATEGORY:=Utilities
24 DEPENDS:=+libusb
25 TITLE:=Gnokii - Datasuite for the mobile phones
26 URL:=http://www.gnokii.org/
27 endef
28
29 define Package/gnokii/description
30 Gnokii is a suite of programs linked against a backend
31 library that allows communication with the phones. It
32 currently supports the most mobile phones, all AT
33 capable mobiles as well as Symbian phones.
34 endef
35
36 define Build/Configure
37 $(call Build/Configure/Default, \
38 --without-libiconv-prefix \
39 --without-libintl-prefix \
40 --disable-rlpdebug \
41 --disable-xdebug \
42 --disable-debug \
43 --enable-shared \
44 --disable-static \
45 --without-x \
46 )
47 endef
48
49 define Build/Compile
50 $(MAKE) -C $(PKG_BUILD_DIR) \
51 DESTDIR="$(PKG_INSTALL_DIR)" \
52 all install
53 endef
54
55 define Package/gnokii/install
56 $(INSTALL_DIR) $(1)/usr/bin
57 $(INSTALL_DIR) $(1)/usr/sbin
58 $(INSTALL_DIR) $(1)/usr/lib
59 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/gnokii $(1)/usr/bin
60 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/gnokiid $(1)/usr/sbin
61 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/mgnokiidev $(1)/usr/sbin
62 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgnokii.so.3.5.0 $(1)/usr/lib
63 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgnokii.so.3 $(1)/usr/lib
64 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgnokii.so $(1)/usr/lib
65 endef
66
67 $(eval $(call BuildPackage,gnokii))