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
9 PKG_HASH
:= c3e8660a74e2902e6ecaa66aa774e15d1ab66c2c19a023bd9e74e651ef005a43
10 PKG_DESCR
:= xorg server
11 PKG_SECTION
:= x11
/drivers
12 PKG_DEPENDS
:= libxfont2 pixman libpciaccess libxkbfile
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
16 PKG_DEPENDS
+= libxshmfence libfreetype libfontenc libpciaccess
17 PKG_BUILDDEP
:= libX11 randrproto renderproto fixesproto damageproto
18 PKG_BUILDDEP
+= scrnsaverproto resourceproto fontsproto videoproto
19 PKG_BUILDDEP
+= compositeproto evieext libxkbfile libXfont2 pixman
20 PKG_BUILDDEP
+= libpciaccess xf86dgaproto recordproto
21 PKG_BUILDDEP
+= xineramaproto presentproto xf86driproto glproto mesa
22 PKG_NEEDS
:= threads c
++
23 PKG_URL
:= http
://www.x.org
/
24 PKG_SITES
:= http
://www.x.org
/releases
/individual
/xserver
/
27 DISTFILES
:= ${PKG_NAME}-${PKG_VERSION}.
tar.gz
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
52 ifeq (${ADK_PACKAGE_XORG_SERVER_WITH_LIBRESSL},y
)
53 CONFIGURE_ARGS
+= --with-sha1
=libcrypto
57 CONFIGURE_ARGS
+= --enable-dga \
65 --disable-config-hal \
66 --disable-config-udev \
69 --disable-xf86bigfont \
70 --disable-xf86vidmode \
74 --disable-xcsecurity \
77 --disable-selective-werror \
78 --disable-strict-compilation \
84 --with-xkb-output
=/tmp \
85 --with-os-vendor
=OpenADK \
86 --with-vendor-web
="http://openadk.org"
88 ifeq (${ADK_PACKAGE_XORG_SERVER_WITH_KDRIVE},y
)
89 CONFIGURE_ARGS
+= --enable-kdrive
--enable-xfbdev
--enable-kdrive-kbd
--enable-kdrive-mouse
--enable-kdrive-evdev
91 CONFIGURE_ARGS
+= --disable-kdrive
--disable-xfbdev
94 ifeq (${ADK_TARGET_SYSTEM_LEMOTE_YEELONG},y
)
95 CONFIGURE_ARGS
+= --with-int10
=stub
99 $(INSTALL_DIR
) $(IDIR_XORG_SERVER
)/etc
/X11
100 $(INSTALL_DIR
) $(IDIR_XORG_SERVER
)/usr
/bin
101 $(INSTALL_DIR
) $(IDIR_XORG_SERVER
)/usr
/lib
/xorg
/modules
/extensions
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 ifeq (${ADK_PACKAGE_XORG_SERVER_WITH_DRI},y
)
110 ${CP} ${WRKINST}/usr
/lib
/xorg
/modules
/extensions
/*.so \
111 $(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
117 ifeq (${ADK_TARGET_SYSTEM_SHARP_ZAURUS},y
)
118 ${CP} .
/files
/xorg.conf.sharp-zaurus \
119 $(IDIR_XORG_SERVER
)/etc
/X11
/xorg.conf
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