Fix typo in Source: URL
[openwrt.git] / obsolete-buildroot / make / lzo.mk
1 #############################################################
2 #
3 # lzo
4 #
5 # Note: this builds only a static library, it does not provide
6 # anything to be installed into the target system.
7 #
8 #############################################################
9 LZO_SOURCE:=lzo_1.08.orig.tar.gz
10 LZO_SITE:=http://ftp.debian.org/debian/pool/main/l/lzo
11 #LZO_SOURCE:=lzo-1.08.tar.bz2
12 #LZO_SITE:=http://www.oberhumer.com/opensource/lzo/download
13 LZO_DIR:=$(BUILD_DIR)/lzo-1.08
14 LZO_CAT:=zcat
15 LZO_PATCH:=$(SOURCE_DIR)/lzo-cross-compile.patch
16
17 $(DL_DIR)/$(LZO_SOURCE):
18 $(WGET) -P $(DL_DIR) $(LZO_SITE)/$(LZO_SOURCE)
19
20 lzo-source: $(DL_DIR)/$(LZO_SOURCE)
21
22 $(LZO_DIR)/.unpacked: $(DL_DIR)/$(LZO_SOURCE)
23 $(LZO_CAT) $(DL_DIR)/$(LZO_SOURCE) | tar -C $(BUILD_DIR) -xvf -
24 cat $(LZO_PATCH) | patch -p1 -d $(LZO_DIR)
25 touch $(LZO_DIR)/.unpacked
26
27 LZO_CONFIG_SHARED:=--disable-shared
28 #LZO_CONFIG_SHARED:=--enable-shared
29
30 $(LZO_DIR)/.configured: $(LZO_DIR)/.unpacked
31 (cd $(LZO_DIR); rm -rf config.cache; \
32 $(TARGET_CONFIGURE_OPTS) \
33 ./configure \
34 --target=$(GNU_TARGET_NAME) \
35 --host=$(GNU_TARGET_NAME) \
36 --build=$(GNU_HOST_NAME) \
37 --prefix=/usr \
38 --exec-prefix=/usr \
39 --bindir=/usr/bin \
40 --sbindir=/usr/sbin \
41 --libexecdir=/usr/lib \
42 --sysconfdir=/etc \
43 --datadir=/usr/share \
44 --localstatedir=/var \
45 --mandir=/usr/man \
46 --infodir=/usr/info \
47 $(LZO_CONFIG_SHARED) \
48 );
49 touch $(LZO_DIR)/.configured
50
51 $(LZO_DIR)/src/liblzo.la: $(LZO_DIR)/.configured
52 $(MAKE) -C $(LZO_DIR)
53
54 $(STAGING_DIR)/lib/liblzo.a: $(LZO_DIR)/src/liblzo.la
55 $(MAKE) CC=$(TARGET_CC) DESTDIR=$(STAGING_DIR) -C $(LZO_DIR) install
56
57 lzo: uclibc $(STAGING_DIR)/lib/liblzo.a
58
59 lzo-clean:
60 $(MAKE) DESTDIR=$(STAGING_DIR) -C $(LZO_DIR) uninstall
61 -$(MAKE) -C $(LZO_DIR) clean
62
63 lzo-dirclean:
64 rm -rf $(LZO_DIR)
65
This page took 0.048449 seconds and 5 git commands to generate.