ifup is now a standalone script
[openwrt.git] / obsolete-buildroot / make / rxvt.mk
1 #############################################################
2 #
3 # rxvt
4 #
5 #############################################################
6 # Copyright (C) 2002 by Tom Walsh <Tom@OpenHardware.net>
7 #
8 # This program is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU Library General Public License as
10 # published by the Free Software Foundation; either version 2 of the
11 # License, or (at your option) any later version.
12 #
13 # This program is distributed in the hope that it will be useful, but
14 # WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 # Library General Public License for more details.
17 #
18 # You should have received a copy of the GNU Library General Public
19 # License along with this program; if not, write to the Free Software
20 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
21 # USA
22
23 RXVT_SOURCE:=rxvt-2.6.4.tar.bz2
24 RXVT_PATCH:=$(SOURCE_DIR)/rxvt-2.6.4.patch
25 RXVT_SITE:=ftp://ftp.rxvt.org/pub/rxvt/
26 RXVT_CAT:=bzcat
27 RXVT_DIR:=$(BUILD_DIR)/rxvt-2.6.4
28 RXVT_BINARY:=$(RXVT_DIR)/src/rxvt
29
30 $(DL_DIR)/$(RXVT_SOURCE):
31 $(WGET) -P $(DL_DIR) $(RXVT_SITE)/$(RXVT_SOURCE)
32
33 rxvt-source: $(DL_DIR)/$(RXVT_SOURCE)
34
35 $(RXVT_DIR)/.unpacked: $(DL_DIR)/$(RXVT_SOURCE)
36 $(RXVT_CAT) $(DL_DIR)/$(RXVT_SOURCE) | tar -C $(BUILD_DIR) -xvf -
37 touch $(RXVT_DIR)/.unpacked
38
39 $(RXVT_DIR)/.configured: $(RXVT_DIR)/.unpacked
40 (cd $(RXVT_DIR); rm -rf config.cache; \
41 $(TARGET_CONFIGURE_OPTS) \
42 ./configure \
43 --target=$(GNU_TARGET_NAME) \
44 --host=$(GNU_TARGET_NAME) \
45 --build=$(GNU_HOST_NAME) \
46 --prefix=/usr/X11R6 \
47 --mandir=/usr/man \
48 --infodir=/usr/info \
49 --x-includes=$(TINYX_DIR)/exports/include \
50 --x-libraries=$(TINYX_DIR)/exports/lib \
51 );
52 cat $(RXVT_PATCH) | patch -d $(RXVT_DIR) -p1
53 touch $(RXVT_DIR)/.configured
54
55 $(RXVT_BINARY): $(RXVT_DIR)/.configured
56 $(MAKE) CC=$(TARGET_CC) -C $(RXVT_DIR)
57 $(STRIP) -x $(RXVT_BINARY)
58
59 $(TARGET_DIR)/usr/X11R6/bin/rxvt: $(RXVT_BINARY)
60 cp -f $(RXVT_BINARY) $(TARGET_DIR)/usr/X11R6/bin
61
62 rxvt: tinyx $(TARGET_DIR)/usr/X11R6/bin/rxvt
63
64 rxvt-clean:
65 rm -f $(TARGET_DIR)/usr/X11R6/bin/rxvt
66 -$(MAKE) -C $(RXVT_DIR) clean
67
68 rxvt-dirclean:
69 rm -rf $(RXVT_DIR)
70
This page took 0.053224 seconds and 5 git commands to generate.