Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F142370833
D41519.id128205.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
5 KB
Referenced Files
None
Subscribers
None
D41519.id128205.diff
View Options
diff --git a/devel/Makefile b/devel/Makefile
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -472,6 +472,7 @@
SUBDIR += criterion
SUBDIR += cscope
SUBDIR += cscout
+ SUBDIR += csfml
SUBDIR += csmith
SUBDIR += csoap
SUBDIR += cssc
diff --git a/devel/csfml/Makefile b/devel/csfml/Makefile
new file mode 100644
--- /dev/null
+++ b/devel/csfml/Makefile
@@ -0,0 +1,32 @@
+PORTNAME= csfml
+PORTVERSION= 2.5.2
+CATEGORIES= devel
+
+MAINTAINER= agh@FreeBSD.org
+COMMENT= C bindings to the Simple and Fast Multimedia Library (SFML)
+WWW= https://www.sfml-dev.org/
+
+LICENSE= ZLIB
+LICENSE_FILE= ${WRKSRC}/license.md
+
+BUILD_DEPENDS= sfml>0:devel/sfml
+LIB_DEPENDS= libsfml-audio.so:devel/sfml \
+ libsfml-graphics.so:devel/sfml \
+ libsfml-network.so:devel/sfml \
+ libsfml-system.so:devel/sfml \
+ libsfml-window.so:devel/sfml
+
+USES= cmake
+USE_GITHUB= yes
+GH_ACCOUNT= SFML
+GH_PROJECT= CSFML
+
+OPTIONS_DEFINE= DOCS
+OPTIONS_SUB= yes
+
+post-install-DOCS-on:
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/readme.md \
+ ${STAGEDIR}${DOCSDIR}
+
+.include <bsd.port.mk>
diff --git a/devel/csfml/distinfo b/devel/csfml/distinfo
new file mode 100644
--- /dev/null
+++ b/devel/csfml/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1692583729
+SHA256 (SFML-CSFML-2.5.2_GH0.tar.gz) = 2671f1cd2a4e54e86f7483c4683132466c01a6ca90fa010bc4964a8820c36f06
+SIZE (SFML-CSFML-2.5.2_GH0.tar.gz) = 166888
diff --git a/devel/csfml/files/patch-CMakeLists.txt b/devel/csfml/files/patch-CMakeLists.txt
new file mode 100644
--- /dev/null
+++ b/devel/csfml/files/patch-CMakeLists.txt
@@ -0,0 +1,10 @@
+--- CMakeLists.txt.orig 2023-10-04 04:59:37 UTC
++++ CMakeLists.txt
+@@ -63,5 +63,5 @@ install(DIRECTORY include
+ DESTINATION .
+ COMPONENT devel
+ PATTERN ".svn" EXCLUDE)
+-install(FILES license.md DESTINATION ${INSTALL_MISC_DIR})
+-install(FILES readme.md DESTINATION ${INSTALL_MISC_DIR})
++#install(FILES license.md DESTINATION ${INSTALL_MISC_DIR})
++#install(FILES readme.md DESTINATION ${INSTALL_MISC_DIR})
diff --git a/devel/csfml/pkg-descr b/devel/csfml/pkg-descr
new file mode 100644
--- /dev/null
+++ b/devel/csfml/pkg-descr
@@ -0,0 +1,9 @@
+CSFML is the official C bindings for the Simple and Fast Multimedia Library
+(SFML). The CSFML API aims to create C style abstractions as close as possible,
+to the SFML C++ API. The follow on aim of this, enables building SFML bindings,
+in other languages, either via the language's Foreign Function Interface
+methods, or directly supporting C instead of C++ libraries.
+
+Due to the similarities between the two C, and C++ APIs, there is no tutorial
+provided, however, users can follow the C++ tutorials available via the SFML
+website. Adapting these tutorials to the C API should take little effort.
diff --git a/devel/csfml/pkg-plist b/devel/csfml/pkg-plist
new file mode 100644
--- /dev/null
+++ b/devel/csfml/pkg-plist
@@ -0,0 +1,98 @@
+include/SFML/Audio.h
+include/SFML/Audio/Export.h
+include/SFML/Audio/Listener.h
+include/SFML/Audio/Music.h
+include/SFML/Audio/Sound.h
+include/SFML/Audio/SoundBuffer.h
+include/SFML/Audio/SoundBufferRecorder.h
+include/SFML/Audio/SoundRecorder.h
+include/SFML/Audio/SoundStatus.h
+include/SFML/Audio/SoundStream.h
+include/SFML/Audio/Types.h
+include/SFML/Config.h
+include/SFML/GPUPreference.h
+include/SFML/Graphics.h
+include/SFML/Graphics/BlendMode.h
+include/SFML/Graphics/CircleShape.h
+include/SFML/Graphics/Color.h
+include/SFML/Graphics/ConvexShape.h
+include/SFML/Graphics/Export.h
+include/SFML/Graphics/Font.h
+include/SFML/Graphics/FontInfo.h
+include/SFML/Graphics/Glsl.h
+include/SFML/Graphics/Glyph.h
+include/SFML/Graphics/Image.h
+include/SFML/Graphics/PrimitiveType.h
+include/SFML/Graphics/Rect.h
+include/SFML/Graphics/RectangleShape.h
+include/SFML/Graphics/RenderStates.h
+include/SFML/Graphics/RenderTexture.h
+include/SFML/Graphics/RenderWindow.h
+include/SFML/Graphics/Shader.h
+include/SFML/Graphics/Shape.h
+include/SFML/Graphics/Sprite.h
+include/SFML/Graphics/Text.h
+include/SFML/Graphics/Texture.h
+include/SFML/Graphics/Transform.h
+include/SFML/Graphics/Transformable.h
+include/SFML/Graphics/Types.h
+include/SFML/Graphics/Vertex.h
+include/SFML/Graphics/VertexArray.h
+include/SFML/Graphics/VertexBuffer.h
+include/SFML/Graphics/View.h
+include/SFML/Network.h
+include/SFML/Network/Export.h
+include/SFML/Network/Ftp.h
+include/SFML/Network/Http.h
+include/SFML/Network/IpAddress.h
+include/SFML/Network/Packet.h
+include/SFML/Network/SocketSelector.h
+include/SFML/Network/SocketStatus.h
+include/SFML/Network/TcpListener.h
+include/SFML/Network/TcpSocket.h
+include/SFML/Network/Types.h
+include/SFML/Network/UdpSocket.h
+include/SFML/OpenGL.h
+include/SFML/System.h
+include/SFML/System/Clock.h
+include/SFML/System/Export.h
+include/SFML/System/InputStream.h
+include/SFML/System/Mutex.h
+include/SFML/System/Sleep.h
+include/SFML/System/Thread.h
+include/SFML/System/Time.h
+include/SFML/System/Types.h
+include/SFML/System/Vector2.h
+include/SFML/System/Vector3.h
+include/SFML/Window.h
+include/SFML/Window/Clipboard.h
+include/SFML/Window/Context.h
+include/SFML/Window/Cursor.h
+include/SFML/Window/Event.h
+include/SFML/Window/Export.h
+include/SFML/Window/Joystick.h
+include/SFML/Window/JoystickIdentification.h
+include/SFML/Window/Keyboard.h
+include/SFML/Window/Mouse.h
+include/SFML/Window/Sensor.h
+include/SFML/Window/Touch.h
+include/SFML/Window/Types.h
+include/SFML/Window/VideoMode.h
+include/SFML/Window/Window.h
+include/SFML/Window/WindowHandle.h
+lib/libcsfml-audio.so
+lib/libcsfml-audio.so.2.5
+lib/libcsfml-audio.so.2.5.2
+lib/libcsfml-graphics.so
+lib/libcsfml-graphics.so.2.5
+lib/libcsfml-graphics.so.2.5.2
+lib/libcsfml-network.so
+lib/libcsfml-network.so.2.5
+lib/libcsfml-network.so.2.5.2
+lib/libcsfml-system.so
+lib/libcsfml-system.so.2.5
+lib/libcsfml-system.so.2.5.2
+lib/libcsfml-window.so
+lib/libcsfml-window.so.2.5
+lib/libcsfml-window.so.2.5.2
+%%DOCS%%%%DOCSDIR%%/readme.md
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Jan 20, 5:25 AM (12 h, 50 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
27753205
Default Alt Text
D41519.id128205.diff (5 KB)
Attached To
Mode
D41519: devel/csfml: New Port, CSFML, C bindings to the Simple and Fast Multimedia Library
Attached
Detach File
Event Timeline
Log In to Comment