Projects
Games
onscripter
onscripter.patch
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File onscripter.patch of Package onscripter
--- a/Makefile.Linux +++ b/Makefile.Linux @@ -15,24 +15,24 @@ TARGET = onscripter$(EXESUFFIX) \ sarconv$(EXESUFFIX) \ nsaconv$(EXESUFFIX) EXT_OBJS = +DEFS= +INCS= +LIBS= # mandatory: SDL, SDL_ttf, SDL_image, SDL_mixer, bzip2, libjpeg -DEFS = -DLINUX -INCS = `sdl-config --cflags` -LIBS = `sdl-config --libs` -lSDL_ttf -lSDL_image -lSDL_mixer -lbz2 -ljpeg -lm - -# recommended: smpeg -DEFS += -DUSE_SMPEG -INCS += `smpeg-config --cflags` -LIBS += `smpeg-config --libs` +DEFS += -DLINUX +INCS += `pkg-config --cflags sdl SDL_ttf SDL_image SDL_mixer bzip2 libjpeg` +LIBS += `pkg-config --libs sdl SDL_ttf SDL_image SDL_mixer bzip2 libjpeg` # recommended: fontconfig (to get default font) DEFS += -DUSE_FONTCONFIG -LIBS += -lfontconfig +INCS += `pkg-config --cflags fontconfig` +LIBS += `pkg-config --libs fontconfig` # recommended: OggVorbis DEFS += -DUSE_OGG_VORBIS -LIBS += -logg -lvorbis -lvorbisfile +INCS += `pkg-config --cflags ogg vorbis vorbisfile` +LIBS += `pkg-config --libs ogg vorbis vorbisfile` # optional: Integer OggVorbis #DEFS += -DUSE_OGG_VORBIS -DINTEGER_OGG_VORBIS @@ -43,15 +43,15 @@ DEFS += -DUSE_CDROM # optional: avifile DEFS += -DUSE_AVIFILE -INCS += `avifile-config --cflags` -LIBS += `avifile-config --libs` +INCS += `pkg-config --cflags avifile` +LIBS += `pkg-config --libs avifile` TARGET += simple_aviplay$(EXESUFFIX) EXT_OBJS += AVIWrapper$(OBJSUFFIX) # optional: lua DEFS += -DUSE_LUA -INCS += -I/usr/include/lua5.1 -LIBS += -llua5.1 +INCS += `pkg-config --cflags lua` +LIBS += `pkg-config --libs lua` EXT_OBJS += LUAHandler$(OBJSUFFIX) # optional: force screen width for PDA @@ -66,7 +66,7 @@ CC = g++ LD = g++ -o #CFLAGS = -g -Wall -pipe -c $(INCS) $(DEFS) -CFLAGS = -O3 -Wall -fomit-frame-pointer -pipe -c $(INCS) $(DEFS) +CFLAGS = $(EXTRA_CFLAGS) -c $(INCS) $(DEFS) # for GCC on PowerPC specfied #CC = powerpc-unknown-linux-gnu-g++
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.