diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2007-01-19 14:54:58 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2007-01-19 14:54:58 +0000 |
commit | 699675be31913ef79a53f4498a659ee695fb1ab6 (patch) | |
tree | 9898630a2e99d97cbf273c76ed9a306a17352507 /package/flex/flex.mk | |
parent | f6c0fd635adba268e2c23c7a3aeb8734d31f8a58 (diff) |
- bump version
Diffstat (limited to 'package/flex/flex.mk')
-rw-r--r-- | package/flex/flex.mk | 24 |
1 files changed, 16 insertions, 8 deletions
diff --git a/package/flex/flex.mk b/package/flex/flex.mk index c1ea1ba79..408ed603a 100644 --- a/package/flex/flex.mk +++ b/package/flex/flex.mk @@ -3,10 +3,12 @@ # flex # ############################################################# -FLEX_SOURCE:=flex_2.5.4a.orig.tar.gz -FLEX_PATCH:=flex_2.5.4a-24.diff.gz +FLEX_VERSION:=2.5.33 +FLEX_PATCH_VERSION:=10 +FLEX_SOURCE:=flex_$(FLEX_VERSION).orig.tar.gz +FLEX_PATCH:=flex_$(FLEX_VERSION)-$(FLEX_PATCH_VERSION).diff.gz FLEX_SITE:=http://ftp.debian.org/debian/pool/main/f/flex -FLEX_DIR:=$(BUILD_DIR)/flex-2.5.4 +FLEX_DIR:=$(BUILD_DIR)/flex-$(FLEX_VERSION) FLEX_CAT:=$(ZCAT) FLEX_BINARY:=flex FLEX_TARGET_BINARY:=usr/bin/flex @@ -21,11 +23,16 @@ flex-source: $(DL_DIR)/$(FLEX_SOURCE) $(DL_DIR)/$(FLEX_PATCH) $(FLEX_DIR)/.unpacked: $(DL_DIR)/$(FLEX_SOURCE) $(DL_DIR)/$(FLEX_PATCH) $(FLEX_CAT) $(DL_DIR)/$(FLEX_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) - - #toolchain/patch-kernel.sh $(FLEX_DIR) $(DL_DIR) $(FLEX_PATCH) - touch $(FLEX_DIR)/.unpacked +ifneq ($(FLEX_PATCH),) + toolchain/patch-kernel.sh $(FLEX_DIR) $(DL_DIR) $(FLEX_PATCH) + if [ -d $(FLEX_DIR)/debian/patches ]; then \ + toolchain/patch-kernel.sh $(FLEX_DIR) $(FLEX_DIR)/debian/patches \*.patch ; \ + fi +endif + touch $@ $(FLEX_DIR)/.configured: $(FLEX_DIR)/.unpacked - (cd $(FLEX_DIR); autoconf; rm -rf config.cache; \ + (cd $(FLEX_DIR); rm -rf config.cache; \ $(TARGET_CONFIGURE_OPTS) \ CFLAGS="$(TARGET_CFLAGS)" \ ./configure \ @@ -43,13 +50,14 @@ $(FLEX_DIR)/.configured: $(FLEX_DIR)/.unpacked --localstatedir=/var \ --mandir=/usr/man \ --infodir=/usr/info \ + --includedir=$(TARGET_DIR)/usr/include \ $(DISABLE_NLS) \ $(DISABLE_LARGEFILE) \ ); - touch $(FLEX_DIR)/.configured + touch $@ $(FLEX_DIR)/$(FLEX_BINARY): $(FLEX_DIR)/.configured - $(MAKE) -C $(FLEX_DIR) + $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(FLEX_DIR) $(TARGET_DIR)/$(FLEX_TARGET_BINARY): $(FLEX_DIR)/$(FLEX_BINARY) $(MAKE1) \ |