1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-01 01:17:02 +00:00

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
This commit is contained in:
Jan Beich 2015-02-07 23:54:36 +00:00
parent 4d0d7bb602
commit a1c0e3f0d2
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=378627
7 changed files with 146 additions and 0 deletions

View File

@ -1399,6 +1399,8 @@
SUBDIR += oniguruma
SUBDIR += oniguruma4
SUBDIR += oniguruma5
SUBDIR += onscripter
SUBDIR += onscripter-1byte
SUBDIR += open-beagle
SUBDIR += open-usp-tukubai
SUBDIR += opencl

View File

@ -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"

View File

@ -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

63
devel/onscripter/Makefile Normal file
View File

@ -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 <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>

View File

@ -0,0 +1,2 @@
SHA256 (onscripter-20150208.tar.gz) = b123fb56419d659c24e29e8bfab6fe184f1059581beeb2b5b5c2acd47c269d2d
SIZE (onscripter-20150208.tar.gz) = 235129

View File

@ -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++

View File

@ -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