Пример #1
0
def secondbuilder():
    builder2 = Builder()
    if platform.machine() == "x86_64":
        builder2.add_option('"CFLAGS=-fPIC -O2"')
    builder2.add_option('--enable-float --enable-threads')
    builder2.do_clean = False
    builder2.build()
Пример #2
0
def secondbuilder():
    builder2 = Builder()
    if platform.machine() == "x86_64":
        builder2.add_option('"CFLAGS=-fPIC -O2"')
    builder2.add_option('--enable-float --enable-threads')
    builder2.do_clean = False
    builder2.build()
Пример #3
0
import os

from askapdev.rbuild.builders import Autotools as Builder

# Pick up directory structure and boost version from current directory name
boost_version = os.path.basename(os.path.abspath(os.curdir))
boost_dir = boost_version.replace('.', '_').replace('-', '_')

builder = Builder(pkgname=boost_dir,
                  confcommand='bootstrap.sh',
                  buildcommand='./bjam',
                  installcommand='./bjam install')
builder.remote_archive = "boost_1_56_0.tar.bz2"

builder.add_option(
    '--with-libraries=python,date_time,filesystem,program_options,thread,system,regex --prefix=builder._prefix'
)
builder.nowarnings = True

builder.build()
Пример #4
0
builder = Builder()
builder.remote_archive = "Blob-1.2.tar.gz"

common   = builder.dep.get_install_path("common")
boost    = builder.dep.get_install_path("boost")
casacore = builder.dep.get_install_path("casacore")
log4cxx  = builder.dep.get_install_path("log4cxx")

builder.add_option("--with-cppflags='-DUSE_NO_TH_ETHERNET'")
builder.add_option("--with-log4cxx=%s" % log4cxx)
builder.add_option("--with-log4cxx-libdir=%s/lib" % log4cxx)
builder.add_option("--enable-shared")
builder.add_option("--with-ldflags='-dynamic'")
builder.add_option("--without-log4cplus")
builder.add_option("--with-optimize='-O2 -fPIC'")
builder.add_option("--without-shmem")
builder.add_option("--without-insuretools")
builder.add_option("--without-puretools")
builder.add_option("--with-common=%s" % common)
builder.add_option("--with-common-libdir=%s/lib" % common)
builder.add_option("--with-boost=%s" % boost)
builder.add_option("--with-boost-libdir=%s/lib" % boost)
builder.add_option("--with-casacore=%s" % casacore)
builder.add_option("--with-casacore-libdir=%s/lib" % casacore)
builder.add_option("--without-wcs")
builder.add_postcallback(callback)
builder.nowarnings = True

builder.build()