add Gnokii closes #2696
authorthepeople <thepeople@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Thu, 29 Nov 2007 02:24:57 +0000 (02:24 +0000)
committerthepeople <thepeople@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Thu, 29 Nov 2007 02:24:57 +0000 (02:24 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/packages@9626 3c298f89-4303-0410-b956-a3cf2f4a3e73

utils/gnokii/Makefile [new file with mode: 0644]

diff --git a/utils/gnokii/Makefile b/utils/gnokii/Makefile
new file mode 100644 (file)
index 0000000..0a05455
--- /dev/null
@@ -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))