Ejemplo n.º 1
0
def setup():
    cache = [
        "ac_cv_func_malloc_0_nonnull=yes", "ac_cv_func_realloc_0_nonnull=yes"
    ]
    crosstools.configure("--bindir=/bin \
                         --enable-nls",
                         cache=cache)
Ejemplo n.º 2
0
def setup():
    shelltools.export("CCAS","%s -c -Wa,--noexecstack" % get.CC())
    crosstools.environment["CPPFLAGS"] = "-fexceptions"

    crosstools.configure("--enable-cxx \
                          --disable-mpbsd \
                          --localstatedir=/var/state/gmp")
Ejemplo n.º 3
0
def setup():
    autotools.autoreconf("-fi")
    autotools.configure("--with-distro=none \
                         --disable-monodoc \
                         --disable-static \
                         --disable-xmltoman \
                         --disable-doxygen-doc \
                         --disable-mono \
                         --disable-autoipd \
                         --disable-core-docs \
                         --disable-libdaemon \
                         --enable-dbus \
                         --enable-python-dbus \
                         --enable-gdbm \
                         --disable-compat-howl \
                         --disable-compat-libdns_sd \
                         --disable-pygtk \
                         --enable-shared \
                         --disable-qt3 \
                         --disable-qt4 \
                         --enable-gtk \
                         --enable-glib \
                         --enable-gobject \
                         --enable-python \
                         --enable-pygtk \
                         --localstatedir=/var \
                         --with-avahi-user=avahi \
                         --with-avahi-group=avahi \
                         --with-autoipd-user=avahi \
                         --with-autoipd-group=avahi \
                         --with-avahi-priv-access-group=avahi")
Ejemplo n.º 4
0
def setup():
    pisitools.dosed("libfaad/Makefile.am", "iquote ", "I")
    autotools.autoreconf("-vfi")

    autotools.configure("--without-xmms \
                         --with-drm \
                         --disable-static")
Ejemplo n.º 5
0
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-")

    autotools.environment["CFLAGS"] = "%(CFLAGS)s -DPTYMODE=0620 -DPTYGROUP=5 -DUSE_PAM" % autotools.environment
    autotools.environment["CXXFLAGS"] = "%(CXXFLAGS)s -DPTYMODE=0620 -DPTYGROUP=5 -DUSE_PAM" % autotools.environment

    autotools.autoconf()

    cache = [ "screen_cv_sys_bcopy_overlap=${screen_cv_sys_bcopy_overlap=no}",
              "screen_cv_sys_memcpy_overlap=${screen_cv_sys_memcpy_overlap=no}",
              "screen_cv_sys_memmove_overlap=${screen_cv_sys_memmove_overlap=no}",
              "screen_cv_sys_fifo_broken_impl=${screen_cv_sys_fifo_broken_impl=yes}",
              "screen_cv_sys_fifo_usable=${screen_cv_sys_fifo_usable=yes}",
              "screen_cv_sys_select_broken_retval=${screen_cv_sys_select_broken_retval=no}",
              "screen_cv_sys_sockets_nofs=${screen_cv_sys_sockets_nofs=no}",
              "screen_cv_sys_sockets_usable=${screen_cv_sys_sockets_usable=yes}",
              "screen_cv_sys_terminfo_used=${screen_cv_sys_terminfo_used=yes}" ]

    autotools.configure("--enable-pam \
                         --with-socket-dir=/var/run/screen \
                         --with-sys-screenrc=/etc/screenrc \
                         --enable-rxvt_osc \
                         --enable-colors256 \
                         --with-pty-mode=0620 \
                         --with-pty-group=5", cache=cache)
Ejemplo n.º 6
0
def setup():
    cache = [ "ac_cv_func_malloc_0_nonnull=yes",
              "ac_cv_func_calloc_0_nonnull=yes",
              "ac_cv_func_realloc_0_nonnull=yes" ]

    autotools.configure("--enable-malloc0returnsnull \
                         --disable-static", cache=cache)
Ejemplo n.º 7
0
def setup():
    cache = [
        "ac_cv_func_setpgrp_void=yes", "ac_cv_func_malloc_0_nonnull=yes",
        "ac_cv_func_realloc_0_nonnull=yes"
    ]

    crosstools.configure("--enable-nls", cache=cache)
Ejemplo n.º 8
0
def setup():
    shelltools.export("CFLAGS", "%(CFLAGS)s -DNCURSES -DNCURSES_MOUSE_VERSION" % autotools.environment)
    shelltools.export("CXXFLAGS", "%(CXXFLAGS)s -DNCURSES -DNCURSES_MOUSE_VERSION" % autotools.environment)

    autotools.configure("--libdir=/etc/lynx \
                         --enable-ipv6 \
                         --enable-widec \
                         --enable-cgi-links \
                         --enable-EXP_PERSISTENT_COOKIES \
                         --enable-prettysrc \
                         --enable-nls-fork \
                         --enable-file-upload \
                         --enable-read-eta \
                         --enable-libjs \
                         --enable-color-style \
                         --enable-scrollbar \
                         --enable-included-msgs \
                         --enable-8bit-toupper \
                         --enable-addrlist-page \
                         --enable-charset-choice \
                         --enable-default-colors \
                         --enable-externs \
                         --enable-internal-links \
                         --enable-justify-elts \
                         --enable-locale-charset \
                         --enable-nested-tables \
                         --enable-persistent-cookies \
                         --enable-source-cache \
                         --enable-warnings \
                         --with-screen=ncursesw \
                         --with-ssl \
                         --with-bzlib \
                         --with-zlib \
                         --enable-nls")
Ejemplo n.º 9
0
def setup():
    cache = [
        "ac_cv_lib_jpeg_jpeg_destroy_decompress=yes",
        "ac_cv_lib_jpeg_jpeg_simple_progression=yes",
        "LIBJPEG='-ljpeg'",
        "gio_can_sniff=yes",
    ]

    autotools.autoreconf("-fvi")
    autotools.configure(
        "--with-libjpeg \
                         --with-libtiff \
                         --with-libjasper\
                         --with-libpng \
                         --with-gdktarget=x11 \
                         --enable-xinerama \
                         --with-xinput=yes \
                         --enable-xkb \
                         --enable-shm \
                         --disable-introspection \
                         --with-included-loaders=png \
                         --disable-glibtest \
                         --x-includes=%(SysRoot)s/usr/include/X11 \
                         --x-libraries=%(SysRoot)s/usr/lib \
                         --with-gnu-ld \
                         --disable-cups \
                         "
        % autotools.environment,
        cache=cache,
    )
    # FIXME: --disable-cups will be fixed.
    pisitools.dosed("libtool", " -shared ", " -Wl,--as-needed -shared ")
Ejemplo n.º 10
0
def setup():
    cache = [ "am_cv_func_iconv_works=yes",
              "gl_cv_func_wcwidth_works=yes",
              "gt_cv_func_printf_posix=yes",
              "gt_cv_int_divbyzero_sigfpe=yes" ]

    # FIXME: optimization flags
    crosstools.environment["CFLAGS"] = "-O3 -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfpu=vfp -mfloat-abi=softfp -I%(SysRoot)s/usr/include" % crosstools.environment
    crosstools.environment["CXXFLAGS"] = "-O3 -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfpu=vfp -mfloat-abi=softfp -I%(SysRoot)s/usr/include" % crosstools.environment

    #crosstools.environment["CFLAGS"] = "%(CFLAGS)s -Dgcc_is_lint" % crosstools.environment
    #crosstools.environment["CXXFLAGS"] = "%(CXXFLAGS)s -Dgcc_is_lint" % crosstools.environment

    # Build with --without-included-gettext (will use that of glibc), as we
    # need preloadable_libintl.so for new help2man
    crosstools.autoreconf("-fiv")
    crosstools.configure("--disable-java \
                          --disable-csharp \
                          --without-included-gettext \
                          --with-included-libcroco \
                          --with-included-glib \
                          --with-included-libxml \
                          --without-emacs \
                          --disable-openmp \
                          --enable-nls \
                          --enable-shared \
                          --disable-rpath \
                          --disable-static", cache=cache)
Ejemplo n.º 11
0
def setup():
    autotools.autoreconf("-vif")
    autotools.configure("--enable-txt \
                         --enable-pdf \
                         --disable-ps \
                         --disable-html \
                         --with-x11docdir=%s" % x11docdir)
Ejemplo n.º 12
0
def setup():
    autotools.autoreconf("-fiv")

    # FIXME --enable-introspection=no will be removed after
    # programming.library.gobject-introspection is built properly.
    autotools.configure("--disable-gtk-doc \
                         --enable-introspection=no")
Ejemplo n.º 13
0
def setup():
    crosstools.configure("--enable-utf8 \
                          --enable-unicode-properties \
                          --with-link-size=2 \
                          --with-match-limit=10000000 \
                          --enable-newline-is-lf \
                          --disable-static")
Ejemplo n.º 14
0
def setup():
    autotools.autoreconf("-vfi")
    autotools.configure("--with-gnu-ld \
                         --disable-static \
                         --with-edje-cc=/usr/bin/edje_cc \
                         --with-eet-eet=/usr/bin/eet")
    pisitools.dosed("libtool", r"\s+(/usr/lib)", " %(SysRoot)s\\1" % autotools.environment)
Ejemplo n.º 15
0
def setup():
    crosstools.autoreconf("-fi")

    crosstools.configure("--localstatedir=/var \
                          --disable-api-docs \
                          --disable-html-docs \
                          --disable-static")
Ejemplo n.º 16
0
def setup():
    crosstools.autoreconf("-vif")

    crosstools.configure("--disable-static \
                          --disable-specs \
                          --with-xcb \
                          --enable-malloc0returnsnull")
Ejemplo n.º 17
0
def setup():
    autotools.environment[
        "CFLAGS"] = "%(CFLAGS)s -DNDEBUG" % autotools.environment

    shelltools.sym("../../../../gallium/drivers/nouveau/nouveau_class.h",
                   "src/mesa/drivers/dri/nouveau/nouveau_class.h")

    autotools.autoreconf("-vif")
    autotools.configure("--enable-pic \
                         --disable-xcb \
                         --disable-glx-tls \
                         --disable-gl-osmesa \
                         --disable-egl \
                         --disable-glw \
                         --disable-glut \
                         --disable-gallium \
                         --disable-gallium-nouveau \
                         --with-driver=dri \
                         --without-demos \
                         --with-dri-driverdir=/usr/lib/xorg/modules/dri \
                         --with-dri-drivers=swrast \
                         --with-state-trackers=dri,glx")

    pisitools.dosed("src/mesa/shader/slang/library/Makefile",
                    r"(^GLSL_CL\s*=).*", "\\1 $(TOP)/glsl-compile")
Ejemplo n.º 18
0
def setup():
    cache = [
        "ac_cv_file__dev_urandom=yes", "ac_cv_file__dev_random=yes",
        "ac_cv_file_/var/log/wtmp", "ac_cv_file_/var/run/utmp"
    ]
    autotools.autoreconf("-vif")

    autotools.configure("--disable-static \
                         --enable-unix-transport \
                         --enable-tcp-transport \
                         --enable-IPv6 \
                         --enable-local-transport \
                         --enable-secure-rpc \
                         --enable-xpm-logos \
                         --enable-dynamic-greeter \
                         --enable-xdm-auth \
                         --with-pam \
                         --with-xdmconfigdir=/etc/X11/xdm \
                         --with-default-vt=vt7 \
                         --with-config-type=ws \
                         --with-xft \
                         --with-wtmp_file=/var/log/wtmp \
                         --with-utmp_file=/var/run/utmp \
                         --with-random-device=/dev/urandom \
                         --with-pixmapdir=/usr/share/X11/xdm/pixmaps",
                        cache=cache)
Ejemplo n.º 19
0
def setup():
    autotools.configure("--with-distro=none \
                         --disable-monodoc \
                         --disable-static \
                         --disable-xmltoman \
                         --disable-mono \
                         --disable-qt3 \
                         --disable-qt4 \
                         --disable-doxygen-doc \
                         --disable-gtk \
                         --disable-pygtk \
                         --disable-gobject \
                         --disable-python \
                         --disable-python-dbus \
                         --disable-glib \
                         --enable-autoipd \
                         --enable-core-docs \
                         --enable-shared \
                         --enable-compat-howl \
                         --enable-compat-libdns_sd \
                         --localstatedir=/var \
                         --with-avahi-user=avahi \
                         --with-avahi-group=avahi \
                         --with-autoipd-user=avahi \
                         --with-autoipd-group=avahi \
                         --with-avahi-priv-access-group=avahi")

    # Less invasive anti-rpath hack if one wants to avoid auto*foo
    pisitools.dosed("libtool", "hardcode_into_libs=yes",
                    "hardcode_into_libs=no")
Ejemplo n.º 20
0
def setup():
    crosstools.autoreconf("-fi")
    crosstools.configure("--disable-static \
                          --disable-rpath \
                          --without-x \
                          --enable-cxx \
                          --with-pic")
Ejemplo n.º 21
0
def setup():
    autotools.autoreconf("-vif")
    autotools.configure("--enable-txt \
                         --enable-pdf \
                         --disable-ps \
                         --disable-html \
                         --with-x11docdir=%s" % x11docdir)
Ejemplo n.º 22
0
def setup():
    pisitools.dosed("libfaad/Makefile.am", "iquote ", "I")
    autotools.autoreconf("-vfi")

    autotools.configure("--without-xmms \
                         --with-drm \
                         --disable-static")
Ejemplo n.º 23
0
def setup():
    crosstools.environment["CXXFLAGS"] = ""
    crosstools.environment[
        "CFLAGS"] = "%s -fno-strict-aliasing" % crosstools.environment["CFLAGS"]

    pisitools.dosed("src/Makefile.in", "br2684", "")
    crosstools.configure()
Ejemplo n.º 24
0
def setup():
    cache = [
        "am_cv_func_iconv_works=yes", "gl_cv_func_wcwidth_works=yes",
        "gt_cv_func_printf_posix=yes", "gt_cv_int_divbyzero_sigfpe=yes"
    ]

    # FIXME: optimization flags
    crosstools.environment[
        "CFLAGS"] = "-O3 -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfpu=vfp -mfloat-abi=softfp -I%(SysRoot)s/usr/include" % crosstools.environment
    crosstools.environment[
        "CXXFLAGS"] = "-O3 -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfpu=vfp -mfloat-abi=softfp -I%(SysRoot)s/usr/include" % crosstools.environment

    #crosstools.environment["CFLAGS"] = "%(CFLAGS)s -Dgcc_is_lint" % crosstools.environment
    #crosstools.environment["CXXFLAGS"] = "%(CXXFLAGS)s -Dgcc_is_lint" % crosstools.environment

    # Build with --without-included-gettext (will use that of glibc), as we
    # need preloadable_libintl.so for new help2man
    crosstools.autoreconf("-fiv")
    crosstools.configure("--disable-java \
                          --disable-csharp \
                          --without-included-gettext \
                          --with-included-libcroco \
                          --with-included-glib \
                          --with-included-libxml \
                          --without-emacs \
                          --disable-openmp \
                          --enable-nls \
                          --enable-shared \
                          --disable-rpath \
                          --disable-static",
                         cache=cache)
Ejemplo n.º 25
0
def setup():
    cache = [
        "ac_cv_lib_jpeg_jpeg_destroy_decompress=yes",
        "ac_cv_lib_jpeg_jpeg_simple_progression=yes", "LIBJPEG='-ljpeg'",
        "gio_can_sniff=yes"
    ]

    autotools.autoreconf("-fvi")
    autotools.configure("--with-libjpeg \
                         --with-libtiff \
                         --with-libjasper\
                         --with-libpng \
                         --with-gdktarget=x11 \
                         --enable-xinerama \
                         --with-xinput=yes \
                         --enable-xkb \
                         --enable-shm \
                         --disable-introspection \
                         --with-included-loaders=png \
                         --disable-glibtest \
                         --x-includes=%(SysRoot)s/usr/include/X11 \
                         --x-libraries=%(SysRoot)s/usr/lib \
                         --with-gnu-ld \
                         --disable-cups \
                         " % autotools.environment,
                        cache=cache)
    # FIXME: --disable-cups will be fixed.
    pisitools.dosed("libtool", " -shared ", " -Wl,--as-needed -shared ")
Ejemplo n.º 26
0
def setup():
    autotools.autoreconf("-fi")
    autotools.configure("--exec-prefix=/usr \
                         --localstatedir=/var \
                         --disable-static \
                         --disable-docbook-docs \
                         --disable-gtk-doc \
                         --disable-dependency-tracking \
                         --disable-smbios \
                         --disable-console-kit \
                         --disable-policy-kit \
                         --disable-acl-management \
                         --disable-acpi-ibm \
                         --disable-parted \
                         --disable-sonypic \
                         --without-keymaps \
                         --without-dell-backlight \
                         --without-deprecated-keys \
                         --enable-acpi-acpid \
                         --enable-acpi-proc \
                         --enable-man-pages \
                         --enable-umount-helper \
                         --with-eject=/usr/bin/eject \
                         --with-hal-user=hal \
                         --with-hal-group=hal \
                         --with-udev-prefix=/lib \
                         --with-pci-ids=%(RootDir)s/usr/share/misc/pci.ids \
                         --with-usb-ids=%(RootDir)s/usr/share/misc/usb.ids" %
                        autotools.environment)

    # Disable rpath
    pisitools.dosed("libtool", "^hardcode_libdir_flag_spec=.*",
                    "hardcode_libdir_flag_spec=\"\"")
    pisitools.dosed("libtool", "^runpath_var=LD_RUN_PATH",
                    "runpath_var=DIE_RPATH_DIE")
Ejemplo n.º 27
0
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-")

    autotools.environment[
        "CFLAGS"] = "%(CFLAGS)s -DPTYMODE=0620 -DPTYGROUP=5 -DUSE_PAM" % autotools.environment
    autotools.environment[
        "CXXFLAGS"] = "%(CXXFLAGS)s -DPTYMODE=0620 -DPTYGROUP=5 -DUSE_PAM" % autotools.environment

    autotools.autoconf()

    cache = [
        "screen_cv_sys_bcopy_overlap=${screen_cv_sys_bcopy_overlap=no}",
        "screen_cv_sys_memcpy_overlap=${screen_cv_sys_memcpy_overlap=no}",
        "screen_cv_sys_memmove_overlap=${screen_cv_sys_memmove_overlap=no}",
        "screen_cv_sys_fifo_broken_impl=${screen_cv_sys_fifo_broken_impl=yes}",
        "screen_cv_sys_fifo_usable=${screen_cv_sys_fifo_usable=yes}",
        "screen_cv_sys_select_broken_retval=${screen_cv_sys_select_broken_retval=no}",
        "screen_cv_sys_sockets_nofs=${screen_cv_sys_sockets_nofs=no}",
        "screen_cv_sys_sockets_usable=${screen_cv_sys_sockets_usable=yes}",
        "screen_cv_sys_terminfo_used=${screen_cv_sys_terminfo_used=yes}"
    ]

    autotools.configure("--enable-pam \
                         --with-socket-dir=/var/run/screen \
                         --with-sys-screenrc=/etc/screenrc \
                         --enable-rxvt_osc \
                         --enable-colors256 \
                         --with-pty-mode=0620 \
                         --with-pty-group=5",
                        cache=cache)
Ejemplo n.º 28
0
def setup():
    # bad fix, sorry
    for dir in [".", "src"]:
        pisitools.dosed("%s/Makefile.in" % dir,
                        r"(program_transform_name|transform)\s*=.*", "\\1 =")

    autotools.configure("--enable-mcpplib --disable-static")
Ejemplo n.º 29
0
def setup():
    autotools.configure("--with-distro=none \
                         --disable-monodoc \
                         --disable-static \
                         --disable-xmltoman \
                         --disable-mono \
                         --disable-qt3 \
                         --disable-qt4 \
                         --disable-doxygen-doc \
                         --disable-gtk \
                         --disable-pygtk \
                         --disable-gobject \
                         --disable-python \
                         --disable-python-dbus \
                         --disable-glib \
                         --enable-autoipd \
                         --enable-core-docs \
                         --enable-shared \
                         --enable-compat-howl \
                         --enable-compat-libdns_sd \
                         --localstatedir=/var \
                         --with-avahi-user=avahi \
                         --with-avahi-group=avahi \
                         --with-autoipd-user=avahi \
                         --with-autoipd-group=avahi \
                         --with-avahi-priv-access-group=avahi")

    # Less invasive anti-rpath hack if one wants to avoid auto*foo
    pisitools.dosed("libtool", "hardcode_into_libs=yes", "hardcode_into_libs=no")
Ejemplo n.º 30
0
def setup():
    pisitools.dosed("test-suite/tests/popen.test", "sleep 999", "sleep 1")

    cache = [ "ac_cv_sys_restartable_syscalls=yes",
              "ac_cv_func_pthread_key_delete=yes",
              "glib_cv_sys_pthread_mutex_trylock_posix=yes",
              "glib_cv_sys_pthread_getspecific_posix=yes",
              "glib_cv_sys_pthread_cond_timedwait_posix=yes",
              "ac_cv_func_pthread_attr_getstack=yes" ]

    autotools.autoreconf("-vif")
    autotools.configure("--disable-error-on-warning \
                         --disable-static \
                         --enable-posix \
                         --enable-networking \
                         --enable-regex \
                         --enable-elisp \
                         --enable-nls \
                         --disable-rpath \
                         --with-threads \
                         --with-modules", cache=cache)

    # Put flags in front of the libs. Needed for --as-needed.
    replace = (r"(\\\$deplibs) (\\\$compiler_flags)", r"\2 \1")
    pisitools.dosed("libtool", *replace)
    pisitools.dosed("*/libtool", *replace)
Ejemplo n.º 31
0
def setup():
    crosstools.autoreconf("-fi")

    crosstools.configure("--localstatedir=/var \
                          --disable-api-docs \
                          --disable-html-docs \
                          --disable-static")
Ejemplo n.º 32
0
def setup():
    autotools.autoreconf("-fi")
    autotools.configure("--with-distro=none \
                         --disable-monodoc \
                         --disable-static \
                         --disable-xmltoman \
                         --disable-doxygen-doc \
                         --disable-mono \
                         --disable-autoipd \
                         --disable-core-docs \
                         --disable-libdaemon \
                         --enable-dbus \
                         --enable-python-dbus \
                         --enable-gdbm \
                         --disable-compat-howl \
                         --disable-compat-libdns_sd \
                         --disable-pygtk \
                         --enable-shared \
                         --disable-qt3 \
                         --disable-qt4 \
                         --enable-gtk \
                         --enable-glib \
                         --enable-gobject \
                         --enable-python \
                         --enable-pygtk \
                         --localstatedir=/var \
                         --with-avahi-user=avahi \
                         --with-avahi-group=avahi \
                         --with-autoipd-user=avahi \
                         --with-autoipd-group=avahi \
                         --with-avahi-priv-access-group=avahi")
Ejemplo n.º 33
0
def setup():
    # Speed up xkbcomp
    autotools.environment["CFLAGS"] = "%(CFLAGS)s -DHAVE_STRCASECMP" % autotools.environment

    for package in shelltools.ls("."):
        if package.startswith(SkipList):
            continue

        print "Configuring %s..." % package
        shelltools.cd(package)

        if package.startswith("xsm") or not shelltools.isFile("configure"):
            autotools.autoreconf("-vif")

        cache = [ "ac_cv_file__etc_X11_fontpath_d=yes",
                  "ac_cv_file__etc_man_conf=yes",
                  "ac_cv_func_malloc_0_nonnull=yes",
                  "ac_cv_func_calloc_0_nonnull=yes",
                  "ac_cv_func_realloc_0_nonnull=yes" ]

        args = "--disable-dependency-tracking \
                --disable-devel-docs \
                --with-cpp=/usr/bin/mcpp"

        if package.startswith('xfs'):
            args += " --with-default-font-path=/etc/X11/fontpath.d"

        autotools.configure("%s" % args, cache=cache)
        shelltools.cd("../")
Ejemplo n.º 34
0
def setup():
    cache = [ "ac_cv_file__dev_urandom=yes",
              "ac_cv_file__dev_random=yes",
              "ac_cv_file_/var/log/wtmp",
              "ac_cv_file_/var/run/utmp" ]
    autotools.autoreconf("-vif")

    autotools.configure("--disable-static \
                         --enable-unix-transport \
                         --enable-tcp-transport \
                         --enable-IPv6 \
                         --enable-local-transport \
                         --enable-secure-rpc \
                         --enable-xpm-logos \
                         --enable-dynamic-greeter \
                         --enable-xdm-auth \
                         --with-pam \
                         --with-xdmconfigdir=/etc/X11/xdm \
                         --with-default-vt=vt7 \
                         --with-config-type=ws \
                         --with-xft \
                         --with-wtmp_file=/var/log/wtmp \
                         --with-utmp_file=/var/run/utmp \
                         --with-random-device=/dev/urandom \
                         --with-pixmapdir=/usr/share/X11/xdm/pixmaps", cache=cache)
Ejemplo n.º 35
0
def setup():
    shelltools.export("DEFAULT_POSIX2_VERSION", "199209")
    shelltools.export("AUTOPOINT", "/bin/true")
    shelltools.export("AT_M4DIR", "m4")

    # man docs are unneccessary.
    pisitools.dosed("Makefile.in", "(^SUBDIRS\\s*=\\s*).*", "\\1 lib src po tests gnulib-tests")

    # clfs presettings.
    cache = [ "fu_cv_sys_stat_statfs2_bsize=yes",
              "gl_cv_func_rename_trailing_slash_bug=no",
              "gl_cv_func_mbrtowc_incomplete_state=yes",
              "gl_cv_func_mbrtowc_nul_retval=yes",
              "gl_cv_func_mbrtowc_null_arg=yes",
              "gl_cv_func_mbrtowc_retval=yes",
              "gl_cv_func_btowc_eof=yes",
              "gl_cv_func_wcrtomb_retval=yes",
              "gl_cv_func_wctob_works=yes",
              "gl_cv_func_working_mkstemp=yes",
              "gl_cv_func_printf_directive_n=yes",
              "gl_cv_func_isnanl_works=yes",
              "gl_cv_func_working_acl_get_file=yes" ]

    crosstools.configure("--enable-largefile \
                          --enable-nls \
                          --enable-acl \
                          --enable-xattr \
                          --enable-install-program=arch \
                          --disable-libcap \
                          --without-included-regex \
                          --without-gmp \
                          --enable-no-install-program=faillog,hostname,login,lastlog,uptime", cache=cache)
Ejemplo n.º 36
0
def setup():
    crosstools.autoreconf("-fi")

    crosstools.configure("--disable-static \
                          --enable-pam-module \
                          --localstatedir=/var \
                          --with-pid-file=/var/run/ConsoleKit/pid")
Ejemplo n.º 37
0
def setup():
    crosstools.configure("--enable-utf8 \
                          --enable-unicode-properties \
                          --with-link-size=2 \
                          --with-match-limit=10000000 \
                          --enable-newline-is-lf \
                          --disable-static")
Ejemplo n.º 38
0
def setup():
    crosstools.autoreconf("-vif")

    crosstools.configure("--disable-static \
                          --disable-specs \
                          --with-xcb \
                          --enable-malloc0returnsnull")
Ejemplo n.º 39
0
def setup():
    crosstools.configure(
        "--enable-nls \
                          --disable-java \
                          --disable-csharp \
                          --disable-static"
    )
Ejemplo n.º 40
0
def setup():
    #shelltools.export("PKG_CONFIG_SYSROOT_DIR", "%(RootDir)s" % autotools.environment)
    # pkg-config problem
    autotools.environment[
        "CFLAGS"] = "%(CFLAGS)s -I%(RootDir)s/usr/include/libdrm" % autotools.environment
    autotools.autoreconf("-vif")
    autotools.configure("--enable-dummy-driver")
Ejemplo n.º 41
0
def setup():
    shelltools.export("OPT",
                      "%(CFLAGS)s -fPIC -D__SOFTFP__" % crosstools.environment)

    crosstools.autoconf()
    crosstools.autoreconf()
    crosstools.autoreconf(
        "-Wcross --verbose --install --force Modules/_ctypes/libffi")
    # pisitools.dosed("Modules/_ctypes/libffi/Makefile.in", r"(^CFLAGS\s*=.*)", "\\1 FFI_DEFAULT_ABI")
    crosstools.configure("--with-fpectl \
                          --enable-shared \
                          --disable-ipv6 \
                          --with-threads \
                          --with-libc='' \
                          --enable-unicode=ucs4 \
                          --with-wctype-functions \
                          --with-pymalloc \
                          --with-cyclic-gc \
                          --with-signal-module \
                          --without-system-ffi")
    # FIXME: --enable-ipv6
    pisitools.dosed("Makefile", r"\$\{includedir\}",
                    "%(SysRoot)s/usr/include" % crosstools.environment)
    pisitools.dosed("Makefile", r"\$\{libdir\}",
                    "%(SysRoot)s/usr/lib" % crosstools.environment)
Ejemplo n.º 42
0
def setup():
    # hmmm, we should do the hal mounting with gnome-mount?
    pisitools.dosed("configure.in", r"(ac_cv_func_posix_getpwuid_r=)\w*",
                    "\\1yes")
    autotools.autoreconf("-fi")

    cache = [
        "ac_cv_func_posix_getpwuid_r=yes",
    ]
    autotools.configure("--enable-ipv6 \
                         --enable-hal \
                         --disable-samba \
                         --disable-krb5 \
                         --enable-avahi \
                         --enable-acl \
                         --disable-selinux \
                         --disable-static \
                         --disable-schemas-install \
                         --disable-cdda \
                         --disable-fam \
                         --disable-howl \
                         --with-hal-mount=/usr/bin/mount \
                         --with-hal-umount=/usr/bin/umount \
                         --with-hal-eject=/usr/bin/eject",
                        cache=cache)
Ejemplo n.º 43
0
def setup():
    crosstools.autoreconf("-fi")

    crosstools.configure("--disable-static \
                          --enable-pam-module \
                          --localstatedir=/var \
                          --with-pid-file=/var/run/ConsoleKit/pid")
Ejemplo n.º 44
0
def setup():
    pisitools.dosed("test-suite/tests/popen.test", "sleep 999", "sleep 1")

    cache = [
        "ac_cv_sys_restartable_syscalls=yes",
        "ac_cv_func_pthread_key_delete=yes",
        "glib_cv_sys_pthread_mutex_trylock_posix=yes",
        "glib_cv_sys_pthread_getspecific_posix=yes",
        "glib_cv_sys_pthread_cond_timedwait_posix=yes",
        "ac_cv_func_pthread_attr_getstack=yes"
    ]

    autotools.autoreconf("-vif")
    autotools.configure("--disable-error-on-warning \
                         --disable-static \
                         --enable-posix \
                         --enable-networking \
                         --enable-regex \
                         --enable-elisp \
                         --enable-nls \
                         --disable-rpath \
                         --with-threads \
                         --with-modules",
                        cache=cache)

    # Put flags in front of the libs. Needed for --as-needed.
    replace = (r"(\\\$deplibs) (\\\$compiler_flags)", r"\2 \1")
    pisitools.dosed("libtool", *replace)
    pisitools.dosed("*/libtool", *replace)
Ejemplo n.º 45
0
def setup():
    autotools.autoreconf("-fiv")

    # FIXME --enable-introspection=no will be removed after
    # programming.library.gobject-introspection is built properly.
    autotools.configure("--disable-gtk-doc \
                         --enable-introspection=no")
Ejemplo n.º 46
0
def setup():
    autotools.autoreconf()
    autotools.configure("--without-python \
                         --disable-static")
                         # FIXME:
                         # --without-python

    pisitools.dosed("libtool"," -shared ", " -Wl,--as-needed -shared ")
Ejemplo n.º 47
0
def setup():
    # Fixup version
    shelltools.echo(".version", get.srcVERSION().split("_")[0])

    # Disable emacs scripts
    shelltools.export("EMACS", "no")

    crosstools.configure()
Ejemplo n.º 48
0
def setup():
    autotools.configure("--disable-static")

    # preparing host-side utils
    autotools.make('-C util \
                    CC_FOR_BUILD="%(HOSTCC)s" \
                    CFLAGS="%(HOSTCFLAGS)s"' % autotools.environment)
    shelltools.system("mv util/{,host}makestrs; make -C util clean")
Ejemplo n.º 49
0
def setup():
    shelltools.sym("makefiles/configure.in","configure.in")
    shelltools.sym("makefiles/Makefile.am","Makefile.am")

    crosstools.autoreconf("-fi")
    crosstools.configure("--with-jpeg \
                          --with-lcms \
                          --disable-static")
Ejemplo n.º 50
0
def setup():
    # Fixup version
    shelltools.echo(".version", get.srcVERSION().split("_")[0])

    # Disable emacs scripts
    shelltools.export("EMACS", "no")

    crosstools.configure()
Ejemplo n.º 51
0
def setup():
    crosstools.autoreconf("-fi")

    crosstools.configure("--with-encoding=utf-8 \
                          --enable-threads \
                          --enable-man-compression=gzip \
                          --enable-man-symlinks \
                          --enable-64bit")
Ejemplo n.º 52
0
def setup():
    crosstools.configure("--sbindir=/sbin \
                          --libexecdir=/usr/lib \
                          --without-kernel \
                          --enable-devel \
                          --enable-libipq \
                          --enable-shared \
                          --enable-static")
Ejemplo n.º 53
0
def setup():
    pisitools.dosed("configure.ac", r"(^XORG_DRIVER_CHECK_EXT.*)", "#\\1")
    pisitools.dosed("src/omapfb-xv.c", "fb1", "fb2")

    autotools.environment["CFLAGS"] = "%(CFLAGS)s -I%(SysRoot)s/usr/include/xorg" % autotools.environment

    autotools.autoreconf("-fvi")
    autotools.configure("--enable-neon")
Ejemplo n.º 54
0
def setup():
    for fl in ["NEWS", "AUTHORS", "ChangeLog"]:
        shelltools.touch(fl)
    autotools.autoreconf("-fi -Im4")

    libtools.libtoolize("--force --install")
    autotools.configure("--disable-debugging \
                         --disable-static")