Makefile 4.4 KB

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