mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-15 03:23:50 +02:00
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
|
pkgname=libmusicbrainz5
|
||||||
version=5.1.0
|
version=5.1.0
|
||||||
revision=4
|
revision=4
|
||||||
build_style=cmake
|
|
||||||
make_build_args="make-c-interface all"
|
|
||||||
wrksrc="libmusicbrainz-${version}"
|
wrksrc="libmusicbrainz-${version}"
|
||||||
|
build_style=cmake
|
||||||
hostmakedepends="pkg-config"
|
hostmakedepends="pkg-config"
|
||||||
makedepends="neon-devel libxml2-devel"
|
makedepends="neon-devel libxml2-devel"
|
||||||
short_desc="Library That Provides Access to the MusicBrainz Server (5.x)"
|
short_desc="Library That Provides Access to the MusicBrainz Server (5.x)"
|
||||||
|
@ -19,6 +18,10 @@ if [ "$CROSS_BUILD" ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
pre_configure() {
|
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
|
# Building for the host architecture is needed to generate C interface source files
|
||||||
# see https://github.com/metabrainz/libmusicbrainz/blob/master/INSTALL.txt
|
# see https://github.com/metabrainz/libmusicbrainz/blob/master/INSTALL.txt
|
||||||
if [ "$CROSS_BUILD" ]; then
|
if [ "$CROSS_BUILD" ]; then
|
||||||
|
@ -26,14 +29,10 @@ pre_configure() {
|
||||||
cd build-native
|
cd build-native
|
||||||
CC=${CC_host} CFLAGS=${XBPS_CFLAGS} CXX=${CXX_host} \
|
CC=${CC_host} CFLAGS=${XBPS_CFLAGS} CXX=${CXX_host} \
|
||||||
CXXFLAGS=${XBPS_CXXFLAGS} LDFLAGS=${XBPS_LDFLAGS} cmake ..
|
CXXFLAGS=${XBPS_CXXFLAGS} LDFLAGS=${XBPS_LDFLAGS} cmake ..
|
||||||
make ${makejobs} make-c-interface
|
make ${makejobs}
|
||||||
configure_args+=" -DIMPORT_EXECUTABLES=../build-native/ImportExecutables.cmake"
|
configure_args+=" -DIMPORT_EXECUTABLES=../build-native/ImportExecutables.cmake"
|
||||||
cd ..
|
cd ..
|
||||||
fi
|
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() {
|
libmusicbrainz5-devel_package() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue