2004-03-11 18:08:35 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# lzo
|
|
|
|
#
|
|
|
|
# Note: this builds only a static library, it does not provide
|
2007-08-22 14:35:41 +02:00
|
|
|
# anything to be installed into the target system.
|
2004-03-11 18:08:35 +01:00
|
|
|
#
|
|
|
|
#############################################################
|
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)
|
2006-10-01 17:17:52 +02:00
|
|
|
LZO_CAT:=$(ZCAT)
|
2004-03-11 18:08:35 +01:00
|
|
|
|
|
|
|
$(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
|
2007-08-11 23:47:28 +02:00
|
|
|
$(CONFIG_UPDATE) $(LZO_DIR)/acconfig
|
2007-06-22 00:06:48 +02:00
|
|
|
touch $@
|
2004-03-11 18:08:35 +01:00
|
|
|
|
|
|
|
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) \
|
2007-06-27 14:01:27 +02:00
|
|
|
$(TARGET_CONFIGURE_ARGS) \
|
2004-03-11 18:08:35 +01:00
|
|
|
./configure \
|
|
|
|
--target=$(GNU_TARGET_NAME) \
|
|
|
|
--host=$(GNU_TARGET_NAME) \
|
|
|
|
--build=$(GNU_HOST_NAME) \
|
2007-06-22 00:06:48 +02:00
|
|
|
--prefix=/usr \
|
|
|
|
--includedir=/usr/include \
|
|
|
|
--libdir=/usr/lib \
|
2004-03-11 18:08:35 +01:00
|
|
|
$(LZO_CONFIG_SHARED) \
|
2007-08-21 21:20:18 +02:00
|
|
|
)
|
2007-06-22 00:06:48 +02:00
|
|
|
touch $@
|
2004-03-11 18:08:35 +01:00
|
|
|
|
|
|
|
$(LZO_DIR)/src/liblzo.la: $(LZO_DIR)/.configured
|
|
|
|
$(MAKE) -C $(LZO_DIR)
|
|
|
|
|
2007-06-22 00:06:48 +02:00
|
|
|
$(STAGING_DIR)/usr/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
|
2007-06-22 00:06:48 +02:00
|
|
|
touch -c $@
|
2004-03-11 18:08:35 +01:00
|
|
|
|
2007-06-22 00:06:48 +02:00
|
|
|
lzo: uclibc $(STAGING_DIR)/usr/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
|