2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL"), version 1.0.
4 # You may only use this file in accordance with the terms of version
7 # A full copy of the text of the CDDL should have accompanied this
8 # source. A copy of the CDDL is also available via the Internet at
9 # http://www.illumos.org/license/CDDL.
13 # Copyright 2015 Alexander Pyhalov
14 # Copyright 2016-2018 Aurelien Larcher
17 include ..
/..
/..
/make-rules
/shared-macros.mk
18 include $(WS_MAKE_RULES
)/x11.mk
20 COMPONENT_NAME
= xorg-server
21 COMPONENT_VERSION
= 1.19.7
22 COMPONENT_REVISION
= 11
23 COMPONENT_SUMMARY
= Xorg
- X11R7 X server
24 COMPONENT_SRC
= $(COMPONENT_NAME
)-$(COMPONENT_VERSION
)
25 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).
tar.bz2
26 COMPONENT_ARCHIVE_HASH
= \
27 sha256
:7112f7128a4f5b06ceb8bba1bdc5e5c9e0fae682a42d35218bc12ba693f4c80c
28 COMPONENT_ARCHIVE_URL
= \
29 https
://ftp.x.org
/pub
/individual
/xserver
/$(COMPONENT_ARCHIVE
)
30 COMPONENT_PROJECT_URL
= https
://www.x.org
/
31 COMPONENT_CLASSIFICATION
=System
/X11
32 COMPONENT_LICENSE_FILE
= COPYING
33 COMPONENT_LICENSE
= MIT
35 TEST_TARGET
= $(NO_TESTS
)
37 include $(WS_MAKE_RULES
)/common.mk
39 COMPONENT_POST_UNPACK_ACTION
+= ( cp
-r
$(COMPONENT_DIR
)/srcs
/* $(SOURCE_DIR
))
41 # Missing files in build dir for configure without this.
42 COMPONENT_PRE_CONFIGURE_ACTION
= (cp
-a
$(SOURCE_DIR
)/* $(@D
) &&\
43 cd
$(@D
) && PATH
="$(PATH)" autoreconf
--install --force )
45 # Enabling gcc optimization leads to crashes
48 CPPFLAGS
+= -DSUNSOFT
-DTSOL
49 CPPFLAGS
+= -I
$(USRINCDIR
)/pixman-1
50 CPPFLAGS
+= -I
$(USRINCDIR
)/X11
/dri
51 CPP
= $(CC
) -E
-std
=gnu99
53 # Default linker options cause crash in glx due to invalid DRI2Connect
57 # Disable epoll on illumos
58 CONFIGURE_ENV
+= ac_cv_func_epoll_ctl
=no
59 CONFIGURE_ENV
+= ac_cv_func_epoll_create1
=no
61 # From X11 S12 module:
62 # Pass linker mapfile listing symbols that modules can count on resolving
63 # from the Xorg binary itself
64 XORG_EXTERNS_FILE
= mapfile-Xorg-externs.
$(MACH
)
65 XORG_EXTERNS_FLAG
= -Wl
,-M
,$(COMPONENT_DIR
)/$(XORG_EXTERNS_FILE
)
66 COMPONENT_BUILD_ENV
+= XORG_EXTERNS_FLAG
='$(XORG_EXTERNS_FLAG)'
67 COMPONENT_BUILD_ENV
+= LD_SHARED_OPTIONS
='-M $(COMPONENT_DIR)/$(XORG_EXTERNS_FILE)'
69 LDFLAGS
+= -L
$(X11_SERVERLIBS_DIR
) -R
$(X11_SERVERLIBS_DIR
)
71 CONFIGURE_SCRIPT
= $(@D
)/configure
73 CONFIGURE_OPTIONS
+= --bindir=$(USRBINDIR
)
74 CONFIGURE_OPTIONS
+= --disable-install-setuid
75 CONFIGURE_OPTIONS
+= --disable-static
76 CONFIGURE_OPTIONS
+= --disable-unit-tests
77 CONFIGURE_OPTIONS
+= --disable-xwin
78 CONFIGURE_OPTIONS
+= --disable-xnest
79 CONFIGURE_OPTIONS
+= --disable-systemd-logind
80 CONFIGURE_OPTIONS
+= --disable-input-thread
81 CONFIGURE_OPTIONS
+= --enable-dmx
82 CONFIGURE_OPTIONS
+= --enable-dri
83 CONFIGURE_OPTIONS
+= --enable-dri2
84 CONFIGURE_OPTIONS
+= --enable-dri3
85 CONFIGURE_OPTIONS
+= --disable-glamor
86 CONFIGURE_OPTIONS
+= --enable-glx
87 CONFIGURE_OPTIONS
+= --enable-kdrive
88 CONFIGURE_OPTIONS
+= --enable-shared
89 CONFIGURE_OPTIONS
+= --enable-xcsecurity
90 CONFIGURE_OPTIONS
+= --enable-xephyr
91 CONFIGURE_OPTIONS
+= --enable-xdm-auth-1
92 CONFIGURE_OPTIONS
+= --enable-xdmcp
93 CONFIGURE_OPTIONS
+= --prefix=/usr
94 CONFIGURE_OPTIONS
+= --with-builderstring
="Solaris ABI: $(BITS)-bit"
95 CONFIGURE_OPTIONS
+= --with-default-font-path
='catalogue:/etc/X11/fontpath.d'
96 CONFIGURE_OPTIONS
+= --with-default-xkb-model
=pc105
97 CONFIGURE_OPTIONS
+= --with-log-dir
=/var
/log
98 CONFIGURE_OPTIONS
+= --with-module-dir
=$(X11_SERVERMODS_DIR
)
99 CONFIGURE_OPTIONS
+= --with-os-name
="`uname -srm`"
100 CONFIGURE_OPTIONS
+= --with-vendor-name
="Project OpenIndiana"
101 CONFIGURE_OPTIONS
+= --with-vendor-web
="http://openindiana.org"
102 CONFIGURE_OPTIONS
+= --with-xkb-output
=/var
/run
/xkb
103 CONFIGURE_OPTIONS
+= --with-xkb-bin-directory
=/usr
/bin
105 CONFIGURE_ENV
+= CPPFLAGS
="$(CPPFLAGS)"
106 CONFIGURE_ENV
+= CPP
="$(CPP)"
107 CONFIGURE_ENV
+= LDFLAGS
="$(LDFLAGS) -lm"
108 CONFIGURE_ENV
+= GL_CFLAGS
="-I/usr/include/mesa -L$(MESA_XSERVERLIBS_DIR)"
109 CONFIGURE_ENV
+= XSERVERCFLAGS_CFLAGS
="-DHAS_FCHOWN -DHAS_STICKY_DIR_BIT -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DXTHREADS -DXUSE_MTSAFE_API"
111 COMPONENT_BUILD_ENV
+= SERVERMOD_SUBDIR
="$(X11_SERVERMOD_SUBDIR)"
113 COMPONENT_POST_BUILD_ACTION
+= ( $(ENV
) $(COMPONENT_BUILD_ENV
) $(CONFIGURE_ENV
) $(MAKE
) -C
$(BUILD_DIR_
$(BITS
))/os
/solaris
/mdb
)
114 COMPONENT_POST_INSTALL_ACTION
+= ( $(ENV
) $(COMPONENT_BUILD_ENV
) $(CONFIGURE_ENV
) $(MAKE
) $(COMPONENT_INSTALL_ARGS
) \
115 -C
$(BUILD_DIR_
$(BITS
))/os
/solaris
/mdb
install )
118 REQUIRED_PACKAGES
+= x11
/documentation
/xorg-docs
119 REQUIRED_PACKAGES
+= x11
/documentation
/xorg-sgml-doctools
120 REQUIRED_PACKAGES
+= x11
/header
/x11-protocols
121 REQUIRED_PACKAGES
+= x11
/font-util
122 REQUIRED_PACKAGES
+= x11
/library
/libxkbfile
123 REQUIRED_PACKAGES
+= x11
/library
/libxres
124 REQUIRED_PACKAGES
+= x11
/library
/xcb-util-cursor
125 REQUIRED_PACKAGES
+= x11
/library
/xcb-util-errors
126 REQUIRED_PACKAGES
+= x11
/library
/xtrans
127 REQUIRED_PACKAGES
+= system
/header
/header-audio
128 REQUIRED_PACKAGES
+= system
/header
/header-drm
129 REQUIRED_PACKAGES
+= developer
/debug
/mdb
130 REQUIRED_PACKAGES
+= developer
/build
/autoconf
/xorg-macros
132 # Sustained dependencies
133 REQUIRED_PACKAGES
+= x11
/library
/libxfont
134 REQUIRED_PACKAGES
+= x11
/library
/libxv
136 # Auto-generated dependencies
137 REQUIRED_PACKAGES
+= SUNWcs
138 REQUIRED_PACKAGES
+= diagnostic
/scanpci
139 REQUIRED_PACKAGES
+= library
/graphics
/pixman
140 REQUIRED_PACKAGES
+= service
/hal
141 REQUIRED_PACKAGES
+= shell/ksh93
142 REQUIRED_PACKAGES
+= system
/library
143 REQUIRED_PACKAGES
+= system
/library
/libdbus
144 REQUIRED_PACKAGES
+= system
/library
/math
145 REQUIRED_PACKAGES
+= x11
/library
/libdmx
146 REQUIRED_PACKAGES
+= x11
/library
/libdrm
147 REQUIRED_PACKAGES
+= x11
/library
/libx11
148 REQUIRED_PACKAGES
+= x11
/library
/libxau
149 REQUIRED_PACKAGES
+= x11
/library
/libxcb
150 REQUIRED_PACKAGES
+= x11
/library
/libxdmcp
151 REQUIRED_PACKAGES
+= x11
/library
/libxext
152 REQUIRED_PACKAGES
+= x11
/library
/libxfixes
153 REQUIRED_PACKAGES
+= x11
/library
/libxfont2
154 REQUIRED_PACKAGES
+= x11
/library
/libxi
155 REQUIRED_PACKAGES
+= x11
/library
/libxmu
156 REQUIRED_PACKAGES
+= x11
/library
/libxmuu
157 REQUIRED_PACKAGES
+= x11
/library
/libxpm
158 REQUIRED_PACKAGES
+= x11
/library
/libxrender
159 REQUIRED_PACKAGES
+= x11
/library
/libxshmfence
160 REQUIRED_PACKAGES
+= x11
/library
/toolkit
/libxaw7
161 REQUIRED_PACKAGES
+= x11
/library
/toolkit
/libxt
162 REQUIRED_PACKAGES
+= x11
/library
/xcb-util
163 REQUIRED_PACKAGES
+= x11
/library
/xcb-util-image
164 REQUIRED_PACKAGES
+= x11
/library
/xcb-util-keysyms
165 REQUIRED_PACKAGES
+= x11
/library
/xcb-util-renderutil
166 REQUIRED_PACKAGES
+= x11
/library
/xcb-util-wm