gnokii is a gsm tool useful to interact with phones or 3G keys.
The packaged version was 2 years old.

The libusb dependency can be removed : it is optional.

Signed-off-by: Thomas Monjalon <tho...@monjalon.net>

---

--- utils/gnokii/Makefile
+++ utils/gnokii/Makefile
@@ -9,21 +9,20 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=gnokii
-PKG_VERSION:=0.6.21
+PKG_VERSION:=0.6.28
 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_SOURCE_URL:=http://gnokii.org/download/gnokii
+PKG_MD5SUM:=8961962082cea721b87e7b9602752aee
 
 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/
+       SECTION:=utils
+       CATEGORY:=Utilities
+       TITLE:=Gnokii - Datasuite for the mobile phones
+       URL:=http://www.gnokii.org/
 endef
 
 define Package/gnokii/description
@@ -36,31 +35,31 @@
 define Build/Configure
        $(call Build/Configure/Default, \
                --without-libiconv-prefix \
-               --without-libintl-prefix \
                --disable-rlpdebug \
-        --disable-xdebug \
-        --disable-debug \
+               --disable-xdebug \
+               --disable-debug \
                --enable-shared \
                --disable-static \
+               --without-readline \
                --without-x \
-               )
+       )
 endef
 
-define Build/Compile   
+define Build/Compile
        $(MAKE) -C $(PKG_BUILD_DIR) \
                DESTDIR="$(PKG_INSTALL_DIR)" \
                all install
 endef
 
-define Package/gnokii/install  
+define Package/gnokii/install
        $(INSTALL_DIR) $(1)/usr/bin
        $(INSTALL_DIR) $(1)/usr/sbin
        $(INSTALL_DIR) $(1)/usr/lib
        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/gnokii $(1)/usr/bin
-       $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/gnokiid $(1)/usr/sbin
+       $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/gnokiid $(1)/usr/sbin
        $(INSTALL_BIN) $(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.5.0.0 $(1)/usr/lib
+       $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgnokii.so.5 $(1)/usr/lib
        $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgnokii.so $(1)/usr/lib
 endef
 
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to