From owner-svn-ports-head@freebsd.org Tue Dec 4 05:38:24 2018 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 95D1F1325077; Tue, 4 Dec 2018 05:38:24 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E7AE185857; Tue, 4 Dec 2018 05:38:23 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id B7E5120EAE; Tue, 4 Dec 2018 05:38:20 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id wB45cKdH082091; Tue, 4 Dec 2018 05:38:20 GMT (envelope-from yuri@FreeBSD.org) Received: (from yuri@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id wB45cKOD082089; Tue, 4 Dec 2018 05:38:20 GMT (envelope-from yuri@FreeBSD.org) Message-Id: <201812040538.wB45cKOD082089@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: yuri set sender to yuri@FreeBSD.org using -f From: Yuri Victorovich Date: Tue, 4 Dec 2018 05:38:20 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r486584 - in head/graphics/libprojectm: . files X-SVN-Group: ports-head X-SVN-Commit-Author: yuri X-SVN-Commit-Paths: in head/graphics/libprojectm: . files X-SVN-Commit-Revision: 486584 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: E7AE185857 X-Spamd-Result: default: False [-0.68 / 15.00]; local_wl_from(0.00)[FreeBSD.org]; NEURAL_HAM_MEDIUM(-0.48)[-0.475,0]; NEURAL_SPAM_LONG(0.05)[0.050,0]; ASN(0.00)[asn:11403, ipnet:2610:1c1:1::/48, country:US]; NEURAL_HAM_SHORT(-0.25)[-0.255,0] X-Rspamd-Server: mx1.freebsd.org X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Dec 2018 05:38:24 -0000 Author: yuri Date: Tue Dec 4 05:38:19 2018 New Revision: 486584 URL: https://svnweb.freebsd.org/changeset/ports/486584 Log: graphics/libprojectm: fix build with GCC-based architectures There are two issues here: 1. GLM requires at least GCC 4.7, base has 4.2. Add USES=compiler:c++11-lang to solve it. 2. the port uses typedefs from sys/types.h, but those are not included by default by GCC. PR: 233748 Submitted by: Piotr Kubaj Added: head/graphics/libprojectm/files/patch-src_libprojectM_Renderer_ShaderEngine.cpp (contents, props changed) head/graphics/libprojectm/files/patch-src_libprojectM_Renderer_hlslparser_src_HLSLParser.cpp (contents, props changed) Modified: head/graphics/libprojectm/Makefile Modified: head/graphics/libprojectm/Makefile ============================================================================== --- head/graphics/libprojectm/Makefile Tue Dec 4 05:38:12 2018 (r486583) +++ head/graphics/libprojectm/Makefile Tue Dec 4 05:38:19 2018 (r486584) @@ -17,7 +17,8 @@ LIB_DEPENDS= libftgl.so:graphics/ftgl \ libvisual-0.4.so:graphics/libvisual04 RUN_DEPENDS= ${LOCALBASE}/include/glm/glm.hpp:math/glm -USES= autoreconf:build gl gmake libtool localbase:ldflags pkgconfig qt:5 +USES= autoreconf:build compiler:c++11-lang gl gmake libtool \ + localbase:ldflags pkgconfig qt:5 USE_GITHUB= yes GH_ACCOUNT= projectM-visualizer Added: head/graphics/libprojectm/files/patch-src_libprojectM_Renderer_ShaderEngine.cpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/graphics/libprojectm/files/patch-src_libprojectM_Renderer_ShaderEngine.cpp Tue Dec 4 05:38:19 2018 (r486584) @@ -0,0 +1,12 @@ +--- src/libprojectM/Renderer/ShaderEngine.cpp.orig 2018-12-03 11:18:41 UTC ++++ src/libprojectM/Renderer/ShaderEngine.cpp +@@ -16,6 +16,9 @@ + #include + #include + #include ++#ifdef __FreeBSD__ ++#include ++#endif + + #ifdef USE_GLES + #define GLSL_VERSION "300 es" Added: head/graphics/libprojectm/files/patch-src_libprojectM_Renderer_hlslparser_src_HLSLParser.cpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/graphics/libprojectm/files/patch-src_libprojectM_Renderer_hlslparser_src_HLSLParser.cpp Tue Dec 4 05:38:19 2018 (r486584) @@ -0,0 +1,12 @@ +--- src/libprojectM/Renderer/hlslparser/src/HLSLParser.cpp.orig 2018-12-03 11:23:19 UTC ++++ src/libprojectM/Renderer/hlslparser/src/HLSLParser.cpp +@@ -20,6 +20,9 @@ + #include + #include + #include ++#ifdef __FreeBSD__ ++#include ++#endif + + namespace M4 + {