Makefile 3.3 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.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_CFLINE_XORG_SERVER:=depends on ADK_TARGET_WITH_VGA
  21. PKG_FLAVOURS:= 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+= \
  29. --with-fontdir=/usr/share/fonts/X11 \
  30. --enable-dga \
  31. --enable-xorg \
  32. --enable-xv \
  33. --enable-xaa \
  34. --enable-vgahw \
  35. --enable-dpms \
  36. --disable-aiglx \
  37. --disable-config-hal \
  38. --disable-xace \
  39. --disable-xephyr \
  40. --disable-xf86bigfont \
  41. --disable-xf86vidmode \
  42. --disable-xfake \
  43. --disable-xfbdev \
  44. --disable-xinerama \
  45. --disable-xnest \
  46. --disable-xsdl \
  47. --disable-xselinux \
  48. --disable-xcsecurity \
  49. --disable-xvfb \
  50. --disable-xvmc \
  51. --with-xkb-output=/tmp \
  52. --with-os-vendor=OpenADK \
  53. --with-vendor-web="http://openadk.org"
  54. ifeq (${ADK_PACKAGE_XORG_SERVER_WITH_DRI},y)
  55. CONFIGURE_ARGS+= --enable-dri --enable-dri2 --enable-glx
  56. else
  57. CONFIGURE_ARGS+= --disable-dri --disable-dri2 --disable-glx
  58. endif
  59. ifeq (${ADK_TARGET_SYSTEM_LEMOTE_YEELONG},y)
  60. CONFIGURE_ARGS+= --with-int10=stub
  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