mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-24 00:45:52 +00:00
This library provides C++11 bindings/wrapper over a subset of SDL2
functions with extra features proided with modern C++ such as: * RAII-style initialization and destruction * Full error checking: exception is thrown if any SDL function fails. Exception itself allows to retrieve SDL error string * C++11 move semantics support, which allow you to store SDL objects in containers and pass/return them by value with no overhead WWW: https://github.com/AMDmi3/libSDL2pp
This commit is contained in:
parent
a9ac0eea1e
commit
e47d067c5d
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=374985
@ -4648,6 +4648,7 @@
|
||||
SUBDIR += scons
|
||||
SUBDIR += sdl12
|
||||
SUBDIR += sdl20
|
||||
SUBDIR += sdl2pp
|
||||
SUBDIR += sdl_console
|
||||
SUBDIR += sdl_gnat
|
||||
SUBDIR += sdl_sge
|
||||
|
41
devel/sdl2pp/Makefile
Normal file
41
devel/sdl2pp/Makefile
Normal file
@ -0,0 +1,41 @@
|
||||
# Created by: Dmitry Marakasov <amdmi3@FreeBSD.org>
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= sdl2pp
|
||||
PORTVERSION= 0.4.0
|
||||
CATEGORIES= devel
|
||||
|
||||
MAINTAINER= amdmi3@FreeBSD.org
|
||||
COMMENT= C++11 bindings/wrapper for SDL2
|
||||
|
||||
LICENSE= ZLIB
|
||||
LICENSE_FILE= ${WRKSRC}/COPYING.txt
|
||||
|
||||
USE_GITHUB= yes
|
||||
GH_ACCOUNT= AMDmi3
|
||||
GH_PROJECT= libSDL2pp
|
||||
GH_COMMIT= eea2b29
|
||||
|
||||
USES= compiler:c++11-lib cmake
|
||||
CMAKE_ARGS= -DRUN_GUI_TESTS=OFF \
|
||||
-DSDL2PP_WITH_WERROR=ON
|
||||
USE_SDL= sdl2 image2
|
||||
|
||||
PORTDOCS= *
|
||||
|
||||
OPTIONS_DEFINE= DOCS
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if ${COMPILER_TYPE} == gcc
|
||||
CXXFLAGS+= -D_GLIBCXX_USE_C99 # gcc c++11 support is broken on FreeBSD
|
||||
.endif
|
||||
|
||||
post-install:
|
||||
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}/
|
||||
|
||||
regression-test: build
|
||||
cd ${WRKSRC} && ${DO_MAKE_BUILD} test
|
||||
|
||||
.include <bsd.port.post.mk>
|
2
devel/sdl2pp/distinfo
Normal file
2
devel/sdl2pp/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
SHA256 (sdl2pp-0.4.0.tar.gz) = 73ccc98a9557c0683baa446c17e9e71d7b7cb56de795c6927adbde93bafa18da
|
||||
SIZE (sdl2pp-0.4.0.tar.gz) = 90567
|
10
devel/sdl2pp/pkg-descr
Normal file
10
devel/sdl2pp/pkg-descr
Normal file
@ -0,0 +1,10 @@
|
||||
This library provides C++11 bindings/wrapper over a subset of SDL2
|
||||
functions with extra features proided with modern C++ such as:
|
||||
|
||||
* RAII-style initialization and destruction
|
||||
* Full error checking: exception is thrown if any SDL function
|
||||
fails. Exception itself allows to retrieve SDL error string
|
||||
* C++11 move semantics support, which allow you to store SDL objects
|
||||
in containers and pass/return them by value with no overhead
|
||||
|
||||
WWW: https://github.com/AMDmi3/libSDL2pp
|
19
devel/sdl2pp/pkg-plist
Normal file
19
devel/sdl2pp/pkg-plist
Normal file
@ -0,0 +1,19 @@
|
||||
include/SDL2pp/AudioDevice.hh
|
||||
include/SDL2pp/AudioSpec.hh
|
||||
include/SDL2pp/Config.hh
|
||||
include/SDL2pp/ContainerRWops.hh
|
||||
include/SDL2pp/Exception.hh
|
||||
include/SDL2pp/Point.hh
|
||||
include/SDL2pp/RWops.hh
|
||||
include/SDL2pp/Rect.hh
|
||||
include/SDL2pp/Renderer.hh
|
||||
include/SDL2pp/SDL.hh
|
||||
include/SDL2pp/SDL2pp.hh
|
||||
include/SDL2pp/StreamRWops.hh
|
||||
include/SDL2pp/Texture.hh
|
||||
include/SDL2pp/Wav.hh
|
||||
include/SDL2pp/Window.hh
|
||||
lib/libSDL2pp.so
|
||||
lib/libSDL2pp.so.1
|
||||
lib/libSDL2pp.so.1.0.0
|
||||
libdata/pkgconfig/sdl2pp.pc
|
Loading…
Reference in New Issue
Block a user