summaryrefslogtreecommitdiff
path: root/homebrew/mkclean
diff options
context:
space:
mode:
authorMCApollo <34170230+MCApollo@users.noreply.github.com>2019-04-20 20:49:46 -0500
committerMCApollo <34170230+MCApollo@users.noreply.github.com>2019-04-23 20:18:47 -0500
commit12335518ab39608d58370c85ff9f5384ad2aa5f7 (patch)
tree352d81f2a2de3f1252af732080ec0fde38c13b4d /homebrew/mkclean
parenta2b26ad12d4fa12f0273645caf4be6d0b8b71e7c (diff)
Ported in the homebrew-marauder for a hacky update/import system.
TODO: Maybe add a license & fix up messy code.
Diffstat (limited to 'homebrew/mkclean')
-rw-r--r--homebrew/mkclean/.beer40
-rw-r--r--homebrew/mkclean/.make.sh-auto5
-rw-r--r--homebrew/mkclean/_metadata/description1
-rw-r--r--homebrew/mkclean/_metadata/homepage1
-rw-r--r--homebrew/mkclean/_metadata/name1
-rw-r--r--homebrew/mkclean/_metadata/version1
-rwxr-xr-xhomebrew/mkclean/download.sh1
-rwxr-xr-xhomebrew/mkclean/patches.sh18
8 files changed, 68 insertions, 0 deletions
diff --git a/homebrew/mkclean/.beer b/homebrew/mkclean/.beer
new file mode 100644
index 000000000..52456cf2c
--- /dev/null
+++ b/homebrew/mkclean/.beer
@@ -0,0 +1,40 @@
+{
+ "name": "Mkclean",
+ "description": "Optimizes Matroska and WebM files",
+ "url": "https://downloads.sourceforge.net/project/matroska/mkclean/mkclean-0.8.10.tar.bz2",
+ "mirror": null,
+ "homepage": "https://www.matroska.org/downloads/mkclean.html",
+ "depends": [],
+ "resource": [],
+ "conflicts": [],
+ "patches": [
+ {
+ "url": null,
+ "data": [
+ "--- a/corec/tools/coremake/gcc_osx_x64.build\t2017-08-22 06:38:25.000000000 -0700\n",
+ "+++ b/corec/tools/coremake/gcc_osx_x64.build\t2017-11-18 22:53:56.000000000 -0800\n",
+ "@@ -4,11 +4,10 @@\n",
+ " \n",
+ " PLATFORMLIB = osx_x86\n",
+ " SVNDIR = osx_x86\n",
+ "-SDK = /Developer/SDKs/MacOSX10.5.sdk\n",
+ "\n",
+ " //CC = xcrun --sdk macosx clang\n",
+ " \n",
+ "-CCFLAGS=%(CCFLAGS) -arch x86_64 -mdynamic-no-pic -mmacosx-version-min=10.5\n",
+ "+CCFLAGS=%(CCFLAGS) -arch x86_64 -mdynamic-no-pic\n",
+ " ASMFLAGS = -f macho64 -D_MACHO -D_HIDDEN\n",
+ " \n",
+ " #include \"gcc_osx.inc\"\n"
+ ]
+ }
+ ],
+ "install": [
+ "system \"./mkclean/configure\"",
+ "system \"make\", \"mkclean\"",
+ "bindir = `corec/tools/coremake/system_output.sh`.chomp",
+ "bin.install Dir[\"release/#{bindir}/mk*\"]"
+ ],
+ "version": "0.8.10",
+ "file": "mkclean.rb"
+} \ No newline at end of file
diff --git a/homebrew/mkclean/.make.sh-auto b/homebrew/mkclean/.make.sh-auto
new file mode 100644
index 000000000..db2a1a29f
--- /dev/null
+++ b/homebrew/mkclean/.make.sh-auto
@@ -0,0 +1,5 @@
+pkg:setup
+PKG_CONF=./mkclean/configure pkg:configure
+make mkclean
+bindir = `corec/tools/coremake/system_output.sh`.chomp
+bin.install Dir["release/#{bindir}/mk*"]
diff --git a/homebrew/mkclean/_metadata/description b/homebrew/mkclean/_metadata/description
new file mode 100644
index 000000000..368f04477
--- /dev/null
+++ b/homebrew/mkclean/_metadata/description
@@ -0,0 +1 @@
+Optimizes Matroska and WebM files
diff --git a/homebrew/mkclean/_metadata/homepage b/homebrew/mkclean/_metadata/homepage
new file mode 100644
index 000000000..7c861aa6c
--- /dev/null
+++ b/homebrew/mkclean/_metadata/homepage
@@ -0,0 +1 @@
+https://www.matroska.org/downloads/mkclean.html
diff --git a/homebrew/mkclean/_metadata/name b/homebrew/mkclean/_metadata/name
new file mode 100644
index 000000000..52c27fe38
--- /dev/null
+++ b/homebrew/mkclean/_metadata/name
@@ -0,0 +1 @@
+Mkclean
diff --git a/homebrew/mkclean/_metadata/version b/homebrew/mkclean/_metadata/version
new file mode 100644
index 000000000..ef5056161
--- /dev/null
+++ b/homebrew/mkclean/_metadata/version
@@ -0,0 +1 @@
+0.8.10
diff --git a/homebrew/mkclean/download.sh b/homebrew/mkclean/download.sh
new file mode 100755
index 000000000..878aa834f
--- /dev/null
+++ b/homebrew/mkclean/download.sh
@@ -0,0 +1 @@
+wget https://downloads.sourceforge.net/project/matroska/mkclean/mkclean-0.8.10.tar.bz2 \ No newline at end of file
diff --git a/homebrew/mkclean/patches.sh b/homebrew/mkclean/patches.sh
new file mode 100755
index 000000000..497973378
--- /dev/null
+++ b/homebrew/mkclean/patches.sh
@@ -0,0 +1,18 @@
+echo 'Creating brew-patch.diff'
+cat << EOF >> brew-patch.diff
+--- a/corec/tools/coremake/gcc_osx_x64.build 2017-08-22 06:38:25.000000000 -0700
++++ b/corec/tools/coremake/gcc_osx_x64.build 2017-11-18 22:53:56.000000000 -0800
+@@ -4,11 +4,10 @@
+
+ PLATFORMLIB = osx_x86
+ SVNDIR = osx_x86
+-SDK = /Developer/SDKs/MacOSX10.5.sdk
+
+ //CC = xcrun --sdk macosx clang
+
+-CCFLAGS=%(CCFLAGS) -arch x86_64 -mdynamic-no-pic -mmacosx-version-min=10.5
++CCFLAGS=%(CCFLAGS) -arch x86_64 -mdynamic-no-pic
+ ASMFLAGS = -f macho64 -D_MACHO -D_HIDDEN
+
+ #include "gcc_osx.inc"
+EOF