nuke $Id$ in /packages as well
[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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=gnokii
11 PKG_VERSION:=0.6.21
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://gnokii.org/download/gnokii/0.6.x
16 PKG_MD5SUM:=bbf0aabe2436d8e927f3e2edb4efcac8
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/gnokii
21 SECTION:=utils
22 CATEGORY:=Utilities
23 DEPENDS:=+libusb
24 TITLE:=Gnokii - Datasuite for the mobile phones
25 URL:=http://www.gnokii.org/
26 endef
27
28 define Package/gnokii/description
29 Gnokii is a suite of programs linked against a backend
30 library that allows communication with the phones. It
31 currently supports the most mobile phones, all AT
32 capable mobiles as well as Symbian phones.
33 endef
34
35 define Build/Configure
36 $(call Build/Configure/Default, \
37 --without-libiconv-prefix \
38 --without-libintl-prefix \
39 --disable-rlpdebug \
40 --disable-xdebug \
41 --disable-debug \
42 --enable-shared \
43 --disable-static \
44 --without-x \
45 )
46 endef
47
48 define Build/Compile
49 $(MAKE) -C $(PKG_BUILD_DIR) \
50 DESTDIR="$(PKG_INSTALL_DIR)" \
51 all install
52 endef
53
54 define Package/gnokii/install
55 $(INSTALL_DIR) $(1)/usr/bin
56 $(INSTALL_DIR) $(1)/usr/sbin
57 $(INSTALL_DIR) $(1)/usr/lib
58 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/gnokii $(1)/usr/bin
59 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/gnokiid $(1)/usr/sbin
60 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/mgnokiidev $(1)/usr/sbin
61 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgnokii.so.3.5.0 $(1)/usr/lib
62 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgnokii.so.3 $(1)/usr/lib
63 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgnokii.so $(1)/usr/lib
64 endef
65
66 $(eval $(call BuildPackage,gnokii))