libmusicbrainz5: fix cross build
This commit is contained in:
parent
97db8e8ad2
commit
39e0e3fb6b
1 changed files with 6 additions and 7 deletions
|
@ -2,9 +2,8 @@
|
|||
pkgname=libmusicbrainz5
|
||||
version=5.1.0
|
||||
revision=4
|
||||
build_style=cmake
|
||||
make_build_args="make-c-interface all"
|
||||
wrksrc="libmusicbrainz-${version}"
|
||||
build_style=cmake
|
||||
hostmakedepends="pkg-config"
|
||||
makedepends="neon-devel libxml2-devel"
|
||||
short_desc="Library That Provides Access to the MusicBrainz Server (5.x)"
|
||||
|
@ -19,6 +18,10 @@ if [ "$CROSS_BUILD" ]; then
|
|||
fi
|
||||
|
||||
pre_configure() {
|
||||
# The line 'DEPENDS ... *.inc' in src/CMakeLists.txt produces this error:
|
||||
# *** No rule to make target 'src/*.inc', needed by 'src/mb5_c.cc'. Stop.
|
||||
# We do not edit the *.inc files thus just remove the '*.inc'
|
||||
vsed -i src/CMakeLists.txt -e "s; \*\.inc;;"
|
||||
# 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
|
||||
|
@ -26,14 +29,10 @@ pre_configure() {
|
|||
cd build-native
|
||||
CC=${CC_host} CFLAGS=${XBPS_CFLAGS} CXX=${CXX_host} \
|
||||
CXXFLAGS=${XBPS_CXXFLAGS} LDFLAGS=${XBPS_LDFLAGS} cmake ..
|
||||
make ${makejobs} make-c-interface
|
||||
make ${makejobs}
|
||||
configure_args+=" -DIMPORT_EXECUTABLES=../build-native/ImportExecutables.cmake"
|
||||
cd ..
|
||||
fi
|
||||
# The line 'DEPENDS ... *.inc' in src/CMakeLists.txt produces this error:
|
||||
# *** No rule to make target 'src/*.inc', needed by 'src/mb5_c.cc'. Stop.
|
||||
# We do not edit the *.inc files thus just remove the '*.inc'
|
||||
vsed -i src/CMakeLists.txt -e "s; \*\.inc;;"
|
||||
}
|
||||
|
||||
libmusicbrainz5-devel_package() {
|
||||
|
|
Loading…
Reference in a new issue