1
0

Makefile 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. include $(TOPDIR)/rules.mk
  4. PKG_NAME:= xorg-server
  5. PKG_VERSION:= 1.9.3
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= b8e364bffd87291b593726696d39b4b5
  8. PKG_DESCR:= Xorg server
  9. PKG_SECTION:= x11/server
  10. PKG_DEPENDS:= libopenssl libxfont pixman libpciaccess libxkbfile
  11. PKG_DEPENDS+= libfontenc xkeyboard-config xkbcomp libxau libxaw
  12. PKG_DEPENDS+= libxmu libxpm libxrender libxt libxxf86dga libxext
  13. PKG_DEPENDS+= libxdmcp libxv libsm libice libx11 libxcb
  14. PKG_BUILDDEP:= libX11 randrproto renderproto fixesproto damageproto
  15. PKG_BUILDDEP+= scrnsaverproto resourceproto fontsproto videoproto
  16. PKG_BUILDDEP+= compositeproto evieext libxkbfile libXfont pixman
  17. PKG_BUILDDEP+= libpciaccess openssl xf86dgaproto recordproto
  18. PKG_URL:= http://www.x.org/
  19. PKG_SITES:= ${MASTER_SITE_XORG}
  20. PKG_CFLINE_XORG_SERVER:=depends on ADK_TARGET_WITH_VGA
  21. PKG_FLAVOURS_XORG_SERVER:= WITH_DRI
  22. PKGFS_WITH_DRI:= mesalib
  23. PKGFD_WITH_DRI:= enable DRI/DRI2 support
  24. PKGFB_WITH_DRI:= xf86driproto glproto dri2proto MesaLib
  25. include $(TOPDIR)/mk/package.mk
  26. $(eval $(call PKG_template,XORG_SERVER,${PKG_NAME},$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  27. CONFIGURE_ENV+= V=1
  28. CONFIGURE_ARGS+= --with-fontdir=/usr/share/fonts/X11 \
  29. --enable-dga \
  30. --enable-xorg \
  31. --enable-xv \
  32. --enable-xaa \
  33. --enable-vgahw \
  34. --enable-dpms \
  35. --disable-aiglx \
  36. --disable-config-hal \
  37. --disable-xace \
  38. --disable-xephyr \
  39. --disable-xf86bigfont \
  40. --disable-xf86vidmode \
  41. --disable-xfake \
  42. --disable-xfbdev \
  43. --disable-xinerama \
  44. --disable-xnest \
  45. --disable-xsdl \
  46. --disable-xselinux \
  47. --disable-xcsecurity \
  48. --disable-xvfb \
  49. --disable-xvmc \
  50. --with-xkb-output=/tmp \
  51. --with-os-vendor=OpenADK \
  52. --with-vendor-web="http://openadk.org"
  53. ifeq (${ADK_PACKAGE_XORG_SERVER_WITH_DRI},y)
  54. CONFIGURE_ARGS+= --enable-dri --enable-dri2 --enable-glx
  55. else
  56. CONFIGURE_ARGS+= --disable-dri --disable-dri2 --disable-glx
  57. endif
  58. ifeq (${ADK_TARGET_SYSTEM_LEMOTE_YEELONG},y)
  59. CONFIGURE_ARGS+= --with-int10=stub
  60. endif
  61. post-install:
  62. $(INSTALL_DIR) $(IDIR_XORG_SERVER)/etc/X11
  63. $(INSTALL_DIR) $(IDIR_XORG_SERVER)/usr/bin
  64. $(INSTALL_DIR) $(IDIR_XORG_SERVER)/usr/lib/xorg/modules/extensions
  65. $(INSTALL_DIR) $(IDIR_XORG_SERVER)/usr/lib/xorg/modules/fonts
  66. $(INSTALL_DIR) $(IDIR_XORG_SERVER)/usr/lib/xorg/modules/multimedia
  67. ${CP} ${WRKINST}/usr/lib/xorg/protocol.txt \
  68. $(IDIR_XORG_SERVER)/usr/lib/xorg/
  69. ${CP} ${WRKINST}/usr/bin/* $(IDIR_XORG_SERVER)/usr/bin
  70. ${CP} ${WRKINST}/usr/lib/xorg/modules/*.so \
  71. $(IDIR_XORG_SERVER)/usr/lib/xorg/modules
  72. ${CP} ${WRKINST}/usr/lib/xorg/modules/extensions/*.so \
  73. $(IDIR_XORG_SERVER)/usr/lib/xorg/modules/extensions
  74. ${CP} ${WRKINST}/usr/lib/xorg/modules/multimedia/*.so \
  75. $(IDIR_XORG_SERVER)/usr/lib/xorg/modules/multimedia
  76. -$(CP) $(TOPDIR)/target/$(ADK_TARGET)/xorg.conf \
  77. $(IDIR_XORG_SERVER)/etc/X11
  78. ifeq (${ADK_PACKAGE_XORG_SERVER_WITH_DRI},y)
  79. ${CP} ${WRKINST}/usr/lib/xorg/modules/extensions/*dri*.so \
  80. $(IDIR_XORG_SERVER)/usr/lib/xorg/modules/extensions
  81. endif
  82. include ${TOPDIR}/mk/pkg-bottom.mk