Makefile 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  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:= 3
  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. TARGET_CPPFLAGS+= -D_GNU_SOURCE
  39. ifeq (${ADK_PACKAGE_XORG_SERVER_WITH_GCRYPT},y)
  40. CONFIGURE_ARGS+= --with-sha1=libgcrypt
  41. endif
  42. ifeq (${ADK_PACKAGE_XORG_SERVER_WITH_CRYPTO},y)
  43. CONFIGURE_ARGS+= --with-sha1=libcrypto
  44. endif
  45. CONFIGURE_ENV+= V=1
  46. CONFIGURE_ARGS+= --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-config-udev \
  55. --disable-xace \
  56. --disable-xephyr \
  57. --disable-xf86bigfont \
  58. --disable-xf86vidmode \
  59. --disable-xfake \
  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_KDRIVE},y)
  70. CONFIGURE_ARGS+= --enable-kdrive --enable-xfbdev --enable-kdrive-kbd --enable-kdrive-mouse --enable-kdrive-evdev
  71. else
  72. CONFIGURE_ARGS+= --disable-kdrive --disable-xfbdev
  73. endif
  74. ifeq (${ADK_PACKAGE_XORG_SERVER_WITH_DRI},y)
  75. CONFIGURE_ARGS+= --enable-dri --enable-dri2 --enable-glx
  76. else
  77. CONFIGURE_ARGS+= --disable-dri --disable-dri2 --disable-glx
  78. endif
  79. ifeq (${ADK_TARGET_SYSTEM_LEMOTE_YEELONG},y)
  80. CONFIGURE_ARGS+= --with-int10=stub
  81. endif
  82. xorg-server-install:
  83. $(INSTALL_DIR) $(IDIR_XORG_SERVER)/etc/X11
  84. $(INSTALL_DIR) $(IDIR_XORG_SERVER)/usr/bin
  85. $(INSTALL_DIR) $(IDIR_XORG_SERVER)/usr/lib/xorg/modules/extensions
  86. $(INSTALL_DIR) $(IDIR_XORG_SERVER)/usr/lib/xorg/modules/fonts
  87. $(INSTALL_DIR) $(IDIR_XORG_SERVER)/usr/lib/xorg/modules/multimedia
  88. ${CP} ${WRKINST}/usr/lib/xorg/protocol.txt \
  89. $(IDIR_XORG_SERVER)/usr/lib/xorg/
  90. ${CP} ${WRKINST}/usr/bin/* $(IDIR_XORG_SERVER)/usr/bin
  91. ${CP} ${WRKINST}/usr/lib/xorg/modules/*.so \
  92. $(IDIR_XORG_SERVER)/usr/lib/xorg/modules
  93. ${CP} ${WRKINST}/usr/lib/xorg/modules/extensions/*.so \
  94. $(IDIR_XORG_SERVER)/usr/lib/xorg/modules/extensions
  95. ${CP} ${WRKINST}/usr/lib/xorg/modules/multimedia/*.so \
  96. $(IDIR_XORG_SERVER)/usr/lib/xorg/modules/multimedia
  97. ifeq (${ADK_TARGET_SYSTEM_LEMOTE_YEELONG},y)
  98. ${CP} ./files/xorg.conf.lemote-yeelong \
  99. $(IDIR_XORG_SERVER)/etc/X11/xorg.conf
  100. endif
  101. ifeq (${ADK_TARGET_SYSTEM_SHARP_ZAURUS},y)
  102. ${CP} ./files/xorg.conf.sharp-zaurus \
  103. $(IDIR_XORG_SERVER)/etc/X11/xorg.conf
  104. endif
  105. ifeq (${ADK_PACKAGE_XORG_SERVER_WITH_DRI},y)
  106. ${CP} ${WRKINST}/usr/lib/xorg/modules/extensions/*dri*.so \
  107. $(IDIR_XORG_SERVER)/usr/lib/xorg/modules/extensions
  108. endif
  109. # add m4 file to host directory
  110. $(INSTALL_DIR) $(STAGING_HOST_DIR)/usr/share/aclocal
  111. $(CP) ${WRKINST}/usr/share/aclocal/xorg-server.m4 \
  112. $(STAGING_HOST_DIR)/usr/share/aclocal
  113. include ${TOPDIR}/mk/pkg-bottom.mk