Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 182665 Details for
Bug 258895
sfml-1.4.ebuild (New Package) - Simple and fast multimedia library
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Removes bundled libpng, libjpeg, GLEW and zlib
libsfml-1.4-deps.patch (text/plain), 2.84 KB, created by
Sebastian Pipping
on 2009-02-20 15:02:45 UTC
(
hide
)
Description:
Removes bundled libpng, libjpeg, GLEW and zlib
Filename:
MIME Type:
Creator:
Sebastian Pipping
Created:
2009-02-20 15:02:45 UTC
Size:
2.84 KB
patch
obsolete
>diff --git a/src/SFML/Graphics/Makefile b/src/SFML/Graphics/Makefile >index f1cc6ff..4243aa4 100755 >--- a/src/SFML/Graphics/Makefile >+++ b/src/SFML/Graphics/Makefile >@@ -1,15 +1,7 @@ > SRC = $(wildcard *.cpp) >-SRCGLEW = $(wildcard ./GLEW/*.c) >-SRCJPEG = $(wildcard ./libjpeg/*.c) >-SRCPNG = $(wildcard ./libpng/*.c) > SRCSOIL = $(wildcard ./SOIL/*.c) >-SRCZLIB = $(wildcard ./zlib/*.c) > OBJ = $(SRC:.cpp=.o) >-OBJGLEW = $(SRCGLEW:.c=.o) >-OBJJPEG = $(SRCJPEG:.c=.o) >-OBJPNG = $(SRCPNG:.c=.o) > OBJSOIL = $(SRCSOIL:.c=.o) >-OBJZLIB = $(SRCZLIB:.c=.o) > > ifeq ($(STATIC), yes) > LIB = libsfml-graphics-s.a >@@ -24,24 +16,24 @@ ifeq ($(STATIC), yes) > > all: $(LIB) > >-libsfml-graphics-s.a: $(OBJ) $(OBJGLEW) $(OBJJPEG) $(OBJPNG) $(OBJSOIL) $(OBJZLIB) >- $(AR) $(ARFLAGS) $(LIBNAME) $(OBJ) $(OBJGLEW) $(OBJJPEG) $(OBJPNG) $(OBJSOIL) $(OBJZLIB) >+libsfml-graphics-s.a: $(OBJ) $(OBJSOIL) >+ $(AR) $(ARFLAGS) $(LIBNAME) $(OBJ) $(OBJSOIL) > >-libsfml-graphics.so: $(OBJ) $(OBJGLEW) $(OBJJPEG) $(OBJPNG) $(OBJSOIL) $(OBJZLIB) >- $(CPP) $(LDFLAGS) -Wl,-soname,$(LIB).$(VERSION) -o $(LIBNAME) $(OBJ) $(OBJGLEW) $(OBJJPEG) $(OBJPNG) $(OBJSOIL) $(OBJZLIB) -lfreetype >+libsfml-graphics.so: $(OBJ) $(OBJSOIL) >+ $(CPP) $(LDFLAGS) -Wl,-soname,$(LIB).$(VERSION) -o $(LIBNAME) $(OBJ) $(OBJSOIL) -lGLEW -ljpeg -lpng -lz -lfreetype > > $(OBJ): %.o: %.cpp > $(CPP) -o $@ -c $< $(CFLAGS) -I/usr/include/freetype2 > >-$(OBJGLEW) $(OBJJPEG) $(OBJPNG) $(OBJSOIL) $(OBJZLIB): %.o: %.c >+$(OBJSOIL): %.o: %.c > $(CC) -o $@ -c $< $(CFLAGSEXT) -DSTBI_FAILURE_USERMSG > > .PHONY: clean mrproper > > clean: >- @rm -rf $(OBJ) $(OBJGLEW) $(OBJJPEG) $(OBJPNG) $(OBJSOIL) $(OBJZLIB) >+ @rm -rf $(OBJ) $(OBJSOIL) > > mrproper: clean > @rm -rf $(LIBNAME) > > install: >- @($(CP) $(LIBNAME) $(DESTLIBDIR) $(INSTALL)) >+ @($(CP) $(LIBNAME) $(DESTDIR)/$(libdir) $(INSTALL)) >diff --git a/src/SFML/Graphics/GraphicsContext.hpp b/src/SFML/Graphics/GraphicsContext.hpp >index 0a76001..fdfdb4b 100755 >--- a/src/SFML/Graphics/GraphicsContext.hpp >+++ b/src/SFML/Graphics/GraphicsContext.hpp >@@ -30,7 +30,7 @@ > //////////////////////////////////////////////////////////// > #include <SFML/Config.hpp> > #include <SFML/System/NonCopyable.hpp> >-#include <SFML/Graphics/GLEW/glew.h> >+#include <GL/glew.h> > #include <iostream> > #include <string> > >diff --git a/src/SFML/Graphics/ImageLoader.cpp b/src/SFML/Graphics/ImageLoader.cpp >index b9c6a1b..d045af4 100755 >--- a/src/SFML/Graphics/ImageLoader.cpp >+++ b/src/SFML/Graphics/ImageLoader.cpp >@@ -28,10 +28,10 @@ > #include <SFML/Graphics/ImageLoader.hpp> > extern "C" > { >- #include <SFML/Graphics/libjpeg/jpeglib.h> >- #include <SFML/Graphics/libjpeg/jerror.h> >+ #include <jpeglib.h> >+ #include <jerror.h> > } >-#include <SFML/Graphics/libpng/png.h> >+#include <png.h> > #include <SFML/Graphics/SOIL/SOIL.h> > #include <iostream> >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 258895
:
181916
|
182281
|
182282
|
182344
|
182658
|
182660
|
182665
|
182667
|
182674
|
238973
|
238977
|
238979
|
258929