summaryrefslogtreecommitdiff
path: root/homebrew/swftools
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/swftools
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/swftools')
-rw-r--r--homebrew/swftools/.beer35
-rw-r--r--homebrew/swftools/.make.sh-auto4
-rw-r--r--homebrew/swftools/_metadata/description1
-rw-r--r--homebrew/swftools/_metadata/homepage1
-rw-r--r--homebrew/swftools/_metadata/name1
-rw-r--r--homebrew/swftools/_metadata/version1
-rwxr-xr-xhomebrew/swftools/download.sh1
-rwxr-xr-xhomebrew/swftools/patches.sh14
8 files changed, 58 insertions, 0 deletions
diff --git a/homebrew/swftools/.beer b/homebrew/swftools/.beer
new file mode 100644
index 000000000..71ddcb37f
--- /dev/null
+++ b/homebrew/swftools/.beer
@@ -0,0 +1,35 @@
+{
+ "name": "Swftools",
+ "description": "SWF manipulation and generation tools",
+ "url": "http://www.swftools.org/swftools-0.9.2.tar.gz",
+ "mirror": null,
+ "homepage": "http://www.swftools.org/",
+ "depends": [],
+ "resource": [],
+ "conflicts": [],
+ "patches": [
+ {
+ "url": null,
+ "data": [
+ "--- a/configure\t2012-04-08 10:25:35.000000000 -0700\n",
+ "+++ b/configure\t2012-04-09 17:42:10.000000000 -0700\n",
+ "@@ -6243,7 +6243,7 @@\n",
+ "\n",
+ " int main()\n",
+ " {\n",
+ "-\tchar*data = fftw_malloc(sizeof(fftwf_complex)*600*800);\n",
+ "+\tchar*data = fftwf_malloc(sizeof(fftwf_complex)*600*800);\n",
+ " \tfftwf_plan plan = fftwf_plan_dft_2d(600, 800, (fftwf_complex*)data, (fftwf_complex*)data, FFTW_FORWARD, FFTW_ESTIMATE);\n",
+ " \tplan = fftwf_plan_dft_r2c_2d(600, 800, (float*)data, (fftwf_complex*)data, FFTW_ESTIMATE);\n",
+ " \tplan = fftwf_plan_dft_c2r_2d(600, 800, (fftwf_complex*)data, (float*)data, FFTW_ESTIMATE);\n"
+ ]
+ }
+ ],
+ "install": [
+ "system \"./configure\", \"--prefix=#{prefix}\"",
+ "system \"make\"",
+ "system \"make\", \"install\""
+ ],
+ "version": "0.9.2",
+ "file": "swftools.rb"
+} \ No newline at end of file
diff --git a/homebrew/swftools/.make.sh-auto b/homebrew/swftools/.make.sh-auto
new file mode 100644
index 000000000..9b62eeb37
--- /dev/null
+++ b/homebrew/swftools/.make.sh-auto
@@ -0,0 +1,4 @@
+pkg:setup
+pkg:configure
+make
+make DESTDIR=${PKG_DEST} install
diff --git a/homebrew/swftools/_metadata/description b/homebrew/swftools/_metadata/description
new file mode 100644
index 000000000..ff5ad6fdf
--- /dev/null
+++ b/homebrew/swftools/_metadata/description
@@ -0,0 +1 @@
+SWF manipulation and generation tools
diff --git a/homebrew/swftools/_metadata/homepage b/homebrew/swftools/_metadata/homepage
new file mode 100644
index 000000000..7631f4882
--- /dev/null
+++ b/homebrew/swftools/_metadata/homepage
@@ -0,0 +1 @@
+http://www.swftools.org/
diff --git a/homebrew/swftools/_metadata/name b/homebrew/swftools/_metadata/name
new file mode 100644
index 000000000..0088f1708
--- /dev/null
+++ b/homebrew/swftools/_metadata/name
@@ -0,0 +1 @@
+Swftools
diff --git a/homebrew/swftools/_metadata/version b/homebrew/swftools/_metadata/version
new file mode 100644
index 000000000..2003b639c
--- /dev/null
+++ b/homebrew/swftools/_metadata/version
@@ -0,0 +1 @@
+0.9.2
diff --git a/homebrew/swftools/download.sh b/homebrew/swftools/download.sh
new file mode 100755
index 000000000..9b80afafb
--- /dev/null
+++ b/homebrew/swftools/download.sh
@@ -0,0 +1 @@
+wget http://www.swftools.org/swftools-0.9.2.tar.gz \ No newline at end of file
diff --git a/homebrew/swftools/patches.sh b/homebrew/swftools/patches.sh
new file mode 100755
index 000000000..93f01836d
--- /dev/null
+++ b/homebrew/swftools/patches.sh
@@ -0,0 +1,14 @@
+echo 'Creating brew-patch.diff'
+cat << EOF >> brew-patch.diff
+--- a/configure 2012-04-08 10:25:35.000000000 -0700
++++ b/configure 2012-04-09 17:42:10.000000000 -0700
+@@ -6243,7 +6243,7 @@
+
+ int main()
+ {
+- char*data = fftw_malloc(sizeof(fftwf_complex)*600*800);
++ char*data = fftwf_malloc(sizeof(fftwf_complex)*600*800);
+ fftwf_plan plan = fftwf_plan_dft_2d(600, 800, (fftwf_complex*)data, (fftwf_complex*)data, FFTW_FORWARD, FFTW_ESTIMATE);
+ plan = fftwf_plan_dft_r2c_2d(600, 800, (float*)data, (fftwf_complex*)data, FFTW_ESTIMATE);
+ plan = fftwf_plan_dft_c2r_2d(600, 800, (fftwf_complex*)data, (float*)data, FFTW_ESTIMATE);
+EOF