Makefile 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  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+= --enable-dga \
  46. --enable-xorg \
  47. --enable-xv \
  48. --enable-xaa \
  49. --enable-vgahw \
  50. --enable-dpms \
  51. --disable-aiglx \
  52. --disable-config-hal \
  53. --disable-config-udev \
  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-xselinux \
  63. --disable-xcsecurity \
  64. --disable-xvfb \
  65. --disable-xvmc \
  66. --with-xkb-output=/tmp \
  67. --with-os-vendor=OpenADK \
  68. --with-vendor-web="http://openadk.org"
  69. ifeq (${ADK_PACKAGE_XORG_SERVER_WITH_DRI},y)
  70. CONFIGURE_ARGS+= --enable-dri --enable-dri2 --enable-glx
  71. else
  72. CONFIGURE_ARGS+= --disable-dri --disable-dri2 --disable-glx
  73. endif
  74. ifeq (${ADK_TARGET_SYSTEM_LEMOTE_YEELONG},y)
  75. CONFIGURE_ARGS+= --with-int10=stub
  76. endif
  77. xorg-server-install:
  78. $(INSTALL_DIR) $(IDIR_XORG_SERVER)/etc/X11
  79. $(INSTALL_DIR) $(IDIR_XORG_SERVER)/usr/bin
  80. $(INSTALL_DIR) $(IDIR_XORG_SERVER)/usr/lib/xorg/modules/extensions
  81. $(INSTALL_DIR) $(IDIR_XORG_SERVER)/usr/lib/xorg/modules/fonts
  82. $(INSTALL_DIR) $(IDIR_XORG_SERVER)/usr/lib/xorg/modules/multimedia
  83. ${CP} ${WRKINST}/usr/lib/xorg/protocol.txt \
  84. $(IDIR_XORG_SERVER)/usr/lib/xorg/
  85. ${CP} ${WRKINST}/usr/bin/* $(IDIR_XORG_SERVER)/usr/bin
  86. ${CP} ${WRKINST}/usr/lib/xorg/modules/*.so \
  87. $(IDIR_XORG_SERVER)/usr/lib/xorg/modules
  88. ${CP} ${WRKINST}/usr/lib/xorg/modules/extensions/*.so \
  89. $(IDIR_XORG_SERVER)/usr/lib/xorg/modules/extensions
  90. ${CP} ${WRKINST}/usr/lib/xorg/modules/multimedia/*.so \
  91. $(IDIR_XORG_SERVER)/usr/lib/xorg/modules/multimedia
  92. ifeq (${ADK_TARGET_SYSTEM_LEMOTE_YEELONG},y)
  93. ${CP} ./files/xorg.conf.lemote-yeelong \
  94. $(IDIR_XORG_SERVER)/etc/X11/xorg.conf
  95. endif
  96. ifeq (${ADK_PACKAGE_XORG_SERVER_WITH_DRI},y)
  97. ${CP} ${WRKINST}/usr/lib/xorg/modules/extensions/*dri*.so \
  98. $(IDIR_XORG_SERVER)/usr/lib/xorg/modules/extensions
  99. endif
  100. xorg-server-dev-install:
  101. $(INSTALL_DIR) $(IDIR_XORG_SERVER_DEV)/usr/include/xorg
  102. ${CP} ${WRKINST}/usr/include/xorg/* \
  103. $(IDIR_XORG_SERVER_DEV)/usr/include/xorg
  104. $(INSTALL_DIR) $(IDIR_XORG_SERVER_DEV)/usr/lib/pkgconfig
  105. ${CP} ${WRKINST}/usr/lib/pkgconfig/xorg-server.pc \
  106. $(IDIR_XORG_SERVER_DEV)/usr/lib/pkgconfig
  107. include ${TOPDIR}/mk/pkg-bottom.mk