author | Sven-Hendrik Haase
<svenstaro@archlinux.org> 2011-06-16 03:45:54 UTC |
committer | Sven-Hendrik Haase
<svenstaro@archlinux.org> 2011-06-16 03:45:54 UTC |
parent | 5fd87ba5c23661ad0d9b77e60d77b9be79b35954 |
PKGBUILD | +1 | -0 |
sfml.install | +1 | -1 |
use-system-libs.patch | +0 | -70 |
diff --git a/PKGBUILD b/PKGBUILD index 395d815..96d4553 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -16,6 +16,7 @@ url='http://www.sfml-dev.org/' license=('zlib') depends=('libsndfile' 'libxrandr' 'libjpeg' 'openal' 'glew' 'freetype2') makedepends=('git' 'mesa' 'cmake' 'doxygen') +install=sfml.install _gitroot='https://github.com/LaurentGomila/SFML.git' _gitname='SFML' diff --git a/sfml.install b/sfml.install index 9d18b52..75f760b 100644 --- a/sfml.install +++ b/sfml.install @@ -1,3 +1,3 @@ post_install() { - echo "To view the SFML samples, go to /opt/SFML/samples/bin and run them individually" + echo "To view the SFML samples, go to /usr/share/SFML/examples/ and run them individually" } diff --git a/use-system-libs.patch b/use-system-libs.patch deleted file mode 100644 index 5d32002..0000000 --- a/use-system-libs.patch +++ /dev/null @@ -1,70 +0,0 @@ -Only in SFML-1.6-old/lib: libsfml-graphics.so.1.6 -Binary files SFML-1.6-old/lib/libsfml-network.so.1.6 and SFML-1.6/lib/libsfml-network.so.1.6 differ -Binary files SFML-1.6-old/lib/libsfml-system.so.1.6 and SFML-1.6/lib/libsfml-system.so.1.6 differ -Binary files SFML-1.6-old/lib/libsfml-window.so.1.6 and SFML-1.6/lib/libsfml-window.so.1.6 differ -diff -ur SFML-1.6-old/src/SFML/Graphics/ImageLoader.cpp SFML-1.6/src/SFML/Graphics/ImageLoader.cpp ---- SFML-1.6-old/src/SFML/Graphics/ImageLoader.cpp 2010-01-27 15:00:05.000000000 +0100 -+++ SFML-1.6/src/SFML/Graphics/ImageLoader.cpp 2010-08-16 12:27:33.983627625 +0200 -@@ -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> - -Only in SFML-1.6-old/src/SFML/Graphics: ImageLoader.cpp.rej -diff -ur SFML-1.6-old/src/SFML/Graphics/Makefile SFML-1.6/src/SFML/Graphics/Makefile ---- SFML-1.6-old/src/SFML/Graphics/Makefile 2010-01-27 15:00:05.000000000 +0100 -+++ SFML-1.6/src/SFML/Graphics/Makefile 2010-08-16 12:25:13.663501212 +0200 -@@ -1,15 +1,5 @@ - 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 -@@ -23,22 +13,19 @@ - - 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) -+ $(AR) $(ARFLAGS) $(LIBNAME) $(OBJ) -static -lGLEW -ljpeg -lpng -lsoil -lz -lSOIL - --libsfml-graphics.so: $(OBJ) $(OBJGLEW) $(OBJJPEG) $(OBJPNG) $(OBJSOIL) $(OBJZLIB) -- $(CPP) $(LDFLAGS) -Wl,-soname,$(LIB).$(VERSION) -o $(LIBNAME) $(OBJ) $(OBJGLEW) $(OBJJPEG) $(OBJPNG) $(OBJSOIL) $(OBJZLIB) -lfreetype -lX11 -lGL -+libsfml-graphics.so: $(OBJ) -+ $(CPP) $(LDFLAGS) -Wl,-soname,$(LIB).$(VERSION) -o $(LIBNAME) $(OBJ) -lGLEW -ljpeg -lpng -lSOIL -lz -lfreetype -lX11 -lGL - - $(OBJ): %.o: %.cpp - $(CPP) -o $@ -c $< $(CFLAGS) -I/usr/include/freetype2 - --$(OBJGLEW) $(OBJJPEG) $(OBJPNG) $(OBJSOIL) $(OBJZLIB): %.o: %.c -- $(CC) -o $@ -c $< $(CFLAGSEXT) -DSTBI_FAILURE_USERMSG -- - .PHONY: clean mrproper - - clean: -- @rm -rf $(OBJ) $(OBJGLEW) $(OBJJPEG) $(OBJPNG) $(OBJSOIL) $(OBJZLIB) -+ @rm -rf $(OBJ) - - mrproper: clean - @rm -rf $(LIBNAME) -Only in SFML-1.6-old/src/SFML/Graphics: Makefile.rej