xorg-server works 3

This commit is contained in:
Ertuğrul Erata
2015-07-14 16:02:02 +03:00
parent 5e961bf0bd
commit b8af4bc0fa
24 changed files with 1281 additions and 2 deletions
+56
View File
@@ -0,0 +1,56 @@
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt
from pisi.actionsapi import get
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
WorkDir = "."
SkipList = (".", "filelist", "patches", "pisiBuildState", "tmp")
def setup():
# Speed up xkbcomp
shelltools.export("CFLAGS","%s -DHAVE_STRCASECMP" % get.CFLAGS())
for package in shelltools.ls("."):
if package.startswith(SkipList):
continue
print "\nConfiguring %s..." % package
print "-" * (len(package) + 15)
shelltools.cd(package)
if package.startswith(("xcursorgen", "xsm")) or \
not shelltools.isFile("configure"):
autotools.autoreconf("-vif")
elif package.startswith("luit"):
pisitools.dosed("configure.ac", "(-D_XOPEN_SOURCE)=500", "\\1=600")
autotools.autoreconf("-vif")
autotools.configure("--disable-dependency-tracking \
--disable-devel-docs \
--with-cpp=/usr/bin/mcpp")
shelltools.cd("../")
def build():
for package in shelltools.ls("."):
if package.startswith(SkipList):
continue
shelltools.cd(package)
if package.startswith("xfwp"): pisitools.dosed("io.c", "^(#include <unistd.h>)", r"#define __USE_XOPEN\n\1")
autotools.make()
shelltools.cd("../")
def install():
for package in shelltools.ls("."):
if package.startswith(SkipList):
continue
shelltools.cd(package)
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
shelltools.cd("../")