2010-02-12 00:48:54 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Gource < Formula
|
2010-02-12 00:48:54 +00:00
|
|
|
homepage 'http://code.google.com/p/gource/'
|
2013-01-11 10:59:59 +00:00
|
|
|
url 'http://gource.googlecode.com/files/gource-0.39.tar.gz'
|
|
|
|
sha1 '1dd6476e56a197354ce93612c7be9aff8c1f8cd2'
|
2012-07-07 18:08:22 +00:00
|
|
|
|
2011-05-27 05:02:55 +00:00
|
|
|
head 'https://github.com/acaudwell/Gource.git'
|
2010-02-12 00:48:54 +00:00
|
|
|
|
2012-08-31 20:58:04 +00:00
|
|
|
if build.head?
|
2012-07-07 18:08:22 +00:00
|
|
|
depends_on :automake
|
|
|
|
depends_on :libtool
|
|
|
|
end
|
2012-04-20 16:57:19 +00:00
|
|
|
|
2013-01-22 08:43:30 +00:00
|
|
|
depends_on :x11 if MacOS::X11.installed?
|
2012-08-31 20:58:04 +00:00
|
|
|
depends_on :freetype
|
2012-07-07 18:08:22 +00:00
|
|
|
|
|
|
|
depends_on 'pkg-config' => :build
|
|
|
|
depends_on 'glm' => :build
|
|
|
|
|
2012-04-20 16:57:19 +00:00
|
|
|
depends_on 'boost'
|
|
|
|
depends_on 'glew'
|
2010-02-12 00:48:54 +00:00
|
|
|
depends_on 'jpeg'
|
|
|
|
depends_on 'pcre'
|
2012-04-20 16:57:19 +00:00
|
|
|
depends_on 'sdl'
|
|
|
|
depends_on 'sdl_image'
|
2010-02-12 00:48:54 +00:00
|
|
|
|
2013-01-13 21:05:33 +00:00
|
|
|
# configure fails to find boost libs on OS X;
|
|
|
|
# merged upstream, should be in the next release
|
2013-01-13 19:06:52 +00:00
|
|
|
# https://github.com/acaudwell/Gource/pull/17
|
|
|
|
def patches; DATA; end unless build.head?
|
|
|
|
|
2010-02-12 00:48:54 +00:00
|
|
|
def install
|
2010-07-31 17:25:49 +00:00
|
|
|
# For non-/usr/local installs
|
|
|
|
ENV.append "CXXFLAGS", "-I#{HOMEBREW_PREFIX}/include"
|
|
|
|
|
2012-08-31 20:58:04 +00:00
|
|
|
system "autoreconf -f -i" if build.head?
|
2010-02-12 00:48:54 +00:00
|
|
|
|
|
|
|
system "./configure", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}",
|
|
|
|
"--disable-sdltest",
|
2013-01-22 07:46:23 +00:00
|
|
|
"--without-x",
|
2010-02-12 00:48:54 +00:00
|
|
|
"--disable-freetypetest"
|
|
|
|
system "make install"
|
|
|
|
end
|
2010-09-26 16:46:36 +00:00
|
|
|
|
|
|
|
def test
|
2012-02-21 06:04:21 +00:00
|
|
|
cd HOMEBREW_REPOSITORY do
|
2011-09-01 20:00:28 +00:00
|
|
|
system "#{bin}/gource"
|
2010-09-26 16:46:36 +00:00
|
|
|
end
|
|
|
|
end
|
2010-02-12 00:48:54 +00:00
|
|
|
end
|
2013-01-13 19:06:52 +00:00
|
|
|
|
|
|
|
__END__
|
|
|
|
diff --git a/configure b/configure
|
|
|
|
index f3f6384..97361de 100755
|
|
|
|
--- a/configure
|
|
|
|
+++ b/configure
|
|
|
|
@@ -7198,7 +7198,7 @@ $as_echo "#define HAVE_BOOST_SYSTEM /**/" >>confdefs.h
|
|
|
|
|
|
|
|
LDFLAGS_SAVE=$LDFLAGS
|
|
|
|
if test "x$ax_boost_user_system_lib" = "x"; then
|
|
|
|
- for libextension in `ls $BOOSTLIBDIR/libboost_system*.a* $BOOSTLIBDIR/libboost_system*.so* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_system.*\)\.\(so\|a\).*$;\1;' | tac` ; do
|
|
|
|
+ for libextension in `ls -r $BOOSTLIBDIR/libboost_system* 2>/dev/null | sed 's,.*/lib,,' | sed 's,\..*,,'` ; do
|
|
|
|
ax_lib=${libextension}
|
|
|
|
as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
|
|
|
|
@@ -7246,7 +7246,7 @@ fi
|
|
|
|
|
|
|
|
done
|
|
|
|
if test "x$link_system" != "xyes"; then
|
|
|
|
- for libextension in `ls $BOOSTLIBDIR/boost_system*.{dll,a}* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_system.*\)\.\(dll\|a\).*$;\1;' | tac` ; do
|
|
|
|
+ for libextension in `ls -r $BOOSTLIBDIR/boost_system* 2>/dev/null | sed 's,.*/,,' | sed -e 's,\..*,,'` ; do
|
|
|
|
ax_lib=${libextension}
|
|
|
|
as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
|
|
|
|
@@ -7437,7 +7437,7 @@ $as_echo "#define HAVE_BOOST_FILESYSTEM /**/" >>confdefs.h
|
|
|
|
|
|
|
|
BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'`
|
|
|
|
if test "x$ax_boost_user_filesystem_lib" = "x"; then
|
|
|
|
- for libextension in `ls $BOOSTLIBDIR/libboost_filesystem*.so* $BOOSTLIBDIR/libboost_filesystem*.dylib* $BOOSTLIBDIR/libboost_filesystem*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_filesystem.*\)\.\(dylib\|a\|so\).*$;\1;' | tac` ; do
|
|
|
|
+ for libextension in `ls -r $BOOSTLIBDIR/libboost_filesystem* 2>/dev/null | sed 's,.*/lib,,' | sed 's,\..*,,'` ; do
|
|
|
|
ax_lib=${libextension}
|
|
|
|
as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
|
|
|
|
@@ -7485,7 +7485,7 @@ fi
|
|
|
|
|
|
|
|
done
|
|
|
|
if test "x$link_filesystem" != "xyes"; then
|
|
|
|
- for libextension in `ls $BOOSTLIBDIR/boost_filesystem*.dll* $BOOSTLIBDIR/boost_filesystem*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_filesystem.*\)\.\(dll\|a\).*$;\1;' | tac` ; do
|
|
|
|
+ for libextension in `ls -r $BOOSTLIBDIR/boost_filesystem* 2>/dev/null | sed 's,.*/,,' | sed -e 's,\..*,,'` ; do
|
|
|
|
ax_lib=${libextension}
|
|
|
|
as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
|