summaryrefslogtreecommitdiffstats
path: root/package/lzo/lzo.mk
diff options
context:
space:
mode:
authorPeter Korsgaard <jacmet@sunsite.dk>2008-08-20 14:28:58 +0000
committerPeter Korsgaard <jacmet@sunsite.dk>2008-08-20 14:28:58 +0000
commitf43867cbb381015025edc9253e735d01b965f3ff (patch)
treead7746a2e7a758d2dd04cffa8458356fc2bf362b /package/lzo/lzo.mk
parenta9abce508d25ce5880fc70140726b613e97f22f5 (diff)
downloadbuildroot-novena-f43867cbb381015025edc9253e735d01b965f3ff.tar.gz
buildroot-novena-f43867cbb381015025edc9253e735d01b965f3ff.zip
lzo: bump version and update to Makefile.autotools.in format
Bump LZO version and update makefile - tested with latest mtdutils. Signed-off-by: daniel.j.laird <daniel.j.laird@nxp.com>
Diffstat (limited to 'package/lzo/lzo.mk')
-rw-r--r--package/lzo/lzo.mk77
1 files changed, 12 insertions, 65 deletions
diff --git a/package/lzo/lzo.mk b/package/lzo/lzo.mk
index a394e6835..c43dc58cd 100644
--- a/package/lzo/lzo.mk
+++ b/package/lzo/lzo.mk
@@ -2,69 +2,16 @@
#
# lzo
#
-# Note: this builds only a static library, it does not provide
-# anything to be installed into the target system.
-#
-#############################################################
-LZO_VERSION:=1.08
-LZO_SOURCE:=lzo_$(LZO_VERSION).orig.tar.gz
-LZO_SITE:=$(BR2_DEBIAN_MIRROR)/debian/pool/main/l/lzo
-#LZO_SOURCE:=lzo-$(LZO_VERSION).tar.bz2
-#LZO_SITE:=http://www.oberhumer.com/opensource/lzo/download
-LZO_DIR:=$(BUILD_DIR)/lzo-$(LZO_VERSION)
-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)
- $(LZO_CAT) $(DL_DIR)/$(LZO_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
- toolchain/patch-kernel.sh $(LZO_DIR) package/lzo/ lzo\*.patch
- $(CONFIG_UPDATE) $(LZO_DIR)/acconfig
- touch $@
-
-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) \
- $(TARGET_CONFIGURE_ARGS) \
- ./configure \
- --target=$(GNU_TARGET_NAME) \
- --host=$(GNU_TARGET_NAME) \
- --build=$(GNU_HOST_NAME) \
- --prefix=/usr \
- --includedir=/usr/include \
- --libdir=/usr/lib \
- $(LZO_CONFIG_SHARED) \
- )
- touch $@
-
-$(LZO_DIR)/src/liblzo.la: $(LZO_DIR)/.configured
- $(MAKE) -C $(LZO_DIR)
-
-$(STAGING_DIR)/usr/lib/liblzo.a: $(LZO_DIR)/src/liblzo.la
- $(MAKE) CC="$(TARGET_CC)" DESTDIR=$(STAGING_DIR) -C $(LZO_DIR) install
- $(SED) "s,^libdir=.*,libdir=\'$(STAGING_DIR)/usr/lib\',g" $(STAGING_DIR)/usr/lib/liblzo.la
- touch -c $@
-
-lzo: uclibc $(STAGING_DIR)/usr/lib/liblzo.a
-
-lzo-clean:
- -$(MAKE) DESTDIR=$(STAGING_DIR) -C $(LZO_DIR) uninstall
- -$(MAKE) -C $(LZO_DIR) clean
-
-lzo-dirclean:
- rm -rf $(LZO_DIR)
-
-#############################################################
-#
-# Toplevel Makefile options
-#
#############################################################
-ifeq ($(strip $(BR2_PACKAGE_LZO)),y)
-TARGETS+=lzo
-endif
+LZO_VERSION:=2.03
+LZO_SOURCE:=lzo-$(LZO_VERSION).tar.gz
+LZO_SITE:=http://www.oberhumer.com/opensource/lzo/download
+LZO_AUTORECONF = NO
+LZO_INSTALL_STAGING = YES
+LZO_INSTALL_TARGET = YES
+LZO_INSTALL_STAGING_OPT = CC="$(TARGET_CC)" DESTDIR=$(STAGING_DIR) install
+LZO_CONF_ENV =
+LZO_CONF_OPT =
+LZO_DEPENDENCIES = uclibc
+
+$(eval $(call AUTOTARGETS,package,lzo))