diff options
Diffstat (limited to 'homebrew/onscripter/.beer')
-rw-r--r-- | homebrew/onscripter/.beer | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/homebrew/onscripter/.beer b/homebrew/onscripter/.beer new file mode 100644 index 000000000..33c9dd5c4 --- /dev/null +++ b/homebrew/onscripter/.beer @@ -0,0 +1,74 @@ +{ + "name": "Onscripter", + "description": "NScripter-compatible visual novel engine", + "url": "https://onscripter.osdn.jp/onscripter-20181218.tar.gz", + "mirror": null, + "homepage": "https://onscripter.osdn.jp/", + "depends": [ + { + "depend": "pkg-config", + "build-depend": true + }, + { + "depend": "jpeg", + "build-depend": false + }, + { + "depend": "lua", + "build-depend": false + }, + { + "depend": "sdl", + "build-depend": false + }, + { + "depend": "sdl_image", + "build-depend": false + }, + { + "depend": "sdl_mixer", + "build-depend": false + }, + { + "depend": "sdl_ttf", + "build-depend": false + }, + { + "depend": "smpeg", + "build-depend": false + } + ], + "resource": [], + "conflicts": [], + "patches": [], + "install": [ + "incs = [", + "`pkg-config --cflags sdl SDL_ttf SDL_image SDL_mixer`.chomp,", + "`smpeg-config --cflags`.chomp,", + "\"-I#{Formula[\"jpeg\"].include}\",", + "\"-I#{Formula[\"lua\"].opt_include}/lua\",", + "]", + "libs = [", + "`pkg-config --libs sdl SDL_ttf SDL_image SDL_mixer`.chomp,", + "`smpeg-config --libs`.chomp,", + "\"-ljpeg\",", + "\"-lbz2\",", + "\"-L#{Formula[\"lua\"].opt_lib} -llua\",", + "]", + "defs = %w[", + "-DMACOSX", + "-DUSE_CDROM", + "-DUSE_LUA", + "-DUTF8_CAPTION", + "-DUTF8_FILESYSTEM", + "]", + "ext_objs = [\"LUAHandler.o\"]", + "k = %w[INCS LIBS DEFS EXT_OBJS]", + "v = [incs, libs, defs, ext_objs].map { |x| x.join(\" \") }", + "args = k.zip(v).map { |x| x.join(\"=\") }", + "system \"make\", \"-f\", \"Makefile.MacOSX\", *args", + "bin.install %w[onscripter sardec nsadec sarconv nsaconv]" + ], + "version": "20181218", + "file": "onscripter.rb" +}
\ No newline at end of file |