fix lrzsz install error
[openwrt/svn-archive/archive.git] / utils / lrzsz / Makefile
1 # Copyright (C) 2006 OpenWrt.org
2 #
3 # This is free software, licensed under the GNU General Public License v2.
4 # See /LICENSE for more information.
5 #
6 # $Id$
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=lrzsz
11 PKG_VERSION:=0.12.20
12 PKG_RELEASE:=1
13 PKG_MD5SUM:=b5ce6a74abc9b9eb2af94dffdfd372a4
14
15 PKG_SOURCE_URL:=http://www.ohse.de/uwe/releases/
16 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
17 PKG_CAT:=zcat
18 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
19 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/lrzsz
24 SECTION:=utils
25 CATEGORY:=Utilities
26 TITLE:=X,Y and Z-modem protocols
27 DESCRIPTION:=Transfer files in your login sessions.\\\
28 Very leightweight and straight forward.\\\
29 You just need a terminal client that can do\\\
30 either X, Y or Z-modem file transfers.\\\
31 URL:=http://www.ohse.de/uwe/software/lrzsz.html
32 endef
33
34 define Build/Configure
35 $(call Build/Configure/Default,--without-libiconv-prefix \
36 --without-libintl-prefix)
37 endef
38
39 define Build/Compile
40 rm -rf $(PKG_INSTALL_DIR)
41 mkdir -p $(PKG_INSTALL_DIR)
42 $(MAKE) -C $(PKG_BUILD_DIR) \
43 $(TARGET_CONFIGURE_OPTS) \
44 DESTDIR="$(PKG_INSTALL_DIR)" \
45 all install
46 endef
47
48 define Package/lrzsz/install
49 install -d -m0755 $(1)/usr/bin
50 $(CP) $(PKG_INSTALL_DIR)/usr/bin/lrz $(1)/usr/bin/
51 $(CP) $(PKG_INSTALL_DIR)/usr/bin/lsz $(1)/usr/bin/
52 (cd $(1)/usr/bin; \
53 ln -fs lrz lrx; \
54 ln -fs lrz lrb; \
55 ln -fs lsz lsx; \
56 ln -fs lsz lsb; \
57 );
58 endef
59
60 $(eval $(call BuildPackage,lrzsz))