homebrew-core/Formula/pktanon.rb
2015-08-25 00:19:39 -07:00

21 lines
744 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"\r\n),
%(#include "Timer.h"\r\n#include "unistd.h"\r\n)
# 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