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)
def configure(parameters = ''): '''configure source with given parameters = "--with-nls --with-libusb --with-something-usefull"''' # Set clang as compiler if supported if get.canClang(): export ("CC", "clang") export ("CXX", "clang++") if can_access_file('configure'): gnuconfig_update() prefix = get.emul32prefixDIR() if get.buildTYPE() == "emul32" else get.defaultprefixDIR() args = './configure \ --prefix=/%s \ --build=%s \ --mandir=/%s \ --infodir=/%s \ --datadir=/%s \ --sysconfdir=/%s \ --localstatedir=/%s \ --libexecdir=/%s \ %s' % (prefix, \ get.HOST(), get.manDIR(), \ get.infoDIR(), get.dataDIR(), \ get.confDIR(), get.localstateDIR(), get.libexecDIR(), parameters) if get.buildTYPE() == "emul32": args += " --libdir=/usr/lib32" if system(args): raise ConfigureError(_('Configure failed.')) else: raise ConfigureError(_('No configure script found.'))
def configure(parameters = ''): '''configure source with given parameters = "--with-nls --with-libusb --with-something-usefull"''' if can_access_file('ltmain.sh'): libtoolize("--copy --force") if can_access_file('configure'): gnuconfig_update() args = './configure \ --prefix=/%s \ --build=%s \ --mandir=/%s \ --infodir=/%s \ --datadir=/%s \ --sysconfdir=/%s \ --localstatedir=/%s \ --libexecdir=/%s \ %s' % (get.defaultprefixDIR(), \ get.HOST(), get.manDIR(), \ get.infoDIR(), get.dataDIR(), \ get.confDIR(), get.localstateDIR(), get.libexecDIR(), parameters) if system(args): raise ConfigureError(_('Configure failed.')) else: raise ConfigureError(_('No configure script found.'))
def setup(): for f in shelltools.ls("*/po/Make-in"): pisitools.dosed(f, "(?m)^(datadir = )$(prefix)/@DATADIRNAME@", r"@datadir@") pisitools.dosed(f, "(?m)^(gnulocaledir = )$(prefix)/share", r"$(datadir)") libtools.gnuconfig_update() conf = ( "--without-included-gettext \ --disable-nls \ --host=%s \ --target=%s\ --datadir=%s \ --infodir=%s/info \ --mandir=%s/man \ --bindir=%s \ --libdir=%s \ --libexecdir=%s \ --includedir=%s \ --enable-shared \ --disable-werror" % (get.HOST(), get.HOST(), datapath, datapath, datapath, binpath, libpath, libpath, incpath) ) shelltools.makedirs("%s/build-default-i686-pc-linux-gnu-nptl" % get.workDIR()) shelltools.cd("%s/build-default-i686-pc-linux-gnu-nptl" % get.workDIR()) shelltools.system("%s/%s/configure %s" % (get.workDIR(), WorkDir, conf))
def configure(parameters=""): '''configure source with given parameters = "--with-nls --with-libusb --with-something-usefull"''' if can_access_file("configure"): gnuconfig_update() args = ( "./configure \ --prefix=/%s \ --build=%s \ --mandir=/%s \ --infodir=/%s \ --datadir=/%s \ --sysconfdir=/%s \ --localstatedir=/%s \ %s" % ( get.defaultprefixDIR(), get.HOST(), get.manDIR(), get.infoDIR(), get.dataDIR(), get.confDIR(), get.localstateDIR(), parameters, ) ) if system(args): raise ConfigureError(_("Configure failed.")) else: raise ConfigureError(_("No configure script found."))
def setup(): for dir in ["bfd/po", "binutils/po", "gas/po", "gprof/po", "ld/po", "opcodes/po"]: pisitools.dosed("%s/Make-in" % dir, "(?m)^(datadir = )$(prefix)/@DATADIRNAME@", r"@datadir@") pisitools.dosed("%s/Make-in" % dir, "(?m)^(gnulocaledir = )$(prefix)/share", r"$(datadir)") libtools.gnuconfig_update() libtools.libtoolize("--copy --force") config_parameter = ( "--without-included-gettext \ --disable-nls \ --host=%s \ --target=%s\ --datadir=%s \ --infodir=%s/info \ --mandir=%s/man \ --bindir=%s \ --libdir=%s \ --libexecdir=%s \ --includedir=%s \ --enable-shared \ --disable-werror" % (get.HOST(), get.HOST(), datapath, datapath, datapath, binpath, libpath, libpath, incpath) ) autotools.rawConfigure(config_parameter)
def setup(): for f in shelltools.ls("*/po/Make-in"): pisitools.dosed(f, "(?m)^(datadir = )$(prefix)/@DATADIRNAME@", r"@datadir@") pisitools.dosed(f, "(?m)^(gnulocaledir = )$(prefix)/share", r"$(datadir)") libtools.gnuconfig_update() conf = "--without-included-gettext \ --disable-nls \ --host=%s \ --target=%s\ --datadir=%s \ --infodir=%s/info \ --mandir=%s/man \ --bindir=%s \ --libdir=%s \ --libexecdir=%s \ --includedir=%s \ --enable-shared \ --disable-werror" % (get.HOST(), get.HOST(), datapath, datapath,\ datapath, binpath, libpath, libpath, incpath) shelltools.makedirs("%s/build-default-i686-pc-linux-gnu-nptl" % get.workDIR()) shelltools.cd("%s/build-default-i686-pc-linux-gnu-nptl" % get.workDIR()) shelltools.system("%s/%s/configure %s" % (get.workDIR(), WorkDir, conf))
def setup(): shelltools.export("AT_M4DIR", "%s/m4" % get.curDIR()) libtools.gnuconfig_update() autotools.configure("--enable-af \ --enable-alsa \ --enable-oss \ --disable-static")
def setup(): shelltools.move("configure.guess", "config.guess") shelltools.move("configure.sub", "config.sub") autotools.autoreconf("-vfi") libtools.gnuconfig_update() libtools.libtoolize("--force --install") autotools.configure()
def rawConfigure(parameters = ''): '''configure source with given parameters = "--prefix=/usr --libdir=/usr/lib --with-nls"''' if can_access_file('configure'): gnuconfig_update() if system('./configure %s' % parameters): raise ConfigureError(_('Configure failed.')) else: raise ConfigureError(_('No configure script found.'))
def rawConfigure(parameters=''): '''configure source with given parameters = "--prefix=/usr --libdir=/usr/lib --with-nls"''' if can_access_file('configure'): gnuconfig_update() if system('./configure %s' % parameters): raise ConfigureError(_('Configure failed.')) else: raise ConfigureError(_('No configure script found.'))
def rawConfigure(parameters=""): '''configure source with given parameters = "--prefix=/usr --libdir=/usr/lib --with-nls"''' if can_access_file("configure"): gnuconfig_update() if system("./configure %s" % parameters): raise ConfigureError(_("Configure failed.")) else: raise ConfigureError(_("No configure script found."))
def setup(): #shelltools.cd("cdparanoia-III-10.2") #shelltools.move("configure.guess", "config.guess") #shelltools.move("configure.sub", "config.sub") autotools.autoreconf("-vfi") libtools.gnuconfig_update() libtools.libtoolize("--force --install") autotools.configure()
def setup(): shelltools.export("WANT_AUTOMAKE", "1.7") shelltools.export("WANT_AUTOCONF", "2.5") shelltools.chmod("bootstrap", 0755) shelltools.system("./bootstrap") libtools.gnuconfig_update() autotools.configure()
def setup(): gnuconfig_update() autotools.configure("--enable-opengl \ --disable-editors \ --disable-sdltest \ --disable-gtktest \ --with-x \ --with-sdl")
def setup(): libtools.gnuconfig_update() shelltools.export("ALLOWED_FLAGS", "-O -O1 -O2 -pipe -g") shelltools.sym("config/configure.in", "configure.in") shelltools.export("SGML_PREFIX", "/usr/share/sgml") autotools.configure("--enable-http \ --enable-default-catalog=/etc/sgml/catalog \ --enable-default-search-path=/usr/share/sgml \ --libdir=/usr/lib \ --datadir=/usr/share/sgml/%s" % openjade)
def setup(): libtools.gnuconfig_update() shelltools.export("ALLOWED_FLAGS", "-O -O1 -O2 -pipe -g") autotools.configure("--enable-nls \ --enable-http \ --disable-doc-build \ --disable-static \ --enable-default-catalog=/etc/sgml/catalog \ --enable-default-search-path=/usr/share/sgml:/usr/share/xml \ --datadir=/usr/share/sgml")
def setup(): libtools.gnuconfig_update() shelltools.export("ALLOWED_FLAGS", "-O -O1 -O2 -pipe -g") autotools.configure("--enable-nls \ --enable-http \ --disable-doc-build \ --disable-static \ --enable-default-catalog=/etc/sgml/catalog \ --enable-default-search-path=/usr/share/sgml \ --datadir=/usr/share/sgml/%s" % get.srcTAG())
def setup(): libtools.gnuconfig_update() shelltools.export("ALLOWED_FLAGS", "-O -O1 -O2 -pipe -g") shelltools.sym("config/configure.in", "configure.in") shelltools.export("SGML_PREFIX", "/usr/share/sgml") autotools.configure("--enable-http \ --enable-default-catalog=/etc/sgml/catalog \ --enable-default-search-path=/usr/share/sgml \ --libdir=/usr/lib \ --datadir=/usr/share/sgml/%s" % get.srcTAG())
def setup(): pisitools.dosym("configure.guess", "config.guess") pisitools.dosym("configure.sub", "config.sub") libtools.gnuconfig_update() pisitools.remove("config.sub") pisitools.remove("config.guess") shelltools.export("CFLAGS", "%s -I%s/interface" % (get.CFLAGS(), get.curDIR())) shelltools.export("CXXLAGS", "%s -I%s/interface" % (get.CXXFLAGS(), get.curDIR())) autotools.configure()
def setup(): shelltools.sym(".", "m4") shelltools.export("CFLAGS", "%s -DDRV_RAW" % get.CFLAGS()) autotools.autoreconf("-vfi -Im4") libtools.gnuconfig_update() autotools.configure("--disable-esd \ --disable-af \ --disable-alsa \ --enable-oss \ --disable-static")
def setup(): # Don't use zlib from source pisitools.dosed("configure.in", "zlib/Makefile dnl", "dnl zlib/Makefile") # Plain autoconf doesn't work here... shelltools.export("WANT_AUTOCONF", "2.59") autotools.autoreconf("--force") libtools.libtoolize("--copy --force") libtools.gnuconfig_update() shelltools.cd("innobase/") autotools.autoreconf("--force") libtools.libtoolize("--copy --force") libtools.gnuconfig_update() shelltools.cd("../") # Export flags shelltools.export("CFLAGS", "%s -DHAVE_ERRNO_AS_DEFINE=1" % get.CFLAGS()) shelltools.export( "CXXFLAGS", "%s \ -felide-constructors \ -fno-exceptions \ -fno-rtti \ -fno-implicit-templates" % get.CXXFLAGS()) # Configure! autotools.configure("--libexecdir=/usr/sbin \ --sysconfdir=/etc/mysql \ --localstatedir=/var/lib/mysql \ --with-low-memory \ --enable-local-infile \ --with-mysqld-user=mysql \ --with-client-ldflags=-lstdc++ \ --enable-thread-safe-client \ --with-comment=\"Pardus Linux\" \ --with-unix-socket-path=/var/run/mysqld/mysqld.sock \ --with-lib-ccflags=\"-fPIC\" \ --with-readline \ --without-docs \ --enable-shared \ --disable-static \ --without-libwrap \ --with-openssl \ --without-debug \ --with-charset=utf8 \ --with-collation=utf8_general_ci \ --with-extra-charsets=all \ --with-berkeley-db=./bdb \ --with-geometry \ --with-big-tables \ --without-bench \ --with-max-indexes=128 \ --enable-assembler")
def setup(): # Don't use zlib from source pisitools.dosed("configure.in", "zlib/Makefile dnl", "dnl zlib/Makefile") # Plain autoconf doesn't work here... shelltools.export("WANT_AUTOCONF", "2.59") autotools.autoreconf("--force") libtools.libtoolize("--copy --force") libtools.gnuconfig_update() shelltools.cd("innobase/") autotools.autoreconf("--force") libtools.libtoolize("--copy --force") libtools.gnuconfig_update() shelltools.cd("../") # Export flags shelltools.export("CFLAGS", "%s -DHAVE_ERRNO_AS_DEFINE=1" % get.CFLAGS()) shelltools.export("CXXFLAGS", "%s \ -felide-constructors \ -fno-exceptions \ -fno-rtti \ -fno-implicit-templates" % get.CXXFLAGS()) # Configure! autotools.configure("--libexecdir=/usr/sbin \ --sysconfdir=/etc/mysql \ --localstatedir=/var/lib/mysql \ --with-low-memory \ --enable-local-infile \ --with-mysqld-user=mysql \ --with-client-ldflags=-lstdc++ \ --enable-thread-safe-client \ --with-comment=\"Pardus Linux\" \ --with-unix-socket-path=/var/run/mysqld/mysqld.sock \ --with-lib-ccflags=\"-fPIC\" \ --with-readline \ --without-docs \ --enable-shared \ --disable-static \ --without-libwrap \ --with-openssl \ --without-debug \ --with-charset=utf8 \ --with-collation=utf8_general_ci \ --with-extra-charsets=all \ --with-berkeley-db=./bdb \ --with-geometry \ --with-big-tables \ --without-bench \ --with-max-indexes=128 \ --enable-assembler")
def setup(): shelltools.export("CC", get.CC()) shelltools.export("CXX", get.CXX()) shelltools.export("CFLAGS", flags) shelltools.export("CXXLAGS", flags) shelltools.move("configure.guess", "config.guess") shelltools.move("configure.sub", "config.sub") autotools.autoconf() libtools.gnuconfig_update() libtools.libtoolize("--force --install") autotools.configure()
def rawConfigure(parameters = ''): '''configure source with given parameters = "--prefix=/usr --libdir=/usr/lib --with-nls"''' # Set clang as compiler if supported if get.canClang(): export ("CC", "clang") export ("CXX", "clang++") if can_access_file('configure'): gnuconfig_update() if system('./configure %s' % parameters): raise ConfigureError(_('Configure failed.')) else: raise ConfigureError(_('No configure script found.'))
def rawConfigure(parameters = '', configure_cmd='./configure', no_sb2=False, ld_lib_path=""): '''configure source with given parameters = "--prefix=/usr --libdir=/usr/lib --with-nls"''' if can_access_file('configure'): gnuconfig_update() cmd = '%s ./configure %s' % (ld_lib_path, parameters) if crosscompiling and not no_sb2: cmd = "sb2 %s" % cmd if system(cmd): raise ConfigureError(_('Configure failed.')) else: raise ConfigureError(_('No configure script found.'))
def setup(): shelltools.export("CC", get.CC()) shelltools.export("CXX", get.CXX()) shelltools.export("RANLIB", get.RANLIB()) shelltools.export("AR", get.AR()) shelltools.move("configure.guess", "config.guess") shelltools.move("configure.sub", "config.sub") shelltools.export("CFLAGS", "%s -I%s/interface" % (get.CFLAGS(), get.curDIR())) shelltools.export("CXXLAGS", "%s -I%s/interface" % (get.CXXFLAGS(), get.curDIR())) autotools.autoconf() libtools.gnuconfig_update() autotools.configure()
def setup(): libtools.gnuconfig_update() libtools.libtoolize("--copy --force") shelltools.export("LDFLAGS", "%s -Wl,-z,now" % get.LDFLAGS()) parameters = "--disable-desrpc \ --with-libcrypt \ --with-libcrack \ --enable-shared=no \ --enable-static=yes \ --with-libpam \ --without-libskey \ --without-selinux \ --enable-nls" autotools.configure(parameters)
def rawConfigure(parameters='', configure_cmd='./configure', no_sb2=False, ld_lib_path=""): '''configure source with given parameters = "--prefix=/usr --libdir=/usr/lib --with-nls"''' if can_access_file('configure'): gnuconfig_update() cmd = '%s ./configure %s' % (ld_lib_path, parameters) if crosscompiling and not no_sb2: cmd = "sb2 %s" % cmd if system(cmd): raise ConfigureError(_('Configure failed.')) else: raise ConfigureError(_('No configure script found.'))
def setup(): pisitools.dosed("gcc/config.in", "HAVE_LD_AS_NEEDED", "USE_LD_AS_NEEDED") # Branding :P pisitools.dosed("gcc/version.c", "<URL:http://gcc.gnu.org/bugs.html>", "<URL:http://bugs.pardus.org.tr>") libtools.gnuconfig_update() shelltools.export("GCC_LANG", "c,c++,objc,f77") # Gcc don't like mcpu flag while bootstrapping itself shelltools.export("CFLAGS", "-march=i686 -O2 -pipe -fomit-frame-pointer") shelltools.export("CXXFLAGS", "-march=i686 -O2 -pipe -fomit-frame-pointer") conf = "--enable-version-specific-runtime-libs \ --prefix=%s \ --bindir=%s \ --includedir=%s \ --datadir=%s \ --mandir=%s \ --infodir=%s \ --with-gxx-include-dir=%s \ --host=%s \ --build=%s \ --disable-altivec \ --disable-nls \ --without-included-gettext \ --with-system-zlib \ --disable-checking \ --disable-werror \ --disable-libunwind-exceptions \ --disable-multilib \ --enable-languages=c,c++,objc,f77 \ --enable-shared \ --enable-threads=posix \ --enable-__cxa_atexit \ --enable-clocale=gnu" % (PREFIX, BINPATH, INCDIR, DATAPATH, MANPATH, INFOPATH, STDCXX_INCDIR, get.HOST(), get.HOST()) shelltools.makedirs("%s/build" % get.workDIR()) shelltools.cd("%s/build" % get.workDIR()) shelltools.system("%s/%s/configure %s" % (get.workDIR(), WorkDir, conf))
def configure(parameters='', configure_cmd='./configure', no_default_vars=False, no_sb2=False): '''configure source with given parameters = "--with-nls --with-libusb --with-something-usefull"''' if can_access_file(configure_cmd): gnuconfig_update() cmd = '%s \ --prefix=/%s \ --mandir=/%s \ --infodir=/%s \ --datadir=/%s \ --sysconfdir=/%s \ --localstatedir=/%s \ --libexecdir=/%s \ %s' % (configure_cmd, get.defaultprefixDIR(), \ get.manDIR(), get.infoDIR(), get.dataDIR(), \ get.confDIR(), get.localstateDIR(), get.libexecDIR(), parameters) if crosscompiling: if no_sb2 and not no_default_vars: cmd += " --build=%s \ --host=%s" % (get.BUILD(), get.HOST()) elif not no_sb2 and no_default_vars: cmd += "sb2 %s \ --build=%s \ --host=%s" % (cmd, get.BUILD(), get.HOST()) elif not no_sb2 and not no_default_vars: cmd = "sb2 %s \ --build=%s \ --host=%s" % (cmd, get.HOST(), get.HOST()) else: if not no_default_vars: cmd += " --build=%s" % get.BUILD() if system(cmd): raise ConfigureError(_('Configure failed.')) else: raise ConfigureError(_('No configure script found.'))
def setup(): pisitools.remove("dist/ltversion.sh") pisitools.remove("dist/config.guest") libtools.gnuconfig_update() shelltools.makedirs("build-static") shelltools.makedirs("build-shared") conf = "--host=%s \ --build=%s \ --enable-cxx \ --enable-compat185 \ --disable-java \ --prefix=/usr" % (get.HOST(), get.HOST()) shelltools.cd("build-static") shelltools.system("../dist/configure %s --libdir=/usr/lib --enable-static" % conf) shelltools.cd("../build-shared") shelltools.system("../dist/configure %s --libdir=/usr/lib --enable-dynamic --enable-shared" % conf)
def setup(): pisitools.dosed("gcc/config.in", "HAVE_LD_AS_NEEDED", "USE_LD_AS_NEEDED") # Branding :P pisitools.dosed("gcc/version.c", "<URL:http://gcc.gnu.org/bugs.html>" , "<URL:http://bugs.pardus.org.tr>") libtools.gnuconfig_update() shelltools.export("GCC_LANG", "c,c++,objc,f77") # Gcc don't like mcpu flag while bootstrapping itself shelltools.export("CFLAGS", "-march=i686 -O2 -pipe -fomit-frame-pointer") shelltools.export("CXXFLAGS", "-march=i686 -O2 -pipe -fomit-frame-pointer") conf ="--enable-version-specific-runtime-libs \ --prefix=%s \ --bindir=%s \ --includedir=%s \ --datadir=%s \ --mandir=%s \ --infodir=%s \ --with-gxx-include-dir=%s \ --host=%s \ --build=%s \ --disable-altivec \ --disable-nls \ --without-included-gettext \ --with-system-zlib \ --disable-checking \ --disable-werror \ --disable-libunwind-exceptions \ --disable-multilib \ --enable-languages=c,c++,objc,f77 \ --enable-shared \ --enable-threads=posix \ --enable-__cxa_atexit \ --enable-clocale=gnu" % (PREFIX, BINPATH, INCDIR, DATAPATH, MANPATH, INFOPATH, STDCXX_INCDIR, get.HOST(), get.HOST()) shelltools.makedirs("%s/build" % get.workDIR()) shelltools.cd("%s/build" % get.workDIR()) shelltools.system("%s/%s/configure %s" % (get.workDIR(), WorkDir, conf))
def setup(): shelltools.cd("build_unix") libtools.gnuconfig_update() shelltools.system("../dist/configure \ --prefix=/usr \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --datadir=/usr/share \ --sysconfdir=/etc \ --localstatedir=/var/lib \ --libdir=/usr/lib \ --enable-compat185 \ --with-uniquename \ --enable-rpc \ --host=%s \ --enable-cxx \ --disable-tcl \ --disable-java \ --build=%s" % (get.HOST(), get.HOST()))
def configure(parameters=''): '''configure source with given parameters = "--with-nls --with-libusb --with-something-usefull"''' if can_access_file('configure'): gnuconfig_update() args = './configure \ --prefix=/%s \ --host=%s \ --mandir=/%s \ --infodir=/%s \ --datadir=/%s \ --sysconfdir=/%s \ --localstatedir=/%s \ %s' % (get.defaultprefixDIR(), \ get.HOST(), get.manDIR(), \ get.infoDIR(), get.dataDIR(), \ get.confDIR(), get.localstateDIR(), parameters) if system(args): raise ConfigureError(_('Configure failed.')) else: raise ConfigureError(_('No configure script found.'))
def setup(): pisitools.dosed("pppd/Makefile.linux", "^#USE_PAM=y", "USE_PAM=y") pisitools.dosed("pppd/Makefile.linux", "#HAVE_INET6", "HAVE_INET6") pisitools.dosed("pppd/Makefile.linux", "^#CBCP=y", "CBCP=y") pisitools.dosed("pppd/plugins/Makefile.linux", "SUBDIRS := rp-pppoe", "SUBDIRS := rp-pppoe radius") pisitools.dosed("pppd/plugins/radius/radiusclient/lib/Makefile.in", "^CFLAGS = @CFLAGS@", "CFLAGS = @CFLAGS@ -fPIC") pisitools.dosed("pppd/plugins/rp-pppoe/if.c", "net/bpf.h", "pcap-bpf.h") pisitools.dosed("pppd/demand.c", "net/bpf.h", "pcap-bpf.h") pisitools.dosed("pppd/sys-linux.c", "net/bpf.h", "pcap-bpf.h") shelltools.export("WANT_AUTOCONF", "2.1") libtools.gnuconfig_update() shelltools.export("LDFLAGS", "%s -Wl,-z,now" % get.LDFLAGS()) # We must build radius client first shelltools.cd("pppd/plugins/radius/radiusclient") autotools.configure() autotools.make("-j1") # and then build the original package shelltools.cd("../../../..") autotools.rawConfigure("--prefix=/usr")
def configure(parameters = '', configure_cmd='./configure', no_default_vars=False, no_sb2=False): '''configure source with given parameters = "--with-nls --with-libusb --with-something-usefull"''' if can_access_file(configure_cmd): gnuconfig_update() cmd = '%s \ --prefix=/%s \ --mandir=/%s \ --infodir=/%s \ --datadir=/%s \ --sysconfdir=/%s \ --localstatedir=/%s \ --libexecdir=/%s \ %s' % (configure_cmd, get.defaultprefixDIR(), \ get.manDIR(), get.infoDIR(), get.dataDIR(), \ get.confDIR(), get.localstateDIR(), get.libexecDIR(), parameters) if crosscompiling: if no_sb2 and not no_default_vars: cmd += " --build=%s \ --host=%s" % (get.BUILD(), get.HOST()) elif not no_sb2 and no_default_vars: cmd += "sb2 %s \ --build=%s \ --host=%s" % (cmd, get.BUILD(), get.HOST()) elif not no_sb2 and not no_default_vars: cmd = "sb2 %s \ --build=%s \ --host=%s" % (cmd, get.HOST(), get.HOST()) else: if not no_default_vars: cmd += " --build=%s" % get.BUILD() if system(cmd): raise ConfigureError(_('Configure failed.')) else: raise ConfigureError(_('No configure script found.'))
def configure(parameters = ''): '''configure source with given parameters = "--with-nls --with-libusb --with-something-usefull"''' if can_access_file('configure'): gnuconfig_update() args = './configure \ --prefix=/%s \ --host=%s \ --mandir=/%s \ --infodir=/%s \ --datadir=/%s \ --sysconfdir=/%s \ --localstatedir=/%s \ %s' % (get.defaultprefixDIR(), \ get.HOST(), get.manDIR(), \ get.infoDIR(), get.dataDIR(), \ get.confDIR(), get.localstateDIR(), parameters) if system(args): raise ConfigureError('!!! Configure failed...\n') else: raise ConfigureError('!!! No configure script found...\n')
def setup(): shelltools.export("AT_M4DIR", "%s/m4" % get.curDIR()) libtools.gnuconfig_update() options = "--disable-esd \ --disable-af \ --enable-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 -m32" % get.CFLAGS()) shelltools.export("CXXFLAGS", "%s -m32" % get.CFLAGS()) shelltools.export("LDFLAGS", "%s -m32" % get.LDFLAGS()) autotools.configure(options)
def setup(): for dir in ["bfd/po", "binutils/po", "gas/po", "gprof/po", "ld/po", "opcodes/po"]: pisitools.dosed("%s/Make-in" % dir, "(?m)^(datadir = )$(prefix)/@DATADIRNAME@", r"@datadir@") pisitools.dosed("%s/Make-in" % dir, "(?m)^(gnulocaledir = )$(prefix)/share", r"$(datadir)") libtools.gnuconfig_update() libtools.libtoolize("--copy --force") config_parameter = "--without-included-gettext \ --disable-nls \ --host=%s \ --target=%s\ --datadir=%s \ --infodir=%s/info \ --mandir=%s/man \ --bindir=%s \ --libdir=%s \ --libexecdir=%s \ --includedir=%s \ --enable-shared \ --disable-werror" % (get.HOST(), get.HOST(), datapath, datapath,\ datapath, binpath, libpath, libpath, incpath) autotools.rawConfigure(config_parameter)
def setup(): libtools.gnuconfig_update() autotools.autoreconf() autotools.configure("--with-libdvdcss=/usr \ --disable-static")
def setup(): libtools.gnuconfig_update() autotools.configure("--enable-af \ --enable-alsa \ --enable-oss")
def setup(): libtools.gnuconfig_update() autotools.configure()
def setup(): shelltools.chmod("configure") libtools.gnuconfig_update() libtools.libtoolize("--copy --force") autotools.configure()