a98fe5a0fa
Closes Homebrew/homebrew#27701.
46 lines
1.5 KiB
Ruby
46 lines
1.5 KiB
Ruby
require 'formula'
|
|
|
|
class Tcpreplay < Formula
|
|
homepage 'http://tcpreplay.synfin.net'
|
|
url 'https://downloads.sourceforge.net/project/tcpreplay/tcpreplay/4.0.3/tcpreplay-4.0.3.tar.gz'
|
|
sha1 '1410ddf0cd239ef825380cc8d1f495df39106404'
|
|
|
|
# Hard-code use of dylib instead of so
|
|
patch :DATA
|
|
|
|
def install
|
|
inreplace "src/common/Makefile.in" do |s|
|
|
s.gsub! "libcommon_a_LIBADD = ../../lib/libstrl.a", ""
|
|
s.gsub! "libcommon_a_DEPENDENCIES = ../../lib/libstrl.a", ""
|
|
end
|
|
|
|
system "./configure", "--disable-dependency-tracking", "--disable-debug",
|
|
"--prefix=#{prefix}",
|
|
"--enable-dynamic-link"
|
|
system "make install"
|
|
end
|
|
end
|
|
|
|
__END__
|
|
diff --git a/configure b/configure
|
|
index d41d433..9514748 100755
|
|
--- a/configure
|
|
+++ b/configure
|
|
@@ -9872,7 +9872,7 @@ darwin* | rhapsody*)
|
|
soname_spec='${libname}${release}${major}$shared_ext'
|
|
shlibpath_overrides_runpath=yes
|
|
shlibpath_var=DYLD_LIBRARY_PATH
|
|
- shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
|
|
+ shrext_cmds=".dylib"
|
|
|
|
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
|
|
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
|
|
@@ -14675,7 +14675,7 @@ darwin* | rhapsody*)
|
|
soname_spec='${libname}${release}${major}$shared_ext'
|
|
shlibpath_overrides_runpath=yes
|
|
shlibpath_var=DYLD_LIBRARY_PATH
|
|
- shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
|
|
+ shrext_cmds=".dylib"
|
|
|
|
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
|
|
;;
|