Makefile 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  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.12.2
  6. PKG_RELEASE:= 2
  7. PKG_MD5SUM:= a95c896fbe8322c3c8d518a13eb74c7a
  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 libgcc librt
  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_OPTS:= dev
  22. PKG_CFLINE_XORG_SERVER:=depends on ADK_TARGET_WITH_VGA
  23. PKG_ARCH_DEPENDS:= !cris !avr32 !m68k
  24. PKG_FLAVOURS_XORG_SERVER:= WITH_DRI WITH_KDRIVE
  25. PKGFS_WITH_DRI:= mesalib
  26. PKGFD_WITH_DRI:= enable DRI/DRI2 support
  27. PKGFB_WITH_DRI:= xf86driproto glproto dri2proto MesaLib
  28. PKGFD_WITH_KDRIVE:= Build Kdrive Xfbdev server
  29. PKG_CHOICES_XORG_SERVER:= WITH_GCRYPT WITH_CRYPTO
  30. PKGCD_WITH_GCRYPT:= use libgcrypt for SHA1
  31. PKGCS_WITH_GCRYPT:= libgcrypt
  32. PKGCB_WITH_GCRYPT:= libgcrypt
  33. PKGCD_WITH_CRYPTO:= use openssl libcrypto for SHA1
  34. PKGCS_WITH_CRYPTO:= libopenssl
  35. PKGCB_WITH_CRYPTO:= openssl
  36. include $(TOPDIR)/mk/package.mk
  37. $(eval $(call PKG_template,XORG_SERVER,xorg-server,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
  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-xinerama \
  60. --disable-xnest \
  61. --disable-xselinux \
  62. --disable-xcsecurity \
  63. --disable-xvfb \
  64. --disable-xvmc \
  65. --with-xkb-output=/tmp \
  66. --with-os-vendor=OpenADK \
  67. --with-vendor-web="http://openadk.org"
  68. ifeq (${ADK_PACKAGE_XORG_SERVER_WITH_KDRIVE},y)
  69. CONFIGURE_ARGS+= --enable-kdrive --enable-xfbdev --enable-kdrive-kbd --enable-kdrive-mouse --enable-kdrive-evdev
  70. else
  71. CONFIGURE_ARGS+= --disable-kdrive --disable-xfbdev
  72. endif
  73. ifeq (${ADK_PACKAGE_XORG_SERVER_WITH_DRI},y)
  74. CONFIGURE_ARGS+= --enable-dri --enable-dri2 --enable-glx
  75. else
  76. CONFIGURE_ARGS+= --disable-dri --disable-dri2 --disable-glx
  77. endif
  78. ifeq (${ADK_TARGET_SYSTEM_LEMOTE_YEELONG},y)
  79. CONFIGURE_ARGS+= --with-int10=stub
  80. endif
  81. xorg-server-install:
  82. $(INSTALL_DIR) $(IDIR_XORG_SERVER)/etc/X11
  83. $(INSTALL_DIR) $(IDIR_XORG_SERVER)/usr/bin
  84. $(INSTALL_DIR) $(IDIR_XORG_SERVER)/usr/lib/xorg/modules/extensions
  85. $(INSTALL_DIR) $(IDIR_XORG_SERVER)/usr/lib/xorg/modules/fonts
  86. $(INSTALL_DIR) $(IDIR_XORG_SERVER)/usr/lib/xorg/modules/multimedia
  87. ${CP} ${WRKINST}/usr/lib/xorg/protocol.txt \
  88. $(IDIR_XORG_SERVER)/usr/lib/xorg/
  89. ${CP} ${WRKINST}/usr/bin/* $(IDIR_XORG_SERVER)/usr/bin
  90. ${CP} ${WRKINST}/usr/lib/xorg/modules/*.so \
  91. $(IDIR_XORG_SERVER)/usr/lib/xorg/modules
  92. ${CP} ${WRKINST}/usr/lib/xorg/modules/extensions/*.so \
  93. $(IDIR_XORG_SERVER)/usr/lib/xorg/modules/extensions
  94. ${CP} ${WRKINST}/usr/lib/xorg/modules/multimedia/*.so \
  95. $(IDIR_XORG_SERVER)/usr/lib/xorg/modules/multimedia
  96. ifeq (${ADK_TARGET_SYSTEM_LEMOTE_YEELONG},y)
  97. ${CP} ./files/xorg.conf.lemote-yeelong \
  98. $(IDIR_XORG_SERVER)/etc/X11/xorg.conf
  99. endif
  100. ifeq (${ADK_TARGET_SYSTEM_SHARP_ZAURUS},y)
  101. ${CP} ./files/xorg.conf.sharp-zaurus \
  102. $(IDIR_XORG_SERVER)/etc/X11/xorg.conf
  103. endif
  104. ifeq (${ADK_PACKAGE_XORG_SERVER_WITH_DRI},y)
  105. ${CP} ${WRKINST}/usr/lib/xorg/modules/extensions/*dri*.so \
  106. $(IDIR_XORG_SERVER)/usr/lib/xorg/modules/extensions
  107. endif
  108. # add m4 file to host directory
  109. $(INSTALL_DIR) $(STAGING_HOST_DIR)/usr/share/aclocal
  110. $(CP) ${WRKINST}/usr/share/aclocal/xorg-server.m4 \
  111. $(STAGING_HOST_DIR)/usr/share/aclocal
  112. include ${TOPDIR}/mk/pkg-bottom.mk