2013-01-31 14:38:42 +01:00
|
|
|
# Created by: Brian Buchanan <brian@CSUA.Berkeley.EDU>
|
1999-07-03 08:36:37 +02:00
|
|
|
|
2011-09-06 15:14:19 +02:00
|
|
|
PORTNAME= flightgear
|
2022-02-06 15:41:46 +01:00
|
|
|
PORTVERSION= 2020.3.12
|
2003-01-22 14:58:58 +01:00
|
|
|
CATEGORIES= games
|
2016-03-08 18:27:59 +01:00
|
|
|
MASTER_SITES= SF/flightgear/release-${PORTVERSION:R}
|
2003-01-22 14:58:58 +01:00
|
|
|
|
2010-09-27 14:08:23 +02:00
|
|
|
MAINTAINER= martymac@FreeBSD.org
|
2018-01-25 12:07:50 +01:00
|
|
|
COMMENT= FlightGear flight simulator
|
2003-01-22 14:58:58 +01:00
|
|
|
|
2020-04-03 11:32:18 +02:00
|
|
|
LICENSE= GPLv2+
|
|
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
2011-09-06 15:14:19 +02:00
|
|
|
|
2016-04-01 16:00:51 +02:00
|
|
|
LIB_DEPENDS= libpng.so:graphics/png \
|
|
|
|
libboost_thread.so:devel/boost-libs \
|
|
|
|
libfltk.so:x11-toolkits/fltk \
|
2017-03-03 22:16:40 +01:00
|
|
|
libfreetype.so:print/freetype2 \
|
2020-05-31 11:49:05 +02:00
|
|
|
libosg.so:graphics/osg \
|
2016-09-19 22:28:51 +02:00
|
|
|
libspeex.so:audio/speex \
|
|
|
|
libspeexdsp.so:audio/speexdsp \
|
2017-07-03 12:19:20 +02:00
|
|
|
libcurl.so:ftp/curl \
|
2019-08-20 12:55:50 +02:00
|
|
|
libudev.so:devel/libudev-devd \
|
2019-08-20 18:26:31 +02:00
|
|
|
libexpat.so:textproc/expat2 \
|
2019-08-20 12:55:50 +02:00
|
|
|
libSimGearCore.so:devel/simgear
|
2016-04-01 16:00:51 +02:00
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/lib/libplibsl.a:x11-toolkits/plib \
|
2020-07-08 12:17:54 +02:00
|
|
|
${LOCALBASE}/include/linux/input.h:devel/evdev-proto \
|
|
|
|
${LOCALBASE}/share/flightgear/version:games/flightgear-data
|
2016-04-01 16:00:51 +02:00
|
|
|
RUN_DEPENDS= ${LOCALBASE}/lib/libplibsl.a:x11-toolkits/plib \
|
|
|
|
${LOCALBASE}/share/flightgear/version:games/flightgear-data
|
2010-11-23 14:33:32 +01:00
|
|
|
|
2019-03-09 22:03:16 +01:00
|
|
|
# Disable ninja, see https://sourceforge.net/p/flightgear/codetickets/2118/
|
2019-05-07 21:19:09 +02:00
|
|
|
USES= alias cmake:noninja compiler:c++11-lang cpe dos2unix gl jpeg \
|
2019-09-19 12:04:27 +02:00
|
|
|
openal:al,alut sqlite tar:bzip2 xorg
|
2016-03-08 18:27:59 +01:00
|
|
|
USE_XORG= ice sm x11 xext xft xi xinerama xmu xt
|
2017-03-03 22:16:40 +01:00
|
|
|
USE_GL= gl glew glu glut
|
2014-03-28 15:13:02 +01:00
|
|
|
|
|
|
|
DOS2UNIX_REGEX= .*\.(c|h|cxx|cpp|hxx|hpp)
|
2018-06-01 13:48:58 +02:00
|
|
|
CMAKE_ARGS+= -DSYSTEM_SQLITE:BOOL=ON \
|
2020-05-31 11:49:05 +02:00
|
|
|
-DENABLE_HID_INPUT:BOOL=OFF \
|
2012-04-27 14:28:23 +02:00
|
|
|
-DFG_DATA_DIR:PATH=${LOCALBASE}/share/${PORTNAME} \
|
2014-03-28 15:13:02 +01:00
|
|
|
-DCMAKE_INSTALL_MANDIR:PATH=${MANPREFIX}/man \
|
|
|
|
-DFGCOM_DATA_PATH:PATH=${DATADIR}
|
2015-08-10 17:03:39 +02:00
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
2020-03-20 00:02:30 +01:00
|
|
|
LDFLAGS_i386= -Wl,-znotext
|
2014-03-28 15:13:02 +01:00
|
|
|
|
2016-11-25 16:39:37 +01:00
|
|
|
OPTIONS_DEFINE= DBUS QT5
|
|
|
|
OPTIONS_DEFAULT= DBUS QT5
|
2016-04-01 16:00:51 +02:00
|
|
|
DBUS_LIB_DEPENDS= libdbus-1.so:devel/dbus
|
2016-03-08 18:27:59 +01:00
|
|
|
DBUS_USES= pkgconfig
|
2014-09-17 08:10:22 +02:00
|
|
|
DBUS_CMAKE_ON= -DUSE_DBUS:BOOL=ON
|
|
|
|
DBUS_CMAKE_OFF= -DUSE_DBUS:BOOL=OFF
|
2016-11-25 16:39:37 +01:00
|
|
|
QT5_CMAKE_ON= -DENABLE_QT:BOOL=ON
|
|
|
|
QT5_CMAKE_OFF= -DENABLE_QT:BOOL=OFF
|
2018-06-28 19:39:53 +02:00
|
|
|
QT5_USES= qt:5
|
2020-07-08 12:17:54 +02:00
|
|
|
QT5_USE= QT=core,buildtools,linguisttools,gui,declarative,network,qmake,widgets,svg
|
2014-09-17 08:10:22 +02:00
|
|
|
|
2021-03-26 13:27:51 +01:00
|
|
|
post-patch:
|
|
|
|
# Avoid conflict with C++20 <version> - used version file is flightgear-version
|
|
|
|
@${RM} ${WRKSRC}/version
|
|
|
|
|
2019-05-29 17:45:06 +02:00
|
|
|
.include <bsd.port.mk>
|