diff options
Diffstat (limited to 'homebrew/widelands')
-rw-r--r-- | homebrew/widelands/.beer | 80 | ||||
-rw-r--r-- | homebrew/widelands/.make.sh-auto | 10 | ||||
-rw-r--r-- | homebrew/widelands/_metadata/description | 1 | ||||
-rw-r--r-- | homebrew/widelands/_metadata/homepage | 1 | ||||
-rw-r--r-- | homebrew/widelands/_metadata/name | 1 | ||||
-rw-r--r-- | homebrew/widelands/_metadata/version | 1 | ||||
-rwxr-xr-x | homebrew/widelands/download.sh | 1 |
7 files changed, 95 insertions, 0 deletions
diff --git a/homebrew/widelands/.beer b/homebrew/widelands/.beer new file mode 100644 index 000000000..073c58db1 --- /dev/null +++ b/homebrew/widelands/.beer @@ -0,0 +1,80 @@ +{ + "name": "Widelands", + "description": "Free real-time strategy game like Settlers II", + "url": "https://launchpad.net/widelands/build19/build19/+download/widelands-build19-src.tar.bz2", + "mirror": null, + "homepage": "https://wl.widelands.org/", + "depends": [ + { + "depend": "cmake", + "build-depend": true + }, + { + "depend": "boost", + "build-depend": false + }, + { + "depend": "doxygen", + "build-depend": false + }, + { + "depend": "gettext", + "build-depend": false + }, + { + "depend": "glew", + "build-depend": false + }, + { + "depend": "icu4c", + "build-depend": false + }, + { + "depend": "libpng", + "build-depend": false + }, + { + "depend": "lua", + "build-depend": false + }, + { + "depend": "minizip", + "build-depend": false + }, + { + "depend": "sdl2_image", + "build-depend": false + }, + { + "depend": "sdl2_mixer", + "build-depend": false + }, + { + "depend": "sdl2_net", + "build-depend": false + }, + { + "depend": "sdl2_ttf", + "build-depend": false + } + ], + "resource": [], + "conflicts": [], + "patches": [], + "install": [ + "ENV.append \"CXXFLAGS\", \"-DU_USING_ICU_NAMESPACE=1\"", + "ENV.cxx11", + "mkdir \"build\" do", + "system \"cmake\", \"..\",", + "\"-DPNG_PNG_INCLUDE_DIR:PATH=#{Formula[\"libpng\"].opt_include}\",", + "\"-DWL_INSTALL_DATADIR=#{pkgshare}/data\",", + "*std_cmake_args", + "system \"make\", \"install\"", + "(bin/\"widelands\").write <<~EOS", + "#!/bin/sh", + "exec #{prefix}/widelands \"$@\"", + "EOS" + ], + "version": "-", + "file": "widelands.rb" +}
\ No newline at end of file diff --git a/homebrew/widelands/.make.sh-auto b/homebrew/widelands/.make.sh-auto new file mode 100644 index 000000000..1d6808305 --- /dev/null +++ b/homebrew/widelands/.make.sh-auto @@ -0,0 +1,10 @@ +pkg:setup +ENV.append "CXXFLAGS", "-DU_USING_ICU_NAMESPACE=1" +ENV.cxx11 +mkdir "build" && cd build +cmake .. -DPNG_PNG_INCLUDE_DIR:PATH=#{Formula[libpng"].opt_include}" -DWL_INSTALL_DATADIR=${PKG_TAPF}/share/data -DCMAKE_TOOLCHAIN_FILE=${CMAKE_TOOLCHAIN_FILE} +make DESTDIR=${PKG_DEST} install +(bin/"widelands").write <<~EOS +#!/bin/sh +exec #{prefix}/widelands "$@" +EOS diff --git a/homebrew/widelands/_metadata/description b/homebrew/widelands/_metadata/description new file mode 100644 index 000000000..217d4b3d2 --- /dev/null +++ b/homebrew/widelands/_metadata/description @@ -0,0 +1 @@ +Free real-time strategy game like Settlers II diff --git a/homebrew/widelands/_metadata/homepage b/homebrew/widelands/_metadata/homepage new file mode 100644 index 000000000..7ca2ec481 --- /dev/null +++ b/homebrew/widelands/_metadata/homepage @@ -0,0 +1 @@ +https://wl.widelands.org/ diff --git a/homebrew/widelands/_metadata/name b/homebrew/widelands/_metadata/name new file mode 100644 index 000000000..b07ffd45a --- /dev/null +++ b/homebrew/widelands/_metadata/name @@ -0,0 +1 @@ +Widelands diff --git a/homebrew/widelands/_metadata/version b/homebrew/widelands/_metadata/version new file mode 100644 index 000000000..39cdd0ded --- /dev/null +++ b/homebrew/widelands/_metadata/version @@ -0,0 +1 @@ +- diff --git a/homebrew/widelands/download.sh b/homebrew/widelands/download.sh new file mode 100755 index 000000000..cfe9371d9 --- /dev/null +++ b/homebrew/widelands/download.sh @@ -0,0 +1 @@ +wget https://launchpad.net/widelands/build19/build19/+download/widelands-build19-src.tar.bz2
\ No newline at end of file |