47 lines
1.7 KiB
Bash
47 lines
1.7 KiB
Bash
# Template file for 'flightgear'
|
|
pkgname=flightgear
|
|
version=2020.3.13
|
|
revision=1
|
|
# XXX: always keep in sync with simgear version!
|
|
build_style=cmake
|
|
build_helper="qemu"
|
|
configure_args="-DFG_DATA_DIR:STRING=/usr/share/flightgear/fgdata
|
|
-DOpenGL_GL_PREFERENCE=GLVND -DTRANSLATIONS_SRC_DIR=${XBPS_BUILDDIR}/fgdata/Translations
|
|
-DSYSTEM_SQLITE=ON -DSYSTEM_FLITE=ON"
|
|
hostmakedepends="gettext pkg-config qt5-tools"
|
|
makedepends="MesaLib-devel boost-devel freealut-devel libevent-devel
|
|
libfreeglut-devel libglvnd-devel libgsm-devel glew-devel speex-devel
|
|
sqlite-devel osg-devel plib-devel libcurl-devel simgear-devel flite-devel
|
|
qt5-devel qt5-tools-devel qt5-declarative-devel qt5-svg-devel"
|
|
depends="flightgear-data>=${version}"
|
|
short_desc="Sophisticated flight simulator"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="https://www.flightgear.org/"
|
|
changelog="https://wiki.flightgear.org/Changelog_2020.3"
|
|
distfiles="
|
|
$SOURCEFORGE_SITE/project/flightgear/release-${version%.*}/${pkgname}-${version}.tar.bz2
|
|
$SOURCEFORGE_SITE/project/flightgear/release-${version%.*}/FlightGear-${version}-data.txz"
|
|
checksum="661abfaf475abc8cfd1bab57559469efa662bc6d03f58e8d977385003fe5aa8c
|
|
0b7894540ec8250efb39d5dc6819d2a43a613058e61599a7d27a3342f7714893"
|
|
python_version=2
|
|
# the test suite doesn't get built, if enabled it segfaults
|
|
make_check=no
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
hostmakedepends+=" qt5-host-tools qt5-devel qt5-declarative-devel"
|
|
fi
|
|
|
|
if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
|
|
makedepends+=" libexecinfo-devel"
|
|
configure_args+=" -DCMAKE_EXE_LINKER_FLAGS=-lexecinfo"
|
|
fi
|
|
|
|
flightgear-data_package() {
|
|
short_desc+=" - data files"
|
|
pkg_install() {
|
|
vmkdir usr/share/flightgear
|
|
mv ${XBPS_BUILDDIR}/fgdata ${PKGDESTDIR}/usr/share/flightgear
|
|
}
|
|
}
|