Exemplo n.º 1
0
def build():
    shelltools.export("CC", get.CC())
    shelltools.export("CXX", get.CXX())
    shelltools.export("RANLIB", get.RANLIB())
    shelltools.export("AR", get.AR())

    autotools.make('OPT="%s"' % get.CFLAGS())
Exemplo n.º 2
0
def setup():
    shelltools.export("CC", get.CC())
    shelltools.export("CXX", get.CXX())
    shelltools.export("RANLIB", get.RANLIB())
    shelltools.export("AR", get.AR())

    # enable-debug is bogus, it should stay here
    options = "--with-x \
               --enable-opengl-player \
               --disable-gtk-player \
               --enable-mmx \
               --disable-assertions \
               --disable-static \
               --enable-debug"

    if get.buildTYPE() == "emul32":
        options += " --prefix=/emul32 \
                     --libdir=/usr/lib32 \
                     --bindir=/emul32/bin \
                     --includedir=/emul32/include \
                     --mandir=/emul32/man \
                     --disable-sdltest \
                     --disable-gtktest"

        shelltools.export("CC", "%s -m32" % get.CC())
        shelltools.export("CXX", "%s -m32" % get.CXX())
        shelltools.export("CFLAGS", "%s -m32" % get.CFLAGS())
        shelltools.export("CXXFLAGS", "%s -m32" % get.CFLAGS())
        shelltools.export("LDFLAGS", "%s -m32" % get.LDFLAGS())

    autotools.configure(options)
Exemplo n.º 3
0
def build():
    shelltools.cd("PORT/linux")
    shelltools.export("CC", get.CC())
    shelltools.export("AR", get.AR())
    shelltools.export("RANLIB", get.RANLIB())

    autotools.make("OORG=\"%s\" prefix=/usr" % get.CFLAGS())
Exemplo n.º 4
0
def build():
    autotools.make(
        'CC=%s AR=%s RANLIB=%s CFLAGS="%s -D_FILE_OFFSET_BITS=64 -fPIC"' %
        (get.CC(), get.AR(), get.RANLIB(), get.CFLAGS()))
    autotools.make(
        'CFLAGS="%s -D_FILE_OFFSET_BITS=64 -fPIC" -f Makefile-libbz2_so' %
        get.CFLAGS())
Exemplo n.º 5
0
def setup():
    shelltools.export("CC", get.CC())
    shelltools.export("CXX", get.CXX())
    shelltools.export("RANLIB", get.RANLIB())
    shelltools.export("AR", get.AR())

    autotools.configure("--with-x \
                         --enable-opengl-player \
                         --disable-gtk-player \
                         --enable-mmx \
                         --enable-debug")
Exemplo n.º 6
0
def setup():
    shelltools.export("CC", get.CC())
    shelltools.export("CXX", get.CXX())
    shelltools.export("RANLIB", get.RANLIB())
    shelltools.export("AR", get.AR())

    # enable-debug is bogus, it should stay here
    autotools.configure("--with-x \
                         --enable-opengl-player \
                         --disable-gtk-player \
                         --enable-mmx \
                         --disable-assertions \
                         --disable-static \
                         --enable-debug")
Exemplo n.º 7
0
def setup():
    shelltools.export("CC", get.CC())
    shelltools.export("CXX", get.CXX())
    shelltools.export("RANLIB", get.RANLIB())
    shelltools.export("AR", get.AR())

    shelltools.move("configure.guess", "config.guess")
    shelltools.move("configure.sub", "config.sub")

    shelltools.export("CFLAGS", "%s -I%s/interface" % (get.CFLAGS(), get.curDIR()))
    shelltools.export("CXXLAGS", "%s -I%s/interface" % (get.CXXFLAGS(), get.curDIR()))

    autotools.autoconf()
    libtools.gnuconfig_update()
    autotools.configure()
Exemplo n.º 8
0
def setup():
    shelltools.export("CC", get.CC())
    shelltools.export("CXX", get.CXX())
    shelltools.export("RANLIB", get.RANLIB())
    shelltools.export("AR", get.AR())

    # enable-debug is bogus, it should stay here
    options = "--with-x \
               --enable-opengl-player \
               --disable-gtk-player \
               --enable-mmx \
               --disable-assertions \
               --disable-static \
               --enable-debug"

    if get.buildTYPE() == "emul32":
        options += " --prefix=/emul32 \
                     --libdir=/usr/lib32 \
                     --bindir=/emul32/bin \
                     --includedir=/emul32/include \
                     --mandir=/emul32/man \
                     --disable-sdltest \
                     --disable-gtktest"

        shelltools.export("CC", "%s -m32" % get.CC())
        shelltools.export("CXX", "%s -m32" % get.CXX())
        shelltools.export("CFLAGS", "%s -m32" % get.CFLAGS())
        shelltools.export("CXXFLAGS", "%s -m32" % get.CFLAGS())

    shelltools.system("rm -rf acinclude/lt*.m4 acinclude/libtool.m4")

    neededfilelist = ["NEWS", "ChangeLog", "AUTHORS"]
    for i in neededfilelist:
        shelltools.touch(i)

    autotools.autoreconf("-fi -Iacinclude")
    autotools.configure(options)
Exemplo n.º 9
0
def build():
    autotools.make("-j2 CC=%s AR=%s RANLIB=%s" %
                   (get.CC(), get.AR(), get.RANLIB()))
    autotools.make("-f Makefile-libbz2_so")
Exemplo n.º 10
0
qmake = "%s/qmake-qt4" % bindir

crosscompiling = ctx.config.values.build.crosscompiling
if crosscompiling:
    ctx.ui.info(_("cross compiling qt4 application"))
    qmake_environment = {
        'QTDIR':
        "%s/usr/qt/4" % get.sysroot(),
        'QMAKESPEC':
        "%s/usr/qt/4/mkspecs/linux-g++" % get.sysroot(),
        'QMAKE_PLATFORM':
        "linux-g++",
        'QMAKE_CC':
        get.CC(),
        'QMAKE_AR':
        get.AR(),
        'QMAKE_CXX':
        get.CXX(),
        'QMAKE_LINK':
        get.CXX(),
        'QMAKE_LINK_SHLIB':
        get.CXX(),
        'QMAKE_CFLAGS':
        "%s %s -Wno-psabi -I%s/usr/qt/4/include" %
        (get.CPPFLAGS(), get.CFLAGS(), get.sysroot()),
        'QMAKE_CXXFLAGS':
        "%s %s -Wno-psabi -fno-exceptions -fno-rtti -I%s/usr/qt/4/include" %
        (get.CPPFLAGS(), get.CXXFLAGS(), get.sysroot()),
        'QMAKE_LDFLAGS':
        "%s" % get.LDFLAGS(),
        'QMAKE_RPATH':
Exemplo n.º 11
0
def build():
    autotools.make('CC="%s" AR="%s" RANLIB="%s" LD="%s" CFLAGS="%s"' %
                   (get.CC(), get.AR(), get.RANLIB(), get.LD(), get.CFLAGS()))
Exemplo n.º 12
0
def build():
    shelltools.export("CC", get.CC())
    shelltools.export("AR", get.AR())
    shelltools.export("LD", get.LD())

    autotools.make("all")
Exemplo n.º 13
0
def setup():
    shelltools.system("echo -e '\033[0;36mBuilding Bzip2\033[0m' ")
    shelltools.makedirs("%s/temp/lib" %get.workDIR())
    shelltools.cd("bzip2-1.0.8")
    autotools.make('CC=%s AR=%s RANLIB=%s CFLAGS="%s -D_FILE_OFFSET_BITS=64 -fPIC" libbz2.a' % (get.CC(), get.AR(), get.RANLIB(), get.CFLAGS()))
    shelltools.system("cp libbz2.a %s/temp/lib/libbz2.a" % get.workDIR())
    shelltools.cd("..")
	
    pisitools.cflags.add("-fwrapv")

    # no rpath
    pisitools.dosed("configure.ac", "-rpath \$\(LIBDIR\) ")

    pisitools.dosed("Lib/cgi.py", r"/usr/local/bin/", r"/usr/bin/")
    pisitools.dosed("setup.py", "SQLITE_OMIT_LOAD_EXTENSION", deleteLine=True)
    pisitools.dosed("setup.py","ndbm_libs =.*","ndbm_libs = ['gdbm', 'gdbm_compat']")

    for dir in ["expat","zlib","_ctypes/libffi_arm_wince","_ctypes/libffi_msvc",
                "_ctypes/libffi_osx","_ctypes/libffi","_ctypes/darwin"]:
        shelltools.unlinkDir("Modules/%s" % dir)
        
    shelltools.export("CFLAGS", "-I%s/temp/include -O3" %get.workDIR())
    shelltools.export("LDFLAGS", "-L%s/temp/lib -lbz2 -lpthread -ldl" %get.workDIR())

    autotools.autoreconf("-vif")

    # disable bsddb
    pisitools.dosed("setup.py", "^(disabled_module_list = \[)\]", r"\1'_bsddb', 'dbm']")
    # no rpath
    pisitools.dosed("Lib/distutils/command/build_ext.py", "self.rpath.append\(user_lib\)", "pass")

    autotools.configure("--with-fpectl \
                         --enable-shared \
                         --enable-ipv6 \
                         --with-threads \
                         --with-libc='' \
                         --enable-unicode=ucs4 \
                         --with-wctype-functions \
                         --with-system-expat \
                         --with-system-ffi \
                         --with-dbmliborder=gdbm \
                        ")
Exemplo n.º 14
0
def setup():
    shelltools.system("echo -e '\033[0;36mBuilding Bzip2\033[0m' ")
    shelltools.makedirs("%s/temp/lib" %get.workDIR())
    shelltools.cd("bzip2-1.0.8")
    autotools.make('CC=%s AR=%s RANLIB=%s CFLAGS="%s -D_FILE_OFFSET_BITS=64 -fPIC" libbz2.a' % (get.CC(), get.AR(), get.RANLIB(), get.CFLAGS()))
    shelltools.system("cp libbz2.a %s/temp/lib/libbz2.a" % get.workDIR())
    shelltools.cd("..")
	
    pisitools.flags.add("-fwrapv")

    pisitools.dosed("Lib/cgi.py","^#.* /usr/local/bin/python","#!/usr/bin/python")

    shelltools.unlinkDir("Modules/expat")
    #shelltools.unlinkDir("Modules/zlib")
    shelltools.unlinkDir("Modules/_ctypes/darwin")
    #shelltools.unlinkDir("Modules/_ctypes/libffi")
    #shelltools.unlinkDir("Modules/_ctypes/libffi_msvc")
    shelltools.unlinkDir("Modules/_ctypes/libffi_osx")
    #shelltools.unlinkDir("Modules/_decimal/libmpdec")
    
    shelltools.export("CFLAGS", "-I%s/temp/include -O3" %get.workDIR())
    shelltools.export("LDFLAGS", "-L%s/temp/lib -lbz2 -lpthread -ldl" %get.workDIR())
    
    autotools.rawConfigure("\
                            --prefix=/usr \
                            --enable-shared \
                            --with-threads \
                            --with-computed-gotos \
                            --enable-ipv6 \
                            --with-system-expat \
                            --with-dbmliborder=gdbm:ndbm \
                            --with-system-ffi \
                            --with-system-libmpdec \
                            --enable-loadable-sqlite-extensions \
                            --without-ensurepip")
Exemplo n.º 15
0
def build():
    autotools.make("AR=%s" % get.AR())
Exemplo n.º 16
0
def build():
    autotools.make("CC=%s AR=%s RANLIB=%s" %
                   (get.CC(), get.AR(), get.RANLIB()))
Exemplo n.º 17
0
from pisi.actionsapi.shelltools import export
from pisi.actionsapi.shelltools import can_access_file
from pisi.actionsapi.shelltools import unlink

arch = get.ARCH()

crosscompiling = ctx.config.values.build.crosscompiling
if crosscompiling:
    ctx.ui.info(_("cross compiling"))
    export('QTDIR', "%s/usr/qt/4" % get.sysroot())

    export('QMAKE_PLATFORM', "linux-g++")
    export('QMAKESPEC',      "%s/usr/qt/4/mkspecs/linux-g++" % get.sysroot())

    export('QMAKE_CC',   get.CC())
    export('QMAKE_AR',   get.AR())
    export('QMAKE_CXX',  get.CXX())
    export('QMAKE_LINK', get.CXX())
    export('QMAKE_LINK_SHLIB', get.CXX())

    export('QMAKE_CFLAGS',   "%s %s -Wno-psabi -I%s/usr/qt/4/include" % (get.CPPFLAGS(), get.CFLAGS(), get.sysroot()))
    export('QMAKE_CXXFLAGS', "%s %s -Wno-psabi -fno-exceptions -fno-rtti -I%s/usr/qt/4/include" % (get.CPPFLAGS(), get.CXXFLAGS(), get.sysroot()))
    export('QMAKE_LDFLAGS',   "%s" % get.LDFLAGS())
    export('QMAKE_RPATH',     "-Wl,-rpath-link,")

    export('QMAKE_INCDIR',        "%s/usr/qt/4/include" % get.sysroot())
    export('QMAKE_INCDIR_QT',     "%s/usr/qt/4/include" % get.sysroot())
    export('QMAKE_INCDIR_X11',    "%s/usr/include/X11" % get.sysroot())
    export('QMAKE_INCDIR_OPENGL', "%s/usr/include" % get.sysroot())
    export('QMAKE_LIBS',          "%s/usr/qt/4/lib" % get.sysroot())
    export('QMAKE_LIBS_QT',       "qt")