コード例 #1
0
ファイル: build.py プロジェクト: rtobar/askapsoft
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
ファイル: build.py プロジェクト: ATNF/askapsdp
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

builder = Builder(pkgname="odb-2.4.0")

# cutl dependency
libcutl = builder.dep.get_install_path("libcutl")
builder.add_option("CPPFLAGS=-I{0}/include".format(libcutl))
builder.add_option("LDFLAGS=-L{0}/lib".format(libcutl))

builder.add_option("CXXFLAGS=-O1")

builder.remote_archive = "odb-2.4.0.tar.gz"
builder.nowarnings = True
builder.build()
コード例 #4
0
ファイル: build.py プロジェクト: rtobar/askapsoft
import os

from askapdev.rbuild.builders import Autotools as Builder
import askapdev.rbuild.utils as utils

platform = utils.get_platform()

builder = Builder()
builder.remote_archive = "mpe2-mpich2-1.5.tar.gz"

# Use MPI compiler wrapper (except on Cray where cc and c++ are wrappers)
if not os.environ.has_key("CRAYOS_VERSION"):
    builder.add_option("MPI_CC=mpicc")
    builder.add_option("MPI_F77=mpif77")

# MacOSX MPI is not necessarily built with f77 support,
# and on Linux we use gfortran
if platform['system'] == 'Darwin':
    builder.add_option("--disable-f77")
    java_home = os.getenv('JAVA_HOME')
    if java_home:
        builder.add_option("--with-java=%s" % java_home)
elif os.environ.has_key("CRAYOS_VERSION"):
    builder.add_option("F77=ftn")
else:
    builder.add_option("F77=gfortran")

builder.add_option("--disable-checkMPI")
builder.add_option("--disable-graphics")
builder.add_option("--disable-wrappers")
builder.add_option("--disable-collchk")
コード例 #5
0
ファイル: build.py プロジェクト: rtobar/askapsoft
from askapdev.rbuild.builders import Autotools as Builder

builder = Builder(buildtargets=['busyfit', 'lib'])
builder.remote_archive = "busyfit-0.2.tar.gz"

gsl = builder.dep.get_install_path("gsl")

builder.add_option("--with-gsl=%s" % gsl)

builder.add_file("files/configure.ac")
builder.add_file("files/configure")
builder.add_file("files/Makefile.in")
builder.add_file("files/install-sh")
builder.add_file("files/config.sub")
builder.add_file("files/config.guess")

builder.build()
コード例 #6
0
ファイル: build.py プロジェクト: rtobar/askapsoft
import platform
from askapdev.rbuild.builders import Autotools as Builder

# Build twice, a single-precision version of the library plus a double
# precision version. The library names are different so will co-exist
# in the same install directory


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()


builder = Builder()
builder.remote_archive = "fftw-3.3.3.tar.gz"

if platform.machine() == "x86_64":
    builder.add_option('CFLAGS="-fPIC -O2"')
    builder.add_option('--enable-sse2')

builder.add_option('--enable-threads')
builder.add_postcallback(secondbuilder)

builder.build()
コード例 #7
0
from askapdev.rbuild.builders import Autotools as Builder

builder = Builder(buildtargets=['duchamp', 'lib'])
builder.remote_archive = "Duchamp-1.6.1.tar.gz"

cfitsio = builder.dep.get_install_path("cfitsio")
wcslib = builder.dep.get_install_path("wcslib")

builder.add_option("--without-pgplot")
builder.add_option("--with-cfitsio=%s" % cfitsio)
builder.add_option("--with-wcslib=%s" % wcslib)

builder.build()
コード例 #8
0
ファイル: build.py プロジェクト: cnwangfeng/askapsdp
    found = False
    fp = open('package.info', 'r+')
    for line in fp:
        if line.startswith('defs='):
            found = True
            break
    if found != True:
        fp.write('defs=-fno-strict-aliasing')
    fp.close()


builder = Builder("apache-log4cxx-0.10.0")
builder.remote_archive = "apache-log4cxx-0.10.0.tar.gz"

apr = builder.dep.get_install_path("apr")
aprutil = builder.dep.get_install_path("apr-util")

builder.add_option("--disable-doxygen")
builder.add_option("--with-apr=%s" % apr)
builder.add_option("--with-apr-util=%s" % aprutil)

if os.environ.has_key("CRAYOS_VERSION"):
    builder.add_option('LDFLAGS="-dynamic"')

builder.nowarnings = True

builder.build()

if 'install' in sys.argv[1:]:
    fix_package_info()
コード例 #9
0
ファイル: build.py プロジェクト: ATNF/askapsdp
def fix_package_info():
    found = False
    fp = open('package.info', 'r+')
    for line in fp:
        if line.startswith('defs='):
            found = True
            break
    if found != True:
        fp.write('defs=-fno-strict-aliasing')
    fp.close()

builder = Builder("apache-log4cxx-0.10.0")
builder.remote_archive = "apache-log4cxx-0.10.0.tar.gz"

apr     = builder.dep.get_install_path("apr")
aprutil = builder.dep.get_install_path("apr-util")

builder.add_option("--disable-doxygen")
builder.add_option("--with-apr=%s" % apr)
builder.add_option("--with-apr-util=%s" % aprutil)

if os.environ.has_key("CRAYOS_VERSION"):
    builder.add_option('LDFLAGS="-dynamic"')

builder.nowarnings = True

builder.build()

if 'install' in sys.argv[1:]:
    fix_package_info()
コード例 #10
0
ファイル: build.py プロジェクト: rtobar/askapsoft
import os

from askapdev.rbuild.builders import Autotools as Builder

builder = Builder()
builder.remote_archive = "expat-2.0.1.tar.gz"

if os.uname()[4] == 'x86_64':
    builder.add_option('--with-pic')
builder.add_option('--disable-shared')
builder.nowarnings = True

builder.build()
コード例 #11
0
ファイル: build.py プロジェクト: ATNF/askapsoft
from askapdev.rbuild.builders import Autotools as Builder

builder = Builder("cfitsio", buildtargets=['shared'])
builder.remote_archive = "cfitsio3350.tar.gz"
builder.nowarnings = True
builder.add_option("--enable-reentrant")
builder.add_option("--enable-sse2")
builder.build()
コード例 #12
0
ファイル: build.py プロジェクト: cnwangfeng/askapsdp
import os
from askapdev.rbuild.builders import Autotools as Builder

builder = Builder()
builder.remote_archive = "xerces-c-3.1.1.tar.gz"

if os.environ.has_key("CRAYOS_VERSION"):
    builder.add_option('LDFLAGS="-dynamic"')

builder.build()
コード例 #13
0
ファイル: build.py プロジェクト: rtobar/askapsoft
from askapdev.rbuild.builders import Autotools as Builder

builder = Builder()
builder.remote_archive = "wcslib-4.18.tar.bz2"

builder.add_env("CFLAGS", "-fPIC")
builder.add_env("CPPFLAGS", "-fPIC")
builder.add_env("FFLAGS", "-fPIC")
builder.parallel = False
builder.nowarnings = True

cfitsio = builder.dep.get_install_path("cfitsio")
builder.add_option("--with-cfitsiolib=%s" % cfitsio + "/lib")
builder.add_option("--with-cfitsioinc=%s" % cfitsio + "/include")
builder.add_option("--without-pgplot")

builder.build()
コード例 #14
0
ファイル: build.py プロジェクト: rtobar/askapsoft
import os

from askapdev.rbuild.builders import Autotools as Builder
import askapdev.rbuild.utils as utils

builder = Builder(buildsubdir="build_unix", confcommand='../dist/configure')
builder.remote_archive = "db-5.3.21.NC.tar.gz"

if os.uname()[4] == 'x86_64':
    builder.add_option('--with-pic')

#builder.add_option('--disable-shared') # Need shared libraries for Java.
builder.add_option('--enable-cxx')
builder.add_option('--enable-java')
builder.nowarnings = True

# On Mac OSX jni.h is in a  location where BerkleyDB can't find it. Including
# $JAVA_HOME/include (and include/darwin) fixes this. The JAVA_HOME environment
# can be setup on OSX like so (for bash): export JAVA_HOME=$(/usr/libexec/java_home)
platform = utils.get_platform()
if platform['system'] == 'Darwin' and os.environ.has_key("JAVA_HOME"):
    javahome = os.environ.get('JAVA_HOME')
    #    builder.add_option('JAVACFLAGS="-source 1.7 -target 1.7" CPPFLAGS="-I%s/include -I%s/include/darwin"' %(javahome,javahome))
    if '1.8' in javahome:
        builder.add_option('JAVACFLAGS="-source 1.7 -target 1.7"')
    builder.add_option('CPPFLAGS="-I%s/include -I%s/include/darwin"' %
                       (javahome, javahome))

# The Cray cc and c++ compilers wrappers break here, so go directly to gcc and g++
if os.environ.has_key("CRAYOS_VERSION"):
    builder.add_env("CC", "gcc")
コード例 #15
0
import os
from askapdev.rbuild.builders import Autotools as Builder
import askapdev.rbuild.utils as utils

builder = Builder()
builder.remote_archive = "xerces-c-3.1.1.tar.gz"

is_cray = False
if os.environ.has_key("CRAYOS_VERSION"):
    builder.add_option('LDFLAGS="-dynamic"')
    is_cray = True

platform = utils.get_platform()

# On Debian, we appear to require the Gnu unicode transcoder rather than the
# default ICU library (Debian 8 at least has the wrong version of ICU as a
# system package).
if platform['system'] == 'Linux' and not is_cray:
    builder.add_option("--enable-transcoder-gnuiconv")

if platform['system'] == 'Darwin':
    builder.add_option("--with-curl=/usr/")
    builder.add_option("--enable-transcoder-macosunicodeconverter")
    builder.add_option("--enable-netaccessor-cfurl")
    builder.add_option("--enable-netaccessor-cfurl")
    builder.add_option('CFLAGS="-arch x86_64"')
    builder.add_option('CXXFLAGS="-arch x86_64"')


builder.build()
コード例 #16
0
builder = Builder(archivename="Healpix_3.31_2016Aug26.tar.gz",
                  pkgname=package_name,
                  buildsubdir="src/cxx",
                  installcommand=None)

# Select the HEALPix target. The configure script ignores all the standard
# variables such as LDFLAGS and CXXFLAGS, so selecting the target is the only
# reliable way to influence the compilation flags.  At Healpix 3.31, relevant
# targets are: auto, basic_gcc, generic_gcc, linux_icc, optimized_gcc, osx, and
# osx_icc
# For new versions, the src/cxx/config directory should be checked for available
# targets
platform = utils.get_platform()
target = "osx" if platform['system'] == 'Darwin' else "generic_gcc"
os.putenv("HEALPIX_TARGET", target)
builder.add_option("HEALPIX_TARGET={0}".format(target))


def run_autoconf():
    "HealPix requires autoconf prior to configure"
    subprocess.call("autoconf", cwd=path)


def install():
    """HealPix C++ makefile does not provide an install target.
    It also ignores the standard --prefix option to configure :(
    So we copy the files manually, getting the source directory from the
    build target."""
    src_path = os.path.join(path, target)
    dst_path = os.path.join(os.getcwd(), "install")
コード例 #17
0
ファイル: build.py プロジェクト: ATNF/askapsdp
from askapdev.rbuild.builders import Autotools as Builder
import  askapdev.rbuild.utils as utils

platform = utils.get_platform()

if platform['system'] == 'Darwin':
    builder = Builder(confcommand='Configure darwin64-x86_64-cc')

    # This works around the problem "Undefined symbols for architecture x86_64:
    # _OPENSSL_ia32cap_P" experienced in using OpenSSL in the "casdaupload"
    #  utility to generate SHA1 checksums. See Jira issue ASKAPSDP-1646
    builder.add_option('no-asm')

elif platform['system'] == 'Linux' and platform['architecture'] == '64bit':
    builder = Builder(confcommand='Configure linux-x86_64')
else:
    builder = Builder(confcommand='config')

if platform['architecture'] == '64bit':
    builder.add_option('-fPIC')

builder.remote_archive = "openssl-1.0.1h.tar.gz"
builder.add_option('no-shared')
builder.parallel = False
builder.nowarnings = True

builder.build()
コード例 #18
0
ファイル: build.py プロジェクト: rtobar/askapsoft
import os

from askapdev.rbuild.builders import Autotools as Builder

builder = Builder(pkgname="libodb-sqlite-2.4.0")

# dependencies
libodb = builder.dep.get_install_path("libodb")
libsqlite = builder.dep.get_install_path("libsqlite3")
builder.add_option('"CPPFLAGS=-I{0}/include -I{1}/include"'.format(
    libodb, libsqlite))
builder.add_option('"LDFLAGS=-L{0}/lib -L{1}/lib"'.format(libodb, libsqlite))

builder.remote_archive = "libodb-sqlite-2.4.0.tar.gz"
builder.nowarnings = True
builder.build()
コード例 #19
0
ファイル: build.py プロジェクト: rtobar/askapsoft
import os
from askapdev.rbuild.builders import Autotools as Builder

builder = Builder()
builder.remote_archive = "mcpp-2.7.2.tar.gz"

if os.uname()[4] == 'x86_64':
    builder.add_option('--with-pic')
builder.add_option('--enable-mcpplib')
builder.add_option('--disable-shared')
builder.nowarnings = True

builder.build()
コード例 #20
0
ファイル: build.py プロジェクト: ATNF/askapsdp
import platform
from askapdev.rbuild.builders import Autotools as Builder

# Build twice, a single-precision version of the library plus a double
# precision version. The library names are different so will co-exist
# in the same install directory

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()
    
builder = Builder()
builder.remote_archive = "fftw-3.3.3.tar.gz"

if platform.machine() == "x86_64":
    builder.add_option('CFLAGS="-fPIC -O2"')
    builder.add_option('--enable-sse2')

builder.add_option('--enable-threads')
builder.add_postcallback(secondbuilder)
 
builder.build()
コード例 #21
0
ファイル: build.py プロジェクト: ATNF/askapsoft
from askapdev.rbuild.builders import Autotools as Builder
import askapdev.rbuild.utils as utils

platform = utils.get_platform()
builder = Builder()
builder.remote_archive = "apr-util-1.3.9.tar.gz"

apr = builder.dep.get_install_path("apr")
expat = builder.dep.get_install_path("expat")
builder.add_option("--with-apr=%s" % apr)
builder.add_option("--with-expat=%s" % expat)
builder.add_option("--without-sqlite3")
builder.add_option("--without-sqlite2")
builder.add_option("--without-mysql")

if platform['system'] == 'Darwin':
    builder.add_option("--with-iconv=/usr/local/opt/libiconv")

builder.nowarnings = True

builder.build()
コード例 #22
0
ファイル: build.py プロジェクト: ATNF/askapsdp
from askapdev.rbuild.builders import Autotools as Builder

builder = Builder(buildtargets=['duchamp','lib'])
builder.remote_archive = "Duchamp-1.6.1.tar.gz"

cfitsio = builder.dep.get_install_path("cfitsio")
wcslib  = builder.dep.get_install_path("wcslib")

builder.add_option("--without-pgplot")
builder.add_option("--with-cfitsio=%s" % cfitsio)
builder.add_option("--with-wcslib=%s" % wcslib)

builder.build()
コード例 #23
0
ファイル: build.py プロジェクト: ATNF/askapsdp
import os
from askapdev.rbuild.builders import Autotools as Builder

builder = Builder()
builder.remote_archive = "apr-1.3.9.tar.gz"
builder.nowarnings = True
builder.add_option("--without-sendfile")
builder.build()
コード例 #24
0
ファイル: build.py プロジェクト: cnwangfeng/askapsdp
import os

from askapdev.rbuild.builders import Autotools as Builder
import askapdev.rbuild.utils as utils

builder = Builder(buildsubdir="build_unix", confcommand='../dist/configure')
builder.remote_archive = "db-5.3.21.NC.tar.gz"

if os.uname()[4] == 'x86_64':
    builder.add_option('--with-pic')

#builder.add_option('--disable-shared') # Need shared libraries for Java.
builder.add_option('--enable-cxx')
builder.add_option('--enable-java')
builder.nowarnings = True

# On Mac OSX jni.h is in a  location where BerkleyDB can't find it. Including
# $JAVA_HOME/include (and include/darwin) fixes this. The JAVA_HOME environment
# can be setup on OSX like so (for bash): export JAVA_HOME=$(/usr/libexec/java_home)
platform = utils.get_platform()
if platform['system'] == 'Darwin' and os.environ.has_key("JAVA_HOME"):
    javahome = os.environ.get('JAVA_HOME')
    builder.add_option('CPPFLAGS="-I%s/include -I%s/include/darwin"' %
                       (javahome, javahome))

# The Cray cc and c++ compilers wrappers break here, so go directly to gcc and g++
if os.environ.has_key("CRAYOS_VERSION"):
    builder.add_env("CC", "gcc")
    builder.add_env("CXX", "g++")
    builder.add_env("LINK", "g++")
    builder.add_env("SHLINK", "g++")
コード例 #25
0
ファイル: build.py プロジェクト: rtobar/askapsoft
from askapdev.rbuild.builders import Autotools as Builder
import askapdev.rbuild.utils as utils

platform = utils.get_platform()

if platform['system'] == 'Darwin':
    builder = Builder(confcommand='Configure darwin64-x86_64-cc')

    # This works around the problem "Undefined symbols for architecture x86_64:
    # _OPENSSL_ia32cap_P" experienced in using OpenSSL in the "casdaupload"
    #  utility to generate SHA1 checksums. See Jira issue ASKAPSDP-1646
    builder.add_option('no-asm')

elif platform['system'] == 'Linux' and platform['architecture'] == '64bit':
    builder = Builder(confcommand='Configure linux-x86_64')
else:
    builder = Builder(confcommand='config')

if platform['architecture'] == '64bit':
    builder.add_option('-fPIC')

builder.remote_archive = "openssl-1.0.1h.tar.gz"
builder.add_option('no-shared')
builder.parallel = False
builder.nowarnings = True

builder.build()
コード例 #26
0
ファイル: build.py プロジェクト: ATNF/askapsdp
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()
コード例 #27
0
ファイル: build.py プロジェクト: ATNF/askapsdp
import os

from askapdev.rbuild.builders import Autotools as Builder
import askapdev.rbuild.utils as utils

builder = Builder(buildsubdir="build_unix",
                  confcommand='../dist/configure')
builder.remote_archive = "db-5.3.21.NC.tar.gz"

if os.uname()[4] == 'x86_64':
    builder.add_option('--with-pic')

#builder.add_option('--disable-shared') # Need shared libraries for Java.
builder.add_option('--enable-cxx')
builder.add_option('--enable-java')
builder.nowarnings = True

# On Mac OSX jni.h is in a  location where BerkleyDB can't find it. Including
# $JAVA_HOME/include (and include/darwin) fixes this. The JAVA_HOME environment
# can be setup on OSX like so (for bash): export JAVA_HOME=$(/usr/libexec/java_home)
platform =  utils.get_platform()
if platform['system'] == 'Darwin' and os.environ.has_key("JAVA_HOME"):
    javahome = os.environ.get('JAVA_HOME')
    builder.add_option('CPPFLAGS="-I%s/include -I%s/include/darwin"' %(javahome,javahome))

# The Cray cc and c++ compilers wrappers break here, so go directly to gcc and g++
if os.environ.has_key("CRAYOS_VERSION"):
    builder.add_env("CC","gcc")
    builder.add_env("CXX","g++")
    builder.add_env("LINK","g++")
    builder.add_env("SHLINK","g++")
コード例 #28
0
ファイル: build.py プロジェクト: rtobar/askapsoft
import os

from askapdev.rbuild.builders import Autotools as Builder

builder = Builder(pkgname="libodb-pgsql-2.4.0")

# setup the libodb dependency
libodb = builder.dep.get_install_path("libodb")
builder.add_option("CPPFLAGS=-I{0}/include".format(libodb))
builder.add_option("LDFLAGS=-L{0}/lib".format(libodb))

builder.remote_archive = "libodb-pgsql-2.4.0.tar.gz"
builder.nowarnings = True
builder.build()
コード例 #29
0
ファイル: build.py プロジェクト: rtobar/askapsoft

def callback():
    if os.path.exists("lib64") and not os.path.exists("lib"):
        os.symlink("lib64", "lib")


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)
コード例 #30
0
ファイル: build.py プロジェクト: ATNF/askapsdp
from askapdev.rbuild.builders import Autotools as Builder

def callback():
    if os.path.exists("lib64") and not os.path.exists("lib"):
        os.symlink("lib64", "lib")

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)
コード例 #31
0
ファイル: build.py プロジェクト: rtobar/askapsoft
from askapdev.rbuild.builders import Autotools as Builder

builder = Builder()
builder.remote_archive = "apr-util-1.3.9.tar.gz"

apr = builder.dep.get_install_path("apr")
expat = builder.dep.get_install_path("expat")
builder.add_option("--with-apr=%s" % apr)
builder.add_option("--with-expat=%s" % expat)
builder.add_option("--without-sqlite3")
builder.add_option("--without-sqlite2")
builder.add_option("--without-mysql")
builder.nowarnings = True

builder.build()
コード例 #32
0
ファイル: build.py プロジェクト: rtobar/askapsoft
import os

from askapdev.rbuild.builders import Autotools as Builder
import askapdev.rbuild.utils as utils

platform = utils.get_platform()
builder = Builder()
builder.remote_archive = "cppunit-1.12.0.tar.gz"

builder.add_option("--disable-doxygen")
builder.add_option("--disable-shared")
# See Issue #3942.  This is Ubuntu version 11 requirement.
# Ubuntu version 10 will work without it but does not hurt.
if platform['distribution'] == 'Ubuntu':
    builder.add_option("LIBS=-ldl")
builder.nowarnings = True

builder.build()
コード例 #33
0
import os

from askapdev.rbuild.builders import Autotools as Builder

builder = Builder(pkgname="libodb-boost-2.4.0")

# setup the libodb dependency
libodb = builder.dep.get_install_path("libodb")
builder.add_option("CPPFLAGS=-I{0}/include".format(libodb))

# setup the boost dependency
boost = builder.dep.get_install_path("boost")
builder.add_option("--with-boost={0}/include".format(boost))

# Set LDFLAGS
builder.add_option("LDFLAGS='-L{0}/lib -L{1}/lib'".format(
    libodb,
    boost))

builder.remote_archive = "libodb-boost-2.4.0.tar.gz"
builder.nowarnings = True
builder.build()
コード例 #34
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()
コード例 #35
0
ファイル: build.py プロジェクト: ATNF/askapsdp
from askapdev.rbuild.builders import Autotools as Builder

builder = Builder()
builder.remote_archive = "wcslib-4.18.tar.bz2"

builder.add_env("CFLAGS", "-fPIC")
builder.add_env("CPPFLAGS", "-fPIC")
builder.add_env("FFLAGS", "-fPIC")
builder.parallel = False
builder.nowarnings = True

cfitsio = builder.dep.get_install_path("cfitsio")
builder.add_option("--with-cfitsiolib=%s" % cfitsio+"/lib")
builder.add_option("--with-cfitsioinc=%s" % cfitsio+"/include")
builder.add_option("--without-pgplot")

builder.build()