2010-08-31 16:15:35 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Libxspf < Formula
|
2010-08-31 16:15:35 +00:00
|
|
|
homepage 'http://libspiff.sourceforge.net/'
|
2013-01-29 05:06:59 +00:00
|
|
|
url 'http://downloads.xiph.org/releases/xspf/libxspf-1.2.0.tar.bz2'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 '23bbc0573636928210f42699029941dd06b20a1d'
|
2010-08-31 16:15:35 +00:00
|
|
|
|
2013-11-15 23:08:31 +00:00
|
|
|
depends_on 'pkg-config' => :build
|
2010-08-31 16:15:35 +00:00
|
|
|
depends_on 'cpptest'
|
|
|
|
depends_on 'uriparser'
|
|
|
|
|
2013-11-15 23:08:31 +00:00
|
|
|
# Fix build against clang and GCC 4.7+
|
|
|
|
# http://git.xiph.org/?p=libxspf.git;a=commit;h=7f1f68d433f03484b572657ff5df47bba1b03ba6
|
2014-03-19 17:07:56 +00:00
|
|
|
patch :DATA
|
2013-11-15 23:08:31 +00:00
|
|
|
|
2010-08-31 16:15:35 +00:00
|
|
|
def install
|
|
|
|
system "./configure", "--disable-debug", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|
2013-11-15 23:08:31 +00:00
|
|
|
|
|
|
|
__END__
|
|
|
|
diff --git a/examples/read/read.cpp b/examples/read/read.cpp
|
|
|
|
index 411f892..b66a25c 100644
|
|
|
|
--- a/examples/read/read.cpp
|
|
|
|
+++ b/examples/read/read.cpp
|
|
|
|
@@ -43,6 +43,7 @@
|
|
|
|
#include <cstdio>
|
|
|
|
#include <cstdlib> // MAX_PATH
|
|
|
|
#include <climits> // PATH_MAX
|
|
|
|
+#include <unistd.h>
|
|
|
|
|
|
|
|
|
|
|
|
#if defined(__WIN32__) || defined(WIN32)
|