Exemplo n.º 1
0
def build():
    shelltools.cd("src")
    autotools.make("-j1 CXX=%s" % get.CXX())
    shelltools.cd("../ExternalPrograms/Spliter")
    autotools.make("-j1 CXX=%s" % get.CXX())
    shelltools.cd("../Controller")
    autotools.make('-j1 CXX=%s CXXFLAGS="%s"' % (get.CXX(), get.CXXFLAGS()))
Exemplo n.º 2
0
def setup():
    pisitools.dosed("src/Makefile", "^CXX\?.*", "CXX=%s" % get.CXX())
    pisitools.dosed("src/core/Makefile", "^CXX=.*", "CXX=%s" % get.CXX())
    pisitools.dosed("src/Makefile", "\$\(RPM_OPT_FLAGS\)",
                    "%s" % get.CXXFLAGS())
    pisitools.dosed("src/core/Makefile", "\$\(RPM_OPT_FLAGS\)",
                    "%s" % get.CXXFLAGS())
Exemplo n.º 3
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.º 4
0
def setup():
    shelltools.cd("plugins")
    pisitools.dosed("Make-arch", "CC = gcc", "CC = %s" % get.CC())
    pisitools.dosed("Make-arch", "CCFLAGS =.*\"",
                    "CCFLAGS = %s\"" % get.CFLAGS())
    pisitools.dosed("Make-arch", "CXXFLAGS =.*\"",
                    "CXXFLAGS = %s\"" % get.CXXFLAGS())
    pisitools.dosed("Make-arch", r"CXX = g\+\+", "CXX = %s" % get.CXX())
    pisitools.dosed("Make-arch", "COPTO =.*\"", "COPTO = -fPIC -o\"")
    pisitools.dosed("Make-arch", "LOPTO = .*\"",
                    "LOPTO = %s -fPIC -o\"" % get.LDFLAGS())
    pisitools.dosed("Make-arch", "SHLD = gcc", "SHLD = %s" % get.CC())

    shelltools.cd("../vmd-%s" % get.srcVERSION())
    pisitools.dosed("configure", "gentoo-bindir",
                    "%s/usr/bin" % get.installDIR())
    pisitools.dosed("configure", "gentoo-libdir",
                    "%s/usr/lib" % get.installDIR())
    pisitools.dosed("configure", "gentoo-opengl-include", "/usr/include/GL")
    pisitools.dosed("configure", "gentoo-opengl-libs", "/usr/lib")

    pisitools.dosed("configure", "gentoo-gcc", get.CC())
    pisitools.dosed("configure", r"gentoo-g\+\+", get.CXX())
    pisitools.dosed("configure", "gentoo-cflags", get.CFLAGS())
    pisitools.dosed("configure", "gentoo-cxxflags", get.CXXFLAGS())
    pisitools.dosed("configure", "gentoo-ldflags", get.LDFLAGS())

    pisitools.dosed("configure", "gentoo-plugindir",
                    "%s/%s/plugins" % (get.workDIR(), WorkDir))
    pisitools.dosed("configure", "gentoo-fltk-include", "/usr/include")
    pisitools.dosed("configure", "gentoo-fltk-libs", "/usr/lib")
    pisitools.dosed("configure", "gentoo-netcdf-include",
                    "/usr/include/netcdf")
    pisitools.dosed("configure", "gentoo-netcdf-libs", "/usr/lib")

    pisitools.dosed("configure", "gentoo-python-include",
                    "/usr/include/%s" % get.curPYTHON())
    pisitools.dosed("configure", "gentoo-python-lib", "/usr/lib")
    pisitools.dosed("configure", "gentoo-python-link", get.curPYTHON())
    pisitools.dosed(
        "configure", "gentoo-numpy-include",
        "/usr/lib/%s/site-packages/numpy/core/include" % get.curPYTHON())

    pisitools.dosed("bin/vmd.sh", "LINUXPPC", "LINUX")
    pisitools.dosed("bin/vmd.sh", "LINUXALPHA", "LINUX")
    pisitools.dosed("bin/vmd.sh", "LINUXAMD64", "LINUX")

    # Fix temp directory
    pisitools.dosed("scripts/vmd/vmdinit.tcl", "/usr/tmp", "/tmp")

    options = 'LINUX OPENGL FLTK TK TCL PTHREADS PYTHON IMD NETCDF NUMPY NOSILENT '
    f = open("configure.options", "w")
    f.write(options)
    f.close()

    autotools.rawConfigure()
Exemplo n.º 5
0
def setup():
    shelltools.export("pardusCC", get.CC())
    shelltools.export("pardusCXX", get.CXX())
    shelltools.export("pardusCFLAGS", get.CXX())
    shelltools.export("pardusCPPFLAGS", get.CXXFLAGS())

    #shelltools.makedirs("binaries/usr/lib/0ad")

    shelltools.system("./build/workspaces/update-workspaces.sh \
                      --verbose \
                      --with-system-enet \
                      JOBS=%s" % get.makeJOBS())
Exemplo n.º 6
0
def setup():
    #thanks to s.dalgic
    shelltools.export("pardusCC", get.CC())
    shelltools.export("pardusCXX", get.CXX())
    shelltools.export("pardusCFLAGS", get.CXX())
    shelltools.export("pardusCPPFLAGS", get.CXXFLAGS())

    shelltools.cd("build/workspaces/")
    shelltools.system("./update-workspaces.sh \
                        --with-system-mozjs185 \
                        --with-system-enet \
                        JOBS=%s" % get.makeJOBS())
Exemplo n.º 7
0
def setup():
    pisitools.dosed("ImageLib/src/Makefile", "^CC.*gcc", "CC  = %s" % get.CC())
    pisitools.dosed("ImageLib/src/Makefile", "^CXX.*g\+\+",
                    "CXX = %s" % get.CXX())
    pisitools.dosed("ImageLib/src/Makefile", "^CFLAGS[ ]*= \-O2",
                    "CFLAGS    = %s " % get.CFLAGS())
    pisitools.dosed("ImageLib/src/Makefile", "^CXXFLAGS[ ]*= \-O2",
                    "CXXFLAGS  = %s " % get.CXXFLAGS())

    pisitools.dosed("%s/Makefile" % mainsrc, "^CXX.*g\+\+",
                    "CXX     = %s" % get.CXX())
    pisitools.dosed("%s/Makefile" % mainsrc, "-g -D_DEBUG", get.CXXFLAGS())
Exemplo n.º 8
0
def build():
    shelltools.cd("Qt4/")
    autotools.make("all staticlib CC=\"%s\" CXX=\"%s\" LINK=\"%s\"" %
                   (get.CC(), get.CXX(), get.CXX()))

    shelltools.cd("../designer-Qt4/")
    autotools.make("DESTDIR=\"%s/%s/plugins/designer\"" %
                   (get.installDIR(), Qt4DIR))

    # Get Makefile of qscintilla-python via sip
    shelltools.cd("../Python")
    pythonmodules.run("configure.py -p 4 -n ../Qt4 -o ../Qt4")
    autotools.make()
Exemplo n.º 9
0
def setup():
    shelltools.cd("Source")
    shelltools.system(
        "python setup.py configure --enable-debug --verbose --fixed-module-name"
    )

    # Fix compiler flags
    pisitools.dosed("Makefile", "^CCC=.*$", "CCC=%s" % get.CXX())
    pisitools.dosed("Makefile", "^CC=.*$", "CC=%s" % get.CC())
    pisitools.dosed("Makefile", "^LDSHARED=.*$",
                    "LDSHARED=%s -shared %s" % (get.CXX(), get.LDFLAGS()))

    # Fix linking order
    pisitools.dosed("Makefile", "\$\(LDSHARED\) (-o \$@) (.*)",
                    "$(LDSHARED) \\2 \\1")
Exemplo n.º 10
0
def setup():
    options = "--with-pcre=system \
               --disable-fam \
               --disable-libelf \
               --enable-gtk-doc=no \
               --disable-libmount \
               --disable-static \
               --enable-shared \
               --disable-man \
               --enable-systemtap"

    if get.buildTYPE() == "_emul32":
        options += " --libdir=/usr/lib32 \
                     --bindir=/_emul32/bin \
                     --sbindir=/_emul32/sbin \
                     --disable-dtrace"

        shelltools.export("CC", "%s -m32" % get.CC())
        shelltools.export("CXX", "%s -m32" % get.CXX())
        shelltools.export("PKG_CONFIG_PATH", "/usr/lib32/pkgconfig")

    #autotools.autoreconf("-vif")
    autotools.configure(options)

    pisitools.dosed("libtool", " -shared ", " -Wl,--as-needed -shared ")
Exemplo n.º 11
0
def setup():
    options = " --prefix=/usr \
                --libdir=lib \
                --openssldir=/etc/ssl \
                --enginesdir=/usr/lib/openssl/engines \
                shared -Wa,--noexecstack \
                zlib enable-camellia enable-idea \
                enable-seed enable-tlsext enable-rfc3779 enable-rc5 \
                enable-cms enable-md2 enable-mdc2 threads"

    if get.buildTYPE() == "_emul32":
        options += " --prefix=/_emul32 --libdir=lib32"
        shelltools.export("CC", "%s -m32" % get.CC())
        shelltools.export("CXX", "%s -m32" % get.CXX())
        shelltools.system("./Configure linux-elf %s" % options)
        shelltools.export("PKG_CONFIG_PATH","/usr/lib32/pkgconfig")
        
    elif get.ARCH() == "i686":
         shelltools.system("./Configure linux-elf %s" % options)
         pisitools.dosed("Makefile", "^(SHARED_LDFLAGS=).*", "\\1 ${LDFLAGS}")
         pisitools.dosed("Makefile", "^(CFLAG=.*)", "\\1 ${CFLAGS}")
         
    else:
        options += " enable-ec_nistp_64_gcc_128"
        shelltools.system("./Configure linux-x86_64 %s" % options)
        pisitools.dosed("Makefile", "^(SHARED_LDFLAGS=).*", "\\1 ${LDFLAGS}")
        pisitools.dosed("Makefile", "^(CFLAG=.*)", "\\1 ${CFLAGS}")
Exemplo n.º 12
0
def build():
    shelltools.export("MOZILLA_INCLUDES",
                      "`pkg-config --cflags libxul libxul-embedding`")
    shelltools.export(
        "MOZILLA_LIBS",
        "-Wl,-R`pkg-config libxul --variable=sdkdir` `pkg-config --libs libxul libxul-embedding`"
    )
    shelltools.export("XULRUNNER_INCLUDES",
                      "`pkg-config --cflags libxul libxul-embedding`")
    shelltools.export(
        "XULRUNNER_LIBS",
        "-Wl,-R`pkg-config libxul --variable=sdkdir` `pkg-config --libs libxul libxul-embedding`"
    )
    shelltools.export("AWT_LIB_PATH", "/opt/sun-jdk/jre/lib/i386")

    for target in [
            "awt", "swt", "atk", "gnome", "mozilla", "xulrunner", "cairo",
            "glx"
    ]:
        autotools.make("-f make_linux.mak NO_STRIP=y CC=%s CXX=%s make_%s " %
                       (get.CC(), get.CXX(), target))

    shelltools.system("ant compile")

    shelltools.copy("version.txt", "build")
    shelltools.copy("src/org/eclipse/swt/internal/SWTMessages.properties",
                    "build/org/eclipse/swt/internal")

    shelltools.system("ant jar")
Exemplo n.º 13
0
def setup():
    #pisitools.cflags.remove("-D_FORTIFY_SOURCE=2")
    #pisitools.cxxflags.remove("-D_FORTIFY_SOURCE=2")
    shelltools.export("AUTOPOINT", "true")
    options = "-Dpackage-name='PisiLinux gstreamer-plugins-base package' \
               -Dpackage-origin='https://www.pisilinux.org' \
               -Dtremor=disabled \
               -Dexamples=disabled \
              "

    if get.buildTYPE() == "emul32":
        shelltools.export("CC", "%s -m32" % get.CC())
        shelltools.export("CXX", "%s -m32" % get.CXX())
        shelltools.export("PKG_CONFIG_PATH", "/usr/lib32/pkgconfig")

        options += " --bindir=/usr/bin32 \
                     --libdir=/usr/lib32 \
                     -Dgl-graphene=disabled \
                     -Dintrospection=disabled \
                   "

    else:
        options += "-Dgl-graphene=enabled"

    mesontools.configure(options)
Exemplo n.º 14
0
def setup():
    shelltools.sym(".", "m4")
    shelltools.export("CFLAGS", "%s -DDRV_RAW" % get.CFLAGS())

    autotools.autoreconf("-vfi -Im4")
    libtools.gnuconfig_update()

    options = "--disable-esd \
               --disable-af \
               --disable-alsa \
               --enable-oss \
               --disable-static"

    if get.buildTYPE() == "emul32":
        options += " --prefix=/emul32 \
                     --libdir=/usr/lib32 \
                     --bindir=/emul32/bin"

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

    autotools.configure(options)
Exemplo n.º 15
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()))
Exemplo n.º 16
0
def setup():
    options = "-Dselinux=disabled \
               -Dman=true \
               -Dgtk_doc=false"

    if get.buildTYPE() == "_emul32":
        options += " --libdir=/_emul32/lib32 \
                     --bindir=/_emul32/bin \
                     --sbindir=/_emul32/sbin \
                     --prefix=/_emul32 \
                     -Dlibmount=false"

        shelltools.export("CC", "%s -m32" % get.CC())
        shelltools.export("CXX", "%s -m32" % get.CXX())
        shelltools.export("PKG_CONFIG_PATH", "/usr/lib32/pkgconfig")
        shelltools.system("patch -p1 < multilib.diff")
    else:
        options += " --libdir=/usr/lib \
                     --bindir=/usr/bin \
                     --sbindir=/usr/sbin \
                     --datadir=/usr/share \
                     --prefix=/usr"

    #autotools.autoreconf("-vif")
    shelltools.makedirs("%s" % builddir)
    shelltools.cd("%s" % builddir)
    shelltools.system("meson .. %s" % options)
Exemplo n.º 17
0
def setup():
    shelltools.export("CC", get.CC())
    shelltools.export("CXX", get.CXX())
    shelltools.export("CFLAGS", get.CFLAGS())
    shelltools.export("CXXLAGS", get.CXXFLAGS())

    # Remove shipped glib
    shelltools.system("rm -r %s/eglib/*.[ch]" % get.curDIR())

    autotools.autoreconf("-fi")

    autotools.configure("--enable-glib \
                         --enable-network \
                         --enable-serial \
                         --enable-input \
                         --enable-audio \
                         --enable-gstreamer \
                         --enable-alsa \
                         --enable-usb \
                         --enable-netlink \
                         --enable-tools \
                         --enable-bccmd \
                         --enable-hid2hci \
                         --enable-dfutool \
                         --enable-hidd \
                         --enable-dund \
                         --enable-pand \
                         --enable-cups \
                         --enable-manpages \
                         --enable-configfiles \
                         --enable-test \
                         --disable-initscripts \
                         --disable-pcmciarules \
                         --localstatedir=/var")
Exemplo n.º 18
0
def install():

    # execute install target of build system
    shelltools.cd("Qt4/")
    autotools.make("all staticlib CC=\"%s\" CXX=\"%s\" LINK=\"%s\"" % (get.CC(), get.CXX(), get.CC()))
    pisitools.insinto("/%s/lib" % Qt4DIR, "libqscintilla2.so*")

    shelltools.cd("../designer-Qt4/")
    autotools.make("DESTDIR=\"%s/%s/plugins/designer\"" % (get.installDIR(), Qt4DIR))

    # Get Makefile of qscintilla-python via sip
    shelltools.cd("../Python")
    pythonmodules.run("configure.py -p 4 -n ../Qt4 -o ../Qt4")

    # installs not managed by the build system
    shelltools.cd("../Qt4/")
    shelltools.makedirs("%s/%s/include" % (get.installDIR(), Qt4DIR))
    shelltools.copytree("Qsci", "%s/%s/include/Qsci" % (get.installDIR(), Qt4DIR))
    pisitools.insinto("%s/translations" % Qt4DIR, "qscintilla*.qm")

    shelltools.cd("../")
    pisitools.insinto("%s/plugins/designer" % Qt4DIR, "designer-Qt4/libqscintillaplugin.so")

    #build and install qscintilla-python
    shelltools.cd("Python")
    autotools.make()
    autotools.install("DESTDIR=%s" % get.installDIR())

    shelltools.cd("..")
    pisitools.dohtml("doc/html-Qt4/")
    pisitools.insinto("/usr/share/doc/%s/Scintilla" % get.srcTAG(), "doc/Scintilla/*")

    pisitools.dodoc("ChangeLog", "LICENSE", "NEWS", "README")
Exemplo n.º 19
0
def setup():
    shelltools.export("CC", get.CC())
    shelltools.export("CXX", get.CXX())
    shelltools.export("CPPFLAGS", get.CXXFLAGS())
    shelltools.export("CXXFLAGS", get.CXXFLAGS())
    shelltools.export("CFLAGS", get.CFLAGS())
    shelltools.export("LDFLAGS", get.LDFLAGS())
Exemplo n.º 20
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.º 21
0
def setup():
    for d in datasources:
        fixperms(d)

    pisitools.dosed("Makefile", "^CC.*", "CC = %s" % get.CXX())
    pisitools.dosed("Makefile", "^CFLAGS.*", "CFLAGS = %s `sdl-config --cflags`" % get.CXXFLAGS())
    pisitools.dosed("Makefile", "^LDFLAGS.*", "LDFLAGS = %s `sdl-config --libs` -lSDL_image -lSDL_mixer -lSDL_sound -lGL -lGLU" % get.LDFLAGS().replace("-Wl,--as-needed", ""))
    pisitools.dosed("Makefile", "^STRIP.*", "STRIP = echo")
Exemplo n.º 22
0
def setup():
    shelltools.export("CC", get.CC())
    shelltools.export("CXX", get.CXX())
    shelltools.export("CXXFLAGS", get.CXXFLAGS())

    shelltools.cd("bullet-2.66")
    shelltools.system("./configure")
    shelltools.system("jam bulletcollision bulletmath")
Exemplo n.º 23
0
def build():
    # Pardus-ARM preparation
    prepare()

    autotools.make('CC="%s" \
                    CXX="%s" \
                    LD="%s" \
                    targets' % (get.CC(), get.CXX(), get.LD()))
Exemplo n.º 24
0
def setup():
    shelltools.export("CC", get.CC())
    shelltools.export("CXX", get.CXX())

    # many fun sandbox errors, phhh
    autotools.rawConfigure("--host=%s --prefix=/usr --mandir=/usr/share/man \
                           --infodir=%s/usr/share/info" %
                           (get.HOST(), get.installDIR()))
Exemplo n.º 25
0
def build():
    shelltools.export("CC", get.CC())
    shelltools.export("CXX", get.CXX())
    shelltools.export("OS_CFLAGS", get.CFLAGS())
    shelltools.export("OS_LDFLAGS", get.LDFLAGS())
    shelltools.export("OS_CXXFLAGS", get.CXXFLAGS())

    autotools.make()
Exemplo n.º 26
0
def setup():
    # Build with --without-included-gettext (will use that of glibc), as we
    # need preloadable_libintl.so for new help2man
    shelltools.export("CXX", get.CXX())
    autotools.configure("--without-java \
                         --without-included-gettext \
                         --enable-nls \
                         --disable-static")
Exemplo n.º 27
0
def setup():
    options = "--disable-static"

    if get.buildTYPE() == "emul32":
        options += " --libdir=/usr/lib32"
        shelltools.export("CC", "%s -m32" % get.CC())
        shelltools.export("CXX", "%s -m32" % get.CXX())

    autotools.configure(options)
Exemplo n.º 28
0
def setup():
    pisitools.dosed("tools/build/v2/tools/gcc.jam", "PARDUS_CXX_", get.CXX())
    pisitools.dosed("tools/build/v2/tools/gcc.jam", "PARDUS_CXXFLAGS", "%s -fPIC" % get.CXXFLAGS())
    pisitools.dosed("tools/build/v2/tools/gcc.jam", "PARDUS_LDFLAGS", get.LDFLAGS())
    pisitools.dosed("libs/python/build/Jamfile.v2", "PARDUS_PYTHON", get.curPYTHON())

    autotools.rawConfigure("--with-toolset=gcc \
                            --with-icu \
                            --prefix=%s/usr" % get.installDIR())
Exemplo n.º 29
0
def build():
    shelltools.system("cp -rf Python Python3")
    shelltools.cd("Qt4Qt5")
    autotools.make("all staticlib CC=\"%s\" CXX=\"%s\" LINK=\"%s\"" %
                   (get.CC(), get.CXX(), get.CXX()))

    shelltools.cd("../designer-Qt4/")
    autotools.make("DESTDIR=\"%s/%s/designer\"" %
                   (get.installDIR(), qt4.plugindir))

    # Get Makefile of qscintilla-python via sip
    shelltools.cd("../Python")
    pythonmodules.run("configure.py -p 4 -n ../Qt4Qt5 -o ../Qt4Qt5")
    autotools.make()
    shelltools.cd("../Python3")
    pythonmodules.run("configure.py -p 4 -n ../Qt4Qt5 -o ../Qt4Qt5", pyVer="3")
    pisitools.dosed("Makefile", "-lpython3.4", "-lpython3")
    autotools.make()
Exemplo n.º 30
0
def setup():
    pisitools.dosed("tmake/lib/linux-g++/tmake.conf", "PARDUS_CC", get.CC())
    pisitools.dosed("tmake/lib/linux-g++/tmake.conf", "PARDUS_CXX", get.CXX())
    pisitools.dosed("tmake/lib/linux-g++/tmake.conf", "PARDUS_CFLAGS", get.CFLAGS())
    pisitools.dosed("tmake/lib/linux-g++/tmake.conf", "PARDUS_LDFLAGS", get.LDFLAGS())

    autotools.rawConfigure("--shared \
                            --release \
                            --dot dot \
                            --prefix /usr")