2004-05-10 07:05:00 +02:00
|
|
|
# New ports collection makefile for: xorg-server
|
|
|
|
# Date created: 7 May 2004
|
|
|
|
# Whom: anholt@FreeBSD.org
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2004-12-23 02:35:49 +01:00
|
|
|
PORTNAME= xorg-server
|
2010-05-01 13:41:07 +02:00
|
|
|
PORTVERSION= 1.7.5
|
2007-05-19 22:36:56 +02:00
|
|
|
PORTEPOCH= 1
|
2004-05-10 07:05:00 +02:00
|
|
|
CATEGORIES= x11-servers
|
2009-01-23 17:28:36 +01:00
|
|
|
MASTER_SITES= http://xorg.freedesktop.org/releases/individual/xserver/
|
|
|
|
DISTFILES= xorg-server-${PORTVERSION}.tar.bz2
|
2007-01-27 21:22:20 +01:00
|
|
|
|
2004-05-10 07:05:00 +02:00
|
|
|
MAINTAINER= x11@FreeBSD.org
|
|
|
|
COMMENT= X.Org X server and related programs
|
|
|
|
|
2007-05-19 22:36:56 +02:00
|
|
|
LIB_DEPENDS= drm:${PORTSDIR}/graphics/libdrm
|
2009-01-23 17:28:36 +01:00
|
|
|
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
RUN_DEPENDS= ${LOCALBASE}/share/X11/xkb/rules/base.xml:${PORTSDIR}/x11/xkeyboard-config
|
2004-05-10 07:05:00 +02:00
|
|
|
|
|
|
|
CONFLICTS= XFree86-Server-*
|
|
|
|
|
2007-05-19 22:36:56 +02:00
|
|
|
XORG_CAT= xserver
|
|
|
|
|
2010-05-01 13:41:07 +02:00
|
|
|
USE_GMAKE= yes
|
2009-01-23 17:28:36 +01:00
|
|
|
USE_GL= gl
|
2007-05-19 22:36:56 +02:00
|
|
|
USE_XORG= xf86driproto glproto xdmcp x11 xkbfile xxf86misc xxf86vm xaw7 \
|
|
|
|
xmu xt xpm xext randrproto renderproto fixesproto damageproto \
|
2009-01-25 19:43:39 +01:00
|
|
|
dri2proto xcmiscproto xextproto xproto xtrans xf86miscproto \
|
2007-05-19 22:36:56 +02:00
|
|
|
xf86vidmodeproto xf86bigfontproto scrnsaverproto bigreqsproto \
|
|
|
|
resourceproto fontsproto inputproto xf86dgaproto \
|
|
|
|
videoproto compositeproto trapproto recordproto xineramaproto \
|
2009-04-04 06:04:01 +02:00
|
|
|
xinerama evieproto xfont fontenc xkbui pixman pciaccess
|
2007-05-19 22:36:56 +02:00
|
|
|
|
2010-05-01 13:41:07 +02:00
|
|
|
MAKE_JOBS_UNSAFE= yes
|
2009-01-23 17:28:36 +01:00
|
|
|
USE_OPENSSL= yes
|
2007-05-19 22:36:56 +02:00
|
|
|
USE_PERL5_BUILD=yes
|
2009-04-04 06:04:01 +02:00
|
|
|
CONFIGURE_ARGS= --disable-dmx --disable-xvfb --disable-xnest \
|
2009-01-27 10:31:22 +01:00
|
|
|
--localstatedir=/var --without-dtrace --disable-xephyr \
|
2009-04-04 06:04:01 +02:00
|
|
|
--enable-record=yes
|
2007-05-19 22:36:56 +02:00
|
|
|
|
2004-05-10 07:05:00 +02:00
|
|
|
MAN1= Xorg.1 \
|
2007-05-19 22:36:56 +02:00
|
|
|
Xserver.1 \
|
|
|
|
cvt.1 \
|
2009-04-04 06:04:01 +02:00
|
|
|
gtf.1
|
2007-05-19 22:36:56 +02:00
|
|
|
MAN4= exa.4 \
|
|
|
|
fbdevhw.4
|
2009-01-23 17:28:36 +01:00
|
|
|
MAN5= xorg.conf.5
|
2004-05-10 07:05:00 +02:00
|
|
|
|
2009-06-20 01:19:01 +02:00
|
|
|
NOT_FOR_ARCHS= alpha
|
2007-10-10 00:31:49 +02:00
|
|
|
|
2010-02-08 01:20:08 +01:00
|
|
|
.if !defined(ARCH)
|
|
|
|
ARCH!= /usr/bin/uname -p
|
|
|
|
.endif
|
|
|
|
|
|
|
|
OPTIONS= AIGLX "Compile with Accelerated Indirect GLX support" on \
|
2007-12-12 18:34:16 +01:00
|
|
|
SUID "Install the Xorg server with setuid bit set" on
|
2010-02-08 01:20:08 +01:00
|
|
|
.if ${ARCH} == sparc64
|
|
|
|
OPTIONS+= HAL "Compile with HAL config support" off
|
|
|
|
.else
|
|
|
|
OPTIONS+= HAL "Compile with HAL config support" on
|
|
|
|
.endif
|
2007-12-12 18:34:16 +01:00
|
|
|
|
2004-05-10 07:05:00 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2009-01-23 17:28:36 +01:00
|
|
|
.if defined(WITH_OPENSSL_BASE)
|
|
|
|
# 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
|
|
|
|
# a *non-empty* value by-passes the pkg-config check.
|
|
|
|
CONFIGURE_ENV= SHA1_LIB="-L/usr/lib -lcrypto" SHA1_CFLAGS="-I/usr/include"
|
|
|
|
.endif
|
|
|
|
|
2007-12-12 18:34:16 +01:00
|
|
|
.if !defined(WITHOUT_HAL)
|
|
|
|
LIB_DEPENDS+= hal.1:${PORTSDIR}/sysutils/hal
|
|
|
|
CONFIGURE_ARGS+= --enable-config-hal=yes
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --enable-config-hal=no
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !defined(WITHOUT_AIGLX)
|
|
|
|
CONFIGURE_ARGS+= --enable-aiglx=yes
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --enable-aiglx=no
|
|
|
|
.endif
|
|
|
|
|
2008-01-02 13:58:05 +01:00
|
|
|
.if !defined(WITHOUT_SUID) && (!defined(NO_SUID_XSERVER) || ${NO_SUID_XSERVER} == NO)
|
2007-12-12 18:34:16 +01:00
|
|
|
CONFIGURE_ARGS+=--enable-install-setuid=yes
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--enable-install-setuid=no
|
|
|
|
.endif
|
|
|
|
|
2004-08-31 02:18:27 +02:00
|
|
|
.if ${ARCH} == alpha
|
|
|
|
PLIST_SUB+= ALPHA_NA="@comment "
|
2008-01-02 13:58:05 +01:00
|
|
|
EXTRA_PATCHES= ${.CURDIR}/files/extra-arch-alpha
|
2004-08-31 02:18:27 +02:00
|
|
|
.else
|
|
|
|
PLIST_SUB+= ALPHA_NA=""
|
|
|
|
.endif
|
2006-08-21 00:58:20 +02:00
|
|
|
|
2009-06-20 01:19:01 +02:00
|
|
|
.if ${ARCH} == ia64
|
|
|
|
PLIST_SUB+= IA64_NA="@comment "
|
|
|
|
EXTRA_PATCHES= ${.CURDIR}/files/extra-arch-ia64
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= IA64_NA=""
|
|
|
|
.endif
|
|
|
|
|
2005-03-19 05:32:37 +01:00
|
|
|
.if ${ARCH} == powerpc
|
|
|
|
PLIST_SUB+= PPC_NA="@comment "
|
|
|
|
MAN4+= nv.4x
|
2008-01-02 13:58:05 +01:00
|
|
|
EXTRA_PATCHES= ${.CURDIR}/files/extra-arch-powerpc
|
2005-03-19 05:32:37 +01:00
|
|
|
.else
|
|
|
|
PLIST_SUB+= PPC_NA=""
|
|
|
|
.endif
|
|
|
|
|
2004-05-10 07:05:00 +02:00
|
|
|
.if ${ARCH} == sparc64
|
|
|
|
PLIST_SUB+= SPARC64=""
|
|
|
|
PLIST_SUB+= SPARC64_NA="@comment "
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= SPARC64="@comment "
|
|
|
|
PLIST_SUB+= SPARC64_NA=""
|
2005-03-19 05:32:37 +01:00
|
|
|
.endif
|
|
|
|
|
2007-11-19 18:17:39 +01:00
|
|
|
.if ${ARCH} == amd64 || ${ARCH} == i386 || ${ARCH} == sparc64
|
|
|
|
PLIST_SUB+= AMD64_I386_SPARC64=""
|
2004-05-10 07:05:00 +02:00
|
|
|
.else
|
2007-11-19 18:17:39 +01:00
|
|
|
PLIST_SUB+= AMD64_I386_SPARC64="@comment "
|
2004-05-10 07:05:00 +02:00
|
|
|
.endif
|
|
|
|
|
2008-01-02 13:58:05 +01:00
|
|
|
.if !defined(WITHOUT_SUID) && (!defined(NO_SUID_XSERVER) || ${NO_SUID_XSERVER} == NO)
|
2004-06-19 07:51:45 +02:00
|
|
|
pre-everything::
|
|
|
|
@${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} "port before handling them normally. If you are concerned about the security"
|
2004-12-29 03:29:31 +01:00
|
|
|
@${ECHO_MSG} "of this, but still want to run an X Server (for example using xdm/kdm/gdm,"
|
|
|
|
@${ECHO_MSG} "which will still run the server as root), you can cancel the build and set"
|
2004-06-19 07:51:45 +02:00
|
|
|
@${ECHO_MSG} "NO_SUID_XSERVER=YES in /etc/make.conf."
|
|
|
|
.endif
|
|
|
|
|
2010-05-01 13:41:07 +02:00
|
|
|
.if ${OSVERSION} < 700000
|
|
|
|
USE_GCC= 4.2+
|
|
|
|
.endif
|
|
|
|
|
2004-05-10 07:05:00 +02:00
|
|
|
.include <bsd.port.post.mk>
|