From a1c0e3f0d2d11cd31225056c5b17c5760c740d45 Mon Sep 17 00:00:00 2001 From: Jan Beich Date: Sat, 7 Feb 2015 23:54:36 +0000 Subject: 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 --- devel/onscripter/files/patch-Makefile.Linux | 48 +++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 devel/onscripter/files/patch-Makefile.Linux (limited to 'devel/onscripter/files/patch-Makefile.Linux') diff --git a/devel/onscripter/files/patch-Makefile.Linux b/devel/onscripter/files/patch-Makefile.Linux new file mode 100644 index 000000000000..f4d17708f5c9 --- /dev/null +++ b/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++ -- cgit v1.2.3