示例#1
0
def build():
    shelltools.system("unset QMAKESPEC")
    shelltools.export("QT5DIR", get.curDIR())
    shelltools.export("PATH", "%s/bin:%s" % (get.curDIR(), get.ENV("PATH")))
    shelltools.export("LD_LIBRARY_PATH",
                      "%s/lib:%s" % (get.curDIR(), get.ENV("LD_LIBRARY_PATH")))
    autotools.make()
示例#2
0
def install():
    shelltools.system("unset QMAKESPEC")
    shelltools.export("QT5DIR", get.curDIR())
    shelltools.export("PATH", "%s/bin:%s" % (get.curDIR(), get.ENV("PATH")))
    shelltools.export("LD_LIBRARY_PATH",
                      "%s/lib:%s" % (get.curDIR(), get.ENV("LD_LIBRARY_PATH")))
    autotools.rawInstall("INSTALL_ROOT=%s" % get.installDIR())
示例#3
0
def setup():
    shelltools.export(
        "MAKE_PO",
        "bg ca br da de cs cy el es et fi ga fr gl hu is it lt nb mt nl pa pl pt ro ru rw ta sr sv tr en_GB pt_BR zh_CN sr@Latn"
    )
    shelltools.export("MAKE_DOC", "da et fr it nl pt ru sv")

    pisitools.dosed("po/Makefile.in", "^SUBDIRS =.*",
                    "SUBDIRS = %s" % get.ENV("MAKE_PO"))
    pisitools.dosed("doc/Makefile.in", "^SUBDIRS =.*",
                    "SUBDIRS = . %s kdetv" % get.ENV("MAKE_DOC"))

    kde.configure("--enable-arts")
示例#4
0
def setup():
    # make sure pkgconfig file is correct
    shelltools.unlink("avifile.pc")

    # Fix qt detection
    pisitools.dosed("configure", "extern \"C\" void exit(int);",
                    "/* extern \"C\" void exit(int); */")

    # adding CFLAGS by default which exists only for x86 is no good idea
    # but I can't get it through gcc 3.4.3 without omit-frame-pointer
    pisitools.dosed("ffmpeg/libavcodec/libpostproc/Makefile.in",
                    "^AM_CFLAGS = .*", "AM_CFLAGS = -fomit-frame-pointer")
    pisitools.dosed("plugins/libwin32/loader/Makefile.in", "^AM_CFLAGS = .*",
                    "AM_CFLAGS = -fomit-frame-pointer")

    # Make sure we include freetype2 headers before freetype1 headers, else Xft2 borks
    shelltools.export("C_INCLUDE_PATH",
                      "%s:/usr/include/freetype2" % get.ENV("C_INCLUDE_PATH"))
    shelltools.export(
        "CPLUS_INCLUDE_PATH",
        "%s:/usr/include/freetype2" % get.ENV("CPLUS_INCLUDE_PATH"))

    # filter-flags "-momit-leaf-frame-pointer"

    shelltools.system("rm acinclude.m4")
    shelltools.system("ACLOCAL_FLAGS=\"-I m4\" ./autogen.sh --copy --force")
    shelltools.export("FFMPEG_CFLAGS", "%s" % get.CFLAGS())
    autotools.configure("--disable-static \
                         --enable-freetype2 \
                         --enable-xv \
                         --enable-sdl \
                         --enable-sdltest \
                         --enable-a52 \
                         --enable-ffmpeg-a52 \
                         --enable-libz \
                         --enable-vorbis \
                         --enable-oggtest \
                         --enable-vorbistest \
                         --with-x \
                         --enable-xft \
                         --enable-samples \
                         --disable-vidix \
                         --with-fpic \
                         --enable-lame-bin \
                         --enable-oss \
                         --disable-xvid \
                         --enable-xvid4 \
                         --enable-quiet \
                         --enable-x86opt \
                         --with-qt-prefix=%s" % get.qtDIR())
示例#5
0
def install():
    shelltools.export("PATH", "%s:%s" % (get.curDIR(), get.ENV("PATH")))
    shelltools.export("BINDIR", "%s/usr/bin" % get.installDIR())
    shelltools.system("./jam0 install")

    pisitools.dohtml("Jam.html", "Jambase.html", "Jamfile.html")
    pisitools.dodoc("README", "RELNOTES", "Porting")
示例#6
0
def build():
    shelltools.export("LD_LIBRARY_PATH", "%s/lib:%s" % (get.curDIR(), get.ENV("LD_LIBRARY_PATH")))
    autotools.make()
    # Fix docs build when qt is not installed
    shelltools.system('sed -i "s|/usr/lib/qt/bin/qdoc|${QTDIR}/qtbase/bin/qdoc|g" qmake/Makefile.qmake-docs')
    #shelltools.system('sed -i "s|/usr/lib/qt5/bin/qdoc|bin/qdoc|g" {} + Makefile')
    shelltools.system('sed -i "s|/usr/lib/qt/bin/qhelpgenerator|${QTDIR}/qttools/bin/qhelpgenerator|g" qmake/Makefile.qmake-docs')
示例#7
0
def build():
    # colorgcc uses Term::ANSIColor
    paths = get.ENV("PATH").split(":")
    if "/usr/share/colorgcc" in paths:
        paths.remove("/usr/share/colorgcc")
    shelltools.export("PATH", ":".join(paths))
    ##
    autotools.make()
示例#8
0
def build():
    undef_variables()

    shelltools.cd("%s/build-default-i686-pc-linux-gnu-nptl" % get.workDIR())
    autotools.make()

    if get.ENV("EXECUTE_TESTS"):
        make_check()
示例#9
0
def setup():
    checkdeletepath = "%s/qtbase/src/3rdparty" % absoluteWorkDir
    for dir in ('libjpeg', 'freetype', 'libpng', 'zlib', "xcb", "sqlite"):
        if os.path.exists(checkdeletepath + dir):
            shelltools.unlinkDir(checkdeletepath + dir)

    filteredCFLAGS = get.CFLAGS().replace("-g3", "-g")
    filteredCXXFLAGS = get.CXXFLAGS().replace("-g3", "-g")

    shelltools.export("CFLAGS", filteredCFLAGS)
    shelltools.export("CXXFLAGS", filteredCXXFLAGS)
    shelltools.system("unset QMAKESPEC")
    shelltools.export("QT5DIR", get.curDIR())
    shelltools.export("PATH", "%s/bin:%s" % (get.curDIR(), get.ENV("PATH")))

    shelltools.export("LD_LIBRARY_PATH",
                      "%s/lib:%s" % (get.curDIR(), get.ENV("LD_LIBRARY_PATH")))
    shelltools.system('parameters="QMAKE_CFLAGS_ISYSTEM= "')

    options = "-confirm-license -opensource \
		    -prefix /usr \
		    -docdir /usr/share/doc/qt5 \
		    -plugindir /usr/lib/qt5/plugins \
		    -importdir /usr/lib/qt5/imports \
		    -datadir /usr/share/qt5 \
		    -translationdir /usr/share/qt5/translations \
		    -sysconfdir /etc \
		    -examplesdir /usr/share/doc/qt5/examples \
		    -system-sqlite \
		    -system-zlib \
		    -system-libpng \
		    -system-libjpeg \
		    -nomake examples \
            -no-sql-mysql \
		    -no-rpath \
		    -openssl-linked \
		    -silent \
		    -optimized-qmake \
		    -dbus \
		    -reduce-relocations \
		    -no-separate-debug-info \
		    -opengl \
		    -skip qtwebengine \
		    -glib"

    autotools.rawConfigure(options)
示例#10
0
def setup():
    shelltools.export(
        "MAKE_PO",
        "bg ca br da de cs cy el es et fi ga fr gl hu is it lt nb mt nl pa pl pt ro ru rw ta sr sv tr en_GB pt_BR zh_CN sr@Latn"
    )
    shelltools.export("MAKE_DOC", "da et fr it nl pt ru sv")

    pisitools.dosed("po/Makefile.in", "^SUBDIRS =.*",
                    "SUBDIRS = %s" % get.ENV("MAKE_PO"))
    pisitools.dosed("doc/Makefile.in", "^SUBDIRS =.*",
                    "SUBDIRS = . %s kdetv" % get.ENV("MAKE_DOC"))

    shelltools.export("CXXFLAGS", "%s -fno-strict-aliasing" % get.CXXFLAGS())

    kde.configure("--enable-kdetv-lirc \
                   --with-arts \
                   --with-zvbi \
                   --with-gl")
示例#11
0
def build():
    unset()

    shelltools.cd("%s/build-psp/" % get.workDIR())

    if get.ENV("BOOTSTRAP") is None:
        autotools.make("CFLAGS_FOR_TARGET=\"-G0\"")
    else:
        autotools.make()
示例#12
0
def setup():
    # Force cross compile to avr target
    shelltools.export("CC", "avr-gcc")
    shelltools.export("PATH", "%s:%s/bin" % (get.ENV("PATH"), TOOLCHAIN_DIR))

    check_supported_mcus()

    # FIXME --enable-doc
    shelltools.system(" \
            ./configure \
            --prefix=/opt/toolchain/avr \
            --build=%s \
            --host=avr" % get.HOST())
示例#13
0
def setup():
    unset()

    shelltools.makedirs("%s/build-psp" % get.workDIR())
    shelltools.cd("%s/build-psp/" % get.workDIR())

    if get.ENV("BOOTSTRAP") is None:
        shelltools.system(
            "%s/%s/configure --prefix=/opt/psp --target=psp --enable-languages=\"c,c++\" --with-newlib --enable-cxx-flags=\"-G0\""
            % (get.workDIR(), WorkDir))
    else:
        shelltools.system(
            "%s/%s/configure --prefix=/opt/psp --target=psp --enable-languages=\"c\" --with-newlib --without-headers --disable-libssp"
            % (get.workDIR(), WorkDir))
示例#14
0
def setup():

    shelltools.system("unset QMAKESPEC")
    shelltools.export("QT5DIR", get.curDIR())
    shelltools.export("PATH", "%s/bin:%s" % (get.curDIR(), get.ENV("PATH")))

    shelltools.export("LD_LIBRARY_PATH",
                      "%s/lib:%s" % (get.curDIR(), get.ENV("LD_LIBRARY_PATH")))

    options = "-confirm-license -opensource \
		    -prefix /usr \
		    -docdir /usr/share/doc/qt5 \
		    -plugindir /usr/lib/qt5/plugins \
		    -importdir /usr/lib/qt5/imports \
		    -datadir /usr/share/qt5 \
		    -translationdir /usr/share/qt5/translations \
		    -sysconfdir /etc \
		    -examplesdir /usr/share/doc/qt5/examples \
		    -plugin-sql-{sqlite,odbc} \
		    -system-sqlite \
		    -system-zlib \
		    -system-libpng \
		    -system-libjpeg \
		    -nomake examples \
		    -no-rpath \
		    -openssl-linked \
		    -silent \
		    -optimized-qmake \
		    -dbus \
		    -reduce-relocations \
		    -no-separate-debug-info \
		    -opengl \
		    -no-openvg \
		    -skip qtwebengine \
		    -glib"

    autotools.rawConfigure(options)
示例#15
0
def setup():
    # Force cross compile to avr target
    shelltools.export("CC", "avr-gcc")
    shelltools.export("PATH", "%s:/opt/avr/bin" % get.ENV("PATH"))
    shelltools.system("./configure --prefix=/opt/avr --build=%s --host=avr" %
                      get.HOST())
示例#16
0
def build():
    shelltools.export("LC_ALL", "C")
    shelltools.export("PATH", "%s:%s/bin" % (get.ENV("PATH"), TOOLCHAIN_DIR))

    autotools.make()
示例#17
0
def define_global():
    shelltools.export("PATH", "%s/bin:%s" % (get.curDIR(), get.ENV("PATH")))
    shelltools.export("LD_LIBRARY_PATH",
                      "%s/lib:%s" % (get.curDIR(), get.ENV("LD_LIBRARY_PATH")))
示例#18
0
def fix_env():
    shelltools.export("CFLAGS", "")
    shelltools.export("CXXFLAGS", "")
    # Bash doesnt activate this path immediately after avr-binutils install
    shelltools.export("PATH", "%s:/opt/avr/bin" % get.ENV("PATH"))
示例#19
0
def build():
    shelltools.export("PATH", "%s:%s" % (get.curDIR(), get.ENV("PATH")))
    shelltools.export("CFLAGS", "%s -fno-strict-aliasing" % get.CFLAGS())

    autotools.make('-j1 YACC="bison -y" CFLAGS="%s"' % get.CFLAGS())
示例#20
0
def install():
    shelltools.export("PATH", "%s:/opt/avr/bin" % get.ENV("PATH"))
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())
示例#21
0
def fix_env():
    shelltools.export("CFLAGS", "")
    shelltools.export("CXXFLAGS", "")
    # Bash doesnt activate this path immediately after avr-binutils install
    shelltools.export("PATH", "%s:%s/bin" % (get.ENV("PATH"), TOOLCHAIN_DIR))
示例#22
0
def build():
    shelltools.export("PATH", "%s:/usr/lib/%s/site-packages/unsermake" % (get.ENV("PATH"), get.curPYTHON()))
    shelltools.system("unsermake -j1")
示例#23
0
def build():
    shelltools.export("LD_LIBRARY_PATH",
                      "%s/lib:%s" % (get.curDIR(), get.ENV("LD_LIBRARY_PATH")))
    qt5.make()
示例#24
0
def build():
    shelltools.export("PATH", "%s:/opt/avr/bin" % get.ENV("PATH"))
    autotools.make()