Changeset View
Changeset View
Standalone View
Standalone View
head/x11-servers/xorg-server/Makefile
# Created by: Eric Anholt <anholt@FreeBSD.org> | # Created by: Eric Anholt <anholt@FreeBSD.org> | ||||
# $FreeBSD$ | # $FreeBSD$ | ||||
PORTNAME?= xorg-server | PORTNAME?= xorg-server | ||||
PORTVERSION= 1.17.4 | PORTVERSION?= 1.18.4 | ||||
PORTREVISION?= 0 | PORTREVISION?= 0 | ||||
PORTEPOCH?= 1 | PORTEPOCH?= 1 | ||||
CATEGORIES= x11-servers | CATEGORIES= x11-servers | ||||
MASTER_SITES= XORG/individual/xserver | MASTER_SITES= XORG/individual/xserver | ||||
DISTNAME= xorg-server-${PORTVERSION} | DISTNAME= xorg-server-${PORTVERSION} | ||||
MAINTAINER= x11@FreeBSD.org | MAINTAINER= x11@FreeBSD.org | ||||
COMMENT?= X.Org X server and related programs | COMMENT?= X.Org X server and related programs | ||||
LICENSE= MIT | LICENSE= MIT | ||||
LIB_DEPENDS+= libdrm.so:graphics/libdrm \ | |||||
libepoxy.so:graphics/libepoxy | |||||
RUN_DEPENDS+= xkeyboard-config>=2.5:x11/xkeyboard-config \ | RUN_DEPENDS+= xkeyboard-config>=2.5:x11/xkeyboard-config \ | ||||
xkbcomp:x11/xkbcomp | xkbcomp:x11/xkbcomp | ||||
XORG_CAT= xserver | XORG_CAT= xserver | ||||
SLAVE_PORT?= no | SLAVE_PORT?= no | ||||
OPTIONS_SUB= yes | OPTIONS_SUB= yes | ||||
OPTIONS_DEFINE= SUID | OPTIONS_DEFINE= SUID | ||||
OPTIONS_RADIO= CONF | OPTIONS_RADIO= CONF | ||||
OPTIONS_RADIO_CONF= HAL DEVD | OPTIONS_RADIO_CONF= DEVD HAL | ||||
SUID_DESC= Install the Xorg server with setuid bit set | |||||
HAL_DESC= Compile with HAL config support | |||||
DEVD_DESC= Use devd for autoconfiguration of input devices | DEVD_DESC= Use devd for autoconfiguration of input devices | ||||
OPTIONS_DEFAULT=SUID DEVD | HAL_DESC= Use hald for autoconfiguration of input devices | ||||
SUID_DESC= Install the Xorg server with setuid bit set | |||||
OPTIONS_DEFAULT=DEVD SUID | |||||
OPTIONS_EXCLUDE_sparc64= HAL | OPTIONS_EXCLUDE_sparc64= HAL | ||||
.include <bsd.port.options.mk> | .include <bsd.port.options.mk> | ||||
USES= gmake libtool perl5 tar:bzip2 | USES= gmake libtool perl5 ssl tar:bzip2 | ||||
USE_PERL5= build | USE_PERL5= build | ||||
USE_GL= gbm egl gl | USE_GL+= gl | ||||
USE_XORG?= xf86driproto glproto xdmcp x11 xkbfile xxf86misc xxf86vm xaw7 \ | USE_XORG+= bigreqsproto compositeproto damageproto dri2proto dri3proto \ | ||||
xmu xt xpm xext randrproto renderproto fixesproto damageproto \ | fixesproto fontsproto glproto inputproto kbproto pixman \ | ||||
dri2proto xcmiscproto xextproto xproto xtrans \ | presentproto randrproto recordproto renderproto \ | ||||
xf86miscproto xf86vidmodeproto xf86bigfontproto scrnsaverproto \ | resourceproto scrnsaverproto videoproto xau \ | ||||
bigreqsproto resourceproto fontsproto inputproto xf86dgaproto \ | xcmiscproto xdmcp xextproto xf86driproto xfont \ | ||||
videoproto compositeproto trapproto presentproto recordproto \ | xineramaproto xkbfile xproto xshmfence xtrans | ||||
xineramaproto xinerama evieproto xfont fontenc xkbui pixman \ | CONFIGURE_ARGS+=--without-doxygen --without-xmlto --without-fop \ | ||||
pciaccess xshmfence | --localstatedir=/var --with-shared-memory-dir=/tmp \ | ||||
USE_OPENSSL= yes | --without-dtrace --disable-xwayland --enable-glamor | ||||
CONFIGURE_ARGS?=--disable-dmx --disable-xvfb --disable-xnest \ | |||||
--without-xmlto --disable-docs --disable-devel-docs \ | |||||
--localstatedir=/var --without-dtrace --disable-xephyr \ | |||||
--enable-record=yes --disable-dri3 --disable-xwayland \ | |||||
--enable-glamor | |||||
INSTALL_TARGET= install-strip | INSTALL_TARGET= install-strip | ||||
.if ${SLAVE_PORT} == "no" || ${PORTNAME} == "xephyr" | |||||
LIB_DEPENDS+= libdrm.so:graphics/libdrm \ | |||||
libepoxy.so:graphics/libepoxy | |||||
.else | |||||
BUILD_DEPENDS+= libepoxy>0:graphics/libepoxy # only for configure | |||||
.endif | |||||
.if ${SLAVE_PORT} == "no" | .if ${SLAVE_PORT} == "no" | ||||
USE_GL+= gbm | |||||
USE_XORG+= pciaccess xf86dgaproto xf86vidmodeproto | |||||
CONFIGURE_ARGS+=--disable-dmx --disable-xephyr --disable-xnest --disable-xvfb | |||||
SUB_FILES= pkg-install pkg-deinstall | SUB_FILES= pkg-install pkg-deinstall | ||||
.else | .else | ||||
CONFIGURE_ARGS+=--disable-xorg | |||||
# for slave ports we need to overwrite PLIST, so it doesn't overwrite | # for slave ports we need to overwrite PLIST, so it doesn't overwrite | ||||
# PLIST_FILES, with the masterport plist. | # PLIST_FILES, with the masterport plist. | ||||
PLIST= ${.CURDIR}/pkg-plist | PLIST= ${.CURDIR}/pkg-plist | ||||
.endif | .endif | ||||
.include <bsd.port.pre.mk> | .include <bsd.port.pre.mk> | ||||
.if ${SSL_DEFAULT} == base | .if ${SSL_DEFAULT} == base | ||||
# The reason why I use this is cause openssl from base doesn't install a .pc file | # The reason why I use this is cause openssl from base doesn't install a .pc file | ||||
# and configure will fail trying to find it. Setting both of those variables to | # and configure will fail trying to find it. Setting both of those variables to | ||||
# a *non-empty* value by-passes the pkg-config check. | # a *non-empty* value by-passes the pkg-config check. | ||||
CONFIGURE_ENV= SHA1_LIB="-L/usr/lib -lcrypto" SHA1_CFLAGS="-I/usr/include" | CONFIGURE_ENV= SHA1_LIB="-L/usr/lib -lcrypto" SHA1_CFLAGS="-I/usr/include" | ||||
.endif | .endif | ||||
.if ${PORT_OPTIONS:MHAL} | .if ${PORT_OPTIONS:MHAL} | ||||
LIB_DEPENDS+= libhal.so:sysutils/hal | LIB_DEPENDS+= libhal.so:sysutils/hal | ||||
CONFIGURE_ARGS+= --enable-config-hal=yes | CONFIGURE_ARGS+= --enable-config-hal | ||||
.else | .else | ||||
CONFIGURE_ARGS+= --enable-config-hal=no | CONFIGURE_ARGS+= --disable-config-hal | ||||
.endif | .endif | ||||
# We handle Xorg setuid in the plist. This allows to build xorg-server as a user. | # We handle Xorg setuid in the plist. This allows to build xorg-server as a user. | ||||
CONFIGURE_ARGS+=--disable-install-setuid | CONFIGURE_ARGS+=--disable-install-setuid | ||||
.if ${ARCH} == i386 | .if ${ARCH} == "i386" || ${ARCH} == "amd64" | ||||
EXTRA_PATCHES+= ${FILESDIR}/extra-arch-i386 | LIB_DEPENDS+= libunwind.so:devel/libunwind | ||||
.endif | .endif | ||||
.if ${ARCH} == ia64 | .if ${ARCH} == "sparc64" | ||||
EXTRA_PATCHES+= ${FILESDIR}/extra-arch-ia64 | |||||
.endif | |||||
.if ${ARCH} == powerpc || ${ARCH} == powerpc64 | |||||
EXTRA_PATCHES+= ${FILESDIR}/extra-arch-powerpc | |||||
.endif | |||||
.if ${ARCH} == sparc64 | |||||
PLIST_SUB+= SPARC64="" | PLIST_SUB+= SPARC64="" | ||||
EXTRA_PATCHES+= ${FILESDIR}/extra-arch-sparc64 | |||||
.else | .else | ||||
PLIST_SUB+= SPARC64="@comment " | PLIST_SUB+= SPARC64="@comment " | ||||
.endif | .endif | ||||
.if ${PORT_OPTIONS:MSUID} | .if ${PORT_OPTIONS:MSUID} | ||||
pre-everything:: | pre-everything:: | ||||
@${ECHO_MSG} "By default, the X Server installs as a set-user-id root binary. When run by" | @${ECHO_MSG} "By default, the X Server installs as a set-user-id root binary. When run by" | ||||
@${ECHO_MSG} "a normal user, it checks arguments and environment as done in the x11/wrapper" | @${ECHO_MSG} "a normal user, it checks arguments and environment as done in the x11/wrapper" | ||||
Show All 34 Lines |