ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/mports/trunk/x11-servers/xorg-server/Makefile
Revision: 24921
Committed: Sat Feb 9 16:30:50 2019 UTC (5 years, 2 months ago) by laffer1
File size: 4243 byte(s)
Log Message:
update xorg servers

File Contents

# Content
1 # $MidnightBSD$
2
3 PORTNAME?= xorg-server
4 PORTVERSION?= 1.18.4
5 PORTREVISION?= 3
6 PORTEPOCH?= 1
7 CATEGORIES= x11-servers
8 MASTER_SITES= XORG/individual/xserver
9 DISTNAME= xorg-server-${PORTVERSION}
10
11 MAINTAINER= ports@MidnightBSD.org
12 COMMENT?= X.Org X server and related programs
13
14 LICENSE= mit
15
16 RUN_DEPENDS+= xkeyboard-config>=2.5:x11/xkeyboard-config \
17 xkbcomp:x11/xkbcomp
18
19 XORG_CAT= xserver
20 SLAVE_PORT?= no
21
22 OPTIONS_SUB= yes
23 OPTIONS_DEFINE= SUID
24 OPTIONS_RADIO= CONF
25 OPTIONS_RADIO_CONF= DEVD HAL
26 DEVD_DESC= Use devd for autoconfiguration of input devices
27 HAL_DESC= Use hald for autoconfiguration of input devices
28 SUID_DESC= Install the Xorg server with setuid bit set
29 OPTIONS_DEFAULT=DEVD SUID
30
31 OPTIONS_EXCLUDE_sparc64= HAL
32
33 .include <bsd.mport.options.mk>
34
35 USES= gmake libtool perl5 ssl tar:bzip2
36 USE_PERL5= build
37 USE_GL+= gl
38 USE_XORG+= pixman xau xdmcp xfont xkbfile xorgproto xshmfence xtrans
39 CONFIGURE_ARGS+=--without-doxygen --without-xmlto --without-fop \
40 --localstatedir=/var --with-shared-memory-dir=/tmp \
41 --disable-config-udev --disable-config-udev-kms \
42 --without-dtrace --enable-glamor
43 CONFIGURE_TARGET= ${ARCH}-portbld-freebsd10.4
44 INSTALL_TARGET= install-strip
45
46 .if ${SLAVE_PORT} == "no" || ${PORTNAME} == "xephyr" || ${PORTNAME} == "xwayland"
47 LIB_DEPENDS+= libdrm.so:graphics/libdrm \
48 libepoxy.so:graphics/libepoxy
49 .else
50 BUILD_DEPENDS+= libepoxy>0:graphics/libepoxy # only for configure
51 .endif
52
53 .if ${SLAVE_PORT} == "no"
54 USE_GL+= gbm
55 USE_XORG+= pciaccess
56 CONFIGURE_ARGS+=--disable-dmx --disable-xephyr --disable-xnest --disable-xvfb \
57 --disable-xwayland --enable-xcsecurity
58 SUB_FILES= pkg-install pkg-deinstall
59 .else
60 CONFIGURE_ARGS+=--disable-xorg
61 # for slave ports we need to overwrite PLIST, so it doesn't overwrite
62 # PLIST_FILES, with the masterport plist.
63 PLIST= ${.CURDIR}/pkg-plist
64 .endif
65
66 .include <bsd.port.pre.mk>
67
68 .if ${SSL_DEFAULT} == base
69 # The reason why I use this is cause openssl from base doesn't install a .pc file
70 # and configure will fail trying to find it. Setting both of those variables to
71 # a *non-empty* value by-passes the pkg-config check.
72 CONFIGURE_ENV= SHA1_LIB="-L/usr/lib -lcrypto" SHA1_CFLAGS="-I/usr/include"
73 .endif
74
75 .if ${PORT_OPTIONS:MHAL}
76 LIB_DEPENDS+= libhal.so:sysutils/hal
77 CONFIGURE_ARGS+= --enable-config-hal
78 .else
79 CONFIGURE_ARGS+= --disable-config-hal
80 .endif
81
82 # We handle Xorg setuid in the plist. This allows to build xorg-server as a user.
83 CONFIGURE_ARGS+=--disable-install-setuid
84
85 .if ${ARCH} == "i386" || ${ARCH} == "amd64"
86 LIB_DEPENDS+= libunwind.so:devel/libunwind
87 .endif
88
89 .if ${ARCH} == "sparc64"
90 PLIST_SUB+= SPARC64=""
91 .else
92 PLIST_SUB+= SPARC64="@comment "
93 .endif
94
95 .if ${PORT_OPTIONS:MSUID}
96 pre-everything::
97 @${ECHO_MSG} "By default, the X Server installs as a set-user-id root binary. When run by"
98 @${ECHO_MSG} "a normal user, it checks arguments and environment as done in the x11/wrapper"
99 @${ECHO_MSG} "port before handling them normally. If you are concerned about the security"
100 @${ECHO_MSG} "of this, but still want to run an X Server (for example using xdm/kdm/gdm,"
101 @${ECHO_MSG} "which will still run the server as root), you can cancel the build and set"
102 @${ECHO_MSG} "xorg-server_UNSET=SUID in /etc/make.conf."
103 .endif
104
105 post-patch:
106 @${REINPLACE_CMD} 's/test.*-traditional.*;/true;/' \
107 ${WRKSRC}/configure
108 # build libglx.so but don't install it yet. which is done in pre-install.
109 @${REINPLACE_CMD} -e 's|@GLX_TRUE@GLXMODS =|@GLX_BOGUS@GLXMODS =|g' \
110 -e 's|^LTLIBRARIES = |LTLIBRARIES = libglx.la |g' \
111 ${WRKSRC}/hw/xfree86/dixmods/Makefile.in
112
113 post-configure:
114 .if ${PORT_OPTIONS:MDEVD}
115 @${REINPLACE_CMD} -e 's|config\.c|config.c devd.c|g' \
116 -e 's|config\.lo|config.lo devd.lo|g' \
117 ${WRKSRC}/config/Makefile
118 @${REINPLACE_CMD} -e 's|^/\* #undef CONFIG_UDEV \*/|#define CONFIG_DEVD 1|' \
119 ${WRKSRC}/include/dix-config.h
120 .endif
121
122 .if ${SLAVE_PORT} == "no"
123 post-install:
124 # The .xorg dir because else the xorg-server might not load the correct
125 # libglx module.
126 @${MKDIR} ${STAGEDIR}${PREFIX}/lib/xorg/modules/extensions/.xorg
127 ${INSTALL_LIB} ${WRKSRC}/hw/xfree86/dixmods/.libs/libglx.so \
128 ${STAGEDIR}${PREFIX}/lib/xorg/modules/extensions/.xorg/
129 @${MKDIR} ${STAGEDIR}${PREFIX}/etc/X11/xorg.conf.d
130 .endif # ! SLAVE_PORT
131
132 .include <bsd.port.post.mk>

Properties

Name Value
svn:keywords MidnightBSD=%H