1 #############################################################
5 # Note: this builds only a static library, it does not provide
6 # anything to be installed into the target system.
8 #############################################################
9 ifeq ($(BR2_PACKAGE_LZO_BIG
),y
)
12 LZO_SOURCE
:=lzo_
$(LZO_VERSION
).orig.
tar.gz
13 LZO_SITE
:=$(BR2_DEBIAN_MIRROR
)/debian
/pool
/main
/l
/lzo
14 #LZO_SOURCE:=lzo-$(LZO_VERSION).tar.bz2
15 #LZO_SITE:=http://www.oberhumer.com/opensource/lzo/download
16 LZO_DIR
:=$(BUILD_DIR
)/lzo-
$(LZO_VERSION
)
19 $(DL_DIR
)/$(LZO_SOURCE
):
20 $(WGET
) -P
$(DL_DIR
) $(LZO_SITE
)/$(LZO_SOURCE
)
22 $(LZO_DIR
)/.unpacked
: $(DL_DIR
)/$(LZO_SOURCE
)
23 $(LZO_CAT
) $(DL_DIR
)/$(LZO_SOURCE
) |
tar -C
$(BUILD_DIR
) $(TAR_OPTIONS
) -
24 toolchain
/patch-kernel.sh
$(LZO_DIR
) package
/lzo
/ lzo\
*.patch
25 $(CONFIG_UPDATE
) $(@D
)/acconfig
26 $(SED
) 's,CFLAGS="$$CFLAGS -O[0123456789]",CFLAGS="$$CFLAGS",g' $(LZO_DIR
)/configure
29 LZO_CONFIG_SHARED
:=--disable-shared
30 #LZO_CONFIG_SHARED:=--enable-shared
32 $(LZO_DIR
)/.configured
: $(LZO_DIR
)/.unpacked
33 (cd
$(LZO_DIR
); rm -rf config.cache
; \
34 $(AUTO_CONFIGURE_TARGET
) \
36 --includedir=/usr
/include \
38 $(LZO_CONFIG_SHARED
) \
42 $(LZO_DIR
)/src
/liblzo.la
: $(LZO_DIR
)/.configured
45 $(STAGING_DIR
)/usr
/lib
/liblzo.a
: $(LZO_DIR
)/src
/liblzo.la
46 $(MAKE
) CC
="$(TARGET_CC)" DESTDIR
=$(STAGING_DIR
) -C
$(LZO_DIR
) install
47 $(SED
) "s,^libdir=.*,libdir=\'$(STAGING_DIR)/usr/lib\',g" $(STAGING_DIR
)/usr
/lib
/liblzo.la
50 lzo
: $(STAGING_DIR
)/usr
/lib
/liblzo.a
52 lzo-source
: $(DL_DIR
)/$(LZO_SOURCE
)
55 $(MAKE
) DESTDIR
=$(STAGING_DIR
) -C
$(LZO_DIR
) uninstall
56 -$(MAKE
) -C
$(LZO_DIR
) clean
61 #############################################################
63 # Toplevel Makefile options
65 #############################################################