summaryrefslogtreecommitdiff
path: root/games/onscripter
diff options
context:
space:
mode:
authorJan Beich <jbeich@FreeBSD.org>2018-09-03 00:21:45 +0000
committerJan Beich <jbeich@FreeBSD.org>2018-09-03 00:21:45 +0000
commit5e498e96a22616ea2a9f3d8e373ab54369533d03 (patch)
tree6daef9ed5efb7ede0efd26c8e8dbcdfa9d747933 /games/onscripter
parentAdd pylint1 1.9.3 (copied from pylint) (diff)
Reorganize some my ports for better discoverability
devel/onscripter{,-1byte} -> games/onscripter{,-1byte} devel/ponscripter-sekai -> games/ponscripter-sekai devel/renpy{,6} -> games/renpy{,6} devel/rlvm -> games/rlvm dns/openmdns -> net/openmdns (where Bonjour and Avahi are)
Notes
Notes: svn path=/head/; revision=478837
Diffstat (limited to 'games/onscripter')
-rw-r--r--games/onscripter/Makefile60
-rw-r--r--games/onscripter/distinfo3
-rw-r--r--games/onscripter/files/patch-Makefile.Linux48
-rw-r--r--games/onscripter/pkg-descr6
4 files changed, 117 insertions, 0 deletions
diff --git a/games/onscripter/Makefile b/games/onscripter/Makefile
new file mode 100644
index 000000000000..e62a6ecf4316
--- /dev/null
+++ b/games/onscripter/Makefile
@@ -0,0 +1,60 @@
+# $FreeBSD$
+
+PORTNAME= onscripter
+PORTVERSION= 20180409
+CATEGORIES= games
+MASTER_SITES= http://onscripter.osdn.jp/
+
+MAINTAINER= jbeich@FreeBSD.org
+COMMENT?= Visual novel engine compatible with NScripter
+
+LICENSE= GPLv2+
+
+LIB_DEPENDS= libsmpeg.so:multimedia/smpeg \
+ libfontconfig.so:x11-fonts/fontconfig
+RUN_DEPENDS= sdl_ttf>=2.0.11_6:graphics/sdl_ttf
+
+USES= gmake jpeg
+USE_SDL= image mixer ttf
+MAKEFILE= Makefile.Linux
+ALL_TARGET= ALL
+MAKE_ARGS= RM="${RM}"
+LDFLAGS+= -Wl,--as-needed # limit jpeg to bin/*conv
+PORTDOCS= *
+PLIST_FILES?= bin/nsaconv \
+ bin/nsadec \
+ bin/onscripter \
+ bin/sarconv \
+ bin/sardec
+
+OPTIONS_DEFINE= DOCS ENGLISH LUA PDA UTF8
+OPTIONS_DEFAULT=LUA UTF8
+OPTIONS_EXCLUDE?=ENGLISH
+
+ENGLISH_DESC= Single-byte character mode
+ENGLISH_CFLAGS?=-DENABLE_1BYTE_CHAR -DFORCE_1BYTE_CHAR
+LUA_USES= lua
+PDA_DESC= Fit window size to screen on small PDA devices
+PDA_CFLAGS?= -DPDA_AUTOSIZE
+UTF8_CFLAGS?= -DUTF8_CAPTION -DUTF8_FILESYSTEM
+
+post-patch:
+ @${REINPLACE_CMD} -e 's/$$(LIBS)/$$(LDFLAGS) &/' \
+ ${WRKSRC}/Makefile.onscripter
+
+post-patch-LUA-off:
+ @${REINPLACE_CMD} '/optional: lua/,/^$$/d' ${WRKSRC}/${MAKEFILE}
+
+.if !target(do-install)
+do-install:
+.for f in ${PLIST_FILES:T}
+ ${INSTALL_PROGRAM} ${WRKSRC}/${f} ${STAGEDIR}${PREFIX}/bin
+.endfor
+
+post-install-DOCS-on:
+ (cd ${WRKSRC}/www && ${COPYTREE_SHARE} \
+ . ${STAGEDIR}${DOCSDIR} \
+ "! -name *.orig ! -name *.bak")
+.endif # do-install
+
+.include <bsd.port.mk>
diff --git a/games/onscripter/distinfo b/games/onscripter/distinfo
new file mode 100644
index 000000000000..92039f95d04e
--- /dev/null
+++ b/games/onscripter/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1523240521
+SHA256 (onscripter-20180409.tar.gz) = 8ee9eb388a3fd5b1877ea5fc93803265f6f0ef566c461c4d9742ab7da86d2e6f
+SIZE (onscripter-20180409.tar.gz) = 245838
diff --git a/games/onscripter/files/patch-Makefile.Linux b/games/onscripter/files/patch-Makefile.Linux
new file mode 100644
index 000000000000..f4d17708f5c9
--- /dev/null
+++ b/games/onscripter/files/patch-Makefile.Linux
@@ -0,0 +1,48 @@
+--- Makefile.Linux~
++++ Makefile.Linux
+@@ -30,28 +30,13 @@ LIBS += `smpeg-config --libs`
+ DEFS += -DUSE_FONTCONFIG
+ LIBS += -lfontconfig
+
+-# recommended: OggVorbis
+-DEFS += -DUSE_OGG_VORBIS
+-LIBS += -logg -lvorbis -lvorbisfile
+-
+-# optional: Integer OggVorbis
+-#DEFS += -DUSE_OGG_VORBIS -DINTEGER_OGG_VORBIS
+-#LIBS += -lvorbisidec
+-
+ # optional: support CD audio
+ DEFS += -DUSE_CDROM
+
+-# optional: avifile
+-DEFS += -DUSE_AVIFILE
+-INCS += `avifile-config --cflags`
+-LIBS += `avifile-config --libs`
+-TARGET += simple_aviplay$(EXESUFFIX)
+-EXT_OBJS += AVIWrapper$(OBJSUFFIX)
+-
+ # optional: lua
+ DEFS += -DUSE_LUA
+-INCS += -I/usr/include/lua5.1
+-LIBS += -llua5.1
++INCS += -I$(LUA_INCDIR)
++LIBS += -llua-$(LUA_VER)
+ EXT_OBJS += LUAHandler$(OBJSUFFIX)
+
+ # optional: force screen width for PDA
+@@ -62,11 +47,10 @@ EXT_OBJS += LUAHandler$(OBJSUFFIX)
+
+
+ # for GNU g++
+-CC = g++
+-LD = g++ -o
++CC = $(CXX)
++LD = $(CXX) -o
+
+-#CFLAGS = -g -Wall -pipe -c $(INCS) $(DEFS)
+-CFLAGS = -O3 -Wall -fomit-frame-pointer -pipe -c $(INCS) $(DEFS)
++CFLAGS += -Wall -c $(INCS) $(DEFS)
+
+ # for GCC on PowerPC specfied
+ #CC = powerpc-unknown-linux-gnu-g++
diff --git a/games/onscripter/pkg-descr b/games/onscripter/pkg-descr
new file mode 100644
index 000000000000..e48fa24e973e
--- /dev/null
+++ b/games/onscripter/pkg-descr
@@ -0,0 +1,6 @@
+Open source clone of NScripter, a game engine used to create and
+perform visual novels.
+
+This package provides the version to run Japanese games.
+
+WWW: https://onscripter.osdn.jp/onscripter.html