libmusicbrainz5: fix build

This commit is contained in:
Jürgen Buchmüller 2020-06-06 06:12:39 +02:00
parent fcf9d71601
commit cc59bfaff1
1 changed files with 6 additions and 1 deletions

View File

@ -3,6 +3,7 @@ pkgname=libmusicbrainz5
version=5.1.0
revision=4
build_style=cmake
make_build_args="make-c-interface all"
wrksrc="libmusicbrainz-${version}"
hostmakedepends="pkg-config"
makedepends="neon-devel libxml2-devel"
@ -25,10 +26,14 @@ pre_configure() {
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
make ${makejobs} make-c-interface
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() {