Пример #1
0
def build():
    autotools.make('OPT="%s" \
                    SHARED="yes" \
                    PREFIX=/usr \
                    IDSDIR="/usr/share/misc" \
                    MANDIR="/usr/share/man" \
                    all' % get.CFLAGS())
Пример #2
0
def build():
    shelltools.export("LDFLAGS", "%s -Wl,-z,now"  % get.LDFLAGS())

    pisitools.dosed("Makefile", "gcc (\-Wall.*)", "%s \\1 %s" % (get.CC(), get.CFLAGS()))
    pisitools.dosed("Makefile", "^(LDFLAGS[ \t]+=).*", "\\1 %s" % get.LDFLAGS())

    autotools.make()
Пример #3
0
def build():
    shelltools.cd("source/")
    autotools.make("proto")
    autotools.make("everything")
    
    # build python modules
    shelltools.system("python python/setup.py build")
Пример #4
0
def build():
    autotools.make()

    shelltools.cd("partx/")

    shelltools.export("CFLAGS", "%s -include linux/compiler.h" % get.CFLAGS())
    autotools.make("CFLAGS=\"${CFLAGS}\"")
Пример #5
0
def build():
    for package in shelltools.ls("."):
        if package in SkipFiles:
            continue
        shelltools.cd(package)
        autotools.make()
        shelltools.cd("../")
Пример #6
0
def build():
    shelltools.cd("build")

    autotools.make("-j1")

    shelltools.cd("lib")
    autotools.make("shared")
Пример #7
0
def build():
    # autotools.make("dist-xen dist-tools dist-stubdom")
    autotools.make("dist-tools")
    # autotools.make("dist-stubdom")
    shelltools.export("LDFLAGS", "")
    # shelltools.export("CFLAGS", "")
    autotools.make("dist-xen")
Пример #8
0
def build():
    shelltools.export("CFLAGS", cflags)
    shelltools.export("LDFLAGS", extraldflags)

    printfancy("building qemu")
    autotools.make("V=1 -j1 config-host.h %s" % buildldflags)
    autotools.make("V=1 %s" % buildldflags)
Пример #9
0
def install():
    autotools.rawInstall("DESTDIR=%s prefix=/usr" % get.installDIR())
    autotools.make("DESTDIR=%s prefix=/usr install-doc" % get.installDIR())

    pisitools.dodoc("README", "COPYING", "Documentation/SubmittingPatches")

    perlmodules.fixLocalPod()
Пример #10
0
def build():
    shelltools.cd("generator")
    autotools.make("-j1")
    shelltools.system("QTDIR=/usr/share/qt4 ./generator --include-paths='/usr/include'")

    shelltools.cd("../qtbindings")
    autotools.make("-j1")
Пример #11
0
def install():
    kerneltools.install()

    # Dump kernel version into /etc/kernel/
    kerneltools.dumpVersion()

    # Install kernel headers needed for out-of-tree module compilation
    # You can provide a list of extra directories from which to grab *.h files.
    kerneltools.installHeaders(extra=["drivers/media/dvb/dvb-core",
                                      "drivers/media/dvb/frontends",
                                      "drivers/media/video"])

    # Drop /usr/include/scsi directory as it's shipped within glibc
    kerneltools.installLibcHeaders(excludes=["scsi"])

    # Install kernel source
    kerneltools.installSource()

    # Clean module-init-tools related stuff
    kerneltools.cleanModuleFiles()

    # Build and install the new 'perf' tool
    autotools.make("V=1 -C tools/perf perf")
    pisitools.insinto("/usr/bin", "tools/perf/perf", "perf.%s-%s" % (get.srcNAME(), get.srcVERSION()))
    autotools.install("-C tools/perf/Documentation install-man mandir=%s/usr/share/man" % get.installDIR())
Пример #12
0
def build():
    shelltools.export("AR", "ar")
    shelltools.export("RANLIB", "ranlib")

    shelltools.export("CFLAGS", cflags)
    shelltools.export("CXXFLAGS", cxxflags)

    shelltools.cd(source)
    autotools.make("-C ../libsrcs/angelscript/angelSVN/sdk/angelscript/projects/gnuc")

    autotools.make('BINDIR=release \
                    BUILD_CLIENT=YES \
                    BUILD_SERVER=YES \
                    BUILD_IRC=YES \
                    BUILD_SND_QF=YES \
                    BUILD_SND_OPENAL=YES \
                    BUILD_TV_SERVER=YES \
                    BUILD_ANGELWRAP=YES \
                    DEBUG_BUILD=NO \
                    BASE_ARCH=%s \
                    CC="%s" \
                    CXX="%s" \
                    V=1 \
                    VERBOSE=1 \
                    all' % (arch, get.CC(), get.CXX()))
Пример #13
0
def build():
    shelltools.export("R_HOME","")
    autotools.make()

    # build math library
    shelltools.cd("src/nmath/standalone")
    autotools.make("-j1")
Пример #14
0
def build():
    #needed by mozilla patch, swig must be run again
    shelltools.cd("python")
    shelltools.system("./swig_lcms")
    shelltools.cd("..")

    autotools.make()
Пример #15
0
def build():
    # shelltools.export("CFLAGS", "-Werror -Wno-unused -finline-limit=2000")
    shelltools.export("CFLAGS", get.CFLAGS())
    shelltools.export("LDFLAGS", "")

    autotools.make('DATE="PARDUS" spotless')
    autotools.make('DATE="PARDUS"')
Пример #16
0
def install():
    autotools.make('DESTDIR=%s XFIGDOCDIR=/usr/share/doc/xfig LIBDIR=/usr/share \
                               MANDIR=/usr/share/man/man1 \
                               XAPPLOADDIR=/usr/share/X11/app-defaults install.all' % get.installDIR())

    pisitools.insinto("/usr/share/pixmaps", "xfig.png")
    pisitools.remove("/usr/share/app-defaults")
Пример #17
0
def build():
    cc_args = "-DHAS_PCRE -DHAS_MYSQL -I/usr/include/mysql -DHAS_PGSQL -I/usr/include/postgresql -DUSE_TLS -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/usr/include/sasl -DHAS_LDAP"
    cc_libs = "-Wl,-z,now -L/usr/lib -lpcre -lcrypt -lpthread -lpam -lssl -lcrypto -lsasl2 -lmysqlclient -lpq -lm -lz -lldap -llber"

    # Sed operations
    pisitools.dosed("src/global/mail_params.h", \
                    "#define DEF_README_DIR\s+\"no\"", \
                    "#define DEF_README_DIR \"/usr/share/doc/%s/readme\"" % get.srcTAG())

    pisitools.dosed("src/global/mail_params.h", \
                    "#define DEF_HTML_DIR\s+\"no\"", \
                    "#define DEF_HTML_DIR \"/usr/share/doc/%s/html\"" % get.srcTAG())

    pisitools.dosed("src/global/mail_params.h", \
                    "#define DEF_MANPAGE_DIR\s+\"/usr/local/man\"", \
                    "#define DEF_MANPAGE_DIR \"/usr/share/man\"")

    pisitools.dosed("src/util/sys_defs.h", \
                    "#define NATIVE_DAEMON_DIR \"/usr/libexec/postfix\"", \
                    "#define NATIVE_DAEMON_DIR \"/usr/lib/postfix\"")

    autotools.make("CC=%s \
                    OPT=\"%s\" \
                    CCARGS=\"%s\" \
                    AUXLIBS=\"%s\" makefiles" % (get.CC(), get.CFLAGS(), cc_args, cc_libs))

    autotools.make()
Пример #18
0
def build():
    shelltools.export("HOME", get.workDIR())
    #TODO: this does not work, find another solution
    #shelltools.export("CLASSPATH", "%s:/usr/share/java/xercesImpl.jar" % os.environ.get("CLASSPATH"))

    #FIXME: parallel build seems not to work well :/
    autotools.make("-j1")
Пример #19
0
def install():
    autotools.make("DESTDIR=%s install" % get.installDIR())
    autotools.make("DESTDIR=%s fontdir" % get.installDIR())

    pisitools.dosym("../conf.avail/63-terminus-fonts-fontconfig.conf", "/etc/fonts/conf.d/63-terminus-fonts-fontconfig.conf")

    pisitools.dodoc("README")
Пример #20
0
def build():
    # prepare Mesa for compilation
    shelltools.cd(mesa)
    autotools.make("linux-dri-x86")

    shelltools.cd("../%s" % xorgserver)
    autotools.make()
Пример #21
0
def install():
    autotools.make('DESTDIR=%s \
                    MANDIR=/usr/share/man/man1 \
                    MANSUFFIX=1 \
                    install install.all' % get.installDIR())

    pisitools.insinto("/usr/share/pixmaps", "xfig.png")
Пример #22
0
def build():
    shelltools.cd("fcgi")
    shelltools.export("LC_ALL", "en_US.UTF-8")
    autotools.make()

    shelltools.cd("../apache")
    autotools.make()
Пример #23
0
def build():
    autotools.make()

    for dir in ["plugin/auth-pam", "plugin/down-root", "easy-rsa/2.0"]:
        shelltools.cd(dir)
        autotools.make()
        shelltools.cd("../..")
Пример #24
0
def build(debugSymbols=False):
    extra_config = []
    if debugSymbols:
        # Enable debugging symbols (-g -gdwarf2)
        extra_config.append("CONFIG_DEBUG_INFO=y")

    autotools.make("ARCH=%s %s" % (__getKernelARCH(), " ".join(extra_config)))
Пример #25
0
def installLibcHeaders(excludes=None):
    headers_tmp = os.path.join(get.installDIR(), 'tmp-headers')
    headers_dir = os.path.join(get.installDIR(), 'usr/include')

    make_cmd = "O=%s INSTALL_HDR_PATH=%s/install" % (headers_tmp, headers_tmp)

    # Cleanup temporary header directory
    shelltools.system("rm -rf %s" % headers_tmp)

    # Create directories
    shelltools.makedirs(headers_tmp)
    shelltools.makedirs(headers_dir)

    # make defconfig and install the headers
    autotools.make("%s defconfig" % make_cmd)
    autotools.rawInstall(make_cmd, "headers_install")

    oldwd = os.getcwd()

    shelltools.cd(os.path.join(headers_tmp, "install", "include"))
    shelltools.system("find . -name '.' -o -name '.*' -prune -o -print | \
                       cpio -pVd --preserve-modification-time %s" % headers_dir)

    # Remove sound/ directory which is installed by alsa-headers
    shelltools.system("rm -rf %s/sound" % headers_dir)

    # Remove possible excludes given by actions.py
    if excludes:
        shelltools.system("rm -rf %s" % " ".join(["%s/%s" % (headers_dir, exc.strip("/")) for exc in excludes]))

    shelltools.cd(oldwd)

    # Remove tmp directory
    shelltools.system("rm -rf %s" % headers_tmp)
Пример #26
0
def check():
    autotools.make("check")
    # One test failed now, fix it

    # dlopen check
    shelltools.system("./dlopen-test.sh")
    pass
Пример #27
0
def build():
    shelltools.export("ZLIBSRC", ZLIBSRC)
    shelltools.export("LPNGSRC", LPNGSRC)
    shelltools.export("JPEGSRC", JPEGSRC)
    shelltools.export("FT2SRC", FT2SRC)

    autotools.make("-j1 LIB=lib")
Пример #28
0
def build():
    shelltools.export("LC_ALL", "C")
    shelltools.cd("ddd")
    autotools.make("version.h build.h host.h root.h configinfo.C Ddd.ad.h")

    shelltools.cd("..")
    autotools.make()
Пример #29
0
def build():
    shelltools.export("LINGUAS", "")
    autotools.make(
        "ENABLE_NLS=1 \
                    LOCALEDIR=/usr/share/locale \
                    DATADIR=/usr/share/neverball"
    )
Пример #30
0
def setup():
    pisitools.dosed("runtime/tools/mve.awk", "#!/usr/bin/nawk -f", "#!/usr/bin/awk -f")

    shelltools.echo("src/feature.h", "#define SYS_VIMRC_FILE \"/etc/vim/vimrc\"")

    pisitools.dosed("runtime/doc/syntax.txt", "(ctags(\"| [-*.]|\\s+/))", "exuberant-\\1")
    pisitools.dosed("runtime/doc/tagsrch.txt", "(ctags(\"| [-*.]|\\s+/))", "exuberant-\\1")
    pisitools.dosed("runtime/doc/usr_29.txt", "(ctags(\"| [-*.]|\\s+/))", "exuberant-\\1")
    pisitools.dosed("runtime/menu.vim", "(ctags(\"| [-*.]|\\s+/))", "exuberant-\\1")
    pisitools.dosed("src/configure.in", "(ctags(\"| [-*.]|\\s+/))", "exuberant-\\1")

    pisitools.dosed("src/configure.in", " libc\.h ", " ")
    pisitools.dosed("src/Makefile", " auto.config.mk:", ":")

    pisitools.remove("src/auto/configure")

    shelltools.export("WANT_AUTOCONF", "2.5")
    autotools.make("-C src autoconf")

    autotools.configure("--with-features=huge \
                         --enable-multibyte \
                         --enable-perlinterp \
                         --enable-pythoninterp \
                         --enable-gui=yes \
                         --with-tlib=ncurses \
                         --disable-acl \
                         --disable-selinux \
                         --with-x")
Пример #31
0
def build():
    autotools.make("-j1 -f Makefile clean all")
Пример #32
0
def build():
    autotools.make()
Пример #33
0
def check():
    autotools.make("check")
Пример #34
0
def check():
    # All 29 tests passes, yay
    autotools.make("check")
Пример #35
0
def build():
    autotools.make("LIBTOOL=/usr/bin/libtool")

    #generate html docs
    autotools.make("doxygen")
Пример #36
0
def build():
    autotools.make("CXXFLAGS='%s -fpie'" % get.CXXFLAGS())
Пример #37
0
def build():
    autotools.make("V=1")
Пример #38
0
def build():
    autotools.make()
    autotools.make("-j1 doc")
Пример #39
0
def build():
    #shelltools.system("sed -i '/gets is a security hole/d' gnulib/lib/stdio.in.h")
    autotools.make("CC='%s %s' V=1 nls=all" % (get.CC(), get.CFLAGS()))
Пример #40
0
def install():
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())
    autotools.make('DESTDIR="%s" installsrc' % get.installDIR())

    pisitools.dodoc("doc/*.txt", "doc/*.html")
Пример #41
0
def build():
    autotools.make("-j1")
Пример #42
0
def build():
    autotools.make("all")
    autotools.make("info")
Пример #43
0
def build():
    autotools.make("MODPROBE=/bin/true KLIB=/lib/modules/%s" % KDIR)
Пример #44
0
def build():
    shelltools.export("LINGUAS", "")
    autotools.make("ENABLE_NLS=1 \
                    LOCALEDIR=/usr/share/locale \
                    DATADIR=/usr/share/neverball")
Пример #45
0
def build():
    shelltools.export("CFLAGS", "-02 -fno-strict-aliasing")
    shelltools.export("LC_ALL", "C")
    autotools.make()
Пример #46
0
def build():
    autotools.make("CC=%s" % get.CC())
Пример #47
0
def build():
    autotools.make()
    autotools.make("check")
Пример #48
0
def build():
    autotools.make("KLIB=/lib/modules/%s" % KDIR)
Пример #49
0
def build():
    autotools.make("includes")
    autotools.make("CDEBUGFLAGS='%s'" % get.CFLAGS())
Пример #50
0
def build():
    shelltools.export("MONO_SHARED_DIR", ".")
    autotools.make("-j1")
Пример #51
0
def build():
    autotools.make("full-ttf")
Пример #52
0
def build():
    shelltools.export("LDFLAGS",
                      get.LDFLAGS().replace("-Wl,--no-undefined", ""))
    autotools.make()
Пример #53
0
def build():
    shelltools.cd("build-js")
    autotools.make()
Пример #54
0
def build():
    shelltools.export('HOME', get.workDIR())
    autotools.make()
Пример #55
0
def build():
    autotools.make("-j1 all.opt")
Пример #56
0
def build():
    shelltools.makedirs(
        "/var/pisi/detourious-theme-0.0.1_57717-1/install/usr/share/enlightenment/data/themes/"
    )
    autotools.make("prefix=%s/usr" % get.installDIR())
Пример #57
0
def build():
    autotools.make("CFLAGS=\"%s\"" % (get.CFLAGS()))
Пример #58
0
def build():
    autotools.make("PREFIX=/usr")
Пример #59
0
def build():
    # for mono sandbox errors
    shelltools.export("MONO_SHARED_DIR", get.workDIR())
    autotools.make()
Пример #60
0
def build():
    autotools.make("CC=%s OPT_CFLAGS='%s' EXTRA_LDFLAGS='%s'" %
                   (get.CC(), get.CFLAGS(), get.LDFLAGS()))