From nobody@FreeBSD.org  Sun May 26 21:02:00 2013
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1])
	by hub.freebsd.org (Postfix) with ESMTP id 3845621C
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 26 May 2013 21:02:00 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from oldred.FreeBSD.org (oldred.freebsd.org [8.8.178.121])
	by mx1.freebsd.org (Postfix) with ESMTP id 28C29DF1
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 26 May 2013 21:02:00 +0000 (UTC)
Received: from oldred.FreeBSD.org ([127.0.1.6])
	by oldred.FreeBSD.org (8.14.5/8.14.5) with ESMTP id r4QL1xqh065729
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 26 May 2013 21:01:59 GMT
	(envelope-from nobody@oldred.FreeBSD.org)
Received: (from nobody@localhost)
	by oldred.FreeBSD.org (8.14.5/8.14.5/Submit) id r4QL1xqb065653;
	Sun, 26 May 2013 21:01:59 GMT
	(envelope-from nobody)
Message-Id: <201305262101.r4QL1xqb065653@oldred.FreeBSD.org>
Date: Sun, 26 May 2013 21:01:59 GMT
From: David Demelier <demelier.david@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: New port: devel/sfml2: a multimedia library
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         178998
>Category:       ports
>Synopsis:       New port: devel/sfml2: a multimedia library
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    amdmi3
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun May 26 21:10:01 UTC 2013
>Closed-Date:    
>Last-Modified:  Tue Apr 29 23:48:02 UTC 2014
>Originator:     David Demelier
>Release:        9.1-RELEASE-p1
>Organization:
>Environment:
FreeBSD Melon 9.1-RELEASE-p1 FreeBSD 9.1-RELEASE-p1 #2 r248802M: Mon Apr  1 15:15:33 CEST 2013     root@Melon:/usr/obj/usr/src/sys/Melon  amd64

>Description:
SFML is a multimedia library. Version 2.0 has been released a few weeks ago. 

Everything should work as expected, however only the Joystick code is disabled because it only relies on Linux code and thus does not work on FreeBSD. I didn't have the time to port that so I just disabled it until I can do some work on it.
>How-To-Repeat:

>Fix:
--- sfml2.shar begins here ---
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#       sfml2
#       sfml2/files
#       sfml2/files/patch-CMakeLists.txt
#       sfml2/files/patch-src-SFML-Window-Linux-JoystickImpl.cpp
#       sfml2/files/patch-cmake-Config.cmake
#       sfml2/Makefile
#       sfml2/distinfo
#       sfml2/pkg-descr
#       sfml2/pkg-plist
#
echo c - sfml2
mkdir -p sfml2 > /dev/null 2>&1
echo c - sfml2/files
mkdir -p sfml2/files > /dev/null 2>&1
echo x - sfml2/files/patch-CMakeLists.txt
sed 's/^X//' >sfml2/files/patch-CMakeLists.txt << '7d7029c515abdf2dbd4dc93653cbfad8'
X--- CMakeLists.txt.orig        2013-05-26 11:16:58.000000000 +0200
X+++ CMakeLists.txt     2013-05-26 11:17:36.000000000 +0200
X@@ -19,6 +19,8 @@
X # include the configuration file
X include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/Config.cmake)
X 
X+option(DOCS "Install additional docs" On)
X+
X # setup version numbers
X set(VERSION_MAJOR 2)
X set(VERSION_MINOR 0)
X@@ -113,7 +115,7 @@
X                     "tools/pkg-config/sfml-${sfml_module}.pc"
X                     @ONLY)
X           INSTALL(FILES "${CMAKE_CURRENT_BINARY_DIR}/tools/pkg-config/sfml-${sfml_module}.pc"
X-                    DESTINATION "${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX}/pkgconfig")
X+                    DESTINATION "${CMAKE_INSTALL_PREFIX}/libdata/pkgconfig")
X             endforeach()
X         endif()
X     else()
X@@ -186,9 +188,11 @@
X             COMPONENT devel)
X endif()
X 
X-install(FILES cmake/Modules/FindSFML.cmake DESTINATION ${INSTALL_MISC_DIR}/cmake/Modules)
X-install(FILES license.txt DESTINATION ${INSTALL_MISC_DIR})
X-install(FILES readme.txt DESTINATION ${INSTALL_MISC_DIR})
X+if (DOCS)
X+      install(FILES cmake/Modules/FindSFML.cmake DESTINATION ${INSTALL_MISC_DIR}/cmake/Modules)
X+      install(FILES license.txt DESTINATION ${INSTALL_MISC_DIR})
X+      install(FILES readme.txt DESTINATION ${INSTALL_MISC_DIR})
X+endif ()
X 
X if(WINDOWS)
X     if(ARCH_32BITS)
7d7029c515abdf2dbd4dc93653cbfad8
echo x - sfml2/files/patch-src-SFML-Window-Linux-JoystickImpl.cpp
sed 's/^X//' >sfml2/files/patch-src-SFML-Window-Linux-JoystickImpl.cpp << '9ba25960bbd18014cf958aae53990096'
X--- src/SFML/Window/Linux/JoystickImpl.cpp.orig        2013-05-26 10:33:15.000000000 +0200
X+++ src/SFML/Window/Linux/JoystickImpl.cpp     2013-05-26 10:34:09.000000000 +0200
X@@ -39,17 +39,22 @@
X ////////////////////////////////////////////////////////////
X bool JoystickImpl::isConnected(unsigned int index)
X {
X+#if 0
X     char name[32];
X     std::sprintf(name, "/dev/input/js%u", index);
X 
X     struct stat info; 
X     return stat(name, &info) == 0; 
X+#endif
X+
X+    return false;
X }
X 
X 
X ////////////////////////////////////////////////////////////
X bool JoystickImpl::open(unsigned int index)
X {
X+#if 0
X     char name[32];
X     std::sprintf(name, "/dev/input/js%u", index);
X 
X@@ -71,13 +76,18 @@
X     {
X         return false;
X     }
X+#endif
X+
X+    return false;
X }
X 
X 
X ////////////////////////////////////////////////////////////
X void JoystickImpl::close()
X {
X+#if 0
X     ::close(m_file);
X+#endif
X }
X 
X 
X@@ -85,6 +95,7 @@
X JoystickCaps JoystickImpl::getCapabilities() const
X {
X     JoystickCaps caps;
X+#if 0
X 
X     // Get the number of buttons
X     char buttonCount;
X@@ -114,6 +125,7 @@
X         }
X     }
X 
X+#endif
X     return caps;
X }
X 
X@@ -121,6 +133,7 @@
X ////////////////////////////////////////////////////////////
X JoystickState JoystickImpl::JoystickImpl::update()
X {
X+#if 0
X     // pop events from the joystick file
X     js_event joyState;
X     while (read(m_file, &joyState, sizeof(joyState)) > 0)
X@@ -161,6 +174,7 @@
X     // Check the connection state of the joystick (read() fails with an error != EGAIN if it's no longer connected)
X     m_state.connected = (errno == EAGAIN);
X 
X+#endif
X     return m_state;
X }
X 
9ba25960bbd18014cf958aae53990096
echo x - sfml2/files/patch-cmake-Config.cmake
sed 's/^X//' >sfml2/files/patch-cmake-Config.cmake << '7b5f8b3476cb1c933a4407b6ff563b71'
X--- cmake/Config.cmake.orig    2013-05-26 21:37:53.000000000 +0200
X+++ cmake/Config.cmake 2013-05-26 21:38:21.000000000 +0200
X@@ -71,5 +71,5 @@
X if(WINDOWS)
X     set(INSTALL_MISC_DIR .)
X elseif(UNIX)
X-    set(INSTALL_MISC_DIR share/SFML)
X+#    set(INSTALL_MISC_DIR share/SFML)
X endif()
7b5f8b3476cb1c933a4407b6ff563b71
echo x - sfml2/Makefile
sed 's/^X//' >sfml2/Makefile << 'a0ccb26e9fe99c698518e1a38dfbd5e2'
X# $FreeBSD: $
X
XPORTNAME=      sfml
XPORTVERSION=   2.0
XCATEGORIES=    devel
XMASTER_SITES=  http://www.sfml-dev.org/download/sfml/2.0/
XDISTNAME=      SFML-${PORTVERSION}-sources
XEXTRACT_SUFX=  .zip
XCONFLICTS=     sfml-1.*
X
XMAINTAINER=    demelier.david@gmail.com
XCOMMENT=       Simple and Fast Multimedia Library
X
XLIB_DEPENDS=   sndfile.1:${PORTSDIR}/audio/libsndfile \
X               jpeg.11:${PORTSDIR}/graphics/jpeg \
X               png15:${PORTSDIR}/graphics/png \
X               freetype.9:${PORTSDIR}/print/freetype2
X
XUSE_GMAKE=     yes
XUSE_OPENAL=    al
XUSE_XORG=      x11 xrandr
XUSE_GL=                gl glu glew
XUSE_LDCONFIG=  yes
XUSE_DOS2UNIX=  Makefile
XUSES=          cmake
XMAKE_JOBS_SAFE=        yes
XCMAKE_ARGS=    -DINSTALL_MISC_DIR:String=${DOCSDIR}
X
XOPTIONS_DEFINE=        DOCS
XOPTIONS_DEFAULT= DOCS
X
X.include <bsd.port.options.mk>
X
X.if ${PORT_OPTIONS:MDOCS}
XCMAKE_ARGS+=   -DDOCS=On
X.else
XCMAKE_ARGS+=   -DDOCS=Off
X.endif
X
XWRKSRC=                ${WRKDIR}/SFML-${PORTVERSION}
X
X.include <bsd.port.mk>
a0ccb26e9fe99c698518e1a38dfbd5e2
echo x - sfml2/distinfo
sed 's/^X//' >sfml2/distinfo << '1b8cd61403c98c156ac80114884e3b5a'
XSHA256 (SFML-2.0-sources.zip) = fde707c28d560e7fa73acb710e80a8fa38ff026d5a3d1afed9de67121bdcd7a6
XSIZE (SFML-2.0-sources.zip) = 13207464
1b8cd61403c98c156ac80114884e3b5a
echo x - sfml2/pkg-descr
sed 's/^X//' >sfml2/pkg-descr << '763297bf06c2d324d84b778f98be7f9d'
XSFML is a portable and easy to use multimedia API written in C++.
XYou can see it as a modern, object-oriented alternative to SDL.
X
XSFML is composed of several packages to perfectly suit your needs.
XYou can use SFML as a minimal windowing system to interface with
XOpenGL, or as a fully-featured multimedia library for building games
Xor interactive programs.
X
XWWW: http://www.sfml-dev.org/index.php
763297bf06c2d324d84b778f98be7f9d
echo x - sfml2/pkg-plist
sed 's/^X//' >sfml2/pkg-plist << 'a1fa4c3a3e295b7a734f317591fab4ef'
Xinclude/SFML/Audio.hpp
Xinclude/SFML/Audio/Export.hpp
Xinclude/SFML/Audio/Listener.hpp
Xinclude/SFML/Audio/Music.hpp
Xinclude/SFML/Audio/Sound.hpp
Xinclude/SFML/Audio/SoundBuffer.hpp
Xinclude/SFML/Audio/SoundBufferRecorder.hpp
Xinclude/SFML/Audio/SoundRecorder.hpp
Xinclude/SFML/Audio/SoundSource.hpp
Xinclude/SFML/Audio/SoundStream.hpp
Xinclude/SFML/Config.hpp
Xinclude/SFML/Graphics.hpp
Xinclude/SFML/Graphics/BlendMode.hpp
Xinclude/SFML/Graphics/CircleShape.hpp
Xinclude/SFML/Graphics/Color.hpp
Xinclude/SFML/Graphics/ConvexShape.hpp
Xinclude/SFML/Graphics/Drawable.hpp
Xinclude/SFML/Graphics/Export.hpp
Xinclude/SFML/Graphics/Font.hpp
Xinclude/SFML/Graphics/Glyph.hpp
Xinclude/SFML/Graphics/Image.hpp
Xinclude/SFML/Graphics/PrimitiveType.hpp
Xinclude/SFML/Graphics/Rect.hpp
Xinclude/SFML/Graphics/Rect.inl
Xinclude/SFML/Graphics/RectangleShape.hpp
Xinclude/SFML/Graphics/RenderStates.hpp
Xinclude/SFML/Graphics/RenderTarget.hpp
Xinclude/SFML/Graphics/RenderTexture.hpp
Xinclude/SFML/Graphics/RenderWindow.hpp
Xinclude/SFML/Graphics/Shader.hpp
Xinclude/SFML/Graphics/Shape.hpp
Xinclude/SFML/Graphics/Sprite.hpp
Xinclude/SFML/Graphics/Text.hpp
Xinclude/SFML/Graphics/Texture.hpp
Xinclude/SFML/Graphics/Transform.hpp
Xinclude/SFML/Graphics/Transformable.hpp
Xinclude/SFML/Graphics/Vertex.hpp
Xinclude/SFML/Graphics/VertexArray.hpp
Xinclude/SFML/Graphics/View.hpp
Xinclude/SFML/Network.hpp
Xinclude/SFML/Network/Export.hpp
Xinclude/SFML/Network/Ftp.hpp
Xinclude/SFML/Network/Http.hpp
Xinclude/SFML/Network/IpAddress.hpp
Xinclude/SFML/Network/Packet.hpp
Xinclude/SFML/Network/Socket.hpp
Xinclude/SFML/Network/SocketHandle.hpp
Xinclude/SFML/Network/SocketSelector.hpp
Xinclude/SFML/Network/TcpListener.hpp
Xinclude/SFML/Network/TcpSocket.hpp
Xinclude/SFML/Network/UdpSocket.hpp
Xinclude/SFML/OpenGL.hpp
Xinclude/SFML/System.hpp
Xinclude/SFML/System/Clock.hpp
Xinclude/SFML/System/Err.hpp
Xinclude/SFML/System/Export.hpp
Xinclude/SFML/System/InputStream.hpp
Xinclude/SFML/System/Lock.hpp
Xinclude/SFML/System/Mutex.hpp
Xinclude/SFML/System/NonCopyable.hpp
Xinclude/SFML/System/Sleep.hpp
Xinclude/SFML/System/String.hpp
Xinclude/SFML/System/Thread.hpp
Xinclude/SFML/System/Thread.inl
Xinclude/SFML/System/ThreadLocal.hpp
Xinclude/SFML/System/ThreadLocalPtr.hpp
Xinclude/SFML/System/ThreadLocalPtr.inl
Xinclude/SFML/System/Time.hpp
Xinclude/SFML/System/Utf.hpp
Xinclude/SFML/System/Utf.inl
Xinclude/SFML/System/Vector2.hpp
Xinclude/SFML/System/Vector2.inl
Xinclude/SFML/System/Vector3.hpp
Xinclude/SFML/System/Vector3.inl
Xinclude/SFML/Window.hpp
Xinclude/SFML/Window/Context.hpp
Xinclude/SFML/Window/ContextSettings.hpp
Xinclude/SFML/Window/Event.hpp
Xinclude/SFML/Window/Export.hpp
Xinclude/SFML/Window/GlResource.hpp
Xinclude/SFML/Window/Joystick.hpp
Xinclude/SFML/Window/Keyboard.hpp
Xinclude/SFML/Window/Mouse.hpp
Xinclude/SFML/Window/VideoMode.hpp
Xinclude/SFML/Window/Window.hpp
Xinclude/SFML/Window/WindowHandle.hpp
Xinclude/SFML/Window/WindowStyle.hpp
Xlib/libsfml-audio.so
Xlib/libsfml-audio.so.2
Xlib/libsfml-audio.so.2.0
Xlib/libsfml-graphics.so
Xlib/libsfml-graphics.so.2
Xlib/libsfml-graphics.so.2.0
Xlib/libsfml-network.so
Xlib/libsfml-network.so.2
Xlib/libsfml-network.so.2.0
Xlib/libsfml-system.so
Xlib/libsfml-system.so.2
Xlib/libsfml-system.so.2.0
Xlib/libsfml-window.so
Xlib/libsfml-window.so.2
Xlib/libsfml-window.so.2.0
Xlibdata/pkgconfig/sfml-all.pc
Xlibdata/pkgconfig/sfml-audio.pc
Xlibdata/pkgconfig/sfml-graphics.pc
Xlibdata/pkgconfig/sfml-network.pc
Xlibdata/pkgconfig/sfml-system.pc
Xlibdata/pkgconfig/sfml-window.pc
X%%PORTDOCS%%%%DOCSDIR%%/cmake/Modules/FindSFML.cmake
X%%PORTDOCS%%%%DOCSDIR%%/license.txt
X%%PORTDOCS%%%%DOCSDIR%%/readme.txt
X%%PORTDOCS%%@dirrmtry %%DOCSDIR%%/cmake/Modules
X%%PORTDOCS%%@dirrmtry %%DOCSDIR%%/cmake
X%%PORTDOCS%%@dirrmtry %%DOCSDIR%%
X@dirrmtry include/SFML/Window
X@dirrmtry include/SFML/System
X@dirrmtry include/SFML/Network
X@dirrmtry include/SFML/Graphics
X@dirrmtry include/SFML/Audio
X@dirrmtry include/SFML
a1fa4c3a3e295b7a734f317591fab4ef
exit

--- sfml2.shar ends here ---

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->amdmi3 
Responsible-Changed-By: amdmi3 
Responsible-Changed-When: Tue Apr 22 20:29:17 UTC 2014 
Responsible-Changed-Why:  
I'll take it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=178998 
State-Changed-From-To: open->feedback 
State-Changed-By: amdmi3 
State-Changed-When: Tue Apr 22 20:30:06 UTC 2014 
State-Changed-Why:  
Is the compatibility broken against 1.6? If not, devel/sfml should be 
updated instead. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=178998 
State-Changed-From-To: feedback->open 
State-Changed-By: amdmi3 
State-Changed-When: Tue Apr 29 23:48:01 UTC 2014 
State-Changed-Why:  
Turns out it's not. Upstream has merged FreeBSD compatibility patches so 
git master of sfml 2.x compiles fine. The plan is to copy sfml to sfml1 
to provide compatibility for ports that do not work with sfml 2.x 
(games/motogt) with some hacks added to make it coexist with sfml 2.x, 
while sfml port would be updated to 2.x (probably git master if newer 
version is not released anytime soon). Other sfml-using ports 
(emulators/dolphin-emu and emulators/visualboyadvance-m) seem to work 
fine with sfml 2.x. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=178998 
>Unformatted:
