2008-10-04 06:29:49 +02:00
|
|
|
# Template build file for 'xorg-server'.
|
|
|
|
pkgname=xorg-server
|
2013-12-28 11:25:35 +01:00
|
|
|
version=1.15.0
|
2014-03-14 08:13:38 +01:00
|
|
|
revision=4
|
2011-10-24 14:14:47 +02:00
|
|
|
build_style=gnu-configure
|
2011-12-06 11:32:49 +01:00
|
|
|
configure_args="--enable-ipv6 --enable-xcsecurity --enable-record
|
2012-10-10 17:59:32 +02:00
|
|
|
--enable-xnest --enable-xephyr --enable-composite --enable-xvfb
|
2013-03-25 07:09:35 +01:00
|
|
|
--disable-static --disable-config-hal --disable-xfbdev --disable-xfake
|
2012-10-10 17:59:32 +02:00
|
|
|
--disable-config-dbus --enable-config-udev --sysconfdir=/etc/X11
|
|
|
|
--with-xkb-path=/usr/share/X11/xkb --with-xkb-output=/var/lib/xkb
|
|
|
|
--with-fontrootdir=/usr/share/fonts/X11 --with-sha1=libcrypto
|
2012-12-21 16:09:43 +01:00
|
|
|
--disable-dmx --disable-xfree86-utils --enable-dga --enable-xorg
|
|
|
|
--enable-kdrive --enable-kdrive-evdev --enable-kdrive-kbd
|
2014-02-02 10:45:57 +01:00
|
|
|
--enable-kdrive-mouse --enable-xorg --enable-xcsecurity --disable-linux-acpi
|
|
|
|
--disable-linux-apm"
|
2012-12-21 16:09:43 +01:00
|
|
|
short_desc="The X11 server from X.org"
|
2008-10-02 08:29:13 +02:00
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2011-05-29 09:20:33 +02:00
|
|
|
homepage="http://xorg.freedesktop.org"
|
|
|
|
license="MIT/X11, BSD"
|
2012-12-16 20:37:54 +01:00
|
|
|
distfiles="${XORG_SITE}/xserver/${pkgname}-${version}.tar.bz2"
|
2013-12-28 11:25:35 +01:00
|
|
|
checksum=613b2f2e7ee2a06d2f8e862c836dc70d319c52f1537749e027398f40086aabb8
|
2009-03-25 05:56:03 +01:00
|
|
|
|
2014-03-15 10:23:51 +01:00
|
|
|
lib32disabled=yes
|
|
|
|
|
2013-03-25 07:09:35 +01:00
|
|
|
hostmakedepends="pkg-config perl flex"
|
2014-02-02 10:03:11 +01:00
|
|
|
makedepends="
|
|
|
|
libfl-devel damageproto inputproto>=2.2 glproto>=1.4.17 xproto>=7.0.25 presentproto
|
|
|
|
dri2proto>=2.1 dri3proto xf86driproto randrproto videoproto compositeproto scrnsaverproto
|
|
|
|
resourceproto>=1.2.0 xineramaproto xcmiscproto bigreqsproto xcb-util-devel
|
|
|
|
xcb-util-image-devel xcb-util-keysyms-devel xcb-util-wm-devel libudev-devel>=183
|
2012-12-16 20:37:54 +01:00
|
|
|
openssl-devel libX11-devel libXext-devel libdmx-devel libpciaccess-devel
|
|
|
|
libXfont-devel libXmu-devel libXrender-devel libXfixes-devel libXi-devel
|
|
|
|
libXaw-devel libdrm-devel libXtst-devel libXres-devel libxkbui-devel
|
2014-02-02 10:03:11 +01:00
|
|
|
libxkbfile-devel libXxf86dga-devel libXv-devel pixman-devel libxshmfence-devel
|
|
|
|
xkeyboard-config"
|
2014-01-01 16:10:11 +01:00
|
|
|
# See hw/xfree86/common/xf86Module.h. Only care for the major version.
|
|
|
|
depends="xkeyboard-config"
|
2014-02-02 09:34:38 +01:00
|
|
|
provides="xserver-abi-extension-8_1 xserver-abi-input-20_1 xserver-abi-video-15_1"
|
2013-04-14 18:42:25 +02:00
|
|
|
|
2013-04-14 18:56:10 +02:00
|
|
|
# Package build options
|
2014-01-27 21:28:08 +01:00
|
|
|
build_options="dri dri2 opengl"
|
|
|
|
desc_option_dri="Enable support for the DRI extension"
|
|
|
|
desc_option_dri2="Enable support for the DRI2 extension"
|
2013-04-14 18:56:10 +02:00
|
|
|
desc_option_opengl="Enable support for OpenGL/GLX and DRI"
|
|
|
|
|
2014-01-27 21:28:08 +01:00
|
|
|
# enable dri2 for all platforms via libdri2.
|
|
|
|
build_options_default="dri2"
|
|
|
|
|
2013-04-14 18:56:10 +02:00
|
|
|
if [ "$XBPS_TARGET_MACHINE" = "i686" -o "$XBPS_TARGET_MACHINE" = "x86_64" ]; then
|
2014-01-27 21:28:08 +01:00
|
|
|
# Enable dri/opengl by default on x86.
|
|
|
|
build_options_default+=" dri opengl"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "$build_option_dri" ]; then
|
|
|
|
configure_args+=" --enable-dri"
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
|
|
i686*|x86_64*) makedepends+=" MesaLib-devel>=10.0";;
|
|
|
|
esac
|
|
|
|
else
|
2014-01-27 21:30:48 +01:00
|
|
|
configure_args+=" --disable-dri"
|
2014-01-27 21:28:08 +01:00
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "$build_option_dri2" ]; then
|
|
|
|
configure_args+=" --enable-dri2"
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
|
|
i686*|x86_64*) makedepends+=" MesaLib-devel>=10.0";;
|
|
|
|
*) makedepends+=" dri2proto libdri2-devel-git";;
|
|
|
|
esac
|
|
|
|
else
|
|
|
|
configure_args+=" --disable-dri2"
|
2013-04-14 18:56:10 +02:00
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "$build_option_opengl" ]; then
|
2014-01-27 21:28:08 +01:00
|
|
|
configure_args+=" --enable-glx-tls --enable-glx"
|
2013-12-01 10:45:18 +01:00
|
|
|
makedepends+=" MesaLib-devel>=10.0"
|
2013-04-14 18:56:10 +02:00
|
|
|
else
|
2014-01-27 21:28:08 +01:00
|
|
|
configure_args+=" --disable-glx"
|
2013-04-14 18:56:10 +02:00
|
|
|
fi
|
|
|
|
|
2012-01-28 14:21:46 +01:00
|
|
|
post_install() {
|
2011-07-02 11:34:23 +02:00
|
|
|
vinstall ${FILESDIR}/11-quirks.conf 644 etc/X11/xorg.conf.d
|
2011-08-27 05:50:11 +02:00
|
|
|
vinstall COPYING 644 usr/share/licenses/${pkgname}
|
2013-03-25 07:09:35 +01:00
|
|
|
|
|
|
|
# Xorg must be setuid.
|
|
|
|
chmod 4755 ${DESTDIR}/usr/bin/Xorg
|
|
|
|
|
|
|
|
if [ -e ${DESTDIR}/usr/lib/xorg/modules/extensions/libglx.so ]; then
|
|
|
|
# Support nvidia and amd binary blobs to provide their own
|
|
|
|
# implementation.
|
|
|
|
mv ${DESTDIR}/usr/lib/xorg/modules/extensions/libglx.so \
|
|
|
|
${DESTDIR}/usr/lib/xorg/modules/extensions/libglx-xorg.so
|
|
|
|
fi
|
2014-01-22 00:08:03 +01:00
|
|
|
}
|
2013-04-14 18:42:25 +02:00
|
|
|
|
|
|
|
xorg-server-xnest_package() {
|
|
|
|
short_desc="A nested X server that runs as an X application"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/bin/Xnest
|
|
|
|
vmove usr/share/man/man1/Xnest.1
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
xorg-server-xephyr_package() {
|
|
|
|
short_desc="X server outputting to a window on a pre-existing X display"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/bin/Xephyr
|
|
|
|
vmove usr/share/man/man1/Xephyr.1
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
xorg-server-xvfb_package() {
|
|
|
|
short_desc="Virtual framebuffer X server"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/bin/Xvfb
|
|
|
|
vmove usr/share/man/man1/Xvfb.1
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
xorg-server-devel_package() {
|
2013-12-28 11:25:35 +01:00
|
|
|
depends="libudev-devel dri2proto>=2.1 dri3proto presentproto glproto xf86driproto randrproto
|
2013-04-14 18:42:25 +02:00
|
|
|
videoproto compositeproto scrnsaverproto resourceproto xineramaproto
|
|
|
|
libdmx-devel libXext-devel libX11-devel libpciaccess-devel libXfont-devel
|
|
|
|
libXau-devel pixman-devel libXdmcp-devel libXmu-devel libXrender-devel
|
|
|
|
libXfixes-devel libXi-devel libXaw-devel libXt-devel libXpm-devel
|
2013-12-28 11:25:35 +01:00
|
|
|
libxshmfence-devel libdrm-devel>=2.4.34"
|
2013-04-14 18:42:25 +02:00
|
|
|
if [ "$build_option_opengl" ]; then
|
|
|
|
depends+=" MesaLib-devel"
|
|
|
|
fi
|
2013-05-06 14:54:52 +02:00
|
|
|
short_desc+=" - development files"
|
2013-04-14 18:42:25 +02:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove usr/lib/pkgconfig
|
|
|
|
vmove usr/share/aclocal
|
|
|
|
}
|
|
|
|
}
|