shadow: update to 4.14.3
[openadk.git] / package / xorg-server / Makefile
blob9c6c12ffc6936d9be51bcfb3e997644a39bb5526
1 # This file is part of the OpenADK project. OpenADK is copyrighted
2 # material, please see the LICENCE file in the top-level directory.
4 include $(ADK_TOPDIR)/rules.mk
6 PKG_NAME:= xorg-server
7 PKG_VERSION:= 21.1.6
8 PKG_RELEASE:= 1
9 PKG_HASH:= 1eb86ed674d042b6c8b1f9135e59395cbbca35ed551b122f73a7d8bb3bb22484
10 PKG_DESCR:= xorg server
11 PKG_SECTION:= x11/drivers
12 PKG_DEPENDS:= libxfont2 pixman libpciaccess libxkbfile libxcvt
13 PKG_DEPENDS+= libfontenc xkeyboard-config xkbcomp libxau libxaw
14 PKG_DEPENDS+= libxmu libxpm libxrender libxt libxxf86dga libxext
15 PKG_DEPENDS+= libxdmcp libxv libsm libice libx11 libxcb libdrm
16 PKG_DEPENDS+= libxshmfence libfreetype libfontenc libpciaccess
17 PKG_DEPENDS+= libepoxy
18 PKG_BUILDDEP:= libX11 randrproto renderproto fixesproto damageproto
19 PKG_BUILDDEP+= scrnsaverproto resourceproto fontsproto videoproto
20 PKG_BUILDDEP+= compositeproto evieext libxkbfile libXfont2 pixman
21 PKG_BUILDDEP+= libpciaccess xf86dgaproto recordproto dri3proto
22 PKG_BUILDDEP+= xineramaproto presentproto xf86driproto glproto mesa
23 PKG_BUILDDEP+= xorgproto libxcvt libdrm libepoxy
24 PKG_NEEDS:= threads c++
25 PKG_URL:= http://www.x.org/
26 PKG_SITES:= http://www.x.org/releases/individual/xserver/
27 PKG_OPTS:= dev
29 PKG_CFLINE_XORG_SERVER:=depends on ADK_TARGET_WITH_VGA || ADK_TARGET_QEMU_WITH_GRAPHIC
31 PKG_FLAVOURS_XORG_SERVER:= WITH_KDRIVE
32 PKGFD_WITH_KDRIVE:= build kdrive xfbdev server
34 PKG_CHOICES_XORG_SERVER:= WITH_LIBRESSL WITH_GCRYPT
35 PKGCD_WITH_LIBRESSL:= use libressl crypto for sha1
36 PKGCS_WITH_LIBRESSL:= libressl
37 PKGCB_WITH_LIBRESSL:= libressl
38 PKGCD_WITH_GCRYPT:= use libgcrypt for sha1
39 PKGCS_WITH_GCRYPT:= libgcrypt
40 PKGCB_WITH_GCRYPT:= libgcrypt
42 include $(ADK_TOPDIR)/mk/package.mk
44 $(eval $(call PKG_template,XORG_SERVER,xorg-server,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
46 TARGET_CPPFLAGS+= -D_GNU_SOURCE -D__gid_t=gid_t -D__uid_t=uid_t
48 ifeq (${ADK_PACKAGE_XORG_SERVER_WITH_GCRYPT},y)
49 CONFIGURE_ARGS+= --with-sha1=libgcrypt
50 endif
52 ifeq (${ADK_PACKAGE_XORG_SERVER_WITH_LIBRESSL},y)
53 CONFIGURE_ARGS+= --with-sha1=libcrypto
54 endif
56 CONFIGURE_ENV+= V=1
57 CONFIGURE_ARGS+= --enable-dga \
58 --enable-xorg \
59 --enable-xv \
60 --enable-vgahw \
61 --enable-dpms \
62 --enable-xinerama \
63 --disable-docs \
64 --disable-glamor \
65 --disable-config-hal \
66 --disable-config-udev \
67 --disable-xace \
68 --disable-xephyr \
69 --disable-xf86bigfont \
70 --disable-xf86vidmode \
71 --disable-xnest \
72 --disable-xselinux \
73 --disable-xcsecurity \
74 --disable-xvfb \
75 --disable-xvmc \
76 --disable-selective-werror \
77 --disable-strict-compilation \
78 --enable-dri \
79 --enable-dri2 \
80 --enable-dri3 \
81 --enable-glx \
82 --enable-glamor \
83 --with-xkb-output=/tmp \
84 --with-fontrootdir=/usr/share/fonts/X11/ \
85 --with-vendor-web="$(ADK_VENDOR_URL)"
87 ifeq (${ADK_PACKAGE_XORG_SERVER_WITH_KDRIVE},y)
88 CONFIGURE_ARGS+= --enable-kdrive --enable-kdrive-kbd --enable-kdrive-mouse --enable-kdrive-evdev
89 else
90 CONFIGURE_ARGS+= --disable-kdrive
91 endif
93 ifeq (${ADK_TARGET_SYSTEM_LEMOTE_YEELONG},y)
94 CONFIGURE_ARGS+= --with-int10=stub
95 endif
97 xorg-server-install:
98 $(INSTALL_DIR) $(IDIR_XORG_SERVER)/etc/X11
99 $(INSTALL_DIR) $(IDIR_XORG_SERVER)/usr/bin
100 $(INSTALL_DIR) $(IDIR_XORG_SERVER)/usr/lib/xorg/modules/extensions
101 $(INSTALL_DIR) $(IDIR_XORG_SERVER)/usr/lib/xorg/modules/drivers
102 $(INSTALL_DIR) $(IDIR_XORG_SERVER)/usr/lib/xorg/modules/fonts
103 $(INSTALL_DIR) $(IDIR_XORG_SERVER)/usr/lib/xorg/modules/multimedia
104 ${CP} ${WRKINST}/usr/lib/xorg/protocol.txt \
105 $(IDIR_XORG_SERVER)/usr/lib/xorg/
106 ${CP} ${WRKINST}/usr/bin/* $(IDIR_XORG_SERVER)/usr/bin
107 ${CP} ${WRKINST}/usr/lib/xorg/modules/*.so \
108 $(IDIR_XORG_SERVER)/usr/lib/xorg/modules
109 ${CP} ${WRKINST}/usr/lib/xorg/modules/drivers/*.so \
110 $(IDIR_XORG_SERVER)/usr/lib/xorg/modules/drivers
111 ${CP} ${WRKINST}/usr/lib/xorg/modules/extensions/*.so \
112 $(IDIR_XORG_SERVER)/usr/lib/xorg/modules/extensions
113 ifeq (${ADK_TARGET_SYSTEM_LEMOTE_YEELONG},y)
114 ${CP} ./files/xorg.conf.lemote-yeelong \
115 $(IDIR_XORG_SERVER)/etc/X11/xorg.conf
116 endif
117 ifeq (${ADK_TARGET_SYSTEM_SHARP_ZAURUS},y)
118 ${CP} ./files/xorg.conf.sharp-zaurus \
119 $(IDIR_XORG_SERVER)/etc/X11/xorg.conf
120 endif
121 # add m4 file to host directory
122 $(INSTALL_DIR) $(STAGING_HOST_DIR)/usr/share/aclocal
123 $(CP) ${WRKINST}/usr/share/aclocal/xorg-server.m4 \
124 $(STAGING_HOST_DIR)/usr/share/aclocal
126 include ${ADK_TOPDIR}/mk/pkg-bottom.mk