ports/games/onscripter/files/patch-Makefile.Linux
Jan Beich 5e498e96a2 Reorganize some my ports for better discoverability
devel/onscripter{,-1byte} -> games/onscripter{,-1byte}
devel/ponscripter-sekai -> games/ponscripter-sekai
devel/renpy{,6} -> games/renpy{,6}
devel/rlvm -> games/rlvm
dns/openmdns -> net/openmdns (where Bonjour and Avahi are)
2018-09-03 00:21:45 +00:00

48 lines
1.1 KiB
Text

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