Makefile 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  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.7.6
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= ba0360b4ec1f6e541b264e45906bf5f2
  8. PKG_DESCR:= Xorg server
  9. PKG_SECTION:= x11/server
  10. PKG_DEPENDS:= libopenssl libxfont pixman libpciaccess libxkbfile \
  11. libfontenc xkeyboard-config xkbcomp libxau libxaw \
  12. libxmu libxpm libxrender libxt libxxf86dga libxext \
  13. libxdmcp libxv libsm libice libx11
  14. PKG_BUILDDEP+= libX11 randrproto renderproto fixesproto damageproto \
  15. scrnsaverproto resourceproto fontsproto videoproto \
  16. compositeproto evieext libxkbfile libXfont pixman \
  17. libpciaccess openssl xf86dgaproto
  18. ifeq (${ADK_PACKAGE_XORG_SERVER_WITH_DRI},y)
  19. PKG_BUILDDEP+= xf86driproto glproto dri2proto MesaLib
  20. endif
  21. PKG_URL:= http://www.x.org
  22. PKG_SITES:= http://xorg.freedesktop.org/archive/individual/xserver/
  23. PKG_TARGET_DEPENDS:= !foxboard
  24. CFLINE_XORG_SERVER:= depends on ADK_TARGET_WITH_VGA
  25. PKG_FLAVOURS:= WITH_DRI
  26. PKGFS_WITH_DRI:= mesalib
  27. PKGFD_WITH_DRI:= enable DRI/DRI2 support
  28. include $(TOPDIR)/mk/package.mk
  29. $(eval $(call PKG_template,XORG_SERVER,${PKG_NAME},$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  30. CONFIGURE_ENV+= V=1
  31. CONFIGURE_ARGS+= \
  32. --with-fontdir=/usr/share/fonts/X11 \
  33. --enable-dga \
  34. --enable-xorg \
  35. --enable-xv \
  36. --enable-xaa \
  37. --enable-vgahw \
  38. --enable-dpms \
  39. --disable-aiglx \
  40. --disable-config-hal \
  41. --disable-xace \
  42. --disable-xephyr \
  43. --disable-xf86bigfont \
  44. --disable-xf86vidmode \
  45. --disable-xfake \
  46. --disable-xfbdev \
  47. --disable-xinerama \
  48. --disable-xnest \
  49. --disable-xsdl \
  50. --disable-xselinux \
  51. --disable-xcsecurity \
  52. --disable-xvfb \
  53. --disable-xvmc \
  54. --with-xkb-output=/tmp \
  55. --with-os-vendor=OpenADK \
  56. --with-vendor-web="http://openadk.org"
  57. ifeq (${ADK_PACKAGE_XORG_SERVER_WITH_DRI},y)
  58. CONFIGURE_ARGS+= --enable-dri --enable-dri2 --enable-glx
  59. else
  60. CONFIGURE_ARGS+= --disable-dri --disable-dri2 --disable-glx
  61. endif
  62. ifeq (${ADK_LINUX_MIPS64_LEMOTE},y)
  63. CONFIGURE_ARGS+= --with-int10=stub
  64. endif
  65. post-install:
  66. $(INSTALL_DIR) $(IDIR_XORG_SERVER)/etc/X11
  67. $(INSTALL_DIR) $(IDIR_XORG_SERVER)/usr/bin
  68. $(INSTALL_DIR) $(IDIR_XORG_SERVER)/usr/lib/xorg/modules/linux
  69. $(INSTALL_DIR) $(IDIR_XORG_SERVER)/usr/lib/xorg/modules/extensions
  70. $(INSTALL_DIR) $(IDIR_XORG_SERVER)/usr/lib/xorg/modules/fonts
  71. $(INSTALL_DIR) $(IDIR_XORG_SERVER)/usr/lib/xorg/modules/multimedia
  72. ${CP} ${WRKINST}/usr/lib/xorg/protocol.txt \
  73. $(IDIR_XORG_SERVER)/usr/lib/xorg/
  74. ${CP} ${WRKINST}/usr/bin/* $(IDIR_XORG_SERVER)/usr/bin
  75. chmod u+s $(IDIR_XORG_SERVER)/usr/bin/Xorg
  76. ${CP} ${WRKINST}/usr/lib/xorg/modules/*.so \
  77. $(IDIR_XORG_SERVER)/usr/lib/xorg/modules
  78. ${CP} ${WRKINST}/usr/lib/xorg/modules/extensions/*.so \
  79. $(IDIR_XORG_SERVER)/usr/lib/xorg/modules/extensions
  80. ${CP} ${WRKINST}/usr/lib/xorg/modules/linux/*.so \
  81. $(IDIR_XORG_SERVER)/usr/lib/xorg/modules/linux
  82. ${CP} ${WRKINST}/usr/lib/xorg/modules/multimedia/*.so \
  83. $(IDIR_XORG_SERVER)/usr/lib/xorg/modules/multimedia
  84. -$(CP) $(TOPDIR)/target/$(ADK_TARGET)/xorg.conf \
  85. $(IDIR_XORG_SERVER)/etc/X11
  86. ifeq (${ADK_PACKAGE_XORG_SERVER_WITH_DRI},y)
  87. ${CP} ${WRKINST}/usr/lib/xorg/modules/extensions/*dri*.so \
  88. $(IDIR_XORG_SERVER)/usr/lib/xorg/modules/extensions
  89. endif
  90. include ${TOPDIR}/mk/pkg-bottom.mk