1 #############################################################
5 # Note: this builds only a static library, it does not provide
6 # anything to be installed into the target system.
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
15 LZO_PATCH
:=$(SOURCE_DIR
)/lzo-cross-compile.patch
17 $(DL_DIR
)/$(LZO_SOURCE
):
18 $(WGET
) -P
$(DL_DIR
) $(LZO_SITE
)/$(LZO_SOURCE
)
20 lzo-source
: $(DL_DIR
)/$(LZO_SOURCE
)
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
27 LZO_CONFIG_SHARED
:=--disable-shared
28 #LZO_CONFIG_SHARED:=--enable-shared
30 $(LZO_DIR
)/.configured
: $(LZO_DIR
)/.unpacked
31 (cd
$(LZO_DIR
); rm -rf config.cache
; \
32 $(TARGET_CONFIGURE_OPTS
) \
34 --target
=$(GNU_TARGET_NAME
) \
35 --host
=$(GNU_TARGET_NAME
) \
36 --build
=$(GNU_HOST_NAME
) \
41 --libexecdir
=/usr
/lib \
43 --datadir=/usr
/share \
44 --localstatedir
=/var \
47 $(LZO_CONFIG_SHARED
) \
49 touch
$(LZO_DIR
)/.configured
51 $(LZO_DIR
)/src
/liblzo.la
: $(LZO_DIR
)/.configured
54 $(STAGING_DIR
)/lib
/liblzo.a
: $(LZO_DIR
)/src
/liblzo.la
55 $(MAKE
) CC
=$(TARGET_CC
) DESTDIR
=$(STAGING_DIR
) -C
$(LZO_DIR
) install
57 lzo
: uclibc
$(STAGING_DIR
)/lib
/liblzo.a
60 $(MAKE
) DESTDIR
=$(STAGING_DIR
) -C
$(LZO_DIR
) uninstall
61 -$(MAKE
) -C
$(LZO_DIR
) clean
This page took 0.045001 seconds and 5 git commands to generate.