blob: c7ba5863c0ed4139ff0fc304f66b067f118beac8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
# $FreeBSD$
PORTNAME= simgear
PORTVERSION= 2018.2.1
PORTREVISION= 2
CATEGORIES= devel games
MASTER_SITES= SF/flightgear/release-${PORTVERSION:R}
MAINTAINER= martymac@FreeBSD.org
COMMENT= Toolkit for 3D games and simulations
LICENSE= GPLv2
BUILD_DEPENDS= ${LOCALBASE}/lib/libplibsl.a:x11-toolkits/plib
RUN_DEPENDS= ${LOCALBASE}/lib/libplibsl.a:x11-toolkits/plib
LIB_DEPENDS= libboost_thread.so:devel/boost-libs \
libosg.so:graphics/osg
USES= alias cmake compiler:c++11-lib cpe jpeg openal:al,alut tar:bzip2
USE_XORG= ice sm x11 xext xi xmu xt
USE_GL= gl glu glut
.include <bsd.port.pre.mk>
# Needs Clang 4.0+ to build, see:
# https://sourceforge.net/p/flightgear/codetickets/2015/
.if ${COMPILER_TYPE} == clang && ${COMPILER_VERSION} < 40
BUILD_DEPENDS+= ${LOCALBASE}/bin/clang40:devel/llvm40
CPP= ${LOCALBASE}/bin/clang-cpp40
CC= ${LOCALBASE}/bin/clang40
CXX= ${LOCALBASE}/bin/clang++40
.endif
# Work around "'to_string' is not a member of 'std'" when building with Gcc < 6
.if ${COMPILER_TYPE} == gcc && ${COMPILER_VERSION} < 60
CFLAGS+= -D_GLIBCXX_USE_C99
.endif
.include <bsd.port.post.mk>
|