diff options
author | Mike Frysinger <vapier@gentoo.org> | 2006-09-30 19:04:08 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2006-09-30 19:04:08 +0000 |
commit | cb6b72f06f942385dbcc8067057ef6bcf883ec05 (patch) | |
tree | 14cdbe8765ec91fde417750e486d76b69bb25593 /media-video/SDLcam/files | |
parent | arm stable (diff) | |
download | gentoo-2-cb6b72f06f942385dbcc8067057ef6bcf883ec05.tar.gz gentoo-2-cb6b72f06f942385dbcc8067057ef6bcf883ec05.tar.bz2 gentoo-2-cb6b72f06f942385dbcc8067057ef6bcf883ec05.zip |
Fixup more of the build system and fix png error #149540 by Carl Fongheiser.
(Portage version: 2.1.2_pre2)
Diffstat (limited to 'media-video/SDLcam/files')
4 files changed, 75 insertions, 0 deletions
diff --git a/media-video/SDLcam/files/SDLcam-0.7.3-build.patch b/media-video/SDLcam/files/SDLcam-0.7.3-build.patch new file mode 100644 index 000000000000..ecbead404887 --- /dev/null +++ b/media-video/SDLcam/files/SDLcam-0.7.3-build.patch @@ -0,0 +1,60 @@ +--- Makefile ++++ Makefile +@@ -1,13 +1,14 @@ + CC = gcc +-CPP = g++ +-LD = $(CPP) +-LDFLAGS = `sdl-config --libs` `xml2-config --libs` -lSDL_image -lSDL_ttf -lm -lxml2 -rdynamic -ljpeg -ldl ++CXX = g++ ++LD = $(CC) ++LDFLAGS += $(shell sdl-config --libs) $(shell xml2-config --libs) -lSDL_image -lSDL_ttf -lm -lxml2 -ljpeg -ldl -lpng + PROG = SDLcam + +-FEATURES = -DMMX -DTIMER ++CPPFLAGS = -DMMX -DTIMER -DPROG_VERSION=\"0.7.3\" + +-MMXFLAGS = -Wshadow -Wall -Wstrict-prototypes `sdl-config --cflags` `xml2-config --cflags` -DPROG_VERSION=\"0.7.3\" $(FEATURES) +-CFLAGS = $(MMXFLAGS) -g ++MMXFLAGS = -Wshadow -Wall $(shell sdl-config --cflags) $(shell xml2-config --cflags) ++CFLAGS += $(MMXFLAGS) $(CPPFLAGS) -Wstrict-prototypes ++CXXFLAGS += $(MMXFLAGS) $(CPPFLAGS) + + + OBJS = main.o init.o SDL_v4l.o SDL_v4l_filters.o webcam.o interface.o configuration.o config_file.o SDL_v4l_filters_thomas.o dump_thomas.o capture.o ftp-upload.o logo.o parser.o misc.o xml_theme.o dyn_misc.o +@@ -31,28 +32,28 @@ + ./install + + %.o: %.cpp +- $(CC) $(CFLAGS) -c $< ++ $(CXX) $(CXXFLAGS) -c $< + + %.o: %.c +- $(CPP) $(CFLAGS) -c $< ++ $(CC) $(CFLAGS) -c $< + + sources/%.so: sources/%.cpp +- $(CPP) $(FEATURES) -g -fPIC -shared -o $@ $? ++ $(CXX) $(CXXFLAGS) -fPIC -shared -o $@ $? $(LDFLAGS) + + sources/jpeg.so: sources/jpeg.cpp +- $(CPP) $(FEATURES) -g -fPIC -shared -o $@ $? -ljpeg ++ $(CXX) $(CXXFLAGS) -fPIC -shared -o $@ $? -ljpeg $(LDFLAGS) + + filter/%.so: filter/%.c +- $(CC) $(FEATURES) -g -fPIC -shared -o $@ $? ++ $(CC) $(CFLAGS) -fPIC -shared -o $@ $? $(LDFLAGS) + + capture/mpeg.so: capture/mpeg.c +- - $(CC) $(FEATURES) -g -fPIC -shared -o $@ $? -lfame ++ $(CC) $(CFLAGS) -fPIC -shared -o $@ $? -lfame $(LDFLAGS) + + capture/divx.so: capture/divx.c +- - $(CC) $(FEATURES) -g -fPIC -shared -o $@ $? -ldivxencore ++ $(CC) $(CFLAGS) -fPIC -shared -o $@ $? -ldivxencore $(LDFLAGS) + + capture/divx2.so: capture/divx2.cpp +- - $(CPP) $(FEATURES) -g -fPIC -shared -o $@ $? ++ $(CXX) $(CXXFLAGS) -fPIC -shared -o $@ $? $(LDFLAGS) + + SDLcam: $(OBJS) + $(LD) $(LDFLAGS) $(OBJS) -o $(PROG) diff --git a/media-video/SDLcam/files/SDLcam-0.7.3-prototypes.patch b/media-video/SDLcam/files/SDLcam-0.7.3-prototypes.patch index c63678985c58..05056f1e96ca 100644 --- a/media-video/SDLcam/files/SDLcam-0.7.3-prototypes.patch +++ b/media-video/SDLcam/files/SDLcam-0.7.3-prototypes.patch @@ -19,3 +19,14 @@ void SDL_v4l_Reorder_cleanup (void); int SDL_v4l_Reorder (const SDL_v4l_image *SRC, SDL_v4l_image *DST,int off_x,int off_y,int typ,int radius,double effekt); #ifdef __cplusplus +--- SDL_v4l_filters.c ++++ SDL_v4l_filters.c +@@ -340,7 +340,7 @@ + SDL_v4l_Reorder_cleanup (); + }}} + +-void LineRGB (SDL_v4l_image *image, unsigned int X1, unsigned int Y1, unsigned int x2, unsigned int y2, unsigned char r, unsigned char g, unsigned char b ) {{{ ++void LineRGB (SDL_v4l_image *image, int X1, int Y1, int x2, int y2, unsigned char r, unsigned char g, unsigned char b ) {{{ + int diry = image->w; + int xinc = 1; + int yinc = 1; diff --git a/media-video/SDLcam/files/digest-SDLcam-0.7.3-r1 b/media-video/SDLcam/files/digest-SDLcam-0.7.3-r1 index a9c2256dddd8..4bd96c67556f 100644 --- a/media-video/SDLcam/files/digest-SDLcam-0.7.3-r1 +++ b/media-video/SDLcam/files/digest-SDLcam-0.7.3-r1 @@ -1 +1,3 @@ MD5 82b7d7e7e6f4d6fe1cd2c4ab97232fd8 SDLcam-0.7.3.tar.gz 299421 +RMD160 bb59dadae8a2ac4f5f86b16abb298a498e25a5eb SDLcam-0.7.3.tar.gz 299421 +SHA256 227e44ab23fd3081e170a61fac81f8920cf8f4c34d92ea57ce61fd056674c6a4 SDLcam-0.7.3.tar.gz 299421 diff --git a/media-video/SDLcam/files/digest-SDLcam-0.7.3-r2 b/media-video/SDLcam/files/digest-SDLcam-0.7.3-r2 index a9c2256dddd8..4bd96c67556f 100644 --- a/media-video/SDLcam/files/digest-SDLcam-0.7.3-r2 +++ b/media-video/SDLcam/files/digest-SDLcam-0.7.3-r2 @@ -1 +1,3 @@ MD5 82b7d7e7e6f4d6fe1cd2c4ab97232fd8 SDLcam-0.7.3.tar.gz 299421 +RMD160 bb59dadae8a2ac4f5f86b16abb298a498e25a5eb SDLcam-0.7.3.tar.gz 299421 +SHA256 227e44ab23fd3081e170a61fac81f8920cf8f4c34d92ea57ce61fd056674c6a4 SDLcam-0.7.3.tar.gz 299421 |