95884bae22
Closes Homebrew/homebrew#42407. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
24 lines
735 B
Ruby
24 lines
735 B
Ruby
class Pktanon < Formula
|
|
desc "Packet trace anonymization"
|
|
homepage "http://www.tm.uka.de/software/pktanon/index.html"
|
|
url "http://www.tm.uka.de/software/pktanon/download/pktanon-1.4.0-dev.tar.gz"
|
|
sha256 "db3f437bcb8ddb40323ddef7a9de25a465c5f6b4cce078202060f661d4b97ba3"
|
|
|
|
depends_on "xerces-c"
|
|
depends_on "boost"
|
|
|
|
def install
|
|
# fix compile failure caused by undefined function 'sleep'.
|
|
inreplace "src/Timer.cpp", %(#include "Timer.h"
|
|
),
|
|
%(#include "Timer.h"
|
|
#include "unistd.h"
|
|
)
|
|
|
|
# include the boost system library to resolve compilation errors
|
|
ENV["LIBS"] = "-lboost_system-mt"
|
|
|
|
system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}"
|
|
system "make", "install"
|
|
end
|
|
end
|