blob: 3cdd314cc48b754131698484db5c06a6acfca5eb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
require "formula"
class Pktanon < Formula
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"
sha1 "458530c2b167694ee7a29653033e86f0b23e54bd"
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
|