49 lines
1.8 KiB
Bash
49 lines
1.8 KiB
Bash
# Template file for 'flightgear'
|
|
pkgname=flightgear
|
|
version=2018.3.1
|
|
revision=1
|
|
build_style=cmake
|
|
configure_args="-DFG_DATA_DIR:STRING=/usr/share/flightgear/fgdata -DSYSTEM_SQLITE=1"
|
|
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 qt5-declarative-devel qt5-svg-devel')"
|
|
depends="flightgear-data>=${version}"
|
|
short_desc="Sophisticated flight simulator"
|
|
maintainer="Jürgen Buchmüller <pullmoll@t-online.de>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="http://www.flightgear.org/"
|
|
distfiles="
|
|
$SOURCEFORGE_SITE/project/flightgear/release-${version%.*}/${pkgname}-${version}.tar.bz2
|
|
$SOURCEFORGE_SITE/project/flightgear/release-${version%.*}/FlightGear-${version}-data.tar.bz2"
|
|
checksum="
|
|
3d4a1f37e4d5cb376c16f02c111aac9d3e6b05529015c7d068ce2c00ecb5a640
|
|
b03a74a69cf02370e4ff3cf3dd09fff9ae217b2873f9938803935082a48bc9c0"
|
|
|
|
nocross=https://build.voidlinux.eu/builders/armv7l-musl_builder/builds/4773/steps/shell_3/logs/stdio
|
|
|
|
build_options="qt"
|
|
build_options_default="qt"
|
|
if [ "$CROSS_BUILD" ]; then
|
|
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/org.flightgear.FlightGear.desktop 644 usr/share/applications
|
|
vinstall package/flightgear.ico 644 usr/share/icons
|
|
vinstall ${FILESDIR}/flightgear.png 644 usr/share/pixmaps
|
|
sed -i ${DESTDIR}/usr/share/applications/*.desktop \
|
|
-e "s;Exec=.*;Exec=fgfs --fg-root=/usr/share/flightgear/fgdata;"
|
|
}
|
|
|
|
flightgear-data_package() {
|
|
short_desc+=" - data files"
|
|
noarch=yes
|
|
pkg_install() {
|
|
vmkdir usr/share/flightgear
|
|
mv ${XBPS_BUILDDIR}/fgdata ${PKGDESTDIR}/usr/share/flightgear
|
|
}
|
|
}
|