geda: fix cross builds.

This commit is contained in:
Érico Rolim 2020-12-20 18:30:04 -03:00
parent 4afa89118c
commit 06a99096ea

View file

@ -20,12 +20,6 @@ CFLAGS="-Wno-deprecated-declarations -fcommon"
python_version=2
replaces="geda-data>=0"
if [ "$CROSS_BUILD" ]; then
if [ "$XBPS_WORDSIZE" != "$XBPS_TARGET_WORDSIZE" ]; then
broken="The host ($XBPS_WORDSIZE) and target ($XBPS_TARGET_WORDSIZE) word sizes need to be the same for cross building."
fi
fi
CFLAGS="-Wno-unused-function"
pre_configure() {
@ -34,6 +28,13 @@ pre_configure() {
autoreconf -fi
}
post_configure() {
# the build system somehow adds -L/lib to the makefiles,
# which breaks cross builds and is unnecessary for
# native builds. remove the flag
find . -name Makefile -exec sed s,-L/lib,, -i "{}" \;
}
post_install() {
rm -f ${DESTDIR}/usr/share/applications/mimeinfo.cache
}