aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/freeradius-server.rb
blob: 5e47ec8098817d1246d7f8ef9b0f821a8fbe66cf (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
require 'formula'

class FreeradiusServer < Formula
  homepage 'http://freeradius.org/'
  url 'ftp://ftp.freeradius.org/pub/freeradius/freeradius-server-2.2.0.tar.gz'
  sha1 '1bf089dcd19f365d0ad1166e2062ef5336d892b4'

  # Requires newer autotools on all platforms
  depends_on 'autoconf' => :build
  depends_on 'automake' => :build
  depends_on 'libtool' => :build

  # libtool is glibtool on OS X
  def patches; DATA end

  def install
    ENV.deparallelize

    system "autoreconf", "-fvi"
    system "./configure", "--prefix=#{prefix}",
                          "--with-system-libtool",
                          "--with-system-libltdl"
    system "make"
    system "make install"
  end
end

__END__
diff --git a/configure.in b/configure.in
index 62b0de8..97e0243 100644
--- a/configure.in
+++ b/configure.in
@@ -101,7 +101,7 @@ AC_SUBST(LTDL_SUBDIRS)
 dnl use system-wide libtool, if it exists
 AC_ARG_WITH(system-libtool,
 [  --with-system-libtool   Use the libtool installed in your system (default=use our own)],
-[ AC_PATH_PROG(LIBTOOL, libtool,,$PATH:/usr/local/bin) AC_LIBTOOL_DLOPEN
+[ AC_PATH_PROG(LIBTOOL, glibtool,,$PATH:/usr/local/bin) AC_LIBTOOL_DLOPEN
  AC_PROG_LIBTOOL],
 [
   LIBTOOL="`pwd`/libtool"