dtkcore: fix cross
In post_build patch deepin-os-release/Makefile to rebuild with target tools and libraries. Signed-off-by: Jürgen Buchmüller <pullmoll@t-online.de>
This commit is contained in:
parent
2b1502aed1
commit
1818a70bb1
|
@ -14,11 +14,25 @@ changelog="https://github.com/linuxdeepin/dtkcore/blob/${version}/CHANGELOG.md"
|
|||
distfiles="https://github.com/linuxdeepin/dtkcore/archive/${version}.tar.gz"
|
||||
checksum=b443869be7b2238d6c6ecdefe33e67c973b13b7cc5a396d07dd0acad3da464f2
|
||||
|
||||
if [ "$CROSS_BUILD" ];then
|
||||
hostmakedepends+=" qt5-devel gsettings-qt-devel"
|
||||
if [ "$CROSS_BUILD" ]; then
|
||||
hostmakedepends+=" qt5-devel"
|
||||
fi
|
||||
|
||||
nocross="Some QMake mess"
|
||||
post_build() {
|
||||
if [ "$CROSS_BUILD" ]; then
|
||||
cd ${wrksrc}/tools/deepin-os-release
|
||||
vsed -i Makefile -e"s;\(CC .*=\).*;\1 $CC;"
|
||||
vsed -i Makefile -e"s;\(CXX .*=\).*;\1 $CXX;"
|
||||
vsed -i Makefile -e"s;\(CFLAGS .*=\).*;\1 $CFLAGS -fPIC;"
|
||||
vsed -i Makefile -e"s;\(CXXFLAGS .*=\).*;\1 $CXXFLAGS -fPIC;"
|
||||
vsed -i Makefile -e"s;\(LINK .*=\).*;\1 $CXX;"
|
||||
vsed -i Makefile -e"s;\(LFLAGS .*=\).*;\1 $LDFLAGS -pie;"
|
||||
vsed -i Makefile -e"s;\(AR .*=\).*;\1 $AR;"
|
||||
vsed -i Makefile -e"s; /usr/lib/libQt5Core.so; ${XBPS_CROSS_BASE}/usr/lib/libQt5Core.so;"
|
||||
make clean
|
||||
make ${makejobs}
|
||||
fi
|
||||
}
|
||||
|
||||
dtkcore-devel_package() {
|
||||
short_desc+=" - development files"
|
||||
|
|
Loading…
Reference in New Issue