summaryrefslogtreecommitdiff
path: root/homebrew/onscripter
diff options
context:
space:
mode:
Diffstat (limited to 'homebrew/onscripter')
-rw-r--r--homebrew/onscripter/.beer74
-rw-r--r--homebrew/onscripter/.make.sh-auto12
-rw-r--r--homebrew/onscripter/_metadata/description1
-rw-r--r--homebrew/onscripter/_metadata/homepage1
-rw-r--r--homebrew/onscripter/_metadata/name1
-rw-r--r--homebrew/onscripter/_metadata/version1
-rwxr-xr-xhomebrew/onscripter/download.sh1
7 files changed, 91 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
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]
diff --git a/homebrew/onscripter/_metadata/description b/homebrew/onscripter/_metadata/description
new file mode 100644
index 000000000..2cc9a95e9
--- /dev/null
+++ b/homebrew/onscripter/_metadata/description
@@ -0,0 +1 @@
+NScripter-compatible visual novel engine
diff --git a/homebrew/onscripter/_metadata/homepage b/homebrew/onscripter/_metadata/homepage
new file mode 100644
index 000000000..717bf6e12
--- /dev/null
+++ b/homebrew/onscripter/_metadata/homepage
@@ -0,0 +1 @@
+https://onscripter.osdn.jp/
diff --git a/homebrew/onscripter/_metadata/name b/homebrew/onscripter/_metadata/name
new file mode 100644
index 000000000..4d556cea0
--- /dev/null
+++ b/homebrew/onscripter/_metadata/name
@@ -0,0 +1 @@
+Onscripter
diff --git a/homebrew/onscripter/_metadata/version b/homebrew/onscripter/_metadata/version
new file mode 100644
index 000000000..585463949
--- /dev/null
+++ b/homebrew/onscripter/_metadata/version
@@ -0,0 +1 @@
+20181218
diff --git a/homebrew/onscripter/download.sh b/homebrew/onscripter/download.sh
new file mode 100755
index 000000000..e9aed5ec5
--- /dev/null
+++ b/homebrew/onscripter/download.sh
@@ -0,0 +1 @@
+wget https://onscripter.osdn.jp/onscripter-20181218.tar.gz \ No newline at end of file