2004-03-11 18:08:35 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# lzo
|
|
|
|
#
|
|
|
|
# Note: this builds only a static library, it does not provide
|
|
|
|
# anything to be installed into the target system.
|
|
|
|
#
|
|
|
|
#############################################################
|
2006-01-03 21:19:58 +01:00
|
|
|
LZO_VERSION:=1.08
|
|
|
|
LZO_SOURCE:=lzo_$(LZO_VERSION).orig.tar.gz
|
2004-03-11 18:08:35 +01:00
|
|
|
LZO_SITE:=http://ftp.debian.org/debian/pool/main/l/lzo
|
2006-01-03 21:19:58 +01:00
|
|
|
#LZO_SOURCE:=lzo-$(LZO_VERSION).tar.bz2
|
2004-03-11 18:08:35 +01:00
|
|
|
#LZO_SITE:=http://www.oberhumer.com/opensource/lzo/download
|
2006-01-03 21:19:58 +01:00
|
|
|
LZO_DIR:=$(BUILD_DIR)/lzo-$(LZO_VERSION)
|
2004-03-11 18:08:35 +01:00
|
|
|
LZO_CAT:=zcat
|
|
|
|
|
|
|
|
$(DL_DIR)/$(LZO_SOURCE):
|
|
|
|
$(WGET) -P $(DL_DIR) $(LZO_SITE)/$(LZO_SOURCE)
|
|
|
|
|
|
|
|
lzo-source: $(DL_DIR)/$(LZO_SOURCE)
|
|
|
|
|
|
|
|
$(LZO_DIR)/.unpacked: $(DL_DIR)/$(LZO_SOURCE)
|
2004-10-09 23:19:47 +02:00
|
|
|
$(LZO_CAT) $(DL_DIR)/$(LZO_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
|
2005-06-24 10:36:13 +02:00
|
|
|
toolchain/patch-kernel.sh $(LZO_DIR) package/lzo/ lzo\*.patch
|
2004-03-11 18:08:35 +01:00
|
|
|
touch $(LZO_DIR)/.unpacked
|
|
|
|
|
|
|
|
LZO_CONFIG_SHARED:=--disable-shared
|
|
|
|
#LZO_CONFIG_SHARED:=--enable-shared
|
|
|
|
|
|
|
|
$(LZO_DIR)/.configured: $(LZO_DIR)/.unpacked
|
|
|
|
(cd $(LZO_DIR); rm -rf config.cache; \
|
|
|
|
$(TARGET_CONFIGURE_OPTS) \
|
2004-10-09 22:18:02 +02:00
|
|
|
CFLAGS="$(TARGET_CFLAGS)" \
|
2004-03-11 18:08:35 +01:00
|
|
|
./configure \
|
|
|
|
--target=$(GNU_TARGET_NAME) \
|
|
|
|
--host=$(GNU_TARGET_NAME) \
|
|
|
|
--build=$(GNU_HOST_NAME) \
|
2004-10-14 11:39:25 +02:00
|
|
|
--prefix=/ \
|
|
|
|
--includedir=/include \
|
|
|
|
--libdir=/lib \
|
2004-03-11 18:08:35 +01:00
|
|
|
$(LZO_CONFIG_SHARED) \
|
|
|
|
);
|
2005-11-24 07:53:24 +01:00
|
|
|
touch $(LZO_DIR)/.configured
|
2004-03-11 18:08:35 +01:00
|
|
|
|
|
|
|
$(LZO_DIR)/src/liblzo.la: $(LZO_DIR)/.configured
|
|
|
|
$(MAKE) -C $(LZO_DIR)
|
|
|
|
|
2005-01-23 11:46:45 +01:00
|
|
|
$(STAGING_DIR)/lib/liblzo.a: $(LZO_DIR)/src/liblzo.la
|
2006-01-03 21:19:58 +01:00
|
|
|
$(MAKE) CC="$(TARGET_CC)" DESTDIR=$(STAGING_DIR) -C $(LZO_DIR) install
|
2005-01-23 11:46:45 +01:00
|
|
|
touch -c $(STAGING_DIR)/lib/liblzo.a
|
2004-03-11 18:08:35 +01:00
|
|
|
|
2005-01-23 11:46:45 +01:00
|
|
|
lzo: uclibc $(STAGING_DIR)/lib/liblzo.a
|
2004-03-11 18:08:35 +01:00
|
|
|
|
|
|
|
lzo-clean:
|
|
|
|
$(MAKE) DESTDIR=$(STAGING_DIR) -C $(LZO_DIR) uninstall
|
|
|
|
-$(MAKE) -C $(LZO_DIR) clean
|
|
|
|
|
|
|
|
lzo-dirclean:
|
|
|
|
rm -rf $(LZO_DIR)
|
|
|
|
|
2005-02-10 04:06:39 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# Toplevel Makefile options
|
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
ifeq ($(strip $(BR2_PACKAGE_LZO)),y)
|
|
|
|
TARGETS+=lzo
|
|
|
|
endif
|