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