mirror of
https://git.freebsd.org/ports.git
synced 2025-06-03 20:06:29 -04:00
lang/gcc which have moved from GCC 4.9.4 to GCC 5.4 (at least under some circumstances such as versions of FreeBSD or platforms). This includes ports - with USE_GCC=yes or USE_GCC=any, - with USES=fortran, - using using Mk/bsd.octave.mk which in turn has USES=fortran, and - with USES=compiler specifying openmp, nestedfct, c++11-lib, c++14-lang, c++11-lang, c++0x, c11, or gcc-c++11-lib. PR: 216707
45 lines
998 B
Makefile
45 lines
998 B
Makefile
# Created by: Dmitry Marakasov <amdmi3@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= sdl2pp
|
|
PORTVERSION= 0.13.0
|
|
PORTREVISION= 1
|
|
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= libSDL2pp
|
|
GH_PROJECT= libSDL2pp
|
|
|
|
USES= compiler:c++11-lib cmake
|
|
CMAKE_ARGS= -DSDL2PP_ENABLE_LIVE_TESTS=OFF \
|
|
-DSDL2PP_WITH_WERROR=ON
|
|
USE_SDL= sdl2 image2 mixer2 ttf2
|
|
TEST_TARGET= test
|
|
|
|
PORTDOCS= *
|
|
|
|
OPTIONS_DEFINE= DOCS DOXYGEN
|
|
DOXYGEN_BUILD_DEPENDS= doxygen:devel/doxygen
|
|
DOXYGEN_ALL_TARGET= all doxygen
|
|
DOXYGEN_IMPLIES= DOCS
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${CHOSEN_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}/
|
|
|
|
post-install-DOXYGEN-on:
|
|
cd ${CONFIGURE_WRKSRC} && ${COPYTREE_SHARE} doxygen ${STAGEDIR}${DOCSDIR}/
|
|
|
|
.include <bsd.port.post.mk>
|