diff options
Diffstat (limited to 'homebrew/onscripter/.make.sh-auto')
-rw-r--r-- | homebrew/onscripter/.make.sh-auto | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/homebrew/onscripter/.make.sh-auto b/homebrew/onscripter/.make.sh-auto new file mode 100644 index 000000000..f303454aa --- /dev/null +++ b/homebrew/onscripter/.make.sh-auto @@ -0,0 +1,12 @@ +pkg:setup +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("=") } +make -f Makefile.MacOSX *args +bin.install %w[onscripter sardec nsadec sarconv nsaconv] |