blob: 0854b484431be1b01ff1dc43475c53ef745a3e78 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
|
require "formula"
class Trafficserver < Formula
homepage "http://trafficserver.apache.org/"
url "http://www.apache.org/dyn/closer.cgi?path=trafficserver/trafficserver-4.2.2.tar.bz2"
mirror "http://archive.apache.org/dist/trafficserver/trafficserver-4.2.2.tar.bz2"
sha1 "8c862f0402f278eb8bca1678b0db0c4fcb0dd565"
bottle do
sha1 "e073851a656cec3a052c9dab8ce7b7658b11dccc" => :mavericks
sha1 "9f76a7d1b206220a47a60144f9844f6f30f2921b" => :mountain_lion
sha1 "73736e9882f28d2265e923fbb1f5830f3d462bd6" => :lion
end
depends_on "pcre"
#remove some amd64 compiler options that fail on Snow Leopard
patch :DATA if MacOS.version == :snow_leopard
def install
# Needed for correct ./configure detections.
ENV.enable_warnings
# Needed for OpenSSL headers on Lion.
ENV.append_to_cflags "-Wno-deprecated-declarations"
system "./configure", "--prefix=#{prefix}",
"--mandir=#{man}",
"--with-user=#{ENV['USER']}",
"--with-group=admin"
system "make install"
end
test do
system "#{bin}/trafficserver", "status"
end
end
__END__
diff --git a/configure b/configure
index 49add2a..e478b34 100755
--- a/configure
+++ b/configure
@@ -24109,48 +24109,6 @@ $as_echo "yes" >&6; }
else
-
- if test "x$CXXFLAGS" = "x"; then
- test "x$verbose" = "xyes" && echo " setting CXXFLAGS to \"-mcx16\""
- CXXFLAGS="-mcx16"
- else
- ats_addto_bugger="-mcx16"
- for i in $ats_addto_bugger; do
- ats_addto_duplicate="0"
- for j in $CXXFLAGS; do
- if test "x$i" = "x$j"; then
- ats_addto_duplicate="1"
- break
- fi
- done
- if test $ats_addto_duplicate = "0"; then
- test "x$verbose" = "xyes" && echo " adding \"$i\" to CXXFLAGS"
- CXXFLAGS="$CXXFLAGS $i"
- fi
- done
- fi
-
-
- if test "x$CFLAGS" = "x"; then
- test "x$verbose" = "xyes" && echo " setting CFLAGS to \"-mcx16\""
- CFLAGS="-mcx16"
- else
- ats_addto_bugger="-mcx16"
- for i in $ats_addto_bugger; do
- ats_addto_duplicate="0"
- for j in $CFLAGS; do
- if test "x$i" = "x$j"; then
- ats_addto_duplicate="1"
- break
- fi
- done
- if test $ats_addto_duplicate = "0"; then
- test "x$verbose" = "xyes" && echo " adding \"$i\" to CFLAGS"
- CFLAGS="$CFLAGS $i"
- fi
- done
- fi
-
ats_save_CFLAGS=$CFLAGS
CFLAGS="$CFLAGS $CFLAGS_WARN"
if test "$ac_cv_c_compiler_gnu" = "yes"; then
@@ -24204,52 +24162,6 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
-if test "x$has_128bit_cas" = "x1"; then :
-
-
- if test "x$CFLAGS" = "x"; then
- test "x$verbose" = "xyes" && echo " setting CFLAGS to \"-mcx16\""
- CFLAGS="-mcx16"
- else
- ats_addto_bugger="-mcx16"
- for i in $ats_addto_bugger; do
- ats_addto_duplicate="0"
- for j in $CFLAGS; do
- if test "x$i" = "x$j"; then
- ats_addto_duplicate="1"
- break
- fi
- done
- if test $ats_addto_duplicate = "0"; then
- test "x$verbose" = "xyes" && echo " adding \"$i\" to CFLAGS"
- CFLAGS="$CFLAGS $i"
- fi
- done
- fi
-
-
- if test "x$CXXFLAGS" = "x"; then
- test "x$verbose" = "xyes" && echo " setting CXXFLAGS to \"-mcx16\""
- CXXFLAGS="-mcx16"
- else
- ats_addto_bugger="-mcx16"
- for i in $ats_addto_bugger; do
- ats_addto_duplicate="0"
- for j in $CXXFLAGS; do
- if test "x$i" = "x$j"; then
- ats_addto_duplicate="1"
- break
- fi
- done
- if test $ats_addto_duplicate = "0"; then
- test "x$verbose" = "xyes" && echo " adding \"$i\" to CXXFLAGS"
- CXXFLAGS="$CXXFLAGS $i"
- fi
- done
- fi
-
-
-fi
# Check for POSIX capabilities library.
# If we don't find it, disable checking for header.
|