add Gnokii closes #2696

git-svn-id: svn://svn.openwrt.org/openwrt/packages@9626 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
thepeople 2007-11-29 02:24:57 +00:00
parent 934fc858ad
commit c235851600

70
utils/gnokii/Makefile Normal file
View File

@ -0,0 +1,70 @@
#
# Copyright (C) 2006 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
# $Id: Makefile 0000 2007-00-00 00:00:00Z tst $
include $(TOPDIR)/rules.mk
PKG_NAME:=gnokii
PKG_VERSION:=0.6.21
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://gnokii.org/download/gnokii/0.6.x
PKG_MD5SUM:=bbf0aabe2436d8e927f3e2edb4efcac8
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
include $(INCLUDE_DIR)/package.mk
define Package/gnokii
SECTION:=utils
CATEGORY:=Utilities
DEPENDS:=+libusb
TITLE:=Gnokii - Datasuite for the mobile phones
URL:=http://www.gnokii.org/
endef
define Package/gnokii/description
Gnokii is a suite of programs linked against a backend
library that allows communication with the phones. It
currently supports the most mobile phones, all AT
capable mobiles as well as Symbian phones.
endef
define Build/Configure
$(call Build/Configure/Default, \
--without-libiconv-prefix \
--without-libintl-prefix \
--disable-rlpdebug \
--disable-xdebug \
--disable-debug \
--enable-shared \
--disable-static \
--without-x \
)
endef
define Build/Compile
$(MAKE) -C $(PKG_BUILD_DIR) \
DESTDIR="$(PKG_INSTALL_DIR)" \
all install
endef
define Package/gnokii/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_DIR) $(1)/usr/sbin
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/bin/gnokii $(1)/usr/bin
$(CP) $(PKG_INSTALL_DIR)/usr/sbin/gnokiid $(1)/usr/sbin
$(CP) $(PKG_INSTALL_DIR)/usr/sbin/mgnokiidev $(1)/usr/sbin
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libgnokii.so.3.5.0 $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libgnokii.so.3 $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libgnokii.so $(1)/usr/lib
endef
$(eval $(call BuildPackage,gnokii))