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