xorg-server: try to fix musl build with hints from Alpine.

This commit is contained in:
Juan RP 2015-05-08 07:31:18 +02:00
parent d9145f31ce
commit b8c8fcb83f
1 changed files with 8 additions and 0 deletions

View File

@ -60,6 +60,14 @@ esac
conf_files="/etc/X11/Xwrapper.config"
pre_configure() {
case "$XBPS_TARGET_MACHINE" in
*-musl)
export CFLAGS+=" -D__uid_t=uid_t -D__gid_t=gid_t"
sed -i -e 's/termio.h/termios.h/' hw/xfree86/os-support/xf86_OSlib.h
;;
esac
}
post_install() {
vinstall ${FILESDIR}/nvidia-drm-outputclass.conf 644 usr/share/X11/xorg.conf.d
vinstall ${FILESDIR}/Xwrapper.config 644 etc/X11