aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorAdam Malcontenti-Wilson2013-10-06 20:56:54 -0500
committerJack Nagel2013-10-06 20:56:54 -0500
commit9e002ea38ad24394fdde6d9ad80a4f7362ab3989 (patch)
tree2dfa3c517bc76818ab3617e023aef6565009eaca /Library/Formula
parent9b96cd4c679787daadb3f35030167d8e8d25ae53 (diff)
downloadhomebrew-9e002ea38ad24394fdde6d9ad80a4f7362ab3989.tar.bz2
cogl 1.14.0
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/cogl.rb41
1 files changed, 39 insertions, 2 deletions
diff --git a/Library/Formula/cogl.rb b/Library/Formula/cogl.rb
index e684138f6..2e592d9cc 100644
--- a/Library/Formula/cogl.rb
+++ b/Library/Formula/cogl.rb
@@ -2,8 +2,8 @@ require 'formula'
class Cogl < Formula
homepage 'http://developer.gnome.org/cogl/'
- url 'http://ftp.gnome.org/pub/gnome/sources/cogl/1.12/cogl-1.12.2.tar.xz'
- sha256 '31971d4c6543c589f6fc49ab1724dfbdc7062c58a7da842cb1935e32ca6e1d7e'
+ url 'http://ftp.gnome.org/pub/gnome/sources/cogl/1.14/cogl-1.14.0.tar.xz'
+ sha256 '276e8c9f5ff0fcd57c1eaf74cc245f41ad469a95a18ac831fac2d5960baa5ae8'
head 'git://git.gnome.org/cogl'
@@ -16,6 +16,12 @@ class Cogl < Formula
depends_on 'pango'
depends_on :x11 unless build.without? 'x'
+ def patches
+ # Patch from MacPorts, reported upstream at https://bugzilla.gnome.org/show_bug.cgi?id=708825
+ # https://trac.macports.org/browser/trunk/dports/graphics/cogl/files/patch-clock_gettime.diff
+ DATA
+ end
+
def install
system "./autogen.sh" if build.head?
args = %W[
@@ -28,3 +34,34 @@ class Cogl < Formula
system "make install"
end
end
+__END__
+diff --git a/cogl/winsys/cogl-winsys-glx.c b/cogl/winsys/cogl-winsys-glx.c
+--- a/cogl/winsys/cogl-winsys-glx.c
++++ b/cogl/winsys/cogl-winsys-glx.c
+@@ -56,7 +56,26 @@
+ #include <sys/stat.h>
+ #include <sys/time.h>
+ #include <fcntl.h>
++
++#ifdef __MACH__
++#include <mach/mach_time.h>
++#define CLOCK_REALTIME 0
++#define CLOCK_MONOTONIC 0
++static int
++clock_gettime(int clk_id, struct timespec *t){
++ mach_timebase_info_data_t timebase;
++ mach_timebase_info(&timebase);
++ uint64_t time;
++ time = mach_absolute_time();
++ double nseconds = ((double)time * (double)timebase.numer)/((double)timebase.denom);
++ double seconds = ((double)time * (double)timebase.numer)/((double)timebase.denom * 1e9);
++ t->tv_sec = seconds;
++ t->tv_nsec = nseconds;
++ return 0;
++}
++#else
+ #include <time.h>
++#endif
+
+ #include <glib/gi18n-lib.h>
+