Makefile 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  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.5
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 866917789c71e7616a016ad256fe9b8f
  8. PKG_DESCR:= Xorg server
  9. PKG_SECTION:= x11
  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. PKG_DEPENDS+= xf86driproto glproto dri2proto mesalib
  21. endif
  22. PKG_URL:= http://www.x.org
  23. PKG_SITES:= http://xorg.freedesktop.org/archive/individual/xserver/
  24. PKG_TARGET_DEPENDS:= !foxboard
  25. CFLINE_XORG_SERVER:= depends on ADK_TARGET_WITH_VGA
  26. PKG_FLAVOURS:= WITH_DRI
  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. --disable-aiglx \
  38. --disable-config-hal \
  39. --disable-dpms \
  40. --disable-glx \
  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
  59. else
  60. CONFIGURE_ARGS+= --disable-dri --disable-dri2
  61. endif
  62. post-install:
  63. $(INSTALL_DIR) $(IDIR_XORG_SERVER)/etc/X11
  64. $(INSTALL_DIR) $(IDIR_XORG_SERVER)/usr/bin
  65. $(INSTALL_DIR) $(IDIR_XORG_SERVER)/usr/lib/xorg/modules/linux
  66. $(INSTALL_DIR) $(IDIR_XORG_SERVER)/usr/lib/xorg/modules/extensions
  67. $(INSTALL_DIR) $(IDIR_XORG_SERVER)/usr/lib/xorg/modules/fonts
  68. $(INSTALL_DIR) $(IDIR_XORG_SERVER)/usr/lib/xorg/modules/multimedia
  69. ${CP} ${WRKINST}/usr/lib/xorg/protocol.txt \
  70. $(IDIR_XORG_SERVER)/usr/lib/xorg/
  71. ${CP} ${WRKINST}/usr/bin/* $(IDIR_XORG_SERVER)/usr/bin
  72. ${CP} ${WRKINST}/usr/lib/xorg/modules/*.so \
  73. $(IDIR_XORG_SERVER)/usr/lib/xorg/modules
  74. ${CP} ${WRKINST}/usr/lib/xorg/modules/extensions/*.so \
  75. $(IDIR_XORG_SERVER)/usr/lib/xorg/modules/extensions
  76. ${CP} ${WRKINST}/usr/lib/xorg/modules/linux/*.so \
  77. $(IDIR_XORG_SERVER)/usr/lib/xorg/modules/linux
  78. ${CP} ${WRKINST}/usr/lib/xorg/modules/multimedia/*.so \
  79. $(IDIR_XORG_SERVER)/usr/lib/xorg/modules/multimedia
  80. -$(CP) $(TOPDIR)/target/$(ADK_TARGET)/xorg.conf \
  81. $(IDIR_XORG_SERVER)/etc/X11
  82. ifeq (${ADK_PACKAGE_XORG_SERVER_WITH_DRI},y)
  83. ${CP} ${WRKINST}/usr/lib/xorg/modules/extensions/*dri*.so \
  84. $(IDIR_XORG_SERVER)/usr/lib/xorg/modules/extensions
  85. endif
  86. include ${TOPDIR}/mk/pkg-bottom.mk