diff options
author | MCApollo <34170230+MCApollo@users.noreply.github.com> | 2019-04-20 20:49:46 -0500 |
---|---|---|
committer | MCApollo <34170230+MCApollo@users.noreply.github.com> | 2019-04-23 20:18:47 -0500 |
commit | 12335518ab39608d58370c85ff9f5384ad2aa5f7 (patch) | |
tree | 352d81f2a2de3f1252af732080ec0fde38c13b4d /homebrew/supertux | |
parent | a2b26ad12d4fa12f0273645caf4be6d0b8b71e7c (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/supertux')
-rw-r--r-- | homebrew/supertux/.beer | 72 | ||||
-rw-r--r-- | homebrew/supertux/.make.sh-auto | 12 | ||||
-rw-r--r-- | homebrew/supertux/_metadata/description | 1 | ||||
-rw-r--r-- | homebrew/supertux/_metadata/homepage | 1 | ||||
-rw-r--r-- | homebrew/supertux/_metadata/name | 1 | ||||
-rw-r--r-- | homebrew/supertux/_metadata/version | 1 | ||||
-rwxr-xr-x | homebrew/supertux/download.sh | 1 | ||||
-rwxr-xr-x | homebrew/supertux/patches.sh | 2 |
8 files changed, 91 insertions, 0 deletions
diff --git a/homebrew/supertux/.beer b/homebrew/supertux/.beer new file mode 100644 index 000000000..bb63f1ae7 --- /dev/null +++ b/homebrew/supertux/.beer @@ -0,0 +1,72 @@ +{ + "name": "Supertux", + "description": "Classic 2D jump", + "url": "https://github.com/SuperTux/supertux/releases/download/v0.5.1/SuperTux-v0.5.1-Source.tar.gz", + "mirror": null, + "homepage": "https://www.supertux.org/", + "depends": [ + { + "depend": "boost", + "build-depend": true + }, + { + "depend": "cmake", + "build-depend": true + }, + { + "depend": "pkg-config", + "build-depend": true + }, + { + "depend": "glew", + "build-depend": false + }, + { + "depend": "libogg", + "build-depend": false + }, + { + "depend": "libvorbis", + "build-depend": false + }, + { + "depend": "sdl2", + "build-depend": false + }, + { + "depend": "sdl2_image", + "build-depend": false + }, + { + "depend": "sdl2_mixer", + "build-depend": false + } + ], + "resource": [], + "conflicts": [], + "patches": [ + { + "url": "https://github.com/SuperTux/supertux/commit/47a353e2981161e2da12492822fe88d797af2fec.diff?full_index=1", + "strip": "1" + }, + { + "url": "https://raw.githubusercontent.com/Homebrew/formula-patches/834e41a/supertux/squirrel_xcode9.patch", + "strip": "1" + } + ], + "install": [ + "ENV.cxx11", + "args = std_cmake_args", + "args << \"-DINSTALL_SUBDIR_BIN=bin\"", + "args << \"-DINSTALL_SUBDIR_SHARE=share/supertux\"", + "args << \"-DPNG_PNG_INCLUDE_DIR=#{Formula[\"libpng\"].opt_include}\"", + "system \"cmake\", \".\", *args", + "system \"make\", \"install\"", + "(share/\"appdata\").rmtree", + "(share/\"applications\").rmtree", + "(share/\"pixmaps\").rmtree", + "(prefix/\"MacOS\").rmtree" + ], + "version": "0.5.1", + "file": "supertux.rb" +}
\ No newline at end of file diff --git a/homebrew/supertux/.make.sh-auto b/homebrew/supertux/.make.sh-auto new file mode 100644 index 000000000..0493307fa --- /dev/null +++ b/homebrew/supertux/.make.sh-auto @@ -0,0 +1,12 @@ +pkg:setup +ENV.cxx11 +args = std_cmake_args +args << "-DINSTALL_SUBDIR_BIN=bin" +args << "-DINSTALL_SUBDIR_SHARE=share/supertux" +args << "-DPNG_PNG_INCLUDE_DIR=#{Formula["libpng"].opt_include}" +cmake . *args +make DESTDIR=${PKG_DEST} install +(share/"appdata").rmtree +(share/"applications").rmtree +(share/"pixmaps").rmtree +(prefix/"MacOS").rmtree diff --git a/homebrew/supertux/_metadata/description b/homebrew/supertux/_metadata/description new file mode 100644 index 000000000..a3702367b --- /dev/null +++ b/homebrew/supertux/_metadata/description @@ -0,0 +1 @@ +Classic 2D jump diff --git a/homebrew/supertux/_metadata/homepage b/homebrew/supertux/_metadata/homepage new file mode 100644 index 000000000..594a5b6dc --- /dev/null +++ b/homebrew/supertux/_metadata/homepage @@ -0,0 +1 @@ +https://www.supertux.org/ diff --git a/homebrew/supertux/_metadata/name b/homebrew/supertux/_metadata/name new file mode 100644 index 000000000..2260f36cf --- /dev/null +++ b/homebrew/supertux/_metadata/name @@ -0,0 +1 @@ +Supertux diff --git a/homebrew/supertux/_metadata/version b/homebrew/supertux/_metadata/version new file mode 100644 index 000000000..4b9fcbec1 --- /dev/null +++ b/homebrew/supertux/_metadata/version @@ -0,0 +1 @@ +0.5.1 diff --git a/homebrew/supertux/download.sh b/homebrew/supertux/download.sh new file mode 100755 index 000000000..14e0bf32f --- /dev/null +++ b/homebrew/supertux/download.sh @@ -0,0 +1 @@ +wget https://github.com/SuperTux/supertux/releases/download/v0.5.1/SuperTux-v0.5.1-Source.tar.gz
\ No newline at end of file diff --git a/homebrew/supertux/patches.sh b/homebrew/supertux/patches.sh new file mode 100755 index 000000000..a142b825a --- /dev/null +++ b/homebrew/supertux/patches.sh @@ -0,0 +1,2 @@ +wget https://github.com/SuperTux/supertux/commit/47a353e2981161e2da12492822fe88d797af2fec.diff?full_index=1 +wget https://raw.githubusercontent.com/Homebrew/formula-patches/834e41a/supertux/squirrel_xcode9.patch |