Exemple #1
0
def setup():
    autotools.autoreconf()
    autotools.configure("--disable-static \
                         --sysconfdir=/etc/aspell \
                         --enable-docdir=/usr/share/doc/%s" % get.srcNAME())

    inarytools.dosed("libtool", " -shared ", " -Wl,--as-needed -shared ")
Exemple #2
0
def setup():
    autotools.configure("--disable-static \
                         --disable-examples \
                         --enable-dependency-tracking")

    # for fix unused dependency
    inarytools.dosed("libtool", " -shared ", " -Wl,--as-needed -shared ")
Exemple #3
0
def setup():
    autotools.autoreconf("-vfi")
    autotools.configure("--prefix=/usr \
                         --disable-dependency-tracking \
                         --disable-static ")

    inarytools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
Exemple #4
0
def setup():
    autotools.autoreconf("-vif")
    autotools.configure("--enable-glx \
                         --enable-wayland \
                         --disable-static")
    
    inarytools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
Exemple #5
0
def setup():
    autotools.autoreconf("-vfi")
    autotools.configure('PYTHON=/usr/bin/python \
                         --enable-shared \
                         --disable-static \
                         --without-rpm \
                         --with-sys-location=Unknown \
                         --with-sys-contact=root@Unknown \
                         --with-default-snmp-version=3 \
                         --with-logfile=/var/log/snmpd.log \
                         --with-persistent-directory=/var/lib/net-snmp \
                         --with-mib-modules="%s" \
                         --enable-ipv6 \
                         --enable-ucd-snmp-compatibility \
                         --with-openssl \
                         --with-pic \
                         --enable-embedded-perl \
                         --with-libwrap \
                         --enable-as-needed \
                         --without-root-access \
                         --enable-mfd-rewrites \
                         --with-temp-file-pattern="/run/net-snmp/snmp-tmp-XXXXXX" \
                         --enable-local-smux' % MIBS)

    inarytools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
Exemple #6
0
def setup():
    inarytools.flags.add("-fPIC")
    inarytools.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=/emul32 \
                    --libdir=/usr/lib32 \
                    --with-optim='%s' \
                    " % get.CFLAGS()

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

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

    autotools.configure(options)
Exemple #7
0
def setup():
    inarytools.dosed("configure", "thunarx-1", "thunarx-2")

    autotools.configure("--disable-static \
                        --disable-dependency-tracking")

    inarytools.dosed("libtool", " -shared ", " -Wl,--as-needed -shared ")
Exemple #8
0
def setup():
    options = "--prefix=/usr             \
               --sysconfdir=/etc         \
               --enable-x11-backend \
               --enable-broadway-backend \
               --disable-wayland-backend \
              "

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

    if get.buildTYPE() == "emul32":
        options += " --libdir=/usr/lib32 \
                     --bindir=/usr/bin32 \
                     --sbindir=/usr/sbin32 \
                     --enable-colord=no \
                   "

        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())
        shelltools.export("LDFLAGS", "%s -m32" % get.LDFLAGS())
        shelltools.export("PKG_CONFIG_PATH", "/usr/lib32/pkgconfig")

        inarytools.dosed("configure.ac", "cups-config", "cups-config-32bit")

    autotools.autoreconf("-fiv")
    autotools.configure(options)

    inarytools.dosed("libtool", "( -shared )", r" -Wl,-O1,--as-needed\1")
Exemple #9
0
def setup():
    #autotools.autoreconf("-fi")
    autotools.configure("--without-webkit \
                         --disable-gtk-doc \
                         --disable-altivec \
                         --disable-alsatest \
                         --enable-python \
                         --enable-default-binary \
                         --enable-mmx \
                         --enable-sse \
                         --enable-mp \
                         --with-linux-input \
                         --with-poppler \
                         --with-libjpeg \
                         --with-libexif \
                         --with-librsvg \
                         --with-libtiff \
                         --with-libmng \
                         --with-libpng \
                         --disable-python \
                         --with-webkit \
                         --with-lcms \
                         --with-alsa \
                         --with-dbus \
                         --with-aa \
                         --with-x")

    # Add illustrator and other mime types
    inarytools.dosed(
        "desktop/gimp.desktop.in",
        "^MimeType=application/postscript;application/pdf;(.*)$",
        "MimeType=\\1;image/x-sun-raster;image/x-gray;image/x-pcx;image/jpg;image/x-bmp;image/pjpeg;image/x-png;application/illustrator;"
    )
Exemple #10
0
def setup():
    autotools.configure(
        "--with-package-name='Sulin gstreamer-plugins-base package' \
                         --with-package-origin='http://www.github.com/SulinOS/'"
    )

    inarytools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
Exemple #11
0
def setup():
    inarytools.dosed("config/override.m4", "2.64", "2.69")
    shelltools.system(
        'sed -i "/ac_cpp=/s/\$CPPFLAGS/\$CPPFLAGS -O2/" libiberty/configure')
    shelltools.makedirs("build")
    shelltools.cd("build")
    shelltools.export("PYTHON", "/usr/bin/python3")
    shelltools.system("../configure \
                       --prefix=/{0} \
                       --build={1} \
                       --mandir=/{2} \
                       --libdir=/{0}/lib \
                       --infodir=/{3} \
                       --datadir=/{4} \
                       --sysconfdir=/{5} \
                       --localstatedir=/{6} \
                       --libexecdir=/{7} \
                       --with-system-readline \
                       --with-separate-debug-dir=/usr/lib/debug \
                       --with-gdb-datadir=/usr/share/gdb \
                       --with-python=/usr/bin/{8} \
                       --with-pythondir=/usr/lib/{8}/site-packages \
                       --disable-nls \
                       --disable-rpath \
                       --with-expat".format(get.defaultprefixDIR(), get.HOST(),
                                            get.manDIR(), get.infoDIR(),
                                            get.dataDIR(), get.confDIR(),
                                            get.localstateDIR(),
                                            get.libexecDIR(), get.curPYTHON()))
Exemple #12
0
def setup():
    inarytools.dosed("configure.ac", "AM_CONFIG_HEADER", "AC_CONFIG_HEADERS")
    autotools.autoreconf("-fiv")

    autotools.configure()

    inarytools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
Exemple #13
0
def setup():
    shelltools.export("AUTOPOINT", "/bin/true")
    #    autotools.autoreconf("-vfi")
    autotools.configure("--disable-silent-rules \
                         --disable-static \
                         --disable-rpath \
                         --enable-perl \
                         --enable-ruby \
                         --enable-lua \
                         --enable-tcl \
                         --enable-python \
                         --with-rrd-default-font=/usr/share/fonts/dejavu/DejaVuSansMono.ttf \
                         --with-perl-options='installdirs=vendor destdir=%(DESTDIR)s' \
                         --with-ruby-options='sitedir=%(DESTDIR)s/usr/lib/ruby' \
                         " % {"DESTDIR": get.installDIR()})

    inarytools.dosed("Makefile", "^RRDDOCDIR.*$",
                     "RRDDOCDIR=${datadir}/doc/${PACKAGE}")
    inarytools.dosed("doc/Makefile", "^RRDDOCDIR.*$",
                     "RRDDOCDIR=${datadir}/doc/${PACKAGE}")
    inarytools.dosed("bindings/Makefile", "^RRDDOCDIR.*$",
                     "RRDDOCDIR=${datadir}/doc/${PACKAGE}")
    inarytools.dosed("examples/Makefile", "examplesdir = .*$",
                     "examplesdir = $(datadir)/doc/${PACKAGE}/examples")

    inarytools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
Exemple #14
0
def install():
    shelltools.system("make -C unix DESTDIR=%s install" % get.installDIR())

    # Collect private headers, 3rd party apps like Tile depends on this
    inarytools.dodir("/usr/include/tk-private/generic")
    inarytools.dodir("/usr/include/tk-private/unix")
    shelltools.copy("unix/*.h",
                    "%s/usr/include/tk-private/unix" % get.installDIR())
    shelltools.copy("generic/*.h",
                    "%s/usr/include/tk-private/generic" % get.installDIR())

    # Remove duplicated headers
    inarytools.remove("/usr/include/tk-private/generic/tk.h")
    inarytools.remove("/usr/include/tk-private/generic/tkDecls.h")
    inarytools.remove("/usr/include/tk-private/generic/tkPlatDecls.h")

    # Remove tmp path from tclConfig.sh
    inarytools.dosed("%s/usr/lib/tkConfig.sh" % get.installDIR(),
                     "%s/unix" % get.curDIR(), "/usr/lib/")
    inarytools.dosed("%s/usr/lib/tkConfig.sh" % get.installDIR(), get.curDIR(),
                     "/usr/include/tk-private")

    inarytools.dosym("wish8.6", "/usr/bin/wish")

    inarytools.dodoc("ChangeLog", "changes", "license.terms", "README.md")
Exemple #15
0
def setup():
    shelltools.export("CFLAGS", "%s -fpie" % get.CFLAGS())
    shelltools.export("LDFLAGS", "%s -pie" % get.LDFLAGS())

    #inarytools.dosed("pathnames.h", "/usr/X11R6/bin/xauth", r"/usr/bin/xauth")
    inarytools.dosed("sshd_config", "(?m)^(^#UsePAM ).*", r"UsePAM yes")
    inarytools.dosed("sshd_config", "(?m)^(^#PasswordAuthentication ).*",
                     r"PasswordAuthentication no")
    inarytools.dosed("sshd_config", "(?m)^(^#X11Forwarding ).*",
                     r"X11Forwarding yes")
    inarytools.dosed("sshd_config", "(?m)^(^#UseDNS ).*", r"UseDNS no")
    inarytools.dosed("sshd_config", "(?m)^(^#PermitRootLogin ).*",
                     r"PermitRootLogin no")

    autotools.autoreconf("-fi")

    # Kerberos support is a must, libedit is optional
    # Update configure parameters when both are ready
    autotools.configure("--sysconfdir=/etc/ssh \
                         --libexecdir=/usr/libexec/openssh \
                         --datadir=/usr/share/openssh \
                         --disable-strip \
                         --with-pam \
                         --with-libedit \
                         --with-kerberos5 \
                         --with-tcp-wrappers \
                         --with-md5-passwords \
                         --with-ipaddr-display \
                         --with-privsep-user=sshd \
                         --with-privsep-path=/var/empty \
                         --without-zlib-version-check \
                         --without-ssl-engine")
Exemple #16
0
def setup():

    #shelltools.system("sed -i -e '/SystemdService/d' obexd/src/org.bluez.obex.service")
    inarytools.dosed("obexd/src/org.bluez.obex.service",
                     "SystemdService",
                     deleteLine=True)
    autotools.autoreconf("-fi")
    autotools.configure("--prefix=/usr \
                         --sysconfdir=/etc \
                         --localstatedir=/var \
                         --libexecdir=/usr/libexec/ \
                         --enable-sixaxis \
                         --enable-experimental \
                         --disable-android \
                         --enable-datafiles \
                         --enable-optimization \
                         --enable-pie \
                         --enable-threads \
                         --enable-library \
                         --enable-tools \
                         --enable-manpages \
                         --enable-monitor \
                         --enable-udev \
                         --enable-test \
                         --disable-systemd")

    inarytools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
Exemple #17
0
def setup():
    autotools.autoreconf("-fi")
    autotools.configure("--disable-static \
                         --enable-theora \
                         --enable-speex")
    inarytools.dosed("src/tls.c", 'SSLeay_add_all_algorithms',
                     'OpenSSL_add_all_algorithms')
Exemple #18
0
def install():
    autotools.rawInstall("-j1 DESTDIR=%s%s" % (get.installDIR(), suffix))
    #autotools.rawInstall("DESTDIR=%s" % get.installDIR())

    # emul32 stop here
    if get.buildTYPE() == "emul32":
        shelltools.move("%s%s/lib32" % (get.installDIR(), suffix),
                        "%s/lib32" % (get.installDIR()))
        shelltools.move("%s%s/usr/lib32" % (get.installDIR(), suffix),
                        "%s/usr/lib32" % (get.installDIR()))
        for f in shelltools.ls("%s/usr/lib32/pkgconfig" % get.installDIR()):
            inarytools.dosed(
                "%s/usr/lib32/pkgconfig/%s" % (get.installDIR(), f), "emul32",
                "usr")
        return

    #add link
    inarytools.dosym("/sbin/udevadm", "/bin/udevadm")

    # Create vol_id and scsi_id symlinks in /sbin probably needed by multipath-tools
    inarytools.dosym("/lib/udev/scsi_id", "/sbin/scsi_id")

    # Create /sbin/systemd-udevd -> /sbin/udevd sysmlink, we need it for MUDUR, do not touch this sysmlink.
    # inarytools.dosym("/lib/systemd/systemd-udevd", "/sbin/systemd-udevd")

    # Create /etc/udev/rules.d for backward compatibility
    inarytools.dodir("/etc/udev/rules.d")
    inarytools.dodir("/run/udev")

    # Add man files
    inarytools.doman("man/*.5", "man/*.7", "man/*.8")

    inarytools.dodoc("README*", "NOTES")
Exemple #19
0
def install():
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())
    inarytools.dosed("%s/usr/bin/eatmonkey" % get.installDIR(), "/usr/local/",
                     "/usr/")
    inarytools.dosed("%s/usr/share/eatmonkey/eatmanager.rb" % get.installDIR(),
                     "/usr/local/", "/usr/")
    inarytools.dodoc("README", "COPYING", "ChangeLog", "AUTHORS")
Exemple #20
0
def setup():
    autotools.configure("--prefix=/usr \
                         --libexecdir=/usr/lib/xfce4 \
                         --disable-static \
                         --disable-gstreamer-thumbnailer")

    inarytools.dosed("libtool", " -shared ", " -Wl,--as-needed -shared ")
Exemple #21
0
def install():
    autotools.rawInstall('-j1 DESTDIR="%s"' % get.installDIR())
    if get.buildTYPE() == "_emul32":
        inarytools.domove("/_emul32/bin/icu-config", "/usr/bin",
                          "icu-config-32")
        inarytools.removeDir("/_emul32")
        for f in shelltools.ls("%s/usr/lib32/pkgconfig" % get.installDIR()):
            inarytools.dosed(
                "%s/usr/lib32/pkgconfig/%s" % (get.installDIR(), f), "_emul32",
                "usr")
        for i in [
                "libicudata.so", "libicui18n.so", "libicuio.so",
                "libicutest.so", "libicutu.so", "libicuuc.so"
        ]:
            inarytools.remove("/usr/lib32/" + i)
        inarytools.removeDir("/usr/lib32/icu")
        inarytools.removeDir("/usr/lib32/pkgconfig")
        return

    inarytools.dohtml("../*.html")
    inarytools.removeDir("/usr/bin")
    inarytools.removeDir("/usr/sbin")
    inarytools.removeDir("/usr/share")
    inarytools.removeDir("/usr/include")
    inarytools.removeDir("/usr/lib/icu")
    inarytools.removeDir("/usr/lib/pkgconfig")
    for i in [
            "libicudata.so", "libicui18n.so", "libicuio.so", "libicutest.so",
            "libicutu.so", "libicuuc.so"
    ]:
        inarytools.remove("/usr/lib/" + i)
Exemple #22
0
def setup():
    # ghostscript is better than dps
    # unstable fpx support disabled
    # trio is for old systems not providing vsnprintf
    autotools.configure("--enable-openmp \
                         --enable-shared \
                         --disable-static \
                         --disable-openmp \
                         --with-threads \
                         --with-modules \
                         --with-magick-plus-plus \
                         --with-perl \
                         --with-bzlib \
                         --without-dps \
                         --without-fpx \
                         --with-gslib \
                         --with-jbig \
                         --with-jpeg \
                         --with-jp2 \
                         --with-lcms \
                         --with-png \
                         --with-tiff \
                         --without-trio \
                         --with-ttf \
                         --with-wmf \
                         --with-fontpath=/usr/share/fonts \
                         --with-gs-font-dir=/usr/share/fonts/default/ghostscript \
                         --with-xml \
                         --with-zlib \
                         --with-x \
                         --with-quantum-depth=16")

    inarytools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
Exemple #23
0
def setup():
    autotools.configure("--disable-static                       \
                        --with-gtk3 \
                         --enable-introspection")

    # for fix unused dependency
    inarytools.dosed("libtool", " -shared ", " -Wl,--as-needed -shared ")
Exemple #24
0
def setup():
    shelltools.makedirs("build-gtk2")
    shelltools.makedirs("build-gtk3")
    autotools.autoreconf("-fi")

    shelltools.cd("build-gtk2")
    shelltools.system("../configure \
                         --prefix=/usr \
                         --sysconfdir=/etc \
                         --enable-debug \
                         --enable-udisks \
                         --enable-demo \
                         --with-gtk=2")

    inarytools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
    shelltools.cd("..")
    shelltools.cd("build-gtk3")
    shelltools.system("../configure \
                         --prefix=/usr \
                         --sysconfdir=/etc \
                         --enable-debug \
                         --enable-udisks \
                         --enable-demo \
                         --with-gtk=3")

    inarytools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
Exemple #25
0
def setup():
    inarytools.dosed("Configure", " $prefix/$libdir/engines ", " /%{_lib}/engines ")

    options = " --prefix=/usr \
                --libdir=lib \
                --openssldir=/etc/ssl \
                shared -Wa,--noexecstack \
                zlib enable-camellia enable-idea \
                enable-seed enable-rfc3779 enable-rc5 \
                enable-cms enable-md2 enable-mdc2 threads"

    if get.buildTYPE() == "_emul32":
        options += " --prefix=/_emul32 --libdir=lib32".format(get.installDIR())
        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)
         inarytools.dosed("Makefile", "^(SHARED_LDFLAGS=).*", "\\1 ${LDFLAGS}")
         inarytools.dosed("Makefile", "^(CFLAG=.*)", "\\1 ${CFLAGS}")

    else:
        options += " enable-ec_nistp_64_gcc_128"
        shelltools.system("./Configure linux-x86_64 %s" % options)
        inarytools.dosed("Makefile", "^(SHARED_LDFLAGS=).*", "\\1 ${LDFLAGS}")
        inarytools.dosed("Makefile", "^(CFLAG=.*)", "\\1 ${CFLAGS}")
Exemple #26
0
def setup():
    shelltools.system("./autogen.sh")
    autotools.autoreconf("-fi")
    autotools.configure("--prefix=/usr \
                         --libexecdir=/usr/lib")
    
    inarytools.dosed("libtool"," -shared ", " -Wl,--as-needed -shared ")
Exemple #27
0
def setup():
    inarytools.dosed("scripts/gen-api-gtkdoc.py", "python", "python3")
    autotools.configure("PYTHON=python3 \
	                     --prefix=/usr \
                         --enable-gtk3 \
						 --enable-gtkdoc-header")
    inarytools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
Exemple #28
0
def setup():
    autotools.autoreconf("-fi")

    autotools.configure("--disable-dependency-tracking \
                --disable-static --with-extra-only")

    inarytools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
Exemple #29
0
def setup():
    autotools.autoreconf("-fisv")
    inarytools.dosed("src/psl-make-dafsa", "env python", "env python3")

    autotools.configure("--disable-static")

    inarytools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
Exemple #30
0
def setup():
    autotools.autoreconf("-vfi")
    autotools.configure("--enable-shared \
                         --disable-static\
                         --with-x")

    inarytools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")