aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/talloc.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula/talloc.rb')
-rw-r--r--Library/Formula/talloc.rb20
1 files changed, 20 insertions, 0 deletions
diff --git a/Library/Formula/talloc.rb b/Library/Formula/talloc.rb
new file mode 100644
index 000000000..41b974a11
--- /dev/null
+++ b/Library/Formula/talloc.rb
@@ -0,0 +1,20 @@
+require 'formula'
+
+class Talloc < Formula
+ url 'http://samba.org/ftp/talloc/talloc-2.0.1.tar.gz'
+ homepage 'http://talloc.samba.org/'
+ md5 'c6e736540145ca58cb3dcb42f91cf57b'
+
+ # Don't try to install the swig files to /usr/share
+ def patches
+ {:p0 => 'https://trac.macports.org/export/78013/trunk/dports/devel/talloc/files/patch-tallocmk.diff'}
+ end
+
+ def install
+ system "./configure", "--prefix=#{prefix}"
+ system "make install TALLOC_SOLIB=libtalloc.2.0.1.dylib TALLOC_SONAME=libtalloc.2.dylib SONAMEFLAG='-Wl,-dylib_install_name,' EXTRA_TARGETS="
+
+ ln_s 'libtalloc.2.0.1.dylib', prefix + 'lib/libtalloc.2.dylib'
+ ln_s 'libtalloc.2.dylib', prefix + 'lib/libtalloc.dylib'
+ end
+end