diff options
author | amdmi3 <amdmi3@FreeBSD.org> | 2009-07-16 22:56:33 +0800 |
---|---|---|
committer | amdmi3 <amdmi3@FreeBSD.org> | 2009-07-16 22:56:33 +0800 |
commit | 1e658d4a471f51fa3982df714751f68d149a8e00 (patch) | |
tree | 9d25ac4154e78712a29eb3ac58dc083f255a3483 | |
parent | 4f4a504bda1ae1d680135c0323d93188f2500da1 (diff) | |
download | freebsd-ports-gnome-1e658d4a471f51fa3982df714751f68d149a8e00.tar.gz freebsd-ports-gnome-1e658d4a471f51fa3982df714751f68d149a8e00.tar.zst freebsd-ports-gnome-1e658d4a471f51fa3982df714751f68d149a8e00.zip |
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 perfectly 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.
WWW: http://www.sfml-dev.org/index.php
-rw-r--r-- | devel/Makefile | 1 | ||||
-rw-r--r-- | devel/sfml/Makefile | 42 | ||||
-rw-r--r-- | devel/sfml/distinfo | 3 | ||||
-rw-r--r-- | devel/sfml/files/patch-src-SFML-Audio-Makefile | 19 | ||||
-rw-r--r-- | devel/sfml/files/patch-src-SFML-Graphics-Makefile | 21 | ||||
-rw-r--r-- | devel/sfml/files/patch-src-SFML-Makefile | 40 | ||||
-rw-r--r-- | devel/sfml/files/patch-src-SFML-Network-Makefile | 15 | ||||
-rw-r--r-- | devel/sfml/files/patch-src-SFML-System-Makefile | 15 | ||||
-rw-r--r-- | devel/sfml/files/patch-src-SFML-Window-Makefile | 15 | ||||
-rw-r--r-- | devel/sfml/pkg-descr | 9 | ||||
-rw-r--r-- | devel/sfml/pkg-plist | 93 |
11 files changed, 273 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile index 58e2d5f82346..826d5caa80e2 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -2712,6 +2712,7 @@ SUBDIR += sedsed SUBDIR += semantic SUBDIR += sfio + SUBDIR += sfml SUBDIR += sfslite SUBDIR += sfslite-dbg SUBDIR += sfslite-noopt diff --git a/devel/sfml/Makefile b/devel/sfml/Makefile new file mode 100644 index 000000000000..a0a9e1f5d37f --- /dev/null +++ b/devel/sfml/Makefile @@ -0,0 +1,42 @@ +# New ports collection makefile for: sfml +# Date created: 07 Jul 2009 +# Whom: Dmitry Marakasov <amdmi3@FreeBSD.org> +# +# $FreeBSD$ +# + +PORTNAME= sfml +PORTVERSION= 1.5 +CATEGORIES= devel +MASTER_SITES= SF +DISTNAME= SFML-${PORTVERSION}-sdk-linux-32 + +MAINTAINER= amdmi3@FreeBSD.org +COMMENT= Simple and Fast Multimedia Library + +LIB_DEPENDS= sndfile.1:${PORTSDIR}/audio/libsndfile \ + openal.0:${PORTSDIR}/audio/openal \ + jpeg.9:${PORTSDIR}/graphics/jpeg \ + png.5:${PORTSDIR}/graphics/png \ + freetype.9:${PORTSDIR}/print/freetype2 + +USE_GMAKE= yes +USE_XORG= x11 xrandr +USE_GL= gl glu +USE_LDCONFIG= yes +MAKE_JOBS_SAFE= yes + +WRKSRC= ${WRKDIR}/SFML-${PORTVERSION} + +PORTDOCS= * + +post-extract: + @${RM} ${WRKSRC}/lib/* + +.if !defined(NOPORTDOCS) +post-install: + ${MKDIR} ${DOCSDIR} + cd ${WRKSRC}/doc && ${COPYTREE_SHARE} "*" ${DOCSDIR}/ +.endif + +.include <bsd.port.mk> diff --git a/devel/sfml/distinfo b/devel/sfml/distinfo new file mode 100644 index 000000000000..d10931f18d16 --- /dev/null +++ b/devel/sfml/distinfo @@ -0,0 +1,3 @@ +MD5 (SFML-1.5-sdk-linux-32.tar.gz) = cd2d17ab09048af9e74c473f61125d4f +SHA256 (SFML-1.5-sdk-linux-32.tar.gz) = aaa284b67f00d21fa25915b6acd65f08d3bdf1e35801385cc6fbed4a93e1f9c8 +SIZE (SFML-1.5-sdk-linux-32.tar.gz) = 13065958 diff --git a/devel/sfml/files/patch-src-SFML-Audio-Makefile b/devel/sfml/files/patch-src-SFML-Audio-Makefile new file mode 100644 index 000000000000..f582c5fdcb51 --- /dev/null +++ b/devel/sfml/files/patch-src-SFML-Audio-Makefile @@ -0,0 +1,19 @@ +--- src/SFML/Audio/Makefile.orig 2009-05-28 19:57:04.000000000 +0400 ++++ src/SFML/Audio/Makefile 2009-07-07 19:51:57.000000000 +0400 +@@ -19,13 +19,13 @@ + $(AR) $(ARFLAGS) $(LIBNAME) $(OBJ) $(OBJVORBIS)
+
+ libsfml-audio.so: $(OBJ) $(OBJVORBIS)
+- $(CPP) $(LDFLAGS) -Wl,-soname,$(LIB).$(VERSION) -o $(LIBNAME) $(OBJ) $(OBJVORBIS) -lsndfile -lopenal
++ $(CXX) $(LDFLAGS) -Wl,-soname,$(LIB).$(VERSION) -o $(LIBNAME) $(OBJ) $(OBJVORBIS) -lsndfile -lopenal
+
+ $(OBJ): %.o: %.cpp
+- $(CPP) -o $@ -c $< $(CFLAGS)
++ $(CXX) -o $@ -c $< $(CXXFLAGS)
+
+ $(OBJVORBIS): %.o: %.c
+- $(CC) -o $@ -c $< $(CFLAGSEXT)
++ $(CC) -o $@ -c $< $(CFLAGS)
+
+ .PHONY: clean mrproper
+
diff --git a/devel/sfml/files/patch-src-SFML-Graphics-Makefile b/devel/sfml/files/patch-src-SFML-Graphics-Makefile new file mode 100644 index 000000000000..a2ca18f8b615 --- /dev/null +++ b/devel/sfml/files/patch-src-SFML-Graphics-Makefile @@ -0,0 +1,21 @@ +--- src/SFML/Graphics/Makefile.orig 2009-05-28 19:57:02.000000000 +0400 ++++ src/SFML/Graphics/Makefile 2009-07-07 19:59:29.000000000 +0400 +@@ -26,14 +26,14 @@ + libsfml-graphics-s.a: $(OBJ) $(OBJGLEW) $(OBJJPEG) $(OBJPNG) $(OBJSOIL) $(OBJZLIB)
+ $(AR) $(ARFLAGS) $(LIBNAME) $(OBJ) $(OBJGLEW) $(OBJJPEG) $(OBJPNG) $(OBJSOIL) $(OBJZLIB)
+
+-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) $(OBJGLEW) $(OBJSOIL)
++ $(CXX) $(LDFLAGS) -Wl,-soname,$(LIB).$(VERSION) -o $(LIBNAME) $(OBJ) $(OBJGLEW) $(OBJSOIL) -lfreetype -lpng -ljpeg -lz
+
+ $(OBJ): %.o: %.cpp
+- $(CPP) -o $@ -c $< $(CFLAGS) -I/usr/include/freetype2
++ $(CXX) -o $@ -c $< $(CXXFLAGS)
+
+ $(OBJGLEW) $(OBJJPEG) $(OBJPNG) $(OBJSOIL) $(OBJZLIB): %.o: %.c
+- $(CC) -o $@ -c $< $(CFLAGSEXT) -DSTBI_FAILURE_USERMSG
++ $(CC) -o $@ -c $< $(CFLAGS) -DSTBI_FAILURE_USERMSG
+
+ .PHONY: clean mrproper
+
diff --git a/devel/sfml/files/patch-src-SFML-Makefile b/devel/sfml/files/patch-src-SFML-Makefile new file mode 100644 index 000000000000..dcd378ae19e6 --- /dev/null +++ b/devel/sfml/files/patch-src-SFML-Makefile @@ -0,0 +1,40 @@ +--- src/SFML/Makefile.orig 2009-05-28 19:57:08.000000000 +0400 ++++ src/SFML/Makefile 2009-07-07 20:02:57.000000000 +0400 +@@ -4,7 +4,7 @@ + ifeq ($(DEBUGBUILD), yes)
+ DEBUGFLAGS = -g -DDEBUG
+ else
+- DEBUGFLAGS = -O2 -DNDEBUG
++ DEBUGFLAGS =
+ endif
+
+ ifeq ($(STATIC), no)
+@@ -15,11 +15,11 @@ + LINKFLAGS =
+ endif
+
+-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 CC ?= gcc
++export CXX ?= g++
++export CFLAGS += -I${LOCALBASE}/include -I${LOCALBASE}/include/freetype2 -I../../../include -I../.. $(DEBUGFLAGS) $(BUILDFLAGS)
++export CXXFLAGS += -I${LOCALBASE}/include -I${LOCALBASE}/include/freetype2 -W -Wall -pedantic -I../../../include -I../../ $(DEBUGFLAGS) $(BUILDFLAGS)
++export LDFLAGS = -L${LOCALBASE}/lib $(LINKFLAGS)
+ export LIBPATH = ../../../lib
+ export VERSION = 1.5
+ export CP = cp
+@@ -27,9 +27,9 @@ + export LNFLAGS = -s -f
+ export AR = ar
+ export ARFLAGS = rcs
+-export DESTDIR = /usr
++export DESTDIR = ${PREFIX}
+ export DESTLIBDIR = $(DESTDIR)/lib
+-export DESTINCDIR = $(DESTDIR)/include
++export DESTINCDIR = $(DESTDIR)/include/SFML
+
+ all: sfml-system sfml-window sfml-network sfml-graphics sfml-audio
+
diff --git a/devel/sfml/files/patch-src-SFML-Network-Makefile b/devel/sfml/files/patch-src-SFML-Network-Makefile new file mode 100644 index 000000000000..17e30d21b567 --- /dev/null +++ b/devel/sfml/files/patch-src-SFML-Network-Makefile @@ -0,0 +1,15 @@ +--- src/SFML/Network/Makefile.orig 2009-05-28 19:57:08.000000000 +0400 ++++ src/SFML/Network/Makefile 2009-07-07 20:01:13.000000000 +0400 +@@ -17,10 +17,10 @@ + $(AR) $(ARFLAGS) $(LIBNAME) $(OBJ)
+
+ libsfml-network.so: $(OBJ)
+- $(CPP) $(LDFLAGS) -Wl,-soname,$(LIB).$(VERSION) -o $(LIBNAME) $(OBJ)
++ $(CXX) $(LDFLAGS) -Wl,-soname,$(LIB).$(VERSION) -o $(LIBNAME) $(OBJ)
+
+ $(OBJ): %.o: %.cpp
+- $(CPP) -o $@ -c $< $(CFLAGS)
++ $(CXX) -o $@ -c $< $(CXXFLAGS)
+
+ .PHONY: clean mrproper
+
diff --git a/devel/sfml/files/patch-src-SFML-System-Makefile b/devel/sfml/files/patch-src-SFML-System-Makefile new file mode 100644 index 000000000000..6f05acbccc1f --- /dev/null +++ b/devel/sfml/files/patch-src-SFML-System-Makefile @@ -0,0 +1,15 @@ +--- src/SFML/System/Makefile.orig 2009-05-28 19:57:04.000000000 +0400 ++++ src/SFML/System/Makefile 2009-07-07 19:51:23.000000000 +0400 +@@ -17,10 +17,10 @@ + $(AR) $(ARFLAGS) $(LIBNAME) $(OBJ)
+
+ libsfml-system.so: $(OBJ)
+- $(CPP) $(LDFLAGS) -Wl,-soname,$(LIB).$(VERSION) -o $(LIBNAME) $(OBJ) -lpthread
++ $(CXX) $(LDFLAGS) -Wl,-soname,$(LIB).$(VERSION) -o $(LIBNAME) $(OBJ) ${PTHREAD_LIBS}
+
+ $(OBJ): %.o: %.cpp
+- $(CPP) -o $@ -c $< $(CFLAGS)
++ $(CXX) -o $@ -c $< $(CXXFLAGS)
+
+ .PHONY: clean mrproper
+
diff --git a/devel/sfml/files/patch-src-SFML-Window-Makefile b/devel/sfml/files/patch-src-SFML-Window-Makefile new file mode 100644 index 000000000000..f3b76a19cbfb --- /dev/null +++ b/devel/sfml/files/patch-src-SFML-Window-Makefile @@ -0,0 +1,15 @@ +--- src/SFML/Window/Makefile.orig 2009-05-28 19:57:08.000000000 +0400 ++++ src/SFML/Window/Makefile 2009-07-07 19:51:46.000000000 +0400 +@@ -18,10 +18,10 @@ + $(AR) $(ARFLAGS) $(LIBNAME) $(OBJ)
+
+ libsfml-window.so: $(OBJ)
+- $(CPP) $(LDFLAGS) -Wl,-soname,$(LIB).$(VERSION) -o $(LIBNAME) $(OBJ) $(OBJGLEW) -lX11 -lXrandr -lGL
++ $(CXX) $(LDFLAGS) -Wl,-soname,$(LIB).$(VERSION) -o $(LIBNAME) $(OBJ) $(OBJGLEW) -lX11 -lXrandr -lGL
+
+ $(OBJ): %.o: %.cpp
+- $(CPP) -o $@ -c $< $(CFLAGS)
++ $(CXX) -o $@ -c $< $(CXXFLAGS)
+
+ .PHONY: clean mrproper
+
diff --git a/devel/sfml/pkg-descr b/devel/sfml/pkg-descr new file mode 100644 index 000000000000..dba2125b083c --- /dev/null +++ b/devel/sfml/pkg-descr @@ -0,0 +1,9 @@ +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 perfectly 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. + +WWW: http://www.sfml-dev.org/index.php diff --git a/devel/sfml/pkg-plist b/devel/sfml/pkg-plist new file mode 100644 index 000000000000..5c26c035de60 --- /dev/null +++ b/devel/sfml/pkg-plist @@ -0,0 +1,93 @@ +include/SFML/Audio.hpp +include/SFML/Audio/AudioResource.hpp +include/SFML/Audio/Listener.hpp +include/SFML/Audio/Music.hpp +include/SFML/Audio/Sound.hpp +include/SFML/Audio/SoundBuffer.hpp +include/SFML/Audio/SoundBufferRecorder.hpp +include/SFML/Audio/SoundRecorder.hpp +include/SFML/Audio/SoundStream.hpp +include/SFML/Config.hpp +include/SFML/Graphics.hpp +include/SFML/Graphics/Color.hpp +include/SFML/Graphics/Drawable.hpp +include/SFML/Graphics/Font.hpp +include/SFML/Graphics/Glyph.hpp +include/SFML/Graphics/Image.hpp +include/SFML/Graphics/Matrix3.hpp +include/SFML/Graphics/Matrix3.inl +include/SFML/Graphics/PostFX.hpp +include/SFML/Graphics/Rect.hpp +include/SFML/Graphics/Rect.inl +include/SFML/Graphics/RenderTarget.hpp +include/SFML/Graphics/RenderWindow.hpp +include/SFML/Graphics/Shape.hpp +include/SFML/Graphics/Sprite.hpp +include/SFML/Graphics/String.hpp +include/SFML/Graphics/View.hpp +include/SFML/Network.hpp +include/SFML/Network/Ftp.hpp +include/SFML/Network/Http.hpp +include/SFML/Network/IPAddress.hpp +include/SFML/Network/Packet.hpp +include/SFML/Network/Selector.hpp +include/SFML/Network/Selector.inl +include/SFML/Network/SelectorBase.hpp +include/SFML/Network/SocketHelper.hpp +include/SFML/Network/SocketTCP.hpp +include/SFML/Network/SocketUDP.hpp +include/SFML/Network/Sockets.hpp +include/SFML/Network/Unix/SocketHelper.hpp +include/SFML/Network/Win32/SocketHelper.hpp +include/SFML/System.hpp +include/SFML/System/Clock.hpp +include/SFML/System/Lock.hpp +include/SFML/System/Mutex.hpp +include/SFML/System/NonCopyable.hpp +include/SFML/System/Randomizer.hpp +include/SFML/System/Resource.hpp +include/SFML/System/Resource.inl +include/SFML/System/ResourcePtr.inl +include/SFML/System/Sleep.hpp +include/SFML/System/Thread.hpp +include/SFML/System/Unicode.hpp +include/SFML/System/Unicode.inl +include/SFML/System/Unix/Mutex.hpp +include/SFML/System/Unix/Thread.hpp +include/SFML/System/Vector2.hpp +include/SFML/System/Vector2.inl +include/SFML/System/Vector3.hpp +include/SFML/System/Vector3.inl +include/SFML/System/Win32/Mutex.hpp +include/SFML/System/Win32/Thread.hpp +include/SFML/Window.hpp +include/SFML/Window/Context.hpp +include/SFML/Window/Event.hpp +include/SFML/Window/Input.hpp +include/SFML/Window/OpenGL.hpp +include/SFML/Window/VideoMode.hpp +include/SFML/Window/Window.hpp +include/SFML/Window/WindowHandle.hpp +include/SFML/Window/WindowListener.hpp +include/SFML/Window/WindowSettings.hpp +include/SFML/Window/WindowStyle.hpp +lib/libsfml-audio.so +lib/libsfml-audio.so.1.5 +lib/libsfml-graphics.so +lib/libsfml-graphics.so.1.5 +lib/libsfml-network.so +lib/libsfml-network.so.1.5 +lib/libsfml-system.so +lib/libsfml-system.so.1.5 +lib/libsfml-window.so +lib/libsfml-window.so.1.5 +@dirrm include/SFML/Window +@dirrm include/SFML/System/Win32 +@dirrm include/SFML/System/Unix +@dirrm include/SFML/System +@dirrm include/SFML/Network/Win32 +@dirrm include/SFML/Network/Unix +@dirrm include/SFML/Network +@dirrm include/SFML/Graphics +@dirrm include/SFML/Audio +@dirrm include/SFML |