Skip to content

Instantly share code, notes, and snippets.

@alexreg
Created August 11, 2013 03:31
Show Gist options
  • Save alexreg/6203265 to your computer and use it in GitHub Desktop.
Save alexreg/6203265 to your computer and use it in GitHub Desktop.
require 'formula'
class Cclive < Formula
homepage 'http://cclive.sourceforge.net/'
url 'http://downloads.sourceforge.net/project/cclive/0.7/cclive-0.7.14.tar.xz'
sha1 '2e4dafd7266095610a2154117a15682e5987ed89'
devel do
url 'http://downloads.sourceforge.net/project/cclive/0.9/cclive-0.9.2.tar.xz'
sha1 '4c0671dd7c47dde5843b24dc5b9c59e93fe17b23'
end
head 'git://github.com/legatvs/cclive.git', :branch => 'next'
depends_on 'pkg-config' => :build
depends_on 'xz' => :build
depends_on 'quvi'
depends_on 'boost'
depends_on 'pcre'
depends_on 'gettext' # TODO: reference in build paths
depends_on 'automake' if build.head?
depends_on 'autoconf' if build.head?
def patches
DATA
end
def install
if build.head?
system "./bootstrap.sh"
end
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make install"
end
end
__END__
diff --git a/configure.ac b/configure.ac
index c9e6236..5f05f3e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -17,7 +17,7 @@ AC_USE_SYSTEM_EXTENSIONS
AC_DEFINE_UNQUOTED([CANONICAL_TARGET], "$target",
[Define to canonical target])
-AM_INIT_AUTOMAKE([1.11.1 -Wall -Werror dist-xz no-dist-gzip tar-ustar])
+AM_INIT_AUTOMAKE([1.11.1 -Wall -Werror dist-xz no-dist-gzip tar-ustar subdir-objects])
AM_SILENT_RULES([yes])
# GNU Automake 1.12 requires this macro. Earlier versions do not
diff --git a/bootstrap.sh b/bootstrap.sh
index 3bf84d6..5646fbf 100755
--- a/bootstrap.sh
+++ b/bootstrap.sh
@@ -60,4 +60,4 @@ do
done
echo "Generate configuration files..."
-autoreconf -if && echo "You can now run 'configure'"
+autoreconf -ifv && echo "You can now run 'configure'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment