Bug 233748

Summary: graphics/libprojectm: fix build with GCC-based architectures
Product: Ports & Packages Reporter: Piotr Kubaj <pkubaj>
Component: Individual Port(s)Assignee: Yuri Victorovich <yuri>
Status: Closed FIXED    
Severity: Affects Only Me CC: linimon, pkubaj
Priority: --- Flags: bugzilla: maintainer-feedback? (yuri)
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
patch none

Description Piotr Kubaj freebsd_committer freebsd_triage 2018-12-03 11:49:27 UTC
Created attachment 199794 [details]
patch

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.

Tested on powerpc64 and amd64.

Hardware sponsored by IntegriCloud.
Comment 1 Yuri Victorovich freebsd_committer freebsd_triage 2018-12-04 05:38:31 UTC
Committed, thanks!
Comment 2 commit-hook freebsd_committer freebsd_triage 2018-12-04 05:38:43 UTC
A commit references this bug:

Author: yuri
Date: Tue Dec  4 05:38:20 UTC 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 <pkubaj@anongoth.pl>

Changes:
  head/graphics/libprojectm/Makefile
  head/graphics/libprojectm/files/patch-src_libprojectM_Renderer_ShaderEngine.cpp
  head/graphics/libprojectm/files/patch-src_libprojectM_Renderer_hlslparser_src_HLSLParser.cpp