Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 20 Dec 2014 00:08:15 +0000 (UTC)
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r374985 - in head/devel: . sdl2pp
Message-ID:  <201412200008.sBK08FhU049201@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: amdmi3
Date: Sat Dec 20 00:08:14 2014
New Revision: 374985
URL: https://svnweb.freebsd.org/changeset/ports/374985
QAT: https://qat.redports.org/buildarchive/r374985/

Log:
  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

Added:
  head/devel/sdl2pp/
  head/devel/sdl2pp/Makefile   (contents, props changed)
  head/devel/sdl2pp/distinfo   (contents, props changed)
  head/devel/sdl2pp/pkg-descr   (contents, props changed)
  head/devel/sdl2pp/pkg-plist   (contents, props changed)
Modified:
  head/devel/Makefile

Modified: head/devel/Makefile
==============================================================================
--- head/devel/Makefile	Fri Dec 19 23:47:26 2014	(r374984)
+++ head/devel/Makefile	Sat Dec 20 00:08:14 2014	(r374985)
@@ -4648,6 +4648,7 @@
     SUBDIR += scons
     SUBDIR += sdl12
     SUBDIR += sdl20
+    SUBDIR += sdl2pp
     SUBDIR += sdl_console
     SUBDIR += sdl_gnat
     SUBDIR += sdl_sge

Added: head/devel/sdl2pp/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/sdl2pp/Makefile	Sat Dec 20 00:08:14 2014	(r374985)
@@ -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>

Added: head/devel/sdl2pp/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/sdl2pp/distinfo	Sat Dec 20 00:08:14 2014	(r374985)
@@ -0,0 +1,2 @@
+SHA256 (sdl2pp-0.4.0.tar.gz) = 73ccc98a9557c0683baa446c17e9e71d7b7cb56de795c6927adbde93bafa18da
+SIZE (sdl2pp-0.4.0.tar.gz) = 90567

Added: head/devel/sdl2pp/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/sdl2pp/pkg-descr	Sat Dec 20 00:08:14 2014	(r374985)
@@ -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

Added: head/devel/sdl2pp/pkg-plist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/sdl2pp/pkg-plist	Sat Dec 20 00:08:14 2014	(r374985)
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201412200008.sBK08FhU049201>