deepin-screenshot: triger (fixed) cross build
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
# Template file for 'deepin-screenshot'
|
# Template file for 'deepin-screenshot'
|
||||||
pkgname=deepin-screenshot
|
pkgname=deepin-screenshot
|
||||||
version=5.0.0
|
version=5.0.0
|
||||||
revision=1
|
revision=2
|
||||||
build_style=cmake
|
build_style=cmake
|
||||||
hostmakedepends="pkg-config qt5-qmake"
|
hostmakedepends="pkg-config qt5-qmake"
|
||||||
makedepends="dtkwidget-devel dtkwm-devel libXtst-devel qt5-svg-devel
|
makedepends="dtkwidget-devel dtkwm-devel libXtst-devel qt5-svg-devel
|
||||||
@@ -18,6 +18,10 @@ CXXFLAGS="-I${XBPS_CROSS_BASE}/usr/include/libdtk-2.0.16/DWidget"
|
|||||||
CXXFLAGS+=" -I${XBPS_CROSS_BASE}/usr/include/libdtk-2.0.16/DCore"
|
CXXFLAGS+=" -I${XBPS_CROSS_BASE}/usr/include/libdtk-2.0.16/DCore"
|
||||||
CXXFLAGS+=" -I${XBPS_CROSS_BASE}/usr/include/libdtk-2.0.16/DWm"
|
CXXFLAGS+=" -I${XBPS_CROSS_BASE}/usr/include/libdtk-2.0.16/DWm"
|
||||||
|
|
||||||
|
if [ "$CROSS_BUILD" ]; then
|
||||||
|
hostmakedepends+=" dtkwidget-devel dtkwm-devel"
|
||||||
|
fi
|
||||||
|
|
||||||
pre_configure() {
|
pre_configure() {
|
||||||
sed -i '/^set(CMAKE_CXX_FLAGS.*/d' CMakeLists.txt
|
sed -i '/^set(CMAKE_CXX_FLAGS.*/d' CMakeLists.txt
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user