Date: Mon, 22 Jul 2024 23:17:59 GMT From: Dmitry Marakasov <amdmi3@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: a49cde69ae5e - main - devel/sfml251: add port Message-ID: <202407222317.46MNHxO5082269@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by amdmi3: URL: https://cgit.FreeBSD.org/ports/commit/?id=a49cde69ae5e9cadac7489e72405de8acf1224bc commit a49cde69ae5e9cadac7489e72405de8acf1224bc Author: Dmitry Marakasov <amdmi3@FreeBSD.org> AuthorDate: 2024-06-10 14:36:12 +0000 Commit: Dmitry Marakasov <amdmi3@FreeBSD.org> CommitDate: 2024-07-22 23:13:29 +0000 devel/sfml251: add port Preserve older SFML version still needed for games/emptyepsilon before devel/sfml update. --- devel/Makefile | 1 + devel/sfml/Makefile | 2 + devel/sfml251/Makefile | 73 +++++++++++ devel/sfml251/distinfo | 3 + .../patch-src_SFML_Window_Unix_WindowImplX11.cpp | 15 +++ devel/sfml251/pkg-descr | 7 ++ devel/sfml251/pkg-plist | 133 +++++++++++++++++++++ 7 files changed, 234 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index 7159a4cb0be1..fe023cb22441 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -7866,6 +7866,7 @@ SUBDIR += serdisplib SUBDIR += sfml SUBDIR += sfml1 + SUBDIR += sfml251 SUBDIR += sfsexp SUBDIR += sgb SUBDIR += shadered diff --git a/devel/sfml/Makefile b/devel/sfml/Makefile index b9d8a264b67f..b476069572bc 100644 --- a/devel/sfml/Makefile +++ b/devel/sfml/Makefile @@ -20,6 +20,8 @@ CMAKE_ARGS= -DSFML_INSTALL_PKGCONFIG_FILES=ON \ -DSFML_USE_SYSTEM_DEPS=ON USE_LDCONFIG= yes +CONFLICTS= sfml251 + DATADIR= ${PREFIX}/share/SFML PORTDATA= * PORTDOCS= * diff --git a/devel/sfml251/Makefile b/devel/sfml251/Makefile new file mode 100644 index 000000000000..0ecfd9007ced --- /dev/null +++ b/devel/sfml251/Makefile @@ -0,0 +1,73 @@ +PORTNAME= sfml +PORTVERSION= 2.5.1 +PORTREVISION= 4 +CATEGORIES= devel +PKGNAMESUFFIX= 251 + +MAINTAINER= amdmi3@FreeBSD.org +COMMENT= Simple and Fast Multimedia Library +WWW= https://www.sfml-dev.org/ + +LICENSE= ZLIB +LICENSE_FILE= ${WRKSRC}/license.md + +USE_GITHUB= yes +GH_ACCOUNT= SFML +GH_PROJECT= SFML + +USES= cmake compiler:c++11-lang +USE_CXXSTD= c++14 +CMAKE_ARGS= -DSFML_INSTALL_PKGCONFIG_FILES=ON \ + -DSFML_USE_SYSTEM_DEPS=ON +USE_LDCONFIG= yes + +CONFLICTS= sfml + +DATADIR= ${PREFIX}/share/SFML +PORTDATA= * +PORTDOCS= * +PORTEXAMPLES= * + +OPTIONS_DEFINE= DOCS EXAMPLES DOXYGEN +OPTIONS_GROUP= MODULES +OPTIONS_GROUP_MODULES= WINDOW GRAPHICS AUDIO NETWORK +OPTIONS_DEFAULT=${OPTIONS_GROUP_MODULES} +OPTIONS_SUB= yes + +MODULES_DESC= SFML modules + +WINDOW_DESC= SFML Window module +WINDOW_CMAKE_BOOL= SFML_BUILD_WINDOW +WINDOW_USES= gl xorg +WINDOW_USE= XORG=x11,xrandr GL=gl + +GRAPHICS_DESC= SFML Graphics module +GRAPHICS_CMAKE_BOOL= SFML_BUILD_GRAPHICS +GRAPHICS_LIB_DEPENDS= libfreetype.so:print/freetype2 +GRAPHICS_IMPLIES= WINDOW + +AUDIO_DESC= SFML Audio module +AUDIO_CMAKE_BOOL= SFML_BUILD_AUDIO +AUDIO_USES= openal:al +AUDIO_LIB_DEPENDS= libFLAC.so:audio/flac \ + libogg.so:audio/libogg \ + libvorbis.so:audio/libvorbis + +NETWORK_DESC= SFML Network module +NETWORK_CMAKE_BOOL= SFML_BUILD_NETWORK + +DOXYGEN_CMAKE_BOOL= SFML_BUILD_DOC +DOXYGEN_BUILD_DEPENDS= doxygen:devel/doxygen +DOXYGEN_IMPLIES= DOCS + +EXAMPLES_CMAKE_BOOL= SFML_BUILD_EXAMPLES + +post-install: + @${RM} ${STAGEDIR}${PREFIX}/*.pc + +post-install-DOCS-on: + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/changelog.md ${WRKSRC}/readme.md \ + ${STAGEDIR}${DOCSDIR} + +.include <bsd.port.mk> diff --git a/devel/sfml251/distinfo b/devel/sfml251/distinfo new file mode 100644 index 000000000000..cb5877ad1ea7 --- /dev/null +++ b/devel/sfml251/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1539702187 +SHA256 (SFML-SFML-2.5.1_GH0.tar.gz) = 438c91a917cc8aa19e82c6f59f8714da353c488584a007d401efac8368e1c785 +SIZE (SFML-SFML-2.5.1_GH0.tar.gz) = 22868556 diff --git a/devel/sfml251/files/patch-src_SFML_Window_Unix_WindowImplX11.cpp b/devel/sfml251/files/patch-src_SFML_Window_Unix_WindowImplX11.cpp new file mode 100644 index 000000000000..a7e1715f1b19 --- /dev/null +++ b/devel/sfml251/files/patch-src_SFML_Window_Unix_WindowImplX11.cpp @@ -0,0 +1,15 @@ +src/SFML/Window/Unix/WindowImplX11.cpp:1278:36: error: reinterpret_cast from 'nullptr_t' to 'void *' is not allowed + reinterpret_cast<void*>(NULL)); + ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +--- src/SFML/Window/Unix/WindowImplX11.cpp.orig 2017-02-08 11:29:16 UTC ++++ src/SFML/Window/Unix/WindowImplX11.cpp +@@ -1275,7 +1275,7 @@ void WindowImplX11::initialize() + m_window, + XNInputStyle, + XIMPreeditNothing | XIMStatusNothing, +- reinterpret_cast<void*>(NULL)); ++ static_cast<void*>(NULL)); + } + else + { diff --git a/devel/sfml251/pkg-descr b/devel/sfml251/pkg-descr new file mode 100644 index 000000000000..1ff9a8306396 --- /dev/null +++ b/devel/sfml251/pkg-descr @@ -0,0 +1,7 @@ +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. diff --git a/devel/sfml251/pkg-plist b/devel/sfml251/pkg-plist new file mode 100644 index 000000000000..bc6ef20291e2 --- /dev/null +++ b/devel/sfml251/pkg-plist @@ -0,0 +1,133 @@ +include/SFML/Audio.hpp +include/SFML/Audio/AlResource.hpp +include/SFML/Audio/Export.hpp +include/SFML/Audio/InputSoundFile.hpp +include/SFML/Audio/Listener.hpp +include/SFML/Audio/Music.hpp +include/SFML/Audio/OutputSoundFile.hpp +include/SFML/Audio/Sound.hpp +include/SFML/Audio/SoundBuffer.hpp +include/SFML/Audio/SoundBufferRecorder.hpp +include/SFML/Audio/SoundFileFactory.hpp +include/SFML/Audio/SoundFileFactory.inl +include/SFML/Audio/SoundFileReader.hpp +include/SFML/Audio/SoundFileWriter.hpp +include/SFML/Audio/SoundRecorder.hpp +include/SFML/Audio/SoundSource.hpp +include/SFML/Audio/SoundStream.hpp +include/SFML/Config.hpp +include/SFML/GpuPreference.hpp +include/SFML/Graphics.hpp +include/SFML/Graphics/BlendMode.hpp +include/SFML/Graphics/CircleShape.hpp +include/SFML/Graphics/Color.hpp +include/SFML/Graphics/ConvexShape.hpp +include/SFML/Graphics/Drawable.hpp +include/SFML/Graphics/Export.hpp +include/SFML/Graphics/Font.hpp +include/SFML/Graphics/Glsl.hpp +include/SFML/Graphics/Glsl.inl +include/SFML/Graphics/Glyph.hpp +include/SFML/Graphics/Image.hpp +include/SFML/Graphics/PrimitiveType.hpp +include/SFML/Graphics/Rect.hpp +include/SFML/Graphics/Rect.inl +include/SFML/Graphics/RectangleShape.hpp +include/SFML/Graphics/RenderStates.hpp +include/SFML/Graphics/RenderTarget.hpp +include/SFML/Graphics/RenderTexture.hpp +include/SFML/Graphics/RenderWindow.hpp +include/SFML/Graphics/Shader.hpp +include/SFML/Graphics/Shape.hpp +include/SFML/Graphics/Sprite.hpp +include/SFML/Graphics/Text.hpp +include/SFML/Graphics/Texture.hpp +include/SFML/Graphics/Transform.hpp +include/SFML/Graphics/Transformable.hpp +include/SFML/Graphics/Vertex.hpp +include/SFML/Graphics/VertexArray.hpp +include/SFML/Graphics/VertexBuffer.hpp +include/SFML/Graphics/View.hpp +include/SFML/Main.hpp +include/SFML/Network.hpp +include/SFML/Network/Export.hpp +include/SFML/Network/Ftp.hpp +include/SFML/Network/Http.hpp +include/SFML/Network/IpAddress.hpp +include/SFML/Network/Packet.hpp +include/SFML/Network/Socket.hpp +include/SFML/Network/SocketHandle.hpp +include/SFML/Network/SocketSelector.hpp +include/SFML/Network/TcpListener.hpp +include/SFML/Network/TcpSocket.hpp +include/SFML/Network/UdpSocket.hpp +include/SFML/OpenGL.hpp +include/SFML/System.hpp +include/SFML/System/Clock.hpp +include/SFML/System/Err.hpp +include/SFML/System/Export.hpp +include/SFML/System/FileInputStream.hpp +include/SFML/System/InputStream.hpp +include/SFML/System/Lock.hpp +include/SFML/System/MemoryInputStream.hpp +include/SFML/System/Mutex.hpp +include/SFML/System/NativeActivity.hpp +include/SFML/System/NonCopyable.hpp +include/SFML/System/Sleep.hpp +include/SFML/System/String.hpp +include/SFML/System/String.inl +include/SFML/System/Thread.hpp +include/SFML/System/Thread.inl +include/SFML/System/ThreadLocal.hpp +include/SFML/System/ThreadLocalPtr.hpp +include/SFML/System/ThreadLocalPtr.inl +include/SFML/System/Time.hpp +include/SFML/System/Utf.hpp +include/SFML/System/Utf.inl +include/SFML/System/Vector2.hpp +include/SFML/System/Vector2.inl +include/SFML/System/Vector3.hpp +include/SFML/System/Vector3.inl +include/SFML/Window.hpp +include/SFML/Window/Clipboard.hpp +include/SFML/Window/Context.hpp +include/SFML/Window/ContextSettings.hpp +include/SFML/Window/Cursor.hpp +include/SFML/Window/Event.hpp +include/SFML/Window/Export.hpp +include/SFML/Window/GlResource.hpp +include/SFML/Window/Joystick.hpp +include/SFML/Window/Keyboard.hpp +include/SFML/Window/Mouse.hpp +include/SFML/Window/Sensor.hpp +include/SFML/Window/Touch.hpp +include/SFML/Window/VideoMode.hpp +include/SFML/Window/Window.hpp +include/SFML/Window/WindowHandle.hpp +include/SFML/Window/WindowStyle.hpp +lib/cmake/SFML/SFMLConfig.cmake +lib/cmake/SFML/SFMLConfigDependencies.cmake +lib/cmake/SFML/SFMLConfigVersion.cmake +lib/cmake/SFML/SFMLSharedTargets-%%CMAKE_BUILD_TYPE%%.cmake +lib/cmake/SFML/SFMLSharedTargets.cmake +%%AUDIO%%lib/libsfml-audio.so +%%AUDIO%%lib/libsfml-audio.so.2.5 +%%AUDIO%%lib/libsfml-audio.so.2.5.1 +%%GRAPHICS%%lib/libsfml-graphics.so +%%GRAPHICS%%lib/libsfml-graphics.so.2.5 +%%GRAPHICS%%lib/libsfml-graphics.so.2.5.1 +%%NETWORK%%lib/libsfml-network.so +%%NETWORK%%lib/libsfml-network.so.2.5 +%%NETWORK%%lib/libsfml-network.so.2.5.1 +lib/libsfml-system.so +lib/libsfml-system.so.2.5 +lib/libsfml-system.so.2.5.1 +%%WINDOW%%lib/libsfml-window.so +%%WINDOW%%lib/libsfml-window.so.2.5 +%%WINDOW%%lib/libsfml-window.so.2.5.1 +libdata/pkgconfig/sfml-all.pc +%%AUDIO%%libdata/pkgconfig/sfml-audio.pc +%%GRAPHICS%%libdata/pkgconfig/sfml-graphics.pc +%%NETWORK%%libdata/pkgconfig/sfml-network.pc +libdata/pkgconfig/sfml-system.pc +%%WINDOW%%libdata/pkgconfig/sfml-window.pc
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202407222317.46MNHxO5082269>