actions.py 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. # -*- coding: utf-8 -*-
  2. #
  3. # Licensed under the GNU General Public License, version 3.
  4. # See the file http://www.gnu.org/licenses/gpl.txt
  5. from pisi.actionsapi import autotools
  6. from pisi.actionsapi import pisitools
  7. from pisi.actionsapi import shelltools
  8. from pisi.actionsapi import get
  9. def setup():
  10. #shelltools.system("patch -Rp1 < 0001-revert-dpi-calculation.patch")
  11. autotools.autoreconf("-fi")
  12. autotools.configure("--enable-install-libxf86config \
  13. --disable-systemd-logind \
  14. --enable-ipv6 \
  15. --enable-aiglx \
  16. --enable-glx-tls \
  17. --enable-composite \
  18. --enable-xcsecurity \
  19. --enable-record \
  20. --enable-dri \
  21. --enable-dri2 \
  22. --enable-glamor \
  23. --disable-xwayland \
  24. --enable-config-udev \
  25. --disable-config-hal \
  26. --enable-xfree86-utils \
  27. --enable-xorg \
  28. --enable-dmx \
  29. --enable-xvfb \
  30. --enable-xnest \
  31. --enable-kdrive \
  32. --enable-xfont \
  33. --enable-kdrive-evdev \
  34. --enable-kdrive-kbd \
  35. --enable-kdrive-mouse \
  36. --enable-xephyr \
  37. --enable-xfake \
  38. --enable-suid-wrapper \
  39. --disable-xfbdev \
  40. --disable-devel-docs \
  41. --disable-static \
  42. --without-doxygen \
  43. --with-pic \
  44. --without-dtrace \
  45. --with-int10=x86emu \
  46. --with-os-name=\"PisiLinux\" \
  47. --with-os-vendor=\"Pisi GNU/Linux Community\" \
  48. --with-builderstring=\"Package: %s\" \
  49. --with-fontrootdir=/usr/share/fonts \
  50. --with-default-font-path=catalogue:/etc/X11/fontpath.d,built-ins \
  51. --with-xkb-output=/var/lib/xkb \
  52. --with-dri-driver-path=/usr/lib/xorg/modules/dri \
  53. --without-xmlto \
  54. --without-fop \
  55. --localstatedir=/var \
  56. PCI_TXT_IDS_DIR=/usr/share/X11/pci \
  57. " % get.srcTAG())
  58. pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
  59. def build():
  60. autotools.make()
  61. def install():
  62. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  63. pisitools.dodir("/etc/X11/fontpath.d")
  64. pisitools.dodir("/etc/X11/xorg.conf.d")
  65. pisitools.dodir("/usr/share/X11/pci")
  66. pisitools.dodir("/usr/share/X11/xorg.conf.d")
  67. # Remove empty dir
  68. pisitools.removeDir("/var/log")
  69. pisitools.dodoc("COPYING", "README*")