Ejemplo n.º 1
0
def setup():
    pisitools.flags.add("-fPIC")
    pisitools.dosed("makeinclude.in", "^(docdir.*)$", r"\1/html")

    autotools.autoconf()

    options = "\
               --enable-gl \
               --enable-shared \
               --enable-threads \
               "

    if get.buildTYPE() == "emul32":

        shelltools.export("CFLAGS", "-m32")
        shelltools.export("CXXFLAGS", "-m32")

        options += "--prefix=/usr \
                    --libdir=/usr/lib32 \
                    --with-optim='%s' \
                    " % get.CFLAGS()

    elif get.ARCH() == "x86_64":

        options += "--with-optim='%s' \
                   "  % get.CFLAGS()

    autotools.configure(options)
Ejemplo n.º 2
0
def setup():
    shelltools.export("PTHREAD_LIBS", "-lpthread")
    shelltools.system("./autogen.sh")
    autotools.autoreconf("-vif")
    autotools.configure("--disable-static")
    
    pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
Ejemplo n.º 3
0
def build():
    shelltools.export("CC", get.CC())

    autotools.make("libdir")
    autotools.make()
    autotools.make("ether-wake")
    autotools.make("i18ndir")
Ejemplo n.º 4
0
def setup():
    shelltools.cd("lib-src/portmixer")
    autotools.autoreconf()
    shelltools.cd("../..")

    autotools.aclocal("-I m4")
    autotools.autoconf()
    shelltools.export("LIBS", "-lavcodec")
    autotools.configure("--enable-unicode \
                         --enable-nyquist \
                         --enable-ladspa \
                         --with-lib-preference='system local' \
                         --with-libsndfile=system \
                         --with-expat=system \
                         --with-libsamplerate \
                         --with-libvorbis \
                         --with-libmad \
                         --with-libflac \
                         --with-libid3tag \
                         --with-sbsms \
                         --with-soundtouch \
                         --with-libvamp \
                         --with-libtwolame \
                         --with-ffmpeg \
                         --with-midi \
                         --with-taglib \
                         --with-portmixer")
Ejemplo n.º 5
0
def setup():
    pisitools.dosed("configure.ac", "-O3", "")
    shelltools.export("CPPFLAGS", get.CXXFLAGS())

    shelltools.system("./autogen.sh")
    autotools.configure("--disable-static \
                         --enable-glib")
Ejemplo n.º 6
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()
Ejemplo n.º 7
0
def setup():
    shelltools.export("CFLAGS", "%s -D_GNU_SOURCE -fPIC" % get.CFLAGS())

    for i in ["dhclient.conf.5", "dhclient.leases.5", "dhclient-script.8", "dhclient.8"]:
        pisitools.dosed("client/%s" % i, "CLIENTBINDIR", "/sbin")
        pisitools.dosed("client/%s" % i, "RUNDIR", "/var/run")
        pisitools.dosed("client/%s" % i, "DBDIR", "/var/lib/dhcpd")
        pisitools.dosed("client/%s" % i, "ETCDIR", "/etc/dhcp")

    for i in ["dhcpd.conf.5", "dhcpd.leases.5", "dhcpd.8"]:
        pisitools.dosed("server/%s" % i, "CLIENTBINDIR", "/sbin")
        pisitools.dosed("server/%s" % i, "RUNDIR", "/var/run")
        pisitools.dosed("server/%s" % i, "DBDIR", "/var/lib/dhcpd")
        pisitools.dosed("server/%s" % i, "ETCDIR", "/etc/dhcp")

    pisitools.dosed("client/scripts/linux", "/etc/dhclient-exit-hooks", "/etc/dhcp/dhclient-exit-hooks")
    pisitools.dosed("client/scripts/linux", "/etc/dhclient-enter-hooks", "/etc/dhcp/dhclient-enter-hooks")

    autotools.autoreconf("-vfi")
    autotools.configure("--with-srv-lease-file=/var/lib/dhcpd/dhcpd.leases \
                         --with-srv6-lease-file=/var/lib/dhcpd/dhcpd6.leases \
                         --with-cli-lease-file=/var/lib/dhclient/dhclient.leases \
                         --with-cli6-lease-file=/var/lib/dhclient/dhclient6.leases \
                         --with-srv-pid-file=/var/run/dhcpd.pid \
                         --with-srv6-pid-file=/var/run/dhcpd6.pid \
                         --with-cli-pid-file=/var/run/dhclient.pid \
                         --with-cli6-pid-file=/var/run/dhclient6.pid \
                         --with-relay-pid-file=/var/run/dhcrelay.pid \
                         --with-ldap \
                         --with-ldapcrypto")
Ejemplo n.º 8
0
def setup():
    crosstools.prepare()

    # Build binutils with LD_SYMBOLIC_FUNCTIONS=1 and reduce PLT relocations in libfd.so by 84%.
    shelltools.export("LD_SYMBOLIC_FUNCTIONS", "1")

    shelltools.system('AR=ar AS=as ./configure \
                       --prefix=/%(defaultprefixDIR)s \
                       --mandir=/%(manDIR)s \
                       --infodir=/%(infoDIR)s \
                       --datadir=/%(dataDIR)s \
                       --sysconfdir=/%(sysconfDIR)s \
                       --localstatedir=/%(localstateDIR)s \
                       --libexecdir=/%(libexecDIR)s \
                       --build=%(build)s \
                       --host=%(host)s \
                       --target=%(target)s \
                       --disable-nls \
                       --disable-werror \
                       --enable-shared \
                       --with-pkgversion="Pardus Linux for ARM" \
                       --with-bugurl=http://bugs.pardus.org.tr/' %
                       crosstools.environment)

    crosstools.make("configure-host")
Ejemplo n.º 9
0
def setup():
    shelltools.export("CFLAGS","%s -fpie" % get.CFLAGS())
    shelltools.export("LDFLAGS","%s -pie" % get.LDFLAGS())

    pisitools.dosed("pathnames.h", "/usr/X11R6/bin/xauth", r"/usr/bin/xauth")
    pisitools.dosed("sshd_config", "(?m)^(^#Protocol ).*", r"Protocol 2")
    pisitools.dosed("sshd_config", "(?m)^(^#UsePAM ).*", r"UsePAM yes")
    pisitools.dosed("sshd_config", "(?m)^(^#PasswordAuthentication ).*", r"PasswordAuthentication no")
    pisitools.dosed("sshd_config", "(?m)^(^#X11Forwarding ).*", r"X11Forwarding yes")
    pisitools.dosed("sshd_config", "(?m)^(^#UseDNS ).*", r"UseDNS no")
    pisitools.dosed("sshd_config", "(?m)^(^#PermitRootLogin ).*", r"PermitRootLogin no")
    autotools.autoreconf("-fi")

    autotools.configure("--sysconfdir=/etc/ssh \
                         --disable-strip \
                         --libexecdir=/usr/lib/misc \
                         --datadir=/usr/share/openssh \
                         --with-privsep-path=/var/empty \
                         --with-privsep-user=sshd \
                         --with-md5-passwords \
                         --without-kerberos5 \
                         --with-tcp-wrappers \
                         --without-skey \
                         --without-opensc \
                         --with-pam \
                         --with-consolekit")
Ejemplo n.º 10
0
def install():
    shelltools.export("GOROOT_FINAL", "/usr/lib/go")
    shelltools.cd("%s/go-go1.6.3" % get.workDIR())

    pisitools.dodir("/usr/lib/go")
    shelltools.system("cp -rp api bin doc lib pkg src  %s/usr/lib/go" % get.installDIR())
    shelltools.system("chown -R  root:root %s/usr" % get.installDIR())

    pisitools.dosym("/usr/lib/go/bin/go", "/usr/bin/go")
    pisitools.dosym("/usr/lib/go/bin/gofmt", "/usr/bin/gofmt")

    pisitools.dosym("/usr/lib/go/doc", "/usr/share/doc/%s/doc" % get.srcNAME())
    pisitools.dosym("/usr/lib/go/api", "/usr/share/doc/%s/api" % get.srcNAME())

    shelltools.system("cp -a misc  %s/usr/lib/go" % get.installDIR())

    pisitools.removeDir("/usr/lib/go/pkg/bootstrap")

    # remove testdata, which hit cave fix-linkage
    pisitools.remove("/usr/lib/go/src/debug/elf/testdata/gcc-386-freebsd-exec")
    pisitools.removeDir("/usr/lib/go/pkg/obj")

    # dirty fix thanks @erturk
    pisitools.removeDir("/usr/lib/go/pkg/linux_amd64")
    

    pisitools.dodoc("VERSION", "LICENSE", "PATENTS", "README*", "AUTHORS", "CONTRIBUTORS")
Ejemplo n.º 11
0
def setup():
    shelltools.export("CFLAGS", "%s -fPIC" % get.CFLAGS())
    for i in ["NEWS", "AUTHORS", "COPYING"]:
        shelltools.touch(i)

    autotools.autoreconf("-fi")
    autotools.configure("--disable-static --prefix=/opt/enet12")
Ejemplo n.º 12
0
def setup():
    shelltools.export("AUTOPOINT", "true")
    autotools.autoreconf("-fi")
    autotools.configure("--disable-static \
                         --with-ui \
                         --with-readline \
                         --enable-nls")
Ejemplo n.º 13
0
def setup():
    shelltools.export("AUTOPOINT", "true")
    autotools.autoreconf("-vfi")
    #shelltools.system("./autogen.sh --disable-gtk-doc --disable-docbook")

    options = '--with-package-name="GStreamer package for PisiLinux" \
               --with-package-origin="http://www.pisilinux.org" \
               --enable-nls \
               --disable-dependency-tracking \
               --disable-examples \
               --disable-tests \
               --disable-failing-tests \
               --enable-introspection \
               --disable-static \
               --disable-rpath \
               --disable-valgrind \
               --disable-gtk-doc'

    if get.buildTYPE() == "emul32":
        options += " --bindir=/usr/bin32 \
                     --libexecdir=/usr/libexec32 \
                     --disable-introspection"

        shelltools.export("PKG_CONFIG_PATH", "/usr/lib32/pkgconfig")

    autotools.configure(options)
Ejemplo n.º 14
0
def install():
    shelltools.export("PYTHON_DIR", "/usr/lib/%s" % get.curPYTHON())
    
    # install svn
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())

    pisitools.dobin("svn-config")

    # install swig-py
    autotools.rawInstall("DESTDIR=%s DISTUTIL_PARAM=--prefix=%s LD_LIBRARY_PATH=\"-L%s/usr/lib\"" % \
                        (get.installDIR(), get.installDIR(), get.installDIR()), "install-swig-py")

    # install swig-pl
    autotools.rawInstall("DESTDIR=%s" % get.installDIR(), "install-swig-pl")

    # Move py/c'into proper dir
    pisitools.domove("/usr/lib/svn-python/svn", "/usr/lib/%s/site-packages" % get.curPYTHON())
    pisitools.domove("/usr/lib/svn-python/libsvn", "/usr/lib/%s/site-packages" % get.curPYTHON())
    pisitools.removeDir("/usr/lib/svn-python")

    # some helper tools
    pisitools.insinto("/usr/bin/", "tools/backup/hot-backup.py", "svn-hot-backup")
    pisitools.insinto("/usr/bin/", "contrib/client-side/svn_load_dirs.pl", "svn-load-dirs")
    pisitools.insinto("/usr/bin/", "contrib/client-side/svnmerge.py", "svnmerge")
    shelltools.chmod("%s/usr/bin/svnmerge" % get.installDIR(), 0755)
 
    # Documentation and etc.
    pisitools.dodoc("BUGS", "COMMITTERS", "COPYING", "HACKING", "README", \
        "CHANGES", "tools/xslt/svnindex.css", "tools/xslt/svnindex.xsl")

    pisitools.insinto("%s/%s" % (get.docDIR(), get.srcTAG()), "contrib")

    perlmodules.fixLocalPod()
Ejemplo n.º 15
0
def setup():

    #temporary workaround for error: "'UINT64_C' was not declared in this scope"
    shelltools.export("CXXFLAGS", "%s -D__STDC_CONSTANT_MACROS" % get.CXXFLAGS())

    cmaketools.configure("-D CMAKE_BUILD_TYPE=Release \
                          -D CMAKE_INSTALL_PREFIX=/usr \
                          -D CMAKE_SKIP_RPATH=ON \
                           DESTDIR=%s  \
                          -DBUILD_EXAMPLES=1 \
                          -DBUILD_SWIG_PYTHON_SUPPORT=1 \
                          -DINSTALL_C_EXAMPLES=1 \
                          -DINSTALL_PYTHON_EXAMPLES=1 \
                          -DINSTALL_OCTAVE_EXAMPLES=1 \
                          -DWITH_FFMPEG=0 \
                          -DWITH_UNICAP=0 \
                          -DENABLE_OPENMP=0 \
                          -DNEW_PYTHIN_SUPPORT=1 \
                          -DOCTAVE_SUPPORT=0 \
                          -DUSE_MMX=1 \
                          -DUSE_SSE2=1 \
                          -DUSE_SSE3=0 \
                          -DUSE_SSE=1 \
                          -DWITH_1394=1 \
                          -DWITH_GSTREAMER=1 \
                          -DWITH_GTK=1 \
                          -DWITH_JASPER=1 \
                          -DWITH_JPEG=1 \
                          -DWITH_PNG=1 \
                          -DWITH_TIFF=1 \
                          -DWITH_V4L=1 \
                          -DWITH_XINE=1 \
                          -DCMAKE_SKIP_RPATH=1" % get.installDIR())
Ejemplo n.º 16
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")
Ejemplo n.º 17
0
def setup():
    shelltools.export("CFLAGS", "%s -DNDEBUG" % get.CFLAGS())

    autotools.autoreconf("-vif")
    autotools.configure("--enable-pic \
                         --disable-xcb \
                         --enable-glx-tls \
                         --disable-gl-osmesa \
                         --disable-egl \
                         --disable-glw \
                         --disable-glut \
                         --enable-gallium \
                         --enable-gallium-llvm \
                         --disable-gallium-svga \
                         --disable-gallium-i915 \
                         --disable-gallium-i965 \
                         --enable-gallium-radeon \
                         --disable-gallium-r600 \
                         --disable-gallium-nouveau \
                         --with-driver=dri \
                         --with-dri-driverdir=/usr/lib/xorg/modules/dri \
                         --with-dri-drivers=i810,i915,i965,mach64,r128,r200,r600,radeon,sis,tdfx \
                         --with-state-trackers=dri,glx")

    pisitools.dosed("configs/autoconf", "(PYTHON_FLAGS) = .*", r"\1 = -t")
Ejemplo n.º 18
0
def setup():

    shelltools.export("LC_ALL", "C")
    shelltools.system("sed -i 's|icu)|icu-i18n)|g' build/linux/system.gyp")
    shelltools.system("export -n CFLAGS CXXFLAGS")

    options = "\
               -Duse_system_expat=1 \
               -Duse_system_flac=1 \
               -Duse_system_harfbuzz=1 \
               -Duse_system_icu=0 \
               -Duse_system_jsoncpp=1 \
               -Duse_system_libevent=1 \
               -Duse_system_libjpeg=1 \
               -Duse_system_libpng=1 \
               -Duse_system_libvpx=0 \
               -Duse_system_libwebp=1 \
               -Duse_system_opus=1 \
               -Duse_system_snappy=1 \
               -Duse_system_speex=1 \
               -Duse_system_zlib=1 \
               -Duse_system_bzip2=1 \
               -Dicu_use_data_file_flag=0 \
               -Duse_gconf=0 \
               -Dclang=0 \
               -Dlinux_use_bundled_gold=0 \
               -Dlinux_use_bundled_binutils=0 \
               -Dlinux_use_gold_flags=0 \
               -Dhost_clang=0 \
               -Dclang_use_chrome_plugins=0 \
               -Dlinux_link_gsettings=1 \
               -Dlinux_link_kerberos=1 \
               -Dlinux_link_libbrlapi=1 \
               -Dlinux_link_libgps=1 \
               -Dlinux_link_libpci=1 \
               -Dlinux_link_libspeechd=1 \
               -Dlinux_link_pulseaudio=1 \
               -Dlibspeechd_h_prefix=speech-dispatcher/ \
               -Dwerror= \
               -Ddisable_fatal_linker_warnings=1 \
               -Ddisable_nacl=1 \
               -Ddisable_newlib_untar=1 \
               -Ddisable_pnacl=1 \
               -Ddisable_sse2=1 \
               -Ddisable_glibc=1 \
               -Dtarget_arch=x64 \
               -Dffmpeg_branding=Chromium \
               -Dproprietary_codecs=1 \
               -Dpython_arch=x64 \
               -Dlogging_like_official_build=1 \
               -Dlinux_sandbox_chrome_path=/usr/lib/chromium-browser/chromium-browser \
               -Dlinux_sandbox_path=/usr/lib/chromium-browser/chromium-sandbox \
               -Dgoogle_api_key=AIzaSyBINKL31ZYd8W5byPuwTXYK6cEyoceGh6Y \
               -Dgoogle_default_client_id=879512332529.apps.googleusercontent.com \
               -Dgoogle_default_client_secret=RmQPJJeL1cNJ8iETnoVD4X17 "

    shelltools.system("build/linux/unbundle/replace_gyp_files.py  %s" % options)

    shelltools.export("GYP_GENERATORS", "ninja")
    shelltools.system("build/gyp_chromium build/all.gyp --depth=. %s" % options)
Ejemplo n.º 19
0
def setup():
    # Remove local copies for system libs
    for directory in ["jpeg", "libpng", "zlib", "jasper", "expat"]:
        shelltools.unlinkDir(directory)

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

    autotools.autoreconf("-fi")

    autotools.configure("--disable-compile-inits \
                         --disable-gtk \
                         --enable-dynamic \
                         --enable-cups \
                         --with-system-libtiff \
                         --with-ijs \
                         --with-drivers=ALL \
                         --with-libpaper \
                         --with-jbig2dec \
                         --with-jasper \
                         --with-omni \
                         --with-x \
                         --with-fontpath=/usr/share/fonts:/usr/share/fonts/default/ghostscript:/usr/share/cups/fonts:/usr/share/fonts/TTF:/usr/share/fonts/Type1")

    shelltools.cd("ijs/")
    shelltools.system("./autogen.sh \
                       --prefix=/usr \
                       --mandir=/usr/share/man \
                       --disable-static \
                       --enable-shared")
Ejemplo n.º 20
0
def setup():
    shelltools.export("CFLAGS","") # Use FFmpeg's CFLAGS

    # Setup version.h
    shelltools.unlink("version.sh")
    shelltools.echo("version.sh",'echo "#define FFMPEG_VERSION \\"SVN-r%s\\"" > version.h' % Revision)
    shelltools.chmod("version.sh")

    # CPU thing is just used for CMOV detection
    autotools.rawConfigure("--cpu=i686 \
                            --prefix=/usr \
                            --mandir=/usr/share/man \
                            --enable-gpl \
                            --enable-pthreads \
                            --enable-pp \
                            --enable-liba52 \
                            --enable-x264 \
                            --enable-xvid \
                            --enable-libfaad \
                            --enable-libfaac \
                            --enable-libvorbis \
                            --enable-libmp3lame \
                            --enable-libogg \
                            --enable-libamr-nb \
                            --enable-libamr-wb \
                            --enable-dc1394 \
                            --enable-libtheora \
                            --enable-shared \
                            --enable-x11grab \
                            --enable-libgsm \
                            --disable-static \
                            --disable-debug")
Ejemplo n.º 21
0
def install():
    shelltools.export("ARCH", "")
    autotools.rawInstall('EXTRA_KLIBCAFLAGS="-Wa,--noexecstack" \
                          EXTRA_KLIBCLDFLAGS="-z,noexecstack" \
                          HOSTCC="%s" CC="%s" \
                          KLIBCARCH=i386 \
                          KLIBCASMARCH=x86 \
                          libdir=/usr/lib \
                          SHLIBDIR=/lib \
                          mandir=/usr/share/man \
                          INSTALLROOT="%s" \
                          INSTALLDIR=/usr/lib/klibc' % (get.CC(), get.CC(), get.installDIR()))

    asmSrcDir = "linux/arch/x86/include/asm"
    asmTargetDir = "/usr/lib/klibc/include/asm"

    # just a workaround for installer bug with 2.6.24, will make it sane later
    pisitools.remove(asmTargetDir)
    pisitools.dosym("asm-x86", asmTargetDir)

    # yet another new kernel compatibility workaround for 2.6.28 and above
    for f in shelltools.ls(asmSrcDir):
        pisitools.insinto(asmTargetDir, "%s/%s" % (asmSrcDir, f))

    fixperms("%s/usr/lib/klibc/include" % get.installDIR())

    for f in ["gunzip", "zcat"]:
        pisitools.remove("/usr/lib/klibc/bin/%s" % f)
        pisitools.dosym("gzip", "/usr/lib/klibc/bin/%s" % f)

    pisitools.dodoc("README", "usr/klibc/LICENSE", "usr/klibc/CAVEATS")

    for f in docs:
        pisitools.newdoc(f, docs[f])
Ejemplo n.º 22
0
def setup():
    shelltools.system("sed -i 's/ memfd_create/ qemu_memfd_create/' util/memfd.c")
    
    # disable fdt until dtc is in repo
    # pisitools.dosed("configure", 'fdt="yes"', 'fdt="no"')

    shelltools.export("CFLAGS", cflags)
    shelltools.export("LDFLAGS", extraldflags)

    # different build dir setups are not supported yet, so we build kvm by hand for now
    printfancy("configuring kvm")
    autotools.rawConfigure('%s \
                            --target-list="%s" \
                            ' % (cfgParamsCommon, targetListKvm))

    printfancy("building kvm")
    autotools.make("V=1 -j1 config-host.h %s" % buildldflags)
    autotools.make("V=1 %s" % buildldflags)
    shelltools.copy("x86_64-softmmu/qemu-system-x86_64", "qemu-kvm")
    autotools.make("clean")


    # kvmtest stuff is not in upstream tarball anymore, but they may put it back, be ready
    #printfancy("configuring kvmtest")
    #shelltools.cd(builddirkvmtest)
    #autotools.rawConfigure("--prefix=/usr \
    #                        --kerneldir=../../kernel")
    #shelltools.cd("../..")


    printfancy("configuring qemu")
    autotools.rawConfigure('%s \
                            --target-list="%s" \
                            --disable-kvm \
                            ' % (cfgParamsCommon, targetList))
Ejemplo n.º 23
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"')
Ejemplo n.º 24
0
def setup():
    shelltools.export("AUTOPOINT", "true")
    autotools.autoreconf("-vfi")
    
    options = '--with-package-name="GStreamer for PisiLinux" \
               --with-package-origin="http://www.pisilinux.org" \
               --enable-nls \
               --disable-dependency-tracking \
               --disable-examples \
               --enable-introspection \
               --disable-static \
               --disable-rpath \
               --disable-valgrind \
               --disable-gtk-doc'

    if get.buildTYPE() == "emul32":
        options += " --bindir=/usr/bin32 \
                     --libexecdir=/usr/libexec32 \
                     --disable-introspection"

        shelltools.export("PKG_CONFIG_PATH", "/usr/lib32/pkgconfig")

    autotools.configure(options)
    
    pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")    
Ejemplo n.º 25
0
def setup():
    shelltools.export("AUTOPOINT", "true")
    autotools.autoreconf("-fiv")
    autotools.configure("--disable-static \
                         --enable-nls \
                         --enable-startup-notification \
                         --docdir=/%s/%s" % (get.docDIR(), get.srcNAME()))
Ejemplo n.º 26
0
def setup():
    shelltools.export("LDFLAGS", "%s -lX11" % get.LDFLAGS())
    autotools.configure("--disable-dependency-tracking \
                        --enable-libnotify \
                        --enable-taglib")

    pisitools.dosed("libtool", " -shared ", " -Wl,--as-needed -shared ")
Ejemplo n.º 27
0
def setup():
    # The LANG vars aren't reset early enough so when sed tries to use [a-zA-Z], it borks
    shelltools.export("LC_ALL", "C")
    shelltools.export("LANG", "C")

    autotools.autoconf()
    autotools.configure()
Ejemplo n.º 28
0
def build():
    shelltools.export("R_HOME","")
    autotools.make()

    # build math library
    shelltools.cd("src/nmath/standalone")
    autotools.make("-j1")
Ejemplo n.º 29
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")
Ejemplo n.º 30
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)
Ejemplo n.º 31
0
def build():
    shelltools.export("ARCH", "i386")
    autotools.make("KSRC=/lib/modules/%s/source" % get.curKERNEL())
Ejemplo n.º 32
0
def setup():
    pisitools.dosed("include/ldap_defaults.h", "(#define LDAPI_SOCK).*",
                    '\\1 "/run/openldap/slapd.sock"')
    pisitools.dosed("servers/slapd/Makefile.in",
                    "(\$\(DESTDIR\))\$\(localstatedir\)(\/run)", r"\1\2")

    options = "--prefix=/usr \
               --enable-bdb \
               --enable-hdb=mod \
               --enable-slapd \
               --enable-passwd=mod \
               --enable-dnssrv=mod \
               --enable-ldap \
               --enable-meta=mod \
               --enable-monitor=mod \
               --enable-null=mod \
               --enable-shell=mod \
               --enable-rewrite \
               --enable-rlookups \
               --enable-aci \
               --enable-modules \
               --enable-cleartext \
               --enable-lmpasswd \
               --enable-spasswd \
               --enable-slapi \
               --enable-dyngroup \
               --enable-proxycache \
               --enable-perl \
               --enable-syslog \
               --enable-dynamic \
               --enable-local \
               --enable-proctitle \
               --enable-overlays=mod \
               --with-pic \
               --with-threads \
               --with-cyrus-sasl \
               --without-fetch \
               --enable-crypt \
               --enable-ipv6 \
               --enable-dynacl \
               --enable-shared \
               --disable-static \
               --disable-slp \
               --localstatedir=/var/lib"

    if get.buildTYPE() == "emul32":
        options = " --prefix=/emul32 \
                     --libdir=/usr/lib32 \
                     --libexecdir=/emul32/libexec \
                     --disable-bdb \
                     --disable-hdb \
                     --disable-wrappers \
                     --disable-spasswd \
                     --disable-perl \
                     --without-tls \
                     --without-cyrus-sasl"

    shelltools.export("AUTOMAKE", "/bin/true")
    autotools.autoreconf("-fi")
    autotools.configure(options)

    pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
Ejemplo n.º 33
0
#!/usr/bin/python
# -*- 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 pisitools
from pisi.actionsapi import shelltools
from pisi.actionsapi import get

WorkDir = "%s-%s-nolibs-src" % (get.srcNAME(), get.srcVERSION())

shelltools.export("JAVA_HOME", "/opt/sun-jdk")


def build():
    shelltools.system("ant")


def install():
    pisitools.insinto("/usr/share/java", "dagitim/jar/*")
    pisitools.dosym("zemberek-az-%s.jar" % get.srcVERSION(),
                    "/usr/share/java/zemberek-az.jar")
    pisitools.dosym("zemberek-cekirdek-%s.jar" % get.srcVERSION(),
                    "/usr/share/java/zemberek-cekirdek.jar")
    pisitools.dosym("zemberek-demo-%s.jar" % get.srcVERSION(),
                    "/usr/share/java/zemberek-demo.jar")
    pisitools.dosym("zemberek-tk-%s.jar" % get.srcVERSION(),
                    "/usr/share/java/zemberek-tk.jar")
    pisitools.dosym("zemberek-tr-%s.jar" % get.srcVERSION(),
Ejemplo n.º 34
0
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 2.
# See the file http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt

from pisi.actionsapi import shelltools
from pisi.actionsapi import get
from pisi.actionsapi import kde4
from pisi.actionsapi import pisitools

shelltools.export("HOME", get.workDIR())


def setup():
    kde4.configure()


def build():
    kde4.make()


def install():
    kde4.install()

    pisitools.dodoc("ChangeLog", "COPYING")
Ejemplo n.º 35
0
# -*- coding: utf-8 -*-
#
# Copyleft 2012 Pardus ANKA Community
# Copyright 2005-2011 TUBITAK/UEAKE
# Licensed under the GNU General Public License, version 2.
# See the file http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt

from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
from pisi.actionsapi import get

WorkDir = "%s/%s" % (get.ARCH(), get.srcNAME())
BASEDIR = "/usr/share/java/zekr"

shelltools.export("JAVAC", "/opt/sun-jdk/bin/javac")
shelltools.export("JAVA_HOME", "/opt/sun-jdk")


def setup():
    shelltools.system("ant clean")


def build():
    shelltools.system("ant")


def install():
    pisitools.insinto(BASEDIR, "*")
    pisitools.dosym("%s/zekr.sh" % BASEDIR, "/usr/bin/zekr")
Ejemplo n.º 36
0
def build():
    shelltools.export("TARGET", "Linux")
    shelltools.export("CFG", "release")
    shelltools.export("LD_LIBRARY_PATH", "%s/%s/bin/linux" % (get.workDIR(),get.srcDIR()))
    autotools.make("-j1")
Ejemplo n.º 37
0
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright 2011 TUBITAK/UEKAE
# Licensed under the GNU General Public License, version 2.
# See the file http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt

from pisi.actionsapi import autotools
from pisi.actionsapi import shelltools
from pisi.actionsapi import pisitools
from pisi.actionsapi import get

WorkDir = "ogdi-3.2.0.beta2"

shelltools.export("TOPDIR", "%s/%s" % (get.workDIR(), WorkDir))

def setup():
    autotools.configure('--with-zlib \
                         --with-projlib="-L/usr/lib -lproj" \
                         --with-expat')

def build():
    shelltools.export("TARGET", "Linux")
    shelltools.export("CFG", "release")
    shelltools.export("LD_LIBRARY_PATH", "%s/%s/bin/linux" % (get.workDIR(),get.srcDIR()))
    autotools.make("-j1")

def install():
    pisitools.dolib_so("bin/Linux/*.so")
    for i in ["gltpd", "ogdi_import", "ogdi_info"]:
        pisitools.dobin("bin/Linux/%s" % i)
Ejemplo n.º 38
0
# 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 = "mozilla-release"
ObjDir = "build"
locales = "az bs ca  da  de  el  en-US en-GB en-ZA  es-AR  es-CL  es-ES  fi  fr  hr  hu  it  lt nl  pl  pt-BR  pt-PT  ro  ru  sr  sv-SE  tr  uk".split(
)
xpidir = "%s/xpi" % get.workDIR()
arch = get.ARCH()
ver = ".".join(get.srcVERSION().split(".")[:3])

shelltools.export("SHELL", "/bin/sh")


def setup():
    # Google API key
    shelltools.echo("google_api_key",
                    "AIzaSyBINKL31ZYd8W5byPuwTXYK6cEyoceGh6Y")
    pisitools.dosed(".mozconfig", "%%PWD%%", get.curDIR())
    pisitools.dosed(".mozconfig", "%%FILE%%", "google_api_key")
    pisitools.dosed(".mozconfig", "##JOBCOUNT##", get.makeJOBS())

    # LOCALE
    shelltools.system("rm -rf langpack-ff/*/browser/defaults")
    if not shelltools.isDirectory(xpidir): shelltools.makedirs(xpidir)
    for locale in locales:
        shelltools.system(
Ejemplo n.º 39
0
#!/usr/bin/python
# -*- 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 shelltools
from pisi.actionsapi import pisitools
from pisi.actionsapi import kde4
from pisi.actionsapi import get

shelltools.export("JAVA_HOME", "/usr/lib/jvm/java-7-openjdk")


def setup():
    kde4.configure("-DBUILD_csharp=OFF \
                    -DCMAKE_BUILD_TYPE=Release \
                    -DENABLE_KROSSFALCON=OFF \
                    -DENABLE_PHP-QT=ON \
                    -DKDE4_BUILD_TESTS=OFF \
                    -DBUILD_ruby=OFF \
                    -DPYTHON_EXECUTABLE=/usr/bin/python \
                    -DRUBY_SITE_LIB_DIR=/usr/lib/ruby/site_ruby/2.2.0 \
                    -DRUBY_SITE_ARCH_DIR=/usr/lib/ruby/site_ruby/2.2.0/x86_64-linux"
                   )


def build():
    kde4.make()

Ejemplo n.º 40
0
def build():
    shelltools.export("SYSSRC", "/lib/modules/%s/source" % get.curKERNEL())
    shelltools.cd("usr/src/nv")

    autotools.make("module")
Ejemplo n.º 41
0
def build():
    shelltools.export("VARTEXFONTS", get.curDIR())

    shelltools.system("latex --interaction=batchmode ./svninfo.ins")
    shelltools.system("texi2dvi -q -c --language=latex ./svninfo.dtx")
    autotools.make("-j1")
Ejemplo n.º 42
0
#!/usr/bin/python
# -*- 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
from pisi.actionsapi import pythonmodules

shelltools.export("JOBS", get.makeJOBS().replace("-j", ""))
shelltools.export("LDFLAGS", "%s -Wl,--as-needed" % get.LDFLAGS())


def setup():
    shelltools.system("./bootstrap.py")
    shelltools.system("python3 waf configure --prefix=/usr \
                                            --confdir=/etc/mpv \
                                            --enable-dvb \
                                            --enable-cdda \
                                            --enable-dvdnav \
                                            --enable-libarchive \
                                            --enable-libmpv-shared")


def build():
    shelltools.system("python3 waf build -v")

Ejemplo n.º 43
0
def setup():

    shelltools.export("LC_ALL", "C")
    shelltools.system("sed -i 's|icu)|icu-i18n)|g' build/linux/system.gyp")
    shelltools.system("export -n CFLAGS CXXFLAGS")

    
    options = "\
               -Duse_system_expat=1 \
               -Duse_system_flac=1 \
               -Duse_system_harfbuzz=1 \
               -Duse_system_icu=0 \
               -Duse_system_jsoncpp=1 \
               -Duse_system_libevent=1 \
               -Duse_system_libjpeg=1 \
               -Duse_system_libpng=1 \
               -Duse_system_libvpx=0 \
               -Duse_system_libwebp=1 \
               -Duse_system_opus=1 \
               -Duse_system_snappy=1 \
               -Duse_system_speex=1 \
               -Duse_system_zlib=1 \
               -Duse_system_bzip2=1 \
               -Dicu_use_data_file_flag=0 \
               -Duse_gconf=0 \
               -Dclang=0 \
               -Dlinux_use_bundled_gold=0 \
               -Dlinux_use_bundled_binutils=0 \
               -Dlinux_use_gold_flags=0 \
               -Dhost_clang=0 \
               -Dclang_use_chrome_plugins=0 \
               -Dlinux_link_gsettings=1 \
               -Dlinux_link_kerberos=1 \
               -Dlinux_link_libbrlapi=1 \
               -Dlinux_link_libgps=1 \
               -Dlinux_link_libpci=1 \
               -Dlinux_link_libspeechd=1 \
               -Dlinux_link_pulseaudio=1 \
               -Dlibspeechd_h_prefix=speech-dispatcher/ \
               -Dwerror= \
               -Ddisable_fatal_linker_warnings=1 \
               -Ddisable_nacl=1 \
               -Ddisable_newlib_untar=1 \
               -Ddisable_pnacl=1 \
               -Ddisable_sse2=1 \
               -Ddisable_glibc=1 \
               -Dtarget_arch=x64 \
               -Dffmpeg_branding=Chromium \
               -Dproprietary_codecs=1 \
               -Dpython_arch=x64 \
               -Dlogging_like_official_build=1 \
               -Dlinux_sandbox_chrome_path=/usr/lib/chromium-browser/chromium-browser \
               -Dlinux_sandbox_path=/usr/lib/chromium-browser/chromium-sandbox \
               -Dusb_ids_path=/usr/share/misc/usb.ids \
               -Dgoogle_api_key=AIzaSyBINKL31ZYd8W5byPuwTXYK6cEyoceGh6Y \
               -Dgoogle_default_client_id=879512332529.apps.googleusercontent.com \
               -Dgoogle_default_client_secret=RmQPJJeL1cNJ8iETnoVD4X17 "
   
    shelltools.system("build/linux/unbundle/replace_gyp_files.py  %s" % options)
   
    shelltools.export("GYP_GENERATORS","ninja")
    shelltools.system("build/gyp_chromium build/all.gyp --depth=.  %s" % options)
Ejemplo n.º 44
0
def setup():
    shelltools.export("DEFS", "NO_ASM")
    autotools.configure("--exec-prefix=/")
Ejemplo n.º 45
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)
Ejemplo n.º 46
0
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyleft 2012 Pardus ANKA Community
# Copyright 2005-2011 TUBITAK/UEAKE
# Licensed under the GNU General Public License, version 2.
# See the file http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt

from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
from pisi.actionsapi import get

shelltools.export("LC_ALL", "POSIX")


def setup():
    pisitools.dosed("doc/screen.1", "/usr/local/etc/screenrc", "/etc/screenrc")
    pisitools.dosed("doc/screen.1", "/usr/local/screens", "/var/run/screen")
    pisitools.dosed("doc/screen.1", "/local/etc/screenrc", "/etc/screenrc")
    pisitools.dosed("doc/screen.1", "/etc/utmp", "/var/run/utmp")
    pisitools.dosed("doc/screen.1", "/local/screens/S-", "/var/run/screen/S-")

    # Allow for more rendition (color/attribute) changes in status bars
    pisitools.dosed("screen.c", "#define MAX_WINMSG_REND 16",
                    "#define MAX_WINMSG_REND 64")

    shelltools.export(
        "CFLAGS", "%s -DPTYMODE=0620 -DPTYGROUP=5 -DUSE_PAM" % get.CFLAGS())
    shelltools.export(
        "CXXFLAGS",
Ejemplo n.º 47
0
def build():
    shelltools.export("LD_LIBRARY_PATH",
                      "%s/lib:%s" % (get.curDIR(), get.ENV("LD_LIBRARY_PATH")))
    qt5.make()
Ejemplo n.º 48
0
#
# Licensed under the GNU General Public License, version 2.
# See the file http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt

from pisi.actionsapi import autotools
from pisi.actionsapi import libtools
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
from pisi.actionsapi import get

#~ WorkDir="%s-%s" % (get.srcNAME(), get.srcVERSION().replace("_", "-").upper())

BINDDIR = "/var/named"
CHROOT = "%s/chroot" % BINDDIR

shelltools.export("CPPFLAGS", "%s -DDIG_SIGCHASE" % get.CXXFLAGS())


def setup():
    shelltools.makedirs("m4")
    # Fix PATHs in manpages
    pisitools.dosed("bin/named/named.8", "/etc/named.conf",
                    "/etc/bind/named.conf")
    pisitools.dosed("bin/check/named-checkconf.8", "/etc/named.conf",
                    "/etc/bind/named.conf")
    pisitools.dosed("bin/rndc/rndc.8", "/etc/rndc.conf", "/etc/bind/rndc.conf")
    pisitools.dosed("bin/rndc/rndc.8", "/etc/rndc.key", "/etc/bind/rndc.key")

    # Adjust version
    pisitools.dosed("version", "^RELEASEVER=.*$", "RELEASEVER=Pisi Linux-1.0")
Ejemplo n.º 49
0
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/copyleft/gpl.txt.

from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
from pisi.actionsapi import get

shelltools.export("AUTOPOINT", "true")


def setup():
    autotools.autoreconf("-vif")
    autotools.configure("--disable-static")


def build():
    autotools.make()


def install():
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())

    pisitools.dodoc("AUTHORS", "ChangeLog", "LIMITS", "NEWS", "README", "TODO",
                    "COPYING")
Ejemplo n.º 50
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")

    vars = {
        "PISILINUX_CC":
        get.CC() + (" -m32" if get.buildTYPE() == "emul32" else ""),
        "PISILINUX_CXX":
        get.CXX() + (" -m32" if get.buildTYPE() == "emul32" else ""),
        "PISILINUX_CFLAGS":
        filteredCFLAGS + (" -m32" if get.buildTYPE() == "emul32" else ""),
        "PISILINUX_LDFLAGS":
        get.LDFLAGS() + (" -m32" if get.buildTYPE() == "emul32" else "")
    }

    for k, v in vars.items():
        pisitools.dosed("mkspecs/common/g++-base.conf", k, v)
        pisitools.dosed("mkspecs/common/g++-unix.conf", k, v)

    shelltools.export("CFLAGS", filteredCFLAGS)
    shelltools.export("CXXFLAGS", filteredCXXFLAGS)
    #check that dosed commands without releated patches
    pisitools.dosed("mkspecs/common/gcc-base-unix.conf", "\-Wl,\-rpath,")
    pisitools.dosed("mkspecs/common/gcc-base.conf", "\-O2", filteredCFLAGS)
    pisitools.dosed("mkspecs/common/gcc-base.conf", "^(QMAKE_LFLAGS\s+\+=)",
                    r"\1 %s" % get.LDFLAGS())

    if not get.buildTYPE() == "emul32":
        #-no-pch makes build ccache-friendly
        options = "-v -confirm-license -opensource \
                            -no-rpath \
                            -no-use-gold-linker\
                            -prefix %s \
                            -bindir %s \
                            -headerdir %s \
                            -archdatadir %s\
                            -docdir %s \
                            -plugindir %s \
                            -importdir %s \
                            -qmldir %s \
                            -datadir %s \
                            -testsdir %s \
                            -translationdir %s \
                            -sysconfdir %s \
                            -examplesdir %s \
                            -libdir %s \
                            -system-harfbuzz \
                            -system-sqlite \
                            -openssl-linked \
                            -nomake tests \
                            -nomake examples \
                            -optimized-qmake \
                            -reduce-relocations \
                            -dbus-linked \
                            -xcursor" % (
            qt5.prefix, bindirQt5, qt5.headerdir, qt5.archdatadir, qt5.docdir,
            qt5.plugindir, qt5.importdir, qt5.qmldir, qt5.datadir, qt5.testdir,
            qt5.translationdir, qt5.sysconfdir, qt5.examplesdir, qt5.libdir)
    else:
        pisitools.dosed("mkspecs/linux-g++-64/qmake.conf", "-m64", "-m32")
        shelltools.export("LDFLAGS", "-m32 %s" % get.LDFLAGS())
        options = "-no-pch -v -confirm-license -opensource -no-use-gold-linker\
                   -platform linux-g++-32 \
                   -xplatform linux-g++-32 \
                   -prefix /usr/lib32 \
                   -bindir /usr/lib32/qt5/bin \
                   -docdir /usr/share/doc/qt \
                   -headerdir /usr/lib32/qt5/include/qt5 \
                   -datadir /usr/share/qt5 \
                   -sysconfdir /etc/xdg \
                   -examplesdir /usr/share/doc/qt/examples \
                   -system-sqlite \
                   -openssl-linked \
                   -nomake examples \
                   -no-xcb \
                   -no-rpath \
                   -optimized-qmake \
                   -dbus-linked \
                   -system-harfbuzz \
                   -libdir /usr/lib32/ \
                   -archdatadir /usr/lib32/qt5/"

    autotools.rawConfigure(options)
Ejemplo n.º 51
0
def build():
    # fix unused direct dependency analysis
    shelltools.export(
        "LDSHARED",
        "x86_64-pc-linux-gnu-gcc -Wl,-O1,--as-needed -shared -lbz2 -lpthread")
    pythonmodules.compile(pyVer="3")
Ejemplo n.º 52
0
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 2.
# See the file http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt

from pisi.actionsapi import shelltools
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import get

shelltools.export("CFLAGS", "%s -fvisibility=hidden" % get.CFLAGS())
shelltools.export("LDFLAGS", "%s -fvisibility=hidden" % get.LDFLAGS())


def setup():
    autotools.configure("--enable-strict \
                         --disable-static \
                         --enable-fontconfig \
                         --enable-fribidi \
                         --enable-harfbuzz \
                         --disable-pixman \
                         --enable-buffer \
                         --disable-gl-sdl \
                         --enable-fb \
                         --enable-directfb \
                         --disable-wayland-shm \
                         --disable-wayland-egl \
                         --disable-sdl-primitive \
                         --disable-software-xcb \
                         --enable-software-xlib \
Ejemplo n.º 53
0
#!/usr/bin/python
# -*- 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 autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
from pisi.actionsapi import get

NoStrip = ["/usr/share/qemu"]

shelltools.export("LC_ALL", "C")

def setup():
    autotools.rawConfigure("--prefix=/usr \
			    --sysconfdir=/etc \
			    --localstatedir=/var \
			    --libexecdir=/usr/lib \
			    --python=/usr/bin/python \
			    --smbd=/usr/bin/smbd \
			    --with-gtkabi=3.0 \
			    --enable-modules \
			    --audio-drv-list='pa alsa sdl'")

def build():
    autotools.make()


Ejemplo n.º 54
0
def setup():
    options = "--with-gdktarget=x11 \
               --enable-xinerama \
               --with-xinput=yes \
               --enable-xkb \
               --enable-shm \
               --enable-silent-rules \
               --enable-introspection \
               --disable-papi \
               --disable-glibtest \
               --disable-gtk-doc-html"

    shelltools.export("CFLAGS",
                      get.CFLAGS().replace("-fomit-frame-pointer", ""))

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

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

    shelltools.system("./autogen.sh")
    autotools.configure(options)

    pisitools.dosed("libtool", " -shared ", " -Wl,--as-needed -shared ")
Ejemplo n.º 55
0
def build():
    autotools.make("-j1")

    # Building documentation needs escript from erlang package
    shelltools.export("PATH", "%s/bin:%s" % (get.curDIR(), os.environ.get("PATH")))
    autotools.make("-j1 docs")
Ejemplo n.º 56
0
def setup():
    shelltools.export("QT5LINK", "/usr/lib/qt5/bin")
    shelltools.export("QT5DIR", "/usr/lib/qt5")
    shelltools.export("CFLAGS", "%s -I/usr/lib/sqlite3.8.8.3" % get.CFLAGS())
    qt5.configure()
Ejemplo n.º 57
0
def setup():
    shelltools.export("DOCBOOKDIR", "/usr/share/xml/docbook/xsl-stylesheets")
    kde5.configure(j)
Ejemplo n.º 58
0
def install():
    shelltools.export("LDFLAGS", "")
    autotools.install("PYTHON_PREFIX=%s/usr" % get.installDIR())

    pisitools.dodoc("TODO", "README", "ChangeLog", "AUTHORS")
Ejemplo n.º 59
0
#!/usr/bin/python
# -*- 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 pythonmodules
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
from pisi.actionsapi import get

WorkDir = "nose-%s" % get.srcVERSION()

examples = "%s/%s/" % (get.docDIR(), get.srcNAME())

shelltools.export("PYTHONDONTWRITEBYTECODE", "1")


def setup():
    shelltools.system("sed -i -e 's:man/man1:share/man/man1:g' setup.py")


def build():
    pythonmodules.compile()


def install():
    pythonmodules.install()

    pisitools.dohtml("doc/*")
Ejemplo n.º 60
0
# -*- 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 shelltools
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import get

import os

WorkDir="otp_src_R%sB0%s" % (get.srcVERSION().split(".")[0], get.srcVERSION().split(".")[1])

# For finding javac, javadoc
shelltools.export("PATH", "%s:/usr/lib/jvm/java-7-openjdk/bin" % (os.environ.get("PATH")))

def setup():
    # Remove bundled zlib
    shelltools.unlink("erts/emulator/zlib/*.[ch]")

    shelltools.export("CFLAGS", "%s -fno-strict-aliasing" % get.CFLAGS())
    autotools.configure("--enable-shared-zlib \
                         --enable-dynamic-ssl-lib \
                         --enable-threads \
                         --enable-kernel-poll \
                         --enable-hipe \
                         --enable-smp-support \
                         --with-ssl ac_cv_prog_FOP=")

def build():