libmusicbrainz5: fix cross
This commit is contained in:
parent
ca26f82f75
commit
f98aba0d25
|
@ -1,7 +1,7 @@
|
|||
# Template file for 'libmusicbrainz5'
|
||||
pkgname=libmusicbrainz5
|
||||
version=5.1.0
|
||||
revision=2
|
||||
revision=3
|
||||
build_style=cmake
|
||||
wrksrc="libmusicbrainz-${version}"
|
||||
hostmakedepends="pkg-config"
|
||||
|
@ -13,6 +13,24 @@ homepage="http://musicbrainz.org/"
|
|||
distfiles="https://github.com/metabrainz/libmusicbrainz/releases/download/release-${version}/libmusicbrainz-${version}.tar.gz"
|
||||
checksum=6749259e89bbb273f3f5ad7acdffb7c47a2cf8fcaeab4c4695484cef5f4c6b46
|
||||
|
||||
if [ "$CROSS_BUILD" ]; then
|
||||
hostmakedepends+=" ${makedepends}"
|
||||
fi
|
||||
|
||||
pre_configure() {
|
||||
# Building for the host architecture is needed to generate C interface source files
|
||||
# see https://github.com/metabrainz/libmusicbrainz/blob/master/INSTALL.txt
|
||||
if [ "$CROSS_BUILD" ]; then
|
||||
mkdir build-native
|
||||
cd build-native
|
||||
CC=${CC_host} CFLAGS=${XBPS_CFLAGS} CXX=${CXX_host} \
|
||||
CXXFLAGS=${XBPS_CXXFLAGS} LDFLAGS=${XBPS_LDFLAGS} cmake ..
|
||||
make -j ${makejobs} make-c-interface
|
||||
configure_args+=" -DIMPORT_EXECUTABLES=../build-native/ImportExecutables.cmake"
|
||||
cd ..
|
||||
fi
|
||||
}
|
||||
|
||||
libmusicbrainz5-devel_package() {
|
||||
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
|
||||
short_desc+=" -- development files"
|
||||
|
|
Loading…
Reference in New Issue