summaryrefslogtreecommitdiff
path: root/homebrew/dirac
diff options
context:
space:
mode:
Diffstat (limited to 'homebrew/dirac')
-rw-r--r--homebrew/dirac/.beer79
-rw-r--r--homebrew/dirac/.make.sh-auto4
-rw-r--r--homebrew/dirac/_metadata/description1
-rw-r--r--homebrew/dirac/_metadata/homepage1
-rw-r--r--homebrew/dirac/_metadata/name1
-rw-r--r--homebrew/dirac/_metadata/version1
-rwxr-xr-xhomebrew/dirac/download.sh1
-rwxr-xr-xhomebrew/dirac/patches.sh51
8 files changed, 139 insertions, 0 deletions
diff --git a/homebrew/dirac/.beer b/homebrew/dirac/.beer
new file mode 100644
index 000000000..bf0279199
--- /dev/null
+++ b/homebrew/dirac/.beer
@@ -0,0 +1,79 @@
+{
+ "name": "Dirac",
+ "description": "General-purpose video codec aimed at a range of resolutions",
+ "url": "https://downloads.sourceforge.net/project/dirac/dirac-codec/Dirac-1.0.2/dirac-1.0.2.tar.gz",
+ "mirror": "https://launchpad.net/ubuntu/+archive/primary/+files/dirac_1.0.2.orig.tar.gz",
+ "homepage": "https://sourceforge.net/projects/dirac/",
+ "depends": [],
+ "resource": [],
+ "conflicts": [],
+ "patches": [
+ {
+ "url": "https://gist.githubusercontent.com/mistydemeo/da8a53abcf057c58b498/raw/bde69c5f07d871542dcb24792110e29e6418d2a3/unititialized-memory.patch",
+ "strip": "1"
+ },
+ {
+ "url": "https://gist.githubusercontent.com/mistydemeo/e729c459525d0d6e9e2d/raw/d9ff69c944b8bde006eef27650c0af36f51479f5/dirac-gcc-fixes.patch",
+ "strip": "1"
+ },
+ {
+ "url": null,
+ "data": [
+ "diff --git a/configure b/configure\n",
+ "index 41329b9..8f5ed19 100755\n",
+ "--- a/configure\n",
+ "+++ b/configure\n",
+ "@@ -15903,30 +15903,8 @@ ACLOCAL_AMFLAGS=\"-I m4 $ACLOCAL_AMFLAGS\"\n",
+ " use_msvc=no\n",
+ "\n",
+ "\n",
+ "-case \"$CXX\" in\n",
+ "-\t\tcl*|CL*)\n",
+ "-\t\tCXXFLAGS=\"-nologo -W1 -EHsc -DWIN32\"\n",
+ "-\t\tif test x\"$enable_shared\" = \"xyes\"; then\n",
+ "-\t\t LIBEXT=\".dll\";\n",
+ "-\t\t LIBFLAGS=\"-DLL -INCREMENTAL:NO\"\n",
+ "-\t\t\tCXXFLAGS=\"$CXXFLAGS -D_WINDLL\"\n",
+ "-\t\telse\n",
+ "-\t\t LIBEXT=\".lib\";\n",
+ "-\t\t LIBFLAGS=\"-lib\"\n",
+ "-\t\tfi\n",
+ "-\t\tRANLIB=\"echo\"\n",
+ "-\t\tuse_msvc=yes\n",
+ "-\t\t;;\n",
+ "-\t*)\n",
+ "-\t\t;;\n",
+ "-esac\n",
+ "- if test x\"$use_msvc\" = \"xyes\"; then\n",
+ "- USE_MSVC_TRUE=\n",
+ "- USE_MSVC_FALSE='#'\n",
+ "-else\n",
+ " USE_MSVC_TRUE='#'\n",
+ " USE_MSVC_FALSE=\n",
+ "-fi\n",
+ "\n",
+ "\n",
+ "\n",
+ "@@ -22678,7 +22656,8 @@ $debug ||\n",
+ " if test -n \"$CONFIG_FILES\"; then\n",
+ "\n",
+ "\n",
+ "-ac_cr='\n",
+ "'\n",
+ "+ac_cr='\n",
+ "+'\n",
+ " ac_cs_awk_cr=`$AWK 'BEGIN { print \"a\\rb\" }' </dev/null 2>/dev/null`\n",
+ " if test \"$ac_cs_awk_cr\" = \"a${ac_cr}b\"; then\n",
+ " ac_cs_awk_cr='\\\\r'\n"
+ ]
+ }
+ ],
+ "install": [
+ "inreplace \"doc/Makefile.in\", \"cp -dR\", \"cp -R\"",
+ "system \"./configure\", \"--disable-debug\", \"--disable-dependency-tracking\",",
+ "\"--prefix=#{prefix}\"",
+ "system \"make\", \"install\""
+ ],
+ "version": "1.0.2",
+ "file": "dirac.rb"
+} \ No newline at end of file
diff --git a/homebrew/dirac/.make.sh-auto b/homebrew/dirac/.make.sh-auto
new file mode 100644
index 000000000..80717b5a9
--- /dev/null
+++ b/homebrew/dirac/.make.sh-auto
@@ -0,0 +1,4 @@
+pkg:setup
+inreplace "doc/Makefile.in", "cp -dR", "cp -R"
+pkg:configure --disable-dependency-tracking
+make DESTDIR=${PKG_DEST} install
diff --git a/homebrew/dirac/_metadata/description b/homebrew/dirac/_metadata/description
new file mode 100644
index 000000000..b952d1005
--- /dev/null
+++ b/homebrew/dirac/_metadata/description
@@ -0,0 +1 @@
+General-purpose video codec aimed at a range of resolutions
diff --git a/homebrew/dirac/_metadata/homepage b/homebrew/dirac/_metadata/homepage
new file mode 100644
index 000000000..dc246c385
--- /dev/null
+++ b/homebrew/dirac/_metadata/homepage
@@ -0,0 +1 @@
+https://sourceforge.net/projects/dirac/
diff --git a/homebrew/dirac/_metadata/name b/homebrew/dirac/_metadata/name
new file mode 100644
index 000000000..8415433d3
--- /dev/null
+++ b/homebrew/dirac/_metadata/name
@@ -0,0 +1 @@
+Dirac
diff --git a/homebrew/dirac/_metadata/version b/homebrew/dirac/_metadata/version
new file mode 100644
index 000000000..6d7de6e6a
--- /dev/null
+++ b/homebrew/dirac/_metadata/version
@@ -0,0 +1 @@
+1.0.2
diff --git a/homebrew/dirac/download.sh b/homebrew/dirac/download.sh
new file mode 100755
index 000000000..4d1c7974c
--- /dev/null
+++ b/homebrew/dirac/download.sh
@@ -0,0 +1 @@
+wget https://downloads.sourceforge.net/project/dirac/dirac-codec/Dirac-1.0.2/dirac-1.0.2.tar.gz || wget https://launchpad.net/ubuntu/+archive/primary/+files/dirac_1.0.2.orig.tar.gz \ No newline at end of file
diff --git a/homebrew/dirac/patches.sh b/homebrew/dirac/patches.sh
new file mode 100755
index 000000000..b3ef6ded9
--- /dev/null
+++ b/homebrew/dirac/patches.sh
@@ -0,0 +1,51 @@
+wget https://gist.githubusercontent.com/mistydemeo/da8a53abcf057c58b498/raw/bde69c5f07d871542dcb24792110e29e6418d2a3/unititialized-memory.patch
+wget https://gist.githubusercontent.com/mistydemeo/e729c459525d0d6e9e2d/raw/d9ff69c944b8bde006eef27650c0af36f51479f5/dirac-gcc-fixes.patch
+echo 'Creating brew-patch.diff'
+cat << EOF >> brew-patch.diff
+diff --git a/configure b/configure
+index 41329b9..8f5ed19 100755
+--- a/configure
++++ b/configure
+@@ -15903,30 +15903,8 @@ ACLOCAL_AMFLAGS="-I m4 $ACLOCAL_AMFLAGS"
+ use_msvc=no
+
+
+-case "$CXX" in
+- cl*|CL*)
+- CXXFLAGS="-nologo -W1 -EHsc -DWIN32"
+- if test x"$enable_shared" = "xyes"; then
+- LIBEXT=".dll";
+- LIBFLAGS="-DLL -INCREMENTAL:NO"
+- CXXFLAGS="$CXXFLAGS -D_WINDLL"
+- else
+- LIBEXT=".lib";
+- LIBFLAGS="-lib"
+- fi
+- RANLIB="echo"
+- use_msvc=yes
+- ;;
+- *)
+- ;;
+-esac
+- if test x"$use_msvc" = "xyes"; then
+- USE_MSVC_TRUE=
+- USE_MSVC_FALSE='#'
+-else
+ USE_MSVC_TRUE='#'
+ USE_MSVC_FALSE=
+-fi
+
+
+
+@@ -22678,7 +22656,8 @@ $debug ||
+ if test -n "$CONFIG_FILES"; then
+
+
+-ac_cr='
+'
++ac_cr='
++'
+ ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
+ if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
+ ac_cs_awk_cr='\\r'
+EOF