libmusicbrainz5: fix build
This commit is contained in:
parent
fcf9d71601
commit
cc59bfaff1
|
@ -3,6 +3,7 @@ pkgname=libmusicbrainz5
|
||||||
version=5.1.0
|
version=5.1.0
|
||||||
revision=4
|
revision=4
|
||||||
build_style=cmake
|
build_style=cmake
|
||||||
|
make_build_args="make-c-interface all"
|
||||||
wrksrc="libmusicbrainz-${version}"
|
wrksrc="libmusicbrainz-${version}"
|
||||||
hostmakedepends="pkg-config"
|
hostmakedepends="pkg-config"
|
||||||
makedepends="neon-devel libxml2-devel"
|
makedepends="neon-devel libxml2-devel"
|
||||||
|
@ -25,10 +26,14 @@ 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 -j ${makejobs} make-c-interface
|
make ${makejobs} make-c-interface
|
||||||
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…
Reference in New Issue