Index: devel/Makefile =================================================================== --- devel/Makefile +++ devel/Makefile @@ -3552,6 +3552,7 @@ SUBDIR += poco SUBDIR += poco-devel SUBDIR += poco-ssl + SUBDIR += ponscripter-sekai SUBDIR += popt SUBDIR += poslib SUBDIR += powerpc64-binutils Index: devel/ponscripter-sekai/Makefile =================================================================== --- /dev/null +++ devel/ponscripter-sekai/Makefile @@ -0,0 +1,79 @@ +# $FreeBSD$ + +PORTNAME= ponscripter-sekai +PORTVERSION= 0.0.6 +CATEGORIES= devel games + +MAINTAINER= jbeich@FreeBSD.org +COMMENT= NScripter-style novel-game interpreter + +LICENSE= GPLv2 # or any later version + +LIB_DEPENDS= libvorbisfile.so:${PORTSDIR}/audio/libvorbis \ + libsmpeg2.so:${PORTSDIR}/multimedia/smpeg2 \ + libfreetype.so:${PORTSDIR}/print/freetype2 + +CONFLICTS= ponscripter-[0-9]* # doesn't exist yet + +USE_GITHUB= yes +GH_ACCOUNT= sekaiproject +GH_PROJECT= ${PORTNAME:S/sekai/fork/} +GH_TAGNAME= v${PORTVERSION} +GH_COMMIT= 3a8d107 + +USES= compiler:c++11-lang gmake shebangfix +USE_SDL= image2 mixer2 +EXTRACT_AFTER_ARGS=--exclude src/extlib +SHEBANG_FILES= util/xml-template +HAS_CONFIGURE= yes +# XXX Pretend clang is like lang/gcc and can USE_CPU_GFX +CONFIGURE_ENV= CC_VER="4.8" CC="${CC} ${CFLAGS}" CXX="${CXX} ${CXXFLAGS}" \ + CPATH="${LOCALBASE}/include" LIBRARY_PATH="${LOCALBASE}/lib" +CONFIGURE_ARGS= --prefix="${STAGEDIR}${PREFIX}" --unsupported-compiler +LDFLAGS+= -Wl,--as-needed +PORTDOCS= BUGS CHANGES MANUAL README TODO +PLIST_FILES= bin/ponscr \ + share/emacs/site-lisp/ponscripter-mode.el + +OPTIONS_DEFINE= MANPAGES +OPTIONS_DEFAULT=MANPAGES + +MANPAGES_BUILD_DEPENDS= xmlto:${PORTSDIR}/textproc/xmlto +MANPAGES_PLIST_FILES=\ + man/man6/ponscr.6.gz \ + man/man7/ponscr-ext.7.gz \ + man/man7/ponscr-syntax.7.gz \ + man/man7/ponscripter.7.gz + +.include + +post-patch: + @${REINPLACE_CMD} -e '/^ifdef DEBUG/,/^$$/d' \ + -e 's/$$STRIPFLAG/${STRIP}/' \ + ${WRKSRC}/configure + @${REINPLACE_CMD} -e 's/$$(LIBS)/$$(LDFLAGS) &/' \ + ${WRKSRC}/src/Makefile.ponscripter +.if ! ${PORT_OPTIONS:MMANPAGES} + @${REINPLACE_CMD} -e '/install-man/d' \ + -e 's/xmlto/${FALSE}/' \ + ${WRKSRC}/configure +.endif + +post-build: +.if ${PORT_OPTIONS:MMANPAGES} + # Remove extraneous whitespace to unbreak manpage syntax + ${REINPLACE_CMD} -e 's/^[[:space:]]*//; /^$$/d' \ + ${WRKSRC}/doc/*.[0-9] +.endif + +post-install: + ${INSTALL_DATA} ${WRKSRC}/misc/ponscripter-mode.el \ + ${STAGEDIR}${PREFIX}/share/emacs/site-lisp +.if ${PORT_OPTIONS:MDOCS} + ${MKDIR} ${STAGEDIR}${DOCSDIR} +. for f in ${PORTDOCS} + ${INSTALL_MAN} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR} +. endfor +.endif + +.include Index: devel/ponscripter-sekai/distinfo =================================================================== --- /dev/null +++ devel/ponscripter-sekai/distinfo @@ -0,0 +1,2 @@ +SHA256 (ponscripter-sekai-0.0.6.tar.gz) = 45332bb95347d20bde174753cdd2b2c4ee885a1390c9932dea90c9d8ad8b66ef +SIZE (ponscripter-sekai-0.0.6.tar.gz) = 30564193 Index: devel/ponscripter-sekai/files/patch-doc_ponscr-ext.7.xml =================================================================== --- /dev/null +++ devel/ponscripter-sekai/files/patch-doc_ponscr-ext.7.xml @@ -0,0 +1,105 @@ +--- doc/ponscr-ext.7.xml~ ++++ doc/ponscr-ext.7.xml +@@ -282,47 +282,61 @@ xmlns:xl="http://www.w3.org/1999/xlink"> + + punctuation + +- +- +-defines the following shortcuts: +-.IP "" 2 +-.BR ... \ \-> +-ellipsis +-.br +-.BR \-\- +-\-> en dash +-.br +-.BR \-\-\- +-\-> em dash +-.br +-.BR (c) +-\-> copyright symbol +-.br +-.BR (r) +-\-> registered trademark symbol +-.br +-.BR (tm) +-\-> trademark symbol +-.br +-.BR ++ +-\-> dagger +-.br +-.BR +++ +-\-> double dagger +-.br +-.BR ** +-\-> bullet +-.br +-.BR %_ +-\-> non-breaking space +-.br +-.BR %\- +-\-> non-breaking hyphen +-.br +-.BR %\. \ \-> +-thin space +- +- ++ Defines the following shortcuts: ++ ++ ++ ++ ++ ... ++ ellipsis ++ ++ ++ -- ++ en dash ++ ++ ++ --- ++ em dash ++ ++ ++ (c) ++ copyright symbol ++ ++ ++ (r) ++ registered trademark symbol ++ ++ ++ (tm) ++ trademark symbol ++ ++ ++ ++ ++ dagger ++ ++ ++ +++ ++ double dagger ++ ++ ++ ** ++ bullet ++ ++ ++ %_ ++ non-breaking space ++ ++ ++ %- ++ non-breaking hyphen ++ ++ ++ %. ++ thin space ++ ++ ++ ++ + + + Index: devel/ponscripter-sekai/pkg-descr =================================================================== --- /dev/null +++ devel/ponscripter-sekai/pkg-descr @@ -0,0 +1,13 @@ +Ponscripter is an interpreter for visual-novel-type games, derived from +the NScripter design but modified significantly to improve support for +Western languages (at the cost of diminished support for Japanese). + +Ponscripter is a fork of ONScripter-En that drops any attempt to remain +in synch with the upstream source code, and instead concentrates on +providing the best possible support for Western languages. It is no +longer fully NScripter-compatible, but remains an easy target to port +NScripter games to when localising them. + +This fork takes advantage of SDL2 and improves Steam integration. + +WWW: https://github.com/sekaiproject/ponscripter-fork