Makefile 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  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_NEED_CXX:= 1
  21. PKG_SUBPKGS:= XORG_SERVER XORG_SERVER_DEV
  22. PKG_CFLINE_XORG_SERVER:=depends on ADK_TARGET_WITH_VGA
  23. PKG_ARCH_DEPENDS:= !cris
  24. PKG_FLAVOURS_XORG_SERVER:= WITH_DRI
  25. PKGFS_WITH_DRI:= mesalib
  26. PKGFD_WITH_DRI:= enable DRI/DRI2 support
  27. PKGFB_WITH_DRI:= xf86driproto glproto dri2proto MesaLib
  28. PKG_CHOICES_XORG_SERVER:= WITH_GCRYPT WITH_CRYPTO
  29. PKGCD_WITH_GCRYPT:= use libgcrypt for SHA1
  30. PKGCS_WITH_GCRYPT:= libgcrypt
  31. PKGCB_WITH_GCRYPT:= libgcrypt
  32. PKGCD_WITH_CRYPTO:= use openssl libcrypto for SHA1
  33. PKGCS_WITH_CRYPTO:= libopenssl
  34. PKGCB_WITH_CRYPTO:= openssl
  35. include $(TOPDIR)/mk/package.mk
  36. $(eval $(call PKG_template,XORG_SERVER,${PKG_NAME},$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  37. $(eval $(call PKG_template,XORG_SERVER_DEV,${PKG_NAME}-dev,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  38. ifeq (${ADK_PACKAGE_XORG_SERVER_WITH_GCRYPT},y)
  39. CONFIGURE_ARGS+= --with-sha1=libgcrypt
  40. endif
  41. ifeq (${ADK_PACKAGE_XORG_SERVER_WITH_CRYPTO},y)
  42. CONFIGURE_ARGS+= --with-sha1=libcrypto
  43. endif
  44. CONFIGURE_ENV+= V=1
  45. CONFIGURE_ARGS+= --with-fontdir=/usr/share/fonts/X11 \
  46. --enable-dga \
  47. --enable-xorg \
  48. --enable-xv \
  49. --enable-xaa \
  50. --enable-vgahw \
  51. --enable-dpms \
  52. --disable-aiglx \
  53. --disable-config-hal \
  54. --disable-xace \
  55. --disable-xephyr \
  56. --disable-xf86bigfont \
  57. --disable-xf86vidmode \
  58. --disable-xfake \
  59. --disable-xfbdev \
  60. --disable-xinerama \
  61. --disable-xnest \
  62. --disable-xsdl \
  63. --disable-xselinux \
  64. --disable-xcsecurity \
  65. --disable-xvfb \
  66. --disable-xvmc \
  67. --with-xkb-output=/tmp \
  68. --with-os-vendor=OpenADK \
  69. --with-vendor-web="http://openadk.org"
  70. ifeq (${ADK_PACKAGE_XORG_SERVER_WITH_DRI},y)
  71. CONFIGURE_ARGS+= --enable-dri --enable-dri2 --enable-glx
  72. else
  73. CONFIGURE_ARGS+= --disable-dri --disable-dri2 --disable-glx
  74. endif
  75. ifeq (${ADK_TARGET_SYSTEM_LEMOTE_YEELONG},y)
  76. CONFIGURE_ARGS+= --with-int10=stub
  77. endif
  78. xorg-server-install:
  79. $(INSTALL_DIR) $(IDIR_XORG_SERVER)/etc/X11
  80. $(INSTALL_DIR) $(IDIR_XORG_SERVER)/usr/bin
  81. $(INSTALL_DIR) $(IDIR_XORG_SERVER)/usr/lib/xorg/modules/extensions
  82. $(INSTALL_DIR) $(IDIR_XORG_SERVER)/usr/lib/xorg/modules/fonts
  83. $(INSTALL_DIR) $(IDIR_XORG_SERVER)/usr/lib/xorg/modules/multimedia
  84. ${CP} ${WRKINST}/usr/lib/xorg/protocol.txt \
  85. $(IDIR_XORG_SERVER)/usr/lib/xorg/
  86. ${CP} ${WRKINST}/usr/bin/* $(IDIR_XORG_SERVER)/usr/bin
  87. ${CP} ${WRKINST}/usr/lib/xorg/modules/*.so \
  88. $(IDIR_XORG_SERVER)/usr/lib/xorg/modules
  89. ${CP} ${WRKINST}/usr/lib/xorg/modules/extensions/*.so \
  90. $(IDIR_XORG_SERVER)/usr/lib/xorg/modules/extensions
  91. ${CP} ${WRKINST}/usr/lib/xorg/modules/multimedia/*.so \
  92. $(IDIR_XORG_SERVER)/usr/lib/xorg/modules/multimedia
  93. -$(CP) $(TOPDIR)/target/$(ADK_TARGET)/xorg.conf \
  94. $(IDIR_XORG_SERVER)/etc/X11
  95. ifeq (${ADK_PACKAGE_XORG_SERVER_WITH_DRI},y)
  96. ${CP} ${WRKINST}/usr/lib/xorg/modules/extensions/*dri*.so \
  97. $(IDIR_XORG_SERVER)/usr/lib/xorg/modules/extensions
  98. endif
  99. xorg-server-dev-install:
  100. $(INSTALL_DIR) $(IDIR_XORG_SERVER_DEV)/usr/include/xorg
  101. ${CP} ${WRKINST}/usr/include/xorg/* \
  102. $(IDIR_XORG_SERVER_DEV)/usr/include/xorg
  103. $(INSTALL_DIR) $(IDIR_XORG_SERVER_DEV)/usr/lib/pkgconfig
  104. ${CP} ${WRKINST}/usr/lib/pkgconfig/xorg-server.pc \
  105. $(IDIR_XORG_SERVER_DEV)/usr/lib/pkgconfig
  106. include ${TOPDIR}/mk/pkg-bottom.mk