replace lots of manual install commands with INSTALL_* variables
[openwrt/svn-archive/archive.git] / utils / lrzsz / Makefile
index 1892bc173ad03483d0394525aa9e773507cb60ec..28f8a49c83961f80bc8950cdbf4c87040405e8cf 100644 (file)
@@ -1,3 +1,4 @@
+#
 # Copyright (C) 2006 OpenWrt.org
 #
 # This is free software, licensed under the GNU General Public License v2.
 # Copyright (C) 2006 OpenWrt.org
 #
 # This is free software, licensed under the GNU General Public License v2.
@@ -10,11 +11,12 @@ include $(TOPDIR)/rules.mk
 PKG_NAME:=lrzsz
 PKG_VERSION:=0.12.20
 PKG_RELEASE:=1
 PKG_NAME:=lrzsz
 PKG_VERSION:=0.12.20
 PKG_RELEASE:=1
-PKG_MD5SUM:=b5ce6a74abc9b9eb2af94dffdfd372a4
 
 
-PKG_SOURCE_URL:=http://www.ohse.de/uwe/releases/
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
+PKG_SOURCE_URL:=http://www.ohse.de/uwe/releases/
+PKG_MD5SUM:=b5ce6a74abc9b9eb2af94dffdfd372a4
 PKG_CAT:=zcat
 PKG_CAT:=zcat
+
 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
 
 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
 
@@ -24,29 +26,24 @@ define Package/lrzsz
   SECTION:=utils
   CATEGORY:=Utilities
   TITLE:=X,Y and Z-modem protocols
   SECTION:=utils
   CATEGORY:=Utilities
   TITLE:=X,Y and Z-modem protocols
-  DESCRIPTION:=Transfer files in your login sessions.\\\
-Very leightweight and straight forward.\\\
-You just need a terminal client that can do\\\
-either X, Y or Z-modem file transfers.\\\
+  DESCRIPTION:=\
+       Transfer files in your login sessions.\\\
+       Very leightweight and straight forward.\\\
+       You just need a terminal client that can do \\\
+       either X, Y or Z-modem file transfers.
   URL:=http://www.ohse.de/uwe/software/lrzsz.html
 endef
 
   URL:=http://www.ohse.de/uwe/software/lrzsz.html
 endef
 
-define Build/Configure
-$(call Build/Configure/Default,--without-libiconv-prefix \
---without-libintl-prefix)
-endef
+# uses GNU configure
 
 define Build/Compile   
 
 define Build/Compile   
-       rm -rf $(PKG_INSTALL_DIR)
-       mkdir -p $(PKG_INSTALL_DIR)
        $(MAKE) -C $(PKG_BUILD_DIR) \
        $(MAKE) -C $(PKG_BUILD_DIR) \
-               $(TARGET_CONFIGURE_OPTS) \
                DESTDIR="$(PKG_INSTALL_DIR)" \
                all install
 endef
 
 define Package/lrzsz/install   
                DESTDIR="$(PKG_INSTALL_DIR)" \
                all install
 endef
 
 define Package/lrzsz/install   
-       install -d -m0755 $(1)/usr/bin
+       $(INSTALL_DIR) $(1)/usr/bin
        $(CP) $(PKG_INSTALL_DIR)/usr/bin/lrz $(1)/usr/bin/
        $(CP) $(PKG_INSTALL_DIR)/usr/bin/lsz $(1)/usr/bin/
        (cd $(1)/usr/bin; \
        $(CP) $(PKG_INSTALL_DIR)/usr/bin/lrz $(1)/usr/bin/
        $(CP) $(PKG_INSTALL_DIR)/usr/bin/lsz $(1)/usr/bin/
        (cd $(1)/usr/bin; \