aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/ccextractor.rb
blob: 7b0a502099bfe7c2aadf3be0741a4db2e49e5248 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
require 'formula'

class Ccextractor < Formula
  homepage 'http://ccextractor.sourceforge.net/'
  url 'http://sourceforge.net/projects/ccextractor/files/ccextractor/0.62/ccextractor.src.0.62.zip/'
  sha1 'fbda805f1ecbb7d2d662ac0d7df78dbf284f9e7b'

  def patches
    # Fixes duplicate ) in build command. Reported upstream via email.
    DATA
  end

  def install
    cd "mac"
    system "bash ./build.command"
    bin.install "ccextractor"
  end
end

__END__
diff --git a/mac/build.command b/mac/build.command
index 2699b46..d7e9cea 100644
--- a/mac/build.command
+++ b/mac/build.command
@@ -1 +1 @@
-g++ -Dfopen64=fopen -Dopen64=open -Dlseek64=lseek -I../src/gpacmp4 -o ccextractor $(find ../src/ -name '*.cpp')) $(find ../src/ -name '*.c')
+g++ -Dfopen64=fopen -Dopen64=open -Dlseek64=lseek -I../src/gpacmp4 -o ccextractor $(find ../src/ -name '*.cpp') $(find ../src/ -name '*.c')