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