Bug 233748 - graphics/libprojectm: fix build with GCC-based architectures
Summary: graphics/libprojectm: fix build with GCC-based architectures
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Yuri Victorovich
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-12-03 11:49 UTC by Piotr Kubaj
Modified: 2018-12-04 05:38 UTC (History)
2 users (show)

See Also:
bugzilla: maintainer-feedback? (yuri)


Attachments
patch (2.44 KB, patch)
2018-12-03 11:49 UTC, Piotr Kubaj
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Piotr Kubaj 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 2018-12-04 05:38:31 UTC
Committed, thanks!
Comment 2 commit-hook freebsd_committer 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