123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132 |
- # This file is part of the OpenADK project. OpenADK is copyrighted
- # material, please see the LICENCE file in the top-level directory.
- include $(TOPDIR)/rules.mk
- PKG_NAME:= xorg-server
- PKG_VERSION:= 1.15.1
- PKG_RELEASE:= 1
- PKG_MD5SUM:= d6e5444fc33ad737b551cc49061ae704
- PKG_DESCR:= xorg server
- PKG_SECTION:= x11/drivers
- PKG_DEPENDS:= libopenssl libxfont pixman libpciaccess libxkbfile
- PKG_DEPENDS+= libfontenc xkeyboard-config xkbcomp libxau libxaw
- PKG_DEPENDS+= libxmu libxpm libxrender libxt libxxf86dga libxext
- PKG_DEPENDS+= libxdmcp libxv libsm libice libx11 libxcb librt
- PKG_DEPENDS+= libxshmfence libfreetype libfontenc libstdcxx libpciaccess
- PKG_BUILDDEP:= libX11 randrproto renderproto fixesproto damageproto
- PKG_BUILDDEP+= scrnsaverproto resourceproto fontsproto videoproto
- PKG_BUILDDEP+= compositeproto evieext libxkbfile libXfont pixman
- PKG_BUILDDEP+= libpciaccess openssl xf86dgaproto recordproto
- PKG_BUILDDEP+= xineramaproto
- PKG_URL:= http://www.x.org/
- PKG_SITES:= ${MASTER_SITE_XORG}
- PKG_OPTS:= dev
- DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
- PKG_CFLINE_XORG_SERVER:=depends on ADK_TARGET_WITH_VGA || ADK_TARGET_QEMU_WITH_GRAPHIC
- PKG_ARCH_DEPENDS:= !m68k
- PKG_FLAVOURS_XORG_SERVER:= WITH_DRI WITH_KDRIVE
- PKGFS_WITH_DRI:= mesalib
- PKGFD_WITH_DRI:= enable DRI support
- PKGFB_WITH_DRI:= xf86driproto glproto MesaLib
- PKGFD_WITH_KDRIVE:= Build Kdrive Xfbdev server
- PKG_CHOICES_XORG_SERVER:= WITH_GCRYPT WITH_CRYPTO
- PKGCD_WITH_GCRYPT:= use libgcrypt for SHA1
- PKGCS_WITH_GCRYPT:= libgcrypt
- PKGCB_WITH_GCRYPT:= libgcrypt
- PKGCD_WITH_CRYPTO:= use openssl libcrypto for SHA1
- PKGCS_WITH_CRYPTO:= libopenssl
- PKGCB_WITH_CRYPTO:= openssl
- include $(TOPDIR)/mk/package.mk
- $(eval $(call PKG_template,XORG_SERVER,xorg-server,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
- TARGET_CPPFLAGS+= -D_GNU_SOURCE -D__gid_t=gid_t -D__uid_t=uid_t
- ifeq (${ADK_PACKAGE_XORG_SERVER_WITH_GCRYPT},y)
- CONFIGURE_ARGS+= --with-sha1=libgcrypt
- endif
- ifeq (${ADK_PACKAGE_XORG_SERVER_WITH_CRYPTO},y)
- CONFIGURE_ARGS+= --with-sha1=libcrypto
- endif
- CONFIGURE_ENV+= V=1
- CONFIGURE_ARGS+= --enable-dga \
- --enable-xorg \
- --enable-xv \
- --enable-vgahw \
- --enable-dpms \
- --enable-xinerama \
- --disable-docs \
- --disable-aiglx \
- --disable-config-hal \
- --disable-config-udev \
- --disable-xace \
- --disable-xephyr \
- --disable-xf86bigfont \
- --disable-xf86vidmode \
- --disable-xfake \
- --disable-xnest \
- --disable-xselinux \
- --disable-xcsecurity \
- --disable-xvfb \
- --disable-xvmc \
- --disable-selective-werror \
- --disable-strict-compilation \
- --with-xkb-output=/tmp \
- --with-os-vendor=OpenADK \
- --with-vendor-web="http://openadk.org"
- ifeq (${ADK_PACKAGE_XORG_SERVER_WITH_KDRIVE},y)
- CONFIGURE_ARGS+= --enable-kdrive --enable-xfbdev --enable-kdrive-kbd --enable-kdrive-mouse --enable-kdrive-evdev
- else
- CONFIGURE_ARGS+= --disable-kdrive --disable-xfbdev
- endif
- ifeq (${ADK_PACKAGE_XORG_SERVER_WITH_DRI},y)
- CONFIGURE_ARGS+= --enable-dri --enable-dri2 --enable-dri3 --enable-glx
- else
- CONFIGURE_ARGS+= --disable-dri --disable-dri2 --disable-dri3 --disable-glx
- endif
- ifeq (${ADK_TARGET_SYSTEM_LEMOTE_YEELONG},y)
- CONFIGURE_ARGS+= --with-int10=stub
- endif
- xorg-server-install:
- $(INSTALL_DIR) $(IDIR_XORG_SERVER)/etc/X11
- $(INSTALL_DIR) $(IDIR_XORG_SERVER)/usr/bin
- $(INSTALL_DIR) $(IDIR_XORG_SERVER)/usr/lib/xorg/modules/extensions
- $(INSTALL_DIR) $(IDIR_XORG_SERVER)/usr/lib/xorg/modules/fonts
- $(INSTALL_DIR) $(IDIR_XORG_SERVER)/usr/lib/xorg/modules/multimedia
- ${CP} ${WRKINST}/usr/lib/xorg/protocol.txt \
- $(IDIR_XORG_SERVER)/usr/lib/xorg/
- ${CP} ${WRKINST}/usr/bin/* $(IDIR_XORG_SERVER)/usr/bin
- ${CP} ${WRKINST}/usr/lib/xorg/modules/*.so \
- $(IDIR_XORG_SERVER)/usr/lib/xorg/modules
- ifeq (${ADK_PACKAGE_XORG_SERVER_WITH_DRI},y)
- ${CP} ${WRKINST}/usr/lib/xorg/modules/extensions/*.so \
- $(IDIR_XORG_SERVER)/usr/lib/xorg/modules/extensions
- endif
- ${CP} ${WRKINST}/usr/lib/xorg/modules/multimedia/*.so \
- $(IDIR_XORG_SERVER)/usr/lib/xorg/modules/multimedia
- ifeq (${ADK_TARGET_SYSTEM_LEMOTE_YEELONG},y)
- ${CP} ./files/xorg.conf.lemote-yeelong \
- $(IDIR_XORG_SERVER)/etc/X11/xorg.conf
- endif
- ifeq (${ADK_TARGET_SYSTEM_SHARP_ZAURUS},y)
- ${CP} ./files/xorg.conf.sharp-zaurus \
- $(IDIR_XORG_SERVER)/etc/X11/xorg.conf
- endif
- # add m4 file to host directory
- $(INSTALL_DIR) $(STAGING_HOST_DIR)/usr/share/aclocal
- $(CP) ${WRKINST}/usr/share/aclocal/xorg-server.m4 \
- $(STAGING_HOST_DIR)/usr/share/aclocal
- include ${TOPDIR}/mk/pkg-bottom.mk
|