clean up the openswan patch to work with older patch versions as well
[openwrt.git] / package / lrzsz / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=lrzsz
6 PKG_VERSION:=0.12.20
7 PKG_RELEASE:=1
8 PKG_MD5SUM:=b5ce6a74abc9b9eb2af94dffdfd372a4
9
10 PKG_SOURCE_URL:=http://www.ohse.de/uwe/releases/
11 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
12 PKG_CAT:=zcat
13 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
14 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
15
16 include $(TOPDIR)/package/rules.mk
17
18 $(eval $(call PKG_template,LRZSZ,$(PKG_NAME),$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
19
20 $(PKG_BUILD_DIR)/.configured: $(PKG_BUILD_DIR)/.prepared
21 (cd $(PKG_BUILD_DIR); \
22 $(TARGET_CONFIGURE_OPTS) \
23 CFLAGS="$(TARGET_CFLAGS)" \
24 CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
25 LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
26 ./configure \
27 --target=$(GNU_TARGET_NAME) \
28 --host=$(GNU_TARGET_NAME) \
29 --build=$(GNU_HOST_NAME) \
30 --program-prefix="" \
31 --program-suffix="" \
32 --prefix=/usr \
33 --exec-prefix=/usr \
34 --bindir=/usr/bin \
35 --datadir=/usr/share \
36 --includedir=/usr/include \
37 --infodir=/usr/share/info \
38 --libdir=/usr/lib \
39 --libexecdir=/usr/lib \
40 --localstatedir=/var \
41 --mandir=/usr/share/man \
42 --sbindir=/usr/sbin \
43 --sysconfdir=/etc \
44 $(DISABLE_LARGEFILE) \
45 $(DISABLE_NLS) \
46 --without-libiconv-prefix \
47 --without-libintl-prefix \
48 );
49 touch $@
50
51 $(PKG_BUILD_DIR)/.built:
52 rm -rf $(PKG_INSTALL_DIR)
53 mkdir -p $(PKG_INSTALL_DIR)
54 $(MAKE) -C $(PKG_BUILD_DIR) \
55 $(TARGET_CONFIGURE_OPTS) \
56 DESTDIR="$(PKG_INSTALL_DIR)" \
57 all install
58 touch $@
59
60 $(IPKG_LRZSZ):
61 install -d -m0755 $(IDIR_LRZSZ)/usr/bin
62 $(CP) $(PKG_INSTALL_DIR)/usr/bin/lrz $(IDIR_LRZSZ)/usr/bin/
63 $(CP) $(PKG_INSTALL_DIR)/usr/bin/lsz $(IDIR_LRZSZ)/usr/bin/
64 (cd $(IDIR_LRZSZ)/usr/bin; \
65 ln -fs lrz lrx; \
66 ln -fs lrz lrb; \
67 ln -fs lsz lsx; \
68 ln -fs lsz lsb; \
69 );
70 $(RSTRIP) $(IDIR_LRZSZ)
71 $(IPKG_BUILD) $(IDIR_LRZSZ) $(PACKAGE_DIR)
72
73 mostlyclean:
74 -$(MAKE) -C $(PKG_BUILD_DIR) clean
75 rm -f $(PKG_BUILD_DIR)/.built
76
This page took 0.04544 seconds and 5 git commands to generate.