Makefile 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  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:= 2
  7. PKG_MD5SUM:= ba0360b4ec1f6e541b264e45906bf5f2
  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
  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
  18. PKG_URL:= http://www.x.org/
  19. PKG_SITES:= http://xorg.freedesktop.org/archive/individual/xserver/
  20. PKG_TARGET_DEPENDS:= !foxboard
  21. PKG_CFLINE_XORG_SERVER:=depends on ADK_TARGET_WITH_VGA
  22. PKG_FLAVOURS:= WITH_DRI
  23. PKGFS_WITH_DRI:= mesalib
  24. PKGFD_WITH_DRI:= enable DRI/DRI2 support
  25. PKGFB_WITH_DRI:= xf86driproto glproto dri2proto MesaLib
  26. include $(TOPDIR)/mk/package.mk
  27. $(eval $(call PKG_template,XORG_SERVER,${PKG_NAME},$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  28. CONFIGURE_ENV+= V=1
  29. CONFIGURE_ARGS+= \
  30. --with-fontdir=/usr/share/fonts/X11 \
  31. --enable-dga \
  32. --enable-xorg \
  33. --enable-xv \
  34. --enable-xaa \
  35. --enable-vgahw \
  36. --enable-dpms \
  37. --disable-aiglx \
  38. --disable-config-hal \
  39. --disable-xace \
  40. --disable-xephyr \
  41. --disable-xf86bigfont \
  42. --disable-xf86vidmode \
  43. --disable-xfake \
  44. --disable-xfbdev \
  45. --disable-xinerama \
  46. --disable-xnest \
  47. --disable-xsdl \
  48. --disable-xselinux \
  49. --disable-xcsecurity \
  50. --disable-xvfb \
  51. --disable-xvmc \
  52. --with-xkb-output=/tmp \
  53. --with-os-vendor=OpenADK \
  54. --with-vendor-web="http://openadk.org"
  55. ifeq (${ADK_PACKAGE_XORG_SERVER_WITH_DRI},y)
  56. CONFIGURE_ARGS+= --enable-dri --enable-dri2 --enable-glx
  57. else
  58. CONFIGURE_ARGS+= --disable-dri --disable-dri2 --disable-glx
  59. endif
  60. ifeq (${ADK_HARDWARE_LEMOTE_YEELONG},y)
  61. CONFIGURE_ARGS+= --with-int10=stub
  62. endif
  63. post-install:
  64. $(INSTALL_DIR) $(IDIR_XORG_SERVER)/etc/X11
  65. $(INSTALL_DIR) $(IDIR_XORG_SERVER)/usr/bin
  66. $(INSTALL_DIR) $(IDIR_XORG_SERVER)/usr/lib/xorg/modules/linux
  67. $(INSTALL_DIR) $(IDIR_XORG_SERVER)/usr/lib/xorg/modules/extensions
  68. $(INSTALL_DIR) $(IDIR_XORG_SERVER)/usr/lib/xorg/modules/fonts
  69. $(INSTALL_DIR) $(IDIR_XORG_SERVER)/usr/lib/xorg/modules/multimedia
  70. ${CP} ${WRKINST}/usr/lib/xorg/protocol.txt \
  71. $(IDIR_XORG_SERVER)/usr/lib/xorg/
  72. ${CP} ${WRKINST}/usr/bin/* $(IDIR_XORG_SERVER)/usr/bin
  73. ${CP} ${WRKINST}/usr/lib/xorg/modules/*.so \
  74. $(IDIR_XORG_SERVER)/usr/lib/xorg/modules
  75. ${CP} ${WRKINST}/usr/lib/xorg/modules/extensions/*.so \
  76. $(IDIR_XORG_SERVER)/usr/lib/xorg/modules/extensions
  77. ${CP} ${WRKINST}/usr/lib/xorg/modules/linux/*.so \
  78. $(IDIR_XORG_SERVER)/usr/lib/xorg/modules/linux
  79. ${CP} ${WRKINST}/usr/lib/xorg/modules/multimedia/*.so \
  80. $(IDIR_XORG_SERVER)/usr/lib/xorg/modules/multimedia
  81. -$(CP) $(TOPDIR)/target/$(ADK_TARGET)/xorg.conf \
  82. $(IDIR_XORG_SERVER)/etc/X11
  83. ifeq (${ADK_PACKAGE_XORG_SERVER_WITH_DRI},y)
  84. ${CP} ${WRKINST}/usr/lib/xorg/modules/extensions/*dri*.so \
  85. $(IDIR_XORG_SERVER)/usr/lib/xorg/modules/extensions
  86. endif
  87. include ${TOPDIR}/mk/pkg-bottom.mk