flightgear: update to 2017.2.1

This commit is contained in:
Jürgen Buchmüller 2017-05-24 09:56:58 +02:00
parent 3ab96a38ea
commit f1b748de19

View file

@ -1,13 +1,13 @@
# Template file for 'flightgear'
pkgname=flightgear
version=2017.1.3
version=2017.2.1
revision=2
build_style=cmake
configure_args="-DFG_DATA_DIR:STRING=/usr/share/flightgear/fgdata"
hostmakedepends="fltk pkg-config"
makedepends="MesaLib-devel boost-devel freealut-devel libfreeglut-devel fltk-devel
libgsm-devel glew-devel speex-devel sqlite-devel osg-devel plib-devel libcurl-devel
simgear $(vopt_if qt qt5-devel)"
simgear $(vopt_if qt 'qt5-devel qt5-declarative-devel')"
depends="flightgear-data>=${version}"
short_desc="Sophisticated flight simulator"
maintainer="Jürgen Buchmüller <pullmoll@t-online.de>"
@ -18,8 +18,8 @@ distfiles="
$SOURCEFORGE_SITE/project/flightgear/release-${version%.*}/FlightGear-${version}-data.tar.bz2"
_mirror=http://mirror.netcologne.de/gentoo/distfiles
checksum="
3d7cb2b4b1d60b80b0613222b1fc7b6db665eddaf68d7080c07cdedcb544b0ad
bf35d9a15be9e7bd1c286eee879251e0907a3fb5cca4e7d1fdfbe67690345365"
c7d9a63736cafd02236707d0f8e1bb36884a1a989cf49575bad13b4cbb311f5b
c9350e4500a1d97ebc515e7bb9e74081a8726a8fa244966543c9c67bcdacd1a4"
case "$XBPS_TARGET_MACHINE" in
aarch64-musl)
@ -31,13 +31,13 @@ build_options="qt"
build_options_default="qt"
if [ "$CROSS_BUILD" ]; then
configure_args+=" -DSIMGEAR_COMPILE_TEST_EXITCODE=0"
hostmakedepends+=" qt5-host-tools $(vopt_if qt qt5-devel)"
hostmakedepends+=" qt5-host-tools $(vopt_if qt 'qt5-devel qt5-declarative-devel')"
fi
# Suppress warnings regarding auto_ptr
CXXFLAGS="-Wno-deprecated-declarations"
post_install() {
vinstall package/flightgear.desktop 644 usr/share/applications
vinstall package/RedHat/flightgear.desktop 644 usr/share/applications
vinstall package/flightgear.ico 644 usr/share/icons
vinstall ${FILESDIR}/flightgear.png 644 usr/share/pixmaps
vinstall scripts/completion/fg-completion.bash 644 usr/share/bash-completion/completions/fgfs