Index: devel/Makefile =================================================================== --- devel/Makefile +++ devel/Makefile @@ -1399,6 +1399,8 @@ SUBDIR += oniguruma SUBDIR += oniguruma4 SUBDIR += oniguruma5 + SUBDIR += onscripter + SUBDIR += onscripter-1byte SUBDIR += open-beagle SUBDIR += open-usp-tukubai SUBDIR += opencl Index: devel/onscripter-1byte/Makefile =================================================================== --- /dev/null +++ devel/onscripter-1byte/Makefile @@ -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" Index: devel/onscripter-1byte/pkg-descr =================================================================== --- /dev/null +++ devel/onscripter-1byte/pkg-descr @@ -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 Index: devel/onscripter/Makefile =================================================================== --- /dev/null +++ devel/onscripter/Makefile @@ -0,0 +1,63 @@ +# $FreeBSD$ + +PORTNAME= onscripter +PORTVERSION= 20150208 +CATEGORIES= devel games +MASTER_SITES= http://onscripter.sourceforge.jp/ + +MAINTAINER= jbeich@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 + +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 Index: devel/onscripter/distinfo =================================================================== --- /dev/null +++ devel/onscripter/distinfo @@ -0,0 +1,2 @@ +SHA256 (onscripter-20150208.tar.gz) = b123fb56419d659c24e29e8bfab6fe184f1059581beeb2b5b5c2acd47c269d2d +SIZE (onscripter-20150208.tar.gz) = 235129 Index: devel/onscripter/files/patch-Makefile.Linux =================================================================== --- /dev/null +++ devel/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++ Index: devel/onscripter/pkg-descr =================================================================== --- /dev/null +++ devel/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: http://onscripter.sourceforge.jp/onscripter.html