~vcs-imports/ipfire/ipfire-2.x

« back to all changes in this revision

Viewing changes to lfs/flex

  • Committer: Daniel Glanzmann
  • Date: 2008-09-26 17:05:28 UTC
  • mto: (1394.1.12)
  • mto: This revision was merged to the branch mainline in revision 1401.
  • Revision ID: git-v1:19ac4d1b6e234e1391b3d406381e3b74e92c40dd
added new useragent thunderbird

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
###############################################################################
2
2
#                                                                             #
3
3
# IPFire.org - A linux based firewall                                         #
4
 
# Copyright (C) 2007-2018  IPFire Team  <info@ipfire.org>                     #
 
4
# Copyright (C) 2007  Michael Tremer & Christian Schmidt                      #
5
5
#                                                                             #
6
6
# This program is free software: you can redistribute it and/or modify        #
7
7
# it under the terms of the GNU General Public License as published by        #
24
24
 
25
25
include Config
26
26
 
27
 
VER        = 2.6.4
 
27
VER        = 2.5.33
28
28
 
29
29
THISAPP    = flex-$(VER)
30
 
DL_FILE    = $(THISAPP).tar.gz
 
30
DL_FILE    = $(THISAPP).tar.bz2
31
31
DL_FROM    = $(URL_IPFIRE)
32
32
DIR_APP    = $(DIR_SRC)/$(THISAPP)
33
 
 
34
 
# Normal build or $(TOOLS_DIR) build.
35
 
#
36
 
ifeq "$(ROOT)" ""
37
 
  TARGET = $(DIR_INFO)/$(THISAPP)
38
 
  EXTRA_CONFIG = --prefix=/usr --disable-nls
39
 
  EXTRA_MAKE =
40
 
  EXTRA_INSTALL =
41
 
 
42
 
else
43
 
  TARGET = $(DIR_INFO)/$(THISAPP)-tools
44
 
endif
45
 
 
 
33
TARGET     = $(DIR_INFO)/$(THISAPP)
46
34
 
47
35
###############################################################################
48
36
# Top-level Rules
52
40
 
53
41
$(DL_FILE) = $(DL_FROM)/$(DL_FILE)
54
42
 
55
 
$(DL_FILE)_BLAKE2 = c003d4f764f7f4d41e33af7ee28c2af272a9f0aee6ba7c2494ba96722d8d0b18f7a3f745217e9a2cecb43b6863328267a810280670c04464156b3eb3d7ee9d62
 
43
$(DL_FILE)_MD5 = 343374a00b38d9e39d1158b71af37150
56
44
 
57
45
install : $(TARGET)
58
46
 
60
48
 
61
49
download :$(patsubst %,$(DIR_DL)/%,$(objects))
62
50
 
63
 
b2 : $(subst %,%_BLAKE2,$(objects))
 
51
md5 : $(subst %,%_MD5,$(objects))
64
52
 
65
53
###############################################################################
66
 
# Downloading, checking, b2sum
 
54
# Downloading, checking, md5sum
67
55
###############################################################################
68
56
 
69
57
$(patsubst %,$(DIR_CHK)/%,$(objects)) :
72
60
$(patsubst %,$(DIR_DL)/%,$(objects)) :
73
61
        @$(LOAD)
74
62
 
75
 
$(subst %,%_BLAKE2,$(objects)) :
76
 
        @$(B2SUM)
 
63
$(subst %,%_MD5,$(objects)) :
 
64
        @$(MD5)
77
65
 
78
66
###############################################################################
79
67
# Installation Details
81
69
 
82
70
$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
83
71
        @$(PREBUILD)
84
 
        @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar axf $(DIR_DL)/$(DL_FILE)
85
 
        $(UPDATE_AUTOMAKE)
86
 
        cd $(DIR_APP) && patch -p1 < $(DIR_SRC)/src/patches/flex-2.6.4-fix-build-width-glibc-2.6+.patch
87
 
        cd $(DIR_APP) && HELP2MAN=$(TOOLS_DIR)/bin/true \
88
 
                ./configure --prefix=$(PREFIX) --disable-nls
89
 
        cd $(DIR_APP) && make $(MAKETUNING)
90
 
        cd $(DIR_APP) && make install
 
72
        @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar jxf $(DIR_DL)/$(DL_FILE)
 
73
        cd $(DIR_APP) && ./configure --prefix=/usr --disable-nls
 
74
        cd $(DIR_APP) && make $(MAKETUNING) $(EXTRA_MAKE)
 
75
        cd $(DIR_APP) && make $(EXTRA_INSTALL) install
91
76
ifeq "$(ROOT)" ""
92
 
        ln -sfv libfl.a /usr/lib/libl.a
 
77
        ln -sv libfl.a /usr/lib/libl.a
93
78
        echo "#!/bin/sh"                        >  /usr/bin/lex
94
79
        echo "exec /usr/bin/flex -l \"\$$@\""   >> /usr/bin/lex
95
80
        chmod 755 /usr/bin/lex