diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /media-libs/libsfml | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'media-libs/libsfml')
-rw-r--r-- | media-libs/libsfml/Manifest | 2 | ||||
-rw-r--r-- | media-libs/libsfml/files/libsfml-1.6-deps-and-flags.patch | 111 | ||||
-rw-r--r-- | media-libs/libsfml/files/libsfml-1.6-destdir.patch | 112 | ||||
-rw-r--r-- | media-libs/libsfml/files/libsfml-1.6-gcc46.patch | 11 | ||||
-rw-r--r-- | media-libs/libsfml/files/libsfml-1.6-gcc47.patch | 11 | ||||
-rw-r--r-- | media-libs/libsfml/files/libsfml-1.6-libpng15.patch | 20 | ||||
-rw-r--r-- | media-libs/libsfml/files/libsfml-2.2-no-docs.patch | 15 | ||||
-rw-r--r-- | media-libs/libsfml/files/libsfml-2.2-shared-glew.patch | 12 | ||||
-rw-r--r-- | media-libs/libsfml/libsfml-1.6-r1.ebuild | 64 | ||||
-rw-r--r-- | media-libs/libsfml/libsfml-2.2.ebuild | 65 | ||||
-rw-r--r-- | media-libs/libsfml/metadata.xml | 19 |
11 files changed, 442 insertions, 0 deletions
diff --git a/media-libs/libsfml/Manifest b/media-libs/libsfml/Manifest new file mode 100644 index 000000000000..1fdea152c9e7 --- /dev/null +++ b/media-libs/libsfml/Manifest @@ -0,0 +1,2 @@ +DIST SFML-1.6-sdk-linux-32.tar.gz 12937755 SHA256 b1c18f9b99c54ebb4cd433792f33ed2b85c846cca28eb871a12b3191dc1532f8 SHA512 518121bf05ab8b1f4ad917eaca72951ff870e992f79e2b3da94baad762e7de63ce331cf4cade172e285015fb6fec501e25039c633be2f7b77d77b171dc29cb0a WHIRLPOOL fee6692123c394b4d67d1937756315daf7386bf8d0292bbeb94ba7db53552010e8f92187496ce9b72f6aad4922e5ea5da191ddaf9baf0f96a7b741a1d1d17f2e +DIST libsfml-2.2.tar.gz 17614806 SHA256 543458923e35868c16ac70e5f4c3bf172e136af9820d7b546b52afc7f1fc77f5 SHA512 cf30d431afc19d0f0126f2879dcb4c81ff4f689ce1e7aab5c3f156e8a88cdd54574e60de6230a9a5f7793a6c41ac81d811c68a9f1971ce079dada8d281ca34a3 WHIRLPOOL 8ba9c968840839295707e92281ecbc5d88b8900bab85dac0e1a4d66a0b8521bca0d5c6b0d1d330a1191aedf073f9633c7ce8f6dcbef9f84e3fac8c61d9c7c96e diff --git a/media-libs/libsfml/files/libsfml-1.6-deps-and-flags.patch b/media-libs/libsfml/files/libsfml-1.6-deps-and-flags.patch new file mode 100644 index 000000000000..bd24ce5f9123 --- /dev/null +++ b/media-libs/libsfml/files/libsfml-1.6-deps-and-flags.patch @@ -0,0 +1,111 @@ +--- SFML-1.6/src/SFML/Audio/Makefile ++++ SFML-1.6/src/SFML/Audio/Makefile +@@ -25,7 +25,7 @@ + $(CPP) -o $@ -c $< $(CFLAGS)
+
+ $(OBJVORBIS): %.o: %.c
+- $(CC) -o $@ -c $< $(CFLAGSEXT)
++ $(CC) -o $@ -c $< $(CFLAGS)
+
+ .PHONY: clean mrproper
+
+--- SFML-1.6/src/SFML/Graphics/GraphicsContext.hpp ++++ SFML-1.6/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>
+
+--- SFML-1.6/src/SFML/Graphics/ImageLoader.cpp ++++ SFML-1.6/src/SFML/Graphics/ImageLoader.cpp +@@ -28,11 +28,12 @@ + #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 <SFML/Graphics/SOIL/SOIL.h>
++#include <png.h>
++#include <string.h>
+ #include <iostream>
+
+
+--- SFML-1.6/src/SFML/Graphics/Makefile ++++ SFML-1.6/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
+@@ -23,22 +15,22 @@ +
+ 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 -lX11 -lGL
++libsfml-graphics.so: $(OBJ) $(OBJSOIL)
++ $(CPP) $(LDFLAGS) -Wl,-soname,$(LIB).$(VERSION) -o $(LIBNAME) $(OBJ) $(OBJSOIL) -lGLEW -ljpeg -lpng -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
++$(OBJSOIL): %.o: %.c
++ $(CC) -o $@ -c $< $(CFLAGS) -DSTBI_FAILURE_USERMSG
+
+ .PHONY: clean mrproper
+
+ clean:
+- @rm -rf $(OBJ) $(OBJGLEW) $(OBJJPEG) $(OBJPNG) $(OBJSOIL) $(OBJZLIB)
++ @rm -rf $(OBJ) $(OBJSOIL)
+
+ mrproper: clean
+ @rm -rf $(LIBNAME)
+--- SFML-1.6/src/SFML/Makefile ++++ SFML-1.6/src/SFML/Makefile +@@ -4,7 +4,7 @@ + ifeq ($(DEBUGBUILD), yes)
+ DEBUGFLAGS = -g -DDEBUG
+ else
+- DEBUGFLAGS = -O2 -DNDEBUG
++ DEBUGFLAGS = -DNDEBUG
+ endif
+
+ ifeq ($(STATIC), no)
+@@ -17,9 +17,8 @@ +
+ export CC = gcc
+ export CPP = g++
+-export CFLAGS = -W -Wall -pedantic -I../../../include -I../../ $(DEBUGFLAGS) $(BUILDFLAGS)
+-export CFLAGSEXT = -I../../../include -I../.. $(DEBUGFLAGS) $(BUILDFLAGS)
+-export LDFLAGS = $(LINKFLAGS)
++export CFLAGS += -W -Wall -pedantic -I../../../include -I../../ $(DEBUGFLAGS) $(BUILDFLAGS)
++export LDFLAGS += $(LINKFLAGS)
+ export LIBPATH = ../../../lib
+ export VERSION = 1.6
+ export CP = cp
diff --git a/media-libs/libsfml/files/libsfml-1.6-destdir.patch b/media-libs/libsfml/files/libsfml-1.6-destdir.patch new file mode 100644 index 000000000000..33a6f91bb6b6 --- /dev/null +++ b/media-libs/libsfml/files/libsfml-1.6-destdir.patch @@ -0,0 +1,112 @@ +--- SFML-1.6.orig/src/SFML/Audio/Makefile ++++ SFML-1.6/src/SFML/Audio/Makefile +@@ -10,7 +10,7 @@ + else
+ LIB = libsfml-audio.so
+ LIBNAME = $(LIBPATH)/$(LIB).$(VERSION)
+- INSTALL = && $(LN) $(LNFLAGS) $(LIB).$(VERSION) $(DESTLIBDIR)/$(LIB)
++ INSTALL = && $(LN) $(LNFLAGS) $(LIB).$(VERSION) $(DESTDIR)/$(libdir)/$(LIB)
+ endif
+
+ all: $(LIB)
+@@ -36,4 +36,4 @@ + @rm -rf $(LIBNAME)
+
+ install:
+- @($(CP) $(LIBNAME) $(DESTLIBDIR) $(INSTALL))
++ @($(CP) $(LIBNAME) $(DESTDIR)/$(libdir) $(INSTALL))
+--- SFML-1.6.orig/src/SFML/Graphics/Makefile ++++ SFML-1.6/src/SFML/Graphics/Makefile +@@ -18,7 +18,7 @@ + else
+ LIB = libsfml-graphics.so
+ LIBNAME = $(LIBPATH)/$(LIB).$(VERSION)
+- INSTALL = && $(LN) $(LNFLAGS) $(LIB).$(VERSION) $(DESTLIBDIR)/$(LIB)
++ INSTALL = && $(LN) $(LNFLAGS) $(LIB).$(VERSION) $(DESTDIR)/$(libdir)/$(LIB)
+ endif
+
+ all: $(LIB)
+@@ -44,4 +44,4 @@ + @rm -rf $(LIBNAME)
+
+ install:
+- @($(CP) $(LIBNAME) $(DESTLIBDIR) $(INSTALL))
++ @($(CP) $(LIBNAME) $(DESTDIR)/$(libdir) $(INSTALL))
+--- SFML-1.6.orig/src/SFML/Makefile ++++ SFML-1.6/src/SFML/Makefile +@@ -28,8 +28,11 @@ + export AR = ar
+ export ARFLAGS = rcs
+-export DESTDIR = /usr/local
+-export DESTLIBDIR = $(DESTDIR)/lib
+-export DESTINCDIR = $(DESTDIR)/include
++export DESTDIR =
++ifeq ($(origin prefix), undefined)
++ export prefix = /usr/local
++endif
++export libdir = $(prefix)/lib
++export includedir = $(prefix)/include
+
+ all: sfml-system sfml-window sfml-network sfml-graphics sfml-audio
+
+@@ -62,6 +66,6 @@ + @(cd ./System && $(MAKE) $@ && cd ../Window && $(MAKE) $@ && cd ../Network && $(MAKE) $@ && cd ../Graphics && $(MAKE) $@ && cd ../Audio && $(MAKE) $@)
+
+ install:
+- @(mkdir -p $(DESTLIBDIR))
+- @(mkdir -p $(DESTINCDIR))
+- @(cd ./System && $(MAKE) $@ && cd ../Window && $(MAKE) $@ && cd ../Network && $(MAKE) $@ && cd ../Graphics && $(MAKE) $@ && cd ../Audio && $(MAKE) $@ && $(CP) -r ../../../include/SFML/ $(DESTINCDIR)/)
++ @(mkdir -p $(DESTDIR)/$(libdir))
++ @(mkdir -p $(DESTDIR)/$(includedir))
++ @(cd ./System && $(MAKE) $@ && cd ../Window && $(MAKE) $@ && cd ../Network && $(MAKE) $@ && cd ../Graphics && $(MAKE) $@ && cd ../Audio && $(MAKE) $@ && $(CP) -r ../../../include/SFML/ $(DESTDIR)/$(includedir)/)
+--- SFML-1.6.orig/src/SFML/Network/Makefile ++++ SFML-1.6/src/SFML/Network/Makefile +@@ -8,7 +8,7 @@ + else
+ LIB = libsfml-network.so
+ LIBNAME = $(LIBPATH)/$(LIB).$(VERSION)
+- INSTALL = && $(LN) $(LNFLAGS) $(LIB).$(VERSION) $(DESTLIBDIR)/$(LIB)
++ INSTALL = && $(LN) $(LNFLAGS) $(LIB).$(VERSION) $(DESTDIR)/$(libdir)/$(LIB)
+ endif
+
+ all: $(LIB)
+@@ -31,4 +31,4 @@ + @rm -rf $(LIBNAME)
+
+ install:
+- @($(CP) $(LIBNAME) $(DESTLIBDIR) $(INSTALL))
++ @($(CP) $(LIBNAME) $(DESTDIR)/$(libdir) $(INSTALL))
+--- SFML-1.6.orig/src/SFML/System/Makefile ++++ SFML-1.6/src/SFML/System/Makefile +@@ -8,7 +8,7 @@ + else
+ LIB = libsfml-system.so
+ LIBNAME = $(LIBPATH)/$(LIB).$(VERSION)
+- INSTALL = && $(LN) $(LNFLAGS) $(LIB).$(VERSION) $(DESTLIBDIR)/$(LIB)
++ INSTALL = && $(LN) $(LNFLAGS) $(LIB).$(VERSION) $(DESTDIR)/$(libdir)/$(LIB)
+ endif
+
+ all: $(LIB)
+@@ -31,4 +31,4 @@ + @rm -rf $(LIBNAME)
+
+ install:
+- @($(CP) $(LIBNAME) $(DESTLIBDIR) $(INSTALL))
++ @($(CP) $(LIBNAME) $(DESTDIR)/$(libdir) $(INSTALL))
+--- SFML-1.6.orig/src/SFML/Window/Makefile ++++ SFML-1.6/src/SFML/Window/Makefile +@@ -9,7 +9,7 @@ + else
+ LIB = libsfml-window.so
+ LIBNAME = $(LIBPATH)/$(LIB).$(VERSION)
+- INSTALL = && $(LN) $(LNFLAGS) $(LIB).$(VERSION) $(DESTLIBDIR)/$(LIB)
++ INSTALL = && $(LN) $(LNFLAGS) $(LIB).$(VERSION) $(DESTDIR)/$(libdir)/$(LIB)
+ endif
+
+ all: $(LIB)
+@@ -32,4 +32,4 @@ + @rm -rf $(LIBNAME)
+
+ install:
+- @($(CP) $(LIBNAME) $(DESTLIBDIR) $(INSTALL))
++ @($(CP) $(LIBNAME) $(DESTDIR)/$(libdir) $(INSTALL))
diff --git a/media-libs/libsfml/files/libsfml-1.6-gcc46.patch b/media-libs/libsfml/files/libsfml-1.6-gcc46.patch new file mode 100644 index 000000000000..9b31d1b0e409 --- /dev/null +++ b/media-libs/libsfml/files/libsfml-1.6-gcc46.patch @@ -0,0 +1,11 @@ +--- SFML-1.6.old/include/SFML/System/Resource.hpp ++++ SFML-1.6/include/SFML/System/Resource.hpp +@@ -29,7 +29,7 @@ + // Headers
+ ////////////////////////////////////////////////////////////
+ #include <set>
+-
++#include <cstddef>
+
+ namespace sf
+ {
diff --git a/media-libs/libsfml/files/libsfml-1.6-gcc47.patch b/media-libs/libsfml/files/libsfml-1.6-gcc47.patch new file mode 100644 index 000000000000..8608cf538d56 --- /dev/null +++ b/media-libs/libsfml/files/libsfml-1.6-gcc47.patch @@ -0,0 +1,11 @@ +--- SFML-1.6/src/SFML/Window/Linux/Joystick.cpp ++++ SFML-1.6/src/SFML/Window/Linux/Joystick.cpp +@@ -27,7 +27,7 @@ + ////////////////////////////////////////////////////////////
+ #include <SFML/Window/Joystick.hpp>
+ #include <sstream>
+-
++#include <unistd.h>
+
+ namespace sf
+ {
diff --git a/media-libs/libsfml/files/libsfml-1.6-libpng15.patch b/media-libs/libsfml/files/libsfml-1.6-libpng15.patch new file mode 100644 index 000000000000..46be00ebd0e0 --- /dev/null +++ b/media-libs/libsfml/files/libsfml-1.6-libpng15.patch @@ -0,0 +1,20 @@ +--- src/SFML/Graphics/ImageLoader.cpp ++++ src/SFML/Graphics/ImageLoader.cpp +@@ -44,7 +44,7 @@ + void PngErrorHandler(png_structp Png, png_const_charp Message)
+ {
+ std::cerr << "Failed to write PNG image. Reason : " << Message << std::endl;
+- longjmp(Png->jmpbuf, 1);
++ longjmp(png_jmpbuf(Png), 1);
+ }
+ }
+
+@@ -289,7 +289,7 @@ + }
+
+ // For proper error handling...
+- if (setjmp(Png->jmpbuf))
++ if (setjmp(png_jmpbuf(Png)))
+ {
+ png_destroy_write_struct(&Png, &PngInfo);
+ return false;
diff --git a/media-libs/libsfml/files/libsfml-2.2-no-docs.patch b/media-libs/libsfml/files/libsfml-2.2-no-docs.patch new file mode 100644 index 000000000000..ef69107c56f4 --- /dev/null +++ b/media-libs/libsfml/files/libsfml-2.2-no-docs.patch @@ -0,0 +1,15 @@ +--- SFML-2.2/CMakeLists.txt ++++ SFML-2.2/CMakeLists.txt +@@ -239,12 +239,6 @@ + COMPONENT devel) + endif() + +-install(FILES license.txt DESTINATION ${INSTALL_MISC_DIR}) +-install(FILES readme.txt DESTINATION ${INSTALL_MISC_DIR}) +-if(NOT SFML_OS_ANDROID) +- install(FILES cmake/Modules/FindSFML.cmake DESTINATION ${INSTALL_MISC_DIR}/cmake/Modules) +-endif() +- + # install 3rd-party libraries and tools + if(SFML_OS_WINDOWS) + diff --git a/media-libs/libsfml/files/libsfml-2.2-shared-glew.patch b/media-libs/libsfml/files/libsfml-2.2-shared-glew.patch new file mode 100644 index 000000000000..42c701e751cb --- /dev/null +++ b/media-libs/libsfml/files/libsfml-2.2-shared-glew.patch @@ -0,0 +1,12 @@ +--- SFML-2.2/src/SFML/Graphics/CMakeLists.txt ++++ SFML-2.2/src/SFML/Graphics/CMakeLists.txt +@@ -150,9 +150,6 @@ + list(APPEND GRAPHICS_EXT_LIBS ${FREETYPE_LIBRARY} ${JPEG_LIBRARY}) + + # add preprocessor symbols +-if(NOT SFML_OPENGL_ES) +- add_definitions(-DGLEW_STATIC) +-endif() + add_definitions(-DSTBI_FAILURE_USERMSG) + + # ImageLoader.cpp must be compiled with the -fno-strict-aliasing diff --git a/media-libs/libsfml/libsfml-1.6-r1.ebuild b/media-libs/libsfml/libsfml-1.6-r1.ebuild new file mode 100644 index 000000000000..fc3cfb6d930c --- /dev/null +++ b/media-libs/libsfml/libsfml-1.6-r1.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +inherit eutils multilib toolchain-funcs + +MY_P="SFML-${PV}" +DESCRIPTION="Simple and Fast Multimedia Library (SFML)" +HOMEPAGE="http://www.sfml-dev.org/" +SRC_URI="mirror://sourceforge/sfml/${MY_P}-sdk-linux-32.tar.gz" + +LICENSE="ZLIB" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="debug doc examples static-libs" + +DEPEND="media-libs/freetype:2 + media-libs/glew + >=media-libs/libpng-1.4 + media-libs/libsndfile + media-libs/mesa + media-libs/openal + sys-libs/zlib + virtual/jpeg + x11-libs/libX11 + x11-libs/libXrandr" +RDEPEND="${DEPEND}" + +S=${WORKDIR}/${MY_P} + +src_prepare() { + epatch \ + "${FILESDIR}"/${P}-destdir.patch \ + "${FILESDIR}"/${P}-deps-and-flags.patch \ + "${FILESDIR}"/${P}-gcc46.patch \ + "${FILESDIR}"/${P}-gcc47.patch \ + "${FILESDIR}"/${P}-libpng15.patch +} + +src_compile() { + local myconf + use debug && myconf="$myconf DEBUGBUILD=yes" + + emake $myconf CPP=$(tc-getCXX) CC=$(tc-getCC) + use static-libs && emake $myconf STATIC=yes CPP=$(tc-getCXX) CC=$(tc-getCC) +} + +src_install() { + emake DESTDIR="${D}" prefix=/usr libdir=/usr/$(get_libdir) install + + use static-libs && dolib.a lib/*.a + use doc && dohtml doc/html/* + + if use examples ; then + docompress -x /usr/share/doc/${PF}/examples + local i + for i in ftp opengl pong post-fx qt sockets sound sound_capture voip window wxwidgets X11 ; do + insinto /usr/share/doc/${PF}/examples/$i + doins samples/$i/* + done + fi +} diff --git a/media-libs/libsfml/libsfml-2.2.ebuild b/media-libs/libsfml/libsfml-2.2.ebuild new file mode 100644 index 000000000000..efc8506066d8 --- /dev/null +++ b/media-libs/libsfml/libsfml-2.2.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit cmake-utils eutils + +MY_P=SFML-${PV} + +DESCRIPTION="Simple and Fast Multimedia Library (SFML)" +HOMEPAGE="http://www.sfml-dev.org/ https://github.com/LaurentGomila/SFML" +SRC_URI="https://github.com/LaurentGomila/SFML/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="ZLIB" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="debug doc examples" + +RDEPEND="media-libs/freetype:2 + media-libs/glew:= + media-libs/libpng:0= + media-libs/libsndfile + media-libs/mesa + media-libs/openal + sys-libs/zlib + virtual/jpeg + virtual/udev + x11-libs/libX11 + x11-libs/libXrandr" +DEPEND="${RDEPEND} + doc? ( app-doc/doxygen )" + +DOCS="changelog.txt readme.txt" + +S=${WORKDIR}/${MY_P} + +src_prepare() { + epatch "${FILESDIR}"/${P}-no-docs.patch + epatch "${FILESDIR}"/${P}-shared-glew.patch + + sed -i "s:DESTINATION .*:DESTINATION /usr/share/doc/${PF}:" \ + doc/CMakeLists.txt || die +} + +src_configure() { + local mycmakeargs=( + $(cmake-utils_use doc SFML_BUILD_DOC) + -DSFML_INSTALL_PKGCONFIG_FILES=TRUE + ) + cmake-utils_src_configure +} + +src_install() { + cmake-utils_src_install + + insinto /usr/share/cmake/Modules + doins cmake/Modules/FindSFML.cmake + + if use examples ; then + docompress -x /usr/share/doc/${PF}/examples + dodoc -r examples + find "${ED}"/usr/share/doc/${PF}/examples -name CMakeLists.txt -delete + fi +} diff --git a/media-libs/libsfml/metadata.xml b/media-libs/libsfml/metadata.xml new file mode 100644 index 000000000000..c2d27e05d858 --- /dev/null +++ b/media-libs/libsfml/metadata.xml @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>radhermit@gentoo.org</email> + <name>Tim Harder</name> + </maintainer> + <longdescription lang="en"> + The Simple and Fast Multimedia Library (SFML) is a portable and easy to use + multimedia API written in C++. You can see it as a modern, object-oriented + alternative to SDL. SFML is composed of several packages to suit your needs. + You can use SFML as a minimal windowing system to interface with OpenGL, or + as a fully-featured multimedia library for building games or interactive + programs. + </longdescription> + <upstream> + <remote-id type="github">LaurentGomila/SFML</remote-id> + </upstream> +</pkgmetadata> |