1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-22 04:17:44 +00:00
freebsd-ports/games/flightgear/Makefile
2021-04-06 16:31:07 +02:00

62 lines
2.0 KiB
Makefile

# Created by: Brian Buchanan <brian@CSUA.Berkeley.EDU>
PORTNAME= flightgear
PORTVERSION= 2020.3.8
CATEGORIES= games
MASTER_SITES= SF/flightgear/release-${PORTVERSION:R}
MAINTAINER= martymac@FreeBSD.org
COMMENT= FlightGear flight simulator
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libpng.so:graphics/png \
libboost_thread.so:devel/boost-libs \
libfltk.so:x11-toolkits/fltk \
libfreetype.so:print/freetype2 \
libosg.so:graphics/osg \
libspeex.so:audio/speex \
libspeexdsp.so:audio/speexdsp \
libcurl.so:ftp/curl \
libudev.so:devel/libudev-devd \
libexpat.so:textproc/expat2 \
libSimGearCore.so:devel/simgear
BUILD_DEPENDS= ${LOCALBASE}/lib/libplibsl.a:x11-toolkits/plib \
${LOCALBASE}/include/linux/input.h:devel/evdev-proto \
${LOCALBASE}/share/flightgear/version:games/flightgear-data
RUN_DEPENDS= ${LOCALBASE}/lib/libplibsl.a:x11-toolkits/plib \
${LOCALBASE}/share/flightgear/version:games/flightgear-data
# Disable ninja, see https://sourceforge.net/p/flightgear/codetickets/2118/
USES= alias cmake:noninja compiler:c++11-lang cpe dos2unix gl jpeg \
openal:al,alut sqlite tar:bzip2 xorg
USE_XORG= ice sm x11 xext xft xi xinerama xmu xt
USE_GL= gl glew glu glut
DOS2UNIX_REGEX= .*\.(c|h|cxx|cpp|hxx|hpp)
CMAKE_ARGS+= -DSYSTEM_SQLITE:BOOL=ON \
-DENABLE_HID_INPUT:BOOL=OFF \
-DFG_DATA_DIR:PATH=${LOCALBASE}/share/${PORTNAME} \
-DCMAKE_INSTALL_MANDIR:PATH=${MANPREFIX}/man \
-DFGCOM_DATA_PATH:PATH=${DATADIR}
LDFLAGS+= -L${LOCALBASE}/lib
LDFLAGS_i386= -Wl,-znotext
OPTIONS_DEFINE= DBUS QT5
OPTIONS_DEFAULT= DBUS QT5
DBUS_LIB_DEPENDS= libdbus-1.so:devel/dbus
DBUS_USES= pkgconfig
DBUS_CMAKE_ON= -DUSE_DBUS:BOOL=ON
DBUS_CMAKE_OFF= -DUSE_DBUS:BOOL=OFF
QT5_CMAKE_ON= -DENABLE_QT:BOOL=ON
QT5_CMAKE_OFF= -DENABLE_QT:BOOL=OFF
QT5_USES= qt:5
QT5_USE= QT=core,buildtools,linguisttools,gui,declarative,network,qmake,widgets,svg
post-patch:
# Avoid conflict with C++20 <version> - used version file is flightgear-version
@${RM} ${WRKSRC}/version
.include <bsd.port.mk>