svn commit: r378627 - in head/devel: . onscripter onscripter-1byte onscripter/files
Jan Beich
jbeich at FreeBSD.org
Sat Feb 7 23:54:39 UTC 2015
Author: jbeich
Date: Sat Feb 7 23:54:36 2015
New Revision: 378627
URL: https://svnweb.freebsd.org/changeset/ports/378627
QAT: https://qat.redports.org/buildarchive/r378627/
Log:
Add new port: devel/onscripter and devel/onscripter-1byte
PR: 196654
Differential Revision: https://reviews.freebsd.org/D1800
Approved by: bapt (mentor)
Open source clone of NScripter, a game engine used to create and
perform visual novels.
WWW: http://onscripter.sourceforge.jp/onscripter.html
Added:
head/devel/onscripter/
head/devel/onscripter-1byte/
head/devel/onscripter-1byte/Makefile (contents, props changed)
head/devel/onscripter-1byte/pkg-descr (contents, props changed)
head/devel/onscripter/Makefile (contents, props changed)
head/devel/onscripter/distinfo (contents, props changed)
head/devel/onscripter/files/
head/devel/onscripter/files/patch-Makefile.Linux (contents, props changed)
head/devel/onscripter/pkg-descr (contents, props changed)
Modified:
head/devel/Makefile
Modified: head/devel/Makefile
==============================================================================
--- head/devel/Makefile Sat Feb 7 23:46:56 2015 (r378626)
+++ head/devel/Makefile Sat Feb 7 23:54:36 2015 (r378627)
@@ -1399,6 +1399,8 @@
SUBDIR += oniguruma
SUBDIR += oniguruma4
SUBDIR += oniguruma5
+ SUBDIR += onscripter
+ SUBDIR += onscripter-1byte
SUBDIR += open-beagle
SUBDIR += open-usp-tukubai
SUBDIR += opencl
Added: head/devel/onscripter-1byte/Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/onscripter-1byte/Makefile Sat Feb 7 23:54:36 2015 (r378627)
@@ -0,0 +1,19 @@
+# $FreeBSD$
+
+PKGNAMESUFFIX= -1byte
+
+COMMENT= ONScripter with ${ENGLISH_DESC:tl} support
+
+PLIST_FILES= bin/${PKGBASE}
+
+OPTIONS_SLAVE= ENGLISH
+OPTIONS_EXCLUDE=DOCS
+
+MASTERDIR= ${.CURDIR}/../onscripter
+DESCR= ${.CURDIR}/pkg-descr
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} \
+ ${STAGEDIR}${PREFIX}/bin/${PKGBASE}
+
+.include "${MASTERDIR}/Makefile"
Added: head/devel/onscripter-1byte/pkg-descr
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/onscripter-1byte/pkg-descr Sat Feb 7 23:54:36 2015 (r378627)
@@ -0,0 +1,6 @@
+Open source clone of NScripter, a game engine used to create and
+perform visual novels.
+
+This package provides 1-byte version which is able to run English games.
+
+WWW: http://onscripter.sourceforge.jp/onscripter.html
Added: head/devel/onscripter/Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/onscripter/Makefile Sat Feb 7 23:54:36 2015 (r378627)
@@ -0,0 +1,63 @@
+# $FreeBSD$
+
+PORTNAME= onscripter
+PORTVERSION= 20150208
+CATEGORIES= devel games
+MASTER_SITES= http://onscripter.sourceforge.jp/
+
+MAINTAINER= jbeich at FreeBSD.org
+COMMENT?= Visual novel engine compatible with NScripter
+
+LICENSE= GPLv2 # or any later version
+
+LIB_DEPENDS= libsmpeg.so:${PORTSDIR}/multimedia/smpeg \
+ libfontconfig.so:${PORTSDIR}/x11-fonts/fontconfig
+RUN_DEPENDS= sdl_ttf>=2.0.11_6:${PORTSDIR}/graphics/sdl_ttf
+
+USES= gmake
+USE_SDL= image mixer ttf
+MAKEFILE= Makefile.Linux
+ALL_TARGET= ALL
+MAKE_ARGS= RM="${RM}"
+LDFLAGS+= -Wl,--as-needed
+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
+
+.include <bsd.port.options.mk>
+
+post-patch:
+.if ! ${PORT_OPTIONS:MLUA}
+ @${REINPLACE_CMD} '/optional: lua/,/^$$/d' ${WRKSRC}/${MAKEFILE}
+.endif
+ @${REINPLACE_CMD} -e 's/$$(LIBS)/$$(LDFLAGS) &/' \
+ ${WRKSRC}/Makefile.onscripter
+
+.if !target(do-install)
+do-install:
+.for f in ${PLIST_FILES:T}
+ ${INSTALL_PROGRAM} ${WRKSRC}/${f} ${STAGEDIR}${PREFIX}/bin
+.endfor
+.if ${PORT_OPTIONS:MDOCS}
+ ${MKDIR} ${STAGEDIR}${DOCSDIR}
+ (cd ${WRKSRC}/www && ${COPYTREE_SHARE} \
+ . ${STAGEDIR}${DOCSDIR} \
+ "! -name *.orig ! -name *.bak")
+.endif
+.endif # do-install
+
+.include <bsd.port.mk>
Added: head/devel/onscripter/distinfo
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/onscripter/distinfo Sat Feb 7 23:54:36 2015 (r378627)
@@ -0,0 +1,2 @@
+SHA256 (onscripter-20150208.tar.gz) = b123fb56419d659c24e29e8bfab6fe184f1059581beeb2b5b5c2acd47c269d2d
+SIZE (onscripter-20150208.tar.gz) = 235129
Added: head/devel/onscripter/files/patch-Makefile.Linux
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/onscripter/files/patch-Makefile.Linux Sat Feb 7 23:54:36 2015 (r378627)
@@ -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++
Added: head/devel/onscripter/pkg-descr
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/onscripter/pkg-descr Sat Feb 7 23:54:36 2015 (r378627)
@@ -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: http://onscripter.sourceforge.jp/onscripter.html
More information about the svn-ports-all
mailing list