summaryrefslogtreecommitdiff
path: root/homebrew/supertux
diff options
context:
space:
mode:
Diffstat (limited to 'homebrew/supertux')
-rw-r--r--homebrew/supertux/.beer72
-rw-r--r--homebrew/supertux/.make.sh-auto12
-rw-r--r--homebrew/supertux/_metadata/description1
-rw-r--r--homebrew/supertux/_metadata/homepage1
-rw-r--r--homebrew/supertux/_metadata/name1
-rw-r--r--homebrew/supertux/_metadata/version1
-rwxr-xr-xhomebrew/supertux/download.sh1
-rwxr-xr-xhomebrew/supertux/patches.sh2
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