Makefile 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  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 $(ADK_TOPDIR)/rules.mk
  4. PKG_NAME:= xorg-server
  5. PKG_VERSION:= 1.15.1
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= d6e5444fc33ad737b551cc49061ae704
  8. PKG_DESCR:= xorg server
  9. PKG_SECTION:= x11/drivers
  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 librt
  14. PKG_DEPENDS+= libxshmfence libfreetype libfontenc libstdcxx libpciaccess
  15. PKG_BUILDDEP:= libX11 randrproto renderproto fixesproto damageproto
  16. PKG_BUILDDEP+= scrnsaverproto resourceproto fontsproto videoproto
  17. PKG_BUILDDEP+= compositeproto evieext libxkbfile libXfont pixman
  18. PKG_BUILDDEP+= libpciaccess openssl xf86dgaproto recordproto
  19. PKG_BUILDDEP+= xineramaproto presentproto
  20. PKG_URL:= http://www.x.org/
  21. PKG_SITES:= ${MASTER_SITE_XORG}
  22. PKG_OPTS:= dev
  23. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
  24. PKG_CFLINE_XORG_SERVER:=depends on ADK_TARGET_WITH_VGA || ADK_TARGET_QEMU_WITH_GRAPHIC
  25. PKG_ARCH_DEPENDS:= !m68k
  26. PKG_FLAVOURS_XORG_SERVER:= WITH_DRI WITH_KDRIVE
  27. PKGFS_WITH_DRI:= mesalib
  28. PKGFD_WITH_DRI:= enable DRI support
  29. PKGFB_WITH_DRI:= xf86driproto glproto mesalib
  30. PKGFD_WITH_KDRIVE:= Build Kdrive Xfbdev server
  31. PKG_CHOICES_XORG_SERVER:= WITH_GCRYPT WITH_CRYPTO
  32. PKGCD_WITH_GCRYPT:= use libgcrypt for SHA1
  33. PKGCS_WITH_GCRYPT:= libgcrypt
  34. PKGCB_WITH_GCRYPT:= libgcrypt
  35. PKGCD_WITH_CRYPTO:= use openssl libcrypto for SHA1
  36. PKGCS_WITH_CRYPTO:= libopenssl
  37. PKGCB_WITH_CRYPTO:= openssl
  38. include $(ADK_TOPDIR)/mk/package.mk
  39. $(eval $(call PKG_template,XORG_SERVER,xorg-server,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
  40. TARGET_CPPFLAGS+= -D_GNU_SOURCE -D__gid_t=gid_t -D__uid_t=uid_t
  41. ifeq (${ADK_PACKAGE_XORG_SERVER_WITH_GCRYPT},y)
  42. CONFIGURE_ARGS+= --with-sha1=libgcrypt
  43. endif
  44. ifeq (${ADK_PACKAGE_XORG_SERVER_WITH_CRYPTO},y)
  45. CONFIGURE_ARGS+= --with-sha1=libcrypto
  46. endif
  47. CONFIGURE_ENV+= V=1
  48. CONFIGURE_ARGS+= --enable-dga \
  49. --enable-xorg \
  50. --enable-xv \
  51. --enable-vgahw \
  52. --enable-dpms \
  53. --enable-xinerama \
  54. --disable-docs \
  55. --disable-aiglx \
  56. --disable-config-hal \
  57. --disable-config-udev \
  58. --disable-xace \
  59. --disable-xephyr \
  60. --disable-xf86bigfont \
  61. --disable-xf86vidmode \
  62. --disable-xfake \
  63. --disable-xnest \
  64. --disable-xselinux \
  65. --disable-xcsecurity \
  66. --disable-xvfb \
  67. --disable-xvmc \
  68. --disable-selective-werror \
  69. --disable-strict-compilation \
  70. --with-xkb-output=/tmp \
  71. --with-os-vendor=OpenADK \
  72. --with-vendor-web="http://openadk.org"
  73. ifeq (${ADK_PACKAGE_XORG_SERVER_WITH_KDRIVE},y)
  74. CONFIGURE_ARGS+= --enable-kdrive --enable-xfbdev --enable-kdrive-kbd --enable-kdrive-mouse --enable-kdrive-evdev
  75. else
  76. CONFIGURE_ARGS+= --disable-kdrive --disable-xfbdev
  77. endif
  78. ifeq (${ADK_PACKAGE_XORG_SERVER_WITH_DRI},y)
  79. CONFIGURE_ARGS+= --enable-dri --enable-dri2 --enable-dri3 --enable-glx
  80. else
  81. CONFIGURE_ARGS+= --disable-dri --disable-dri2 --disable-dri3 --disable-glx
  82. endif
  83. ifeq (${ADK_TARGET_SYSTEM_LEMOTE_YEELONG},y)
  84. CONFIGURE_ARGS+= --with-int10=stub
  85. endif
  86. xorg-server-install:
  87. $(INSTALL_DIR) $(IDIR_XORG_SERVER)/etc/X11
  88. $(INSTALL_DIR) $(IDIR_XORG_SERVER)/usr/bin
  89. $(INSTALL_DIR) $(IDIR_XORG_SERVER)/usr/lib/xorg/modules/extensions
  90. $(INSTALL_DIR) $(IDIR_XORG_SERVER)/usr/lib/xorg/modules/fonts
  91. $(INSTALL_DIR) $(IDIR_XORG_SERVER)/usr/lib/xorg/modules/multimedia
  92. ${CP} ${WRKINST}/usr/lib/xorg/protocol.txt \
  93. $(IDIR_XORG_SERVER)/usr/lib/xorg/
  94. ${CP} ${WRKINST}/usr/bin/* $(IDIR_XORG_SERVER)/usr/bin
  95. ${CP} ${WRKINST}/usr/lib/xorg/modules/*.so \
  96. $(IDIR_XORG_SERVER)/usr/lib/xorg/modules
  97. ifeq (${ADK_PACKAGE_XORG_SERVER_WITH_DRI},y)
  98. ${CP} ${WRKINST}/usr/lib/xorg/modules/extensions/*.so \
  99. $(IDIR_XORG_SERVER)/usr/lib/xorg/modules/extensions
  100. endif
  101. ${CP} ${WRKINST}/usr/lib/xorg/modules/multimedia/*.so \
  102. $(IDIR_XORG_SERVER)/usr/lib/xorg/modules/multimedia
  103. ifeq (${ADK_TARGET_SYSTEM_LEMOTE_YEELONG},y)
  104. ${CP} ./files/xorg.conf.lemote-yeelong \
  105. $(IDIR_XORG_SERVER)/etc/X11/xorg.conf
  106. endif
  107. ifeq (${ADK_TARGET_SYSTEM_SHARP_ZAURUS},y)
  108. ${CP} ./files/xorg.conf.sharp-zaurus \
  109. $(IDIR_XORG_SERVER)/etc/X11/xorg.conf
  110. endif
  111. # add m4 file to host directory
  112. $(INSTALL_DIR) $(STAGING_HOST_DIR)/usr/share/aclocal
  113. $(CP) ${WRKINST}/usr/share/aclocal/xorg-server.m4 \
  114. $(STAGING_HOST_DIR)/usr/share/aclocal
  115. include ${ADK_TOPDIR}/mk/pkg-bottom.mk