pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
pkg/44555: New package: games/onscripter
>Number: 44555
>Category: pkg
>Synopsis: New package: games/onscripter
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: pkg-manager
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Sat Feb 12 02:55:00 +0000 2011
>Originator: ISIHARA Takanori
>Release: NetBSD/i386
>Organization:
Nagoya *BSD Users' Group :-)
>Environment:
NetBSD ishitPc9.home 5.1_STABLE NetBSD 5.1_STABLE (ISHITPC9) #63: Wed Jan 19
23:54:00 JST 2011
sysbuild%ishitPc9.home@localhost:/opt/sysbuild/netbsd-5/obj/i386/sys/arch/i386/compile/ISHITPC9
i386
>Description:
New package: games/onscripter.
Import from pkgsrc-wip-jp.
ONScripter is execute a script for NScripter.
NScripter is an engine for the creation of visual novels on Microsoft Windows.
>How-To-Repeat:
>Fix:
# This is a shell archive. Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file". Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
# .
# ./patches
# ./patches/patch-aa
# ./patches/patch-ab
# ./Makefile
# ./DESCR
# ./distinfo
# ./PLIST
#
echo c - .
mkdir -p . > /dev/null 2>&1
echo c - ./patches
mkdir -p ./patches > /dev/null 2>&1
echo x - ./patches/patch-aa
sed 's/^X//' >./patches/patch-aa << 'END-of-./patches/patch-aa'
X$NetBSD$
X
X--- Makefile.Linux.orig 2010-11-27 13:03:37.000000000 +0000
X+++ Makefile.Linux
X@@ -3,23 +3,27 @@
X # Makefile.Linux - Makefile rules for linux
X #
X
X-# without OggVorbis and AVI
X-#INCS = `sdl-config --cflags` `smpeg-config --cflags`
X-#LIBS = `sdl-config --libs` `smpeg-config --libs` -lSDL_ttf -lSDL_image
-lSDL_mixer -lbz2 -ljpeg -lm
X+# without OggVorbis, AVI and Lua
X+#INCS = `sdl-config --cflags` `smpeg-config --cflags` `pkg-config --cflags
SDL_ttf` `pkg-config --cflags SDL_image` `pkg-config --cflags SDL_mixer`
X+#LIBS = `sdl-config --libs` `smpeg-config --libs` `pkg-config --libs SDL_ttf`
`pkg-config --libs SDL_image` `pkg-config --libs SDL_mixer` -lbz2 -ljpeg -lm
X #DEFS = -DLINUX
X
X-INCS = `sdl-config --cflags` `smpeg-config --cflags` `avifile-config
--cflags` -I/usr/include/lua5.1
X-# with OggVorbis and AVI
X-LIBS = `sdl-config --libs` `smpeg-config --libs` `avifile-config --libs`
-lSDL_ttf -lSDL_image -lSDL_mixer -lbz2 -ljpeg -lm -logg -lvorbis -lvorbisfile
-llua5.1
X-#DEFS = -DLINUX -DUSE_AVIFILE -DUSE_OGG_VORBIS
X-DEFS = -DLINUX -DUSE_AVIFILE -DUSE_OGG_VORBIS -DUSE_LUA -DUSE_FONTCONFIG
X+# with OggVorbis, AVI and Lua + fontconfig
X+#INCS = `sdl-config --cflags` `smpeg-config --cflags` `avifile-config
--cflags` `pkg-config --cflags SDL_ttf` `pkg-config --cflags SDL_image`
`pkg-config --cflags SDL_mixer` `pkg-config --cflags ogg` `pkg-config --cflags
vorbis` `pkg-config --cflags vorbisfile` `pkg-config --cflags lua` `pkg-config
--cflags fontconfig`
X+#LIBS = `sdl-config --libs` `smpeg-config --libs` `avifile-config --libs`
`pkg-config --libs SDL_ttf` `pkg-config --libs SDL_image` `pkg-config --libs
SDL_mixer` -lbz2 -ljpeg -lm `pkg-config --libs ogg` `pkg-config --libs vorbis`
`pkg-config --libs vorbisfile` `pkg-config --libs lua` `pkg-config --libs
fontconfig`
X+#DEFS = -DLINUX -DUSE_AVIFILE -DUSE_OGG_VORBIS -DUSE_LUA -DUSE_FONTCONFIG
X+
X+# with OggVorbis and Lua + fontconfig
X+INCS = `sdl-config --cflags` `smpeg-config --cflags` `pkg-config --cflags
SDL_ttf` `pkg-config --cflags SDL_image` `pkg-config --cflags SDL_mixer`
`pkg-config --cflags ogg` `pkg-config --cflags vorbis` `pkg-config --cflags
vorbisfile` `pkg-config --cflags lua` `pkg-config --cflags fontconfig`
X+LIBS = `sdl-config --libs` `smpeg-config --libs` `pkg-config --libs SDL_ttf`
`pkg-config --libs SDL_image` `pkg-config --libs SDL_mixer` -lbz2 -ljpeg -lm
`pkg-config --libs ogg` `pkg-config --libs vorbis` `pkg-config --libs
vorbisfile` `pkg-config --libs lua` `pkg-config --libs fontconfig`
X+DEFS = -DLINUX -DUSE_OGG_VORBIS -DUSE_LUA -DUSE_FONTCONFIG
X
X # with Integer OggVorbis and AVI in PDA size
X-#LIBS = `sdl-config --libs` `smpeg-config --libs` `avifile-config --libs`
-lSDL_ttf -lSDL_image -lSDL_mixer -lbz2 -ljpeg -lm -lvorbisidec
X+#LIBS = `sdl-config --libs` `smpeg-config --libs` `avifile-config --libs`
`pkg-config --libs SDL_ttf` `pkg-config --libs SDL_image` `pkg-config --libs
SDL_mixer` -lbz2 -ljpeg -lm -lvorbisidec
X #DEFS = -DLINUX -DUSE_AVIFILE -DUSE_OGG_VORBIS -DINTEGER_OGG_VORBIS -DPDA
-DPDA_WIDTH=640
X
X # with OggVorbis and AVI and English mode
X-#LIBS = `sdl-config --libs` `smpeg-config --libs` `avifile-config --libs`
-lSDL_ttf -lSDL_image -lSDL_mixer -lbz2 -ljpeg -lm -logg -lvorbis -lvorbisfile
X+#LIBS = `sdl-config --libs` `smpeg-config --libs` `avifile-config --libs`
`avifile-config --libs` `pkg-config --libs SDL_ttf` `pkg-config --libs
SDL_image` `pkg-config --libs SDL_mixer` -lbz2 -ljpeg -lm -logg -lvorbis
-lvorbisfile
X #DEFS = -DLINUX -DUSE_AVIFILE -DUSE_OGG_VORBIS -DENABLE_1BYTE_CHAR
-DFORCE_1BYTE_CHAR
X
X EXESUFFIX =
X@@ -29,11 +33,11 @@ OBJSUFFIX = .o
X .SUFFIXES: $(OBJSUFFIX) .cpp .h
X
X # for GNU g++
X-CC = g++
X-LD = g++ -o
X+CC = @CXX@
X+LD = @CXX@ -o
X
X #CFLAGS = -g -Wall -pipe -c $(INCS) $(DEFS)
X-CFLAGS = -O3 -Wall -fomit-frame-pointer -pipe -c $(INCS) $(DEFS)
X+CFLAGS = -Wall @CXXFLAGS@ -c $(INCS) $(DEFS)
X
X # for GCC on PowerPC specfied
X #CC = powerpc-unknown-linux-gnu-g++
X@@ -47,11 +51,12 @@ CFLAGS = -O3 -Wall -fomit-frame-pointer
X
X #CFLAGS = -O3 -tpp6 -xK -c $(INCS) $(DEFS)
X
X-RM = rm -f
X+RM = @RM@
X
X-#TARGET = onscripter$(EXESUFFIX) sardec$(EXESUFFIX) nsadec$(EXESUFFIX)
sarconv$(EXESUFFIX) nsaconv$(EXESUFFIX)
X-TARGET = onscripter$(EXESUFFIX) sardec$(EXESUFFIX) nsadec$(EXESUFFIX)
sarconv$(EXESUFFIX) nsaconv$(EXESUFFIX) simple_aviplay$(EXESUFFIX)
X+TARGET = onscripter$(EXESUFFIX) sardec$(EXESUFFIX) nsadec$(EXESUFFIX)
sarconv$(EXESUFFIX) nsaconv$(EXESUFFIX)
X+#TARGET = onscripter$(EXESUFFIX) sardec$(EXESUFFIX) nsadec$(EXESUFFIX)
sarconv$(EXESUFFIX) nsaconv$(EXESUFFIX) simple_aviplay$(EXESUFFIX)
X #EXT_OBJS = AVIWrapper$(OBJSUFFIX)
X-EXT_OBJS = AVIWrapper$(OBJSUFFIX) LUAHandler$(OBJSUFFIX)
X+#EXT_OBJS = AVIWrapper$(OBJSUFFIX) LUAHandler$(OBJSUFFIX)
X+EXT_OBJS = LUAHandler$(OBJSUFFIX)
X
X include Makefile.onscripter
END-of-./patches/patch-aa
echo x - ./patches/patch-ab
sed 's/^X//' >./patches/patch-ab << 'END-of-./patches/patch-ab'
X$NetBSD$
X
X--- Makefile.onscripter.orig 2010-07-12 02:24:15.000000000 +0900
X+++ Makefile.onscripter
X@@ -64,25 +64,25 @@ PARSER_HEADER = BaseReader.h \
X
X ONSCRIPTER_HEADER = ONScripterLabel.h $(PARSER_HEADER)
X
X-ALL: $(TARGET)
X+all: $(TARGET)
X
X sardec$(EXESUFFIX): $(SARDEC_OBJS)
X- $(LD)$@ $(SARDEC_OBJS) $(LIBS)
X+ $(LD) $@ $(SARDEC_OBJS) $(LIBS)
X
X sarconv$(EXESUFFIX): $(SARCONV_OBJS)
X- $(LD)$@ $(SARCONV_OBJS) $(LIBS)
X+ $(LD) $@ $(SARCONV_OBJS) $(LIBS)
X
X nsadec$(EXESUFFIX): $(NSADEC_OBJS)
X- $(LD)$@ $(NSADEC_OBJS) $(LIBS)
X+ $(LD) $@ $(NSADEC_OBJS) $(LIBS)
X
X nsaconv$(EXESUFFIX): $(NSACONV_OBJS)
X- $(LD)$@ $(NSACONV_OBJS) $(LIBS)
X+ $(LD) $@ $(NSACONV_OBJS) $(LIBS)
X
X simple_aviplay$(EXESUFFIX): simple_aviplay$(OBJSUFFIX) AVIWrapper$(OBJSUFFIX)
X- $(LD)$@ simple_aviplay$(OBJSUFFIX) AVIWrapper$(OBJSUFFIX) $(LIBS)
X+ $(LD) $@ simple_aviplay$(OBJSUFFIX) AVIWrapper$(OBJSUFFIX) $(LIBS)
X
X onscripter$(EXESUFFIX): $(ONSCRIPTER_OBJS)
X- $(LD)$@ $(ONSCRIPTER_OBJS) $(LIBS)
X+ $(LD) $@ $(ONSCRIPTER_OBJS) $(LIBS)
X
X clean:
X -$(RM) $(TARGET)
END-of-./patches/patch-ab
echo x - ./Makefile
sed 's/^X//' >./Makefile << 'END-of-./Makefile'
X# $NetBSD$
X#
X
XDISTNAME= onscripter-20110111
XCATEGORIES= games
XMASTER_SITES= http://onscripter.sourceforge.jp/
X
XMAINTAINER= pkgsrc-users%NetBSD.org@localhost
XHOMEPAGE= http://onscripter.sourceforge.jp/onscripter.html
XCOMMENT= Interpreter to execute a script for NScripter
XLICENSE= gnu-gpl-v2
X
XPKG_DESTDIR_SUPPORT= user-destdir
X
XUSE_LANGUAGES= c++
XNO_CONFIGURE= yes
X
XINSTALLATION_DIRS= bin share/doc/onscripter
X
Xpost-patch:
X ${SED} -e 's!@RM@!${RM}!g; \
X s!@CXX@!${CXX:Q}!g; \
X s!@LD@!${LD:Q}!g; \
X s!@CXXFLAGS@!${CXXFLAGS:Q}!g' \
X < ${WRKSRC}/Makefile.Linux \
X > ${WRKSRC}/Makefile
X
Xdo-install:
X for f in nsaconv nsadec onscripter sarconv sardec; \
X do ${INSTALL_PROGRAM} ${WRKSRC}/$$f ${DESTDIR}${PREFIX}/bin; \
X done
X ${INSTALL_DATA} ${WRKSRC}/README
${DESTDIR}${PREFIX}/share/doc/onscripter
X for f in ogapee.css onscripter.html; \
X do ${INSTALL_DATA} ${WRKSRC}/www/$$f
${DESTDIR}${PREFIX}/share/doc/onscripter; \
X done
X
X.include "../../archivers/bzip2/buildlink3.mk"
X.include "../../audio/libvorbis/buildlink3.mk"
X.include "../../audio/SDL_mixer/buildlink3.mk"
X.include "../../devel/SDL/buildlink3.mk"
X.include "../../devel/SDL_ttf/buildlink3.mk"
X.include "../../fonts/fontconfig/buildlink3.mk"
X.include "../../lang/lua/buildlink3.mk"
X.include "../../graphics/jpeg/buildlink3.mk"
X.include "../../graphics/SDL_image/buildlink3.mk"
X.include "../../graphics/freetype2/buildlink3.mk"
X.include "../../multimedia/libogg/buildlink3.mk"
X.include "../../multimedia/smpeg/buildlink3.mk"
X.include "../../mk/bsd.pkg.mk"
END-of-./Makefile
echo x - ./DESCR
sed 's/^X//' >./DESCR << 'END-of-./DESCR'
XONScripter is execute a script for NScripter.
XNScripter is an engine for the creation of visual novels on Microsoft Windows.
END-of-./DESCR
echo x - ./distinfo
sed 's/^X//' >./distinfo << 'END-of-./distinfo'
X$NetBSD$
X
XSHA1 (onscripter-20110111.tar.gz) = 095ccc2ca3a27e9c712807b47baf6af5b330f9ec
XRMD160 (onscripter-20110111.tar.gz) = 43a7c505efed0570b1d93aa277faecdd85a7531e
XSize (onscripter-20110111.tar.gz) = 222312 bytes
XSHA1 (patch-aa) = 341b3d9b9852c70d1d9640f5a62943dc1aa82229
XSHA1 (patch-ab) = bc023a8a3051468788049d7782b66f2b0eb6d6a7
END-of-./distinfo
echo x - ./PLIST
sed 's/^X//' >./PLIST << 'END-of-./PLIST'
X@comment $NetBSD$
Xbin/nsaconv
Xbin/nsadec
Xbin/onscripter
Xbin/sarconv
Xbin/sardec
Xshare/doc/onscripter/README
Xshare/doc/onscripter/ogapee.css
Xshare/doc/onscripter/onscripter.html
END-of-./PLIST
exit
Home |
Main Index |
Thread Index |
Old Index