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()
import os 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 = "Common-3.3.tar.gz" boost = builder.dep.get_install_path("boost") 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("--with-boost=%s" % boost) builder.add_option("--with-boost-libdir=%s/lib" % boost) builder.add_option("--without-insuretools") builder.add_option("--without-puretools") builder.add_postcallback(callback) builder.nowarnings = True builder.build()
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()
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()
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()
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()
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()
# So explicitly turn it off. # Cannot add as a postcallback as package.info not yet created. # 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()
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()
import os import distutils.sysconfig from askapdev.rbuild.builders import Autotools as Builder from askapdev.rbuild.builders import Setuptools as Builder2 import askapdev.rbuild.utils as utils targets = 'cpp py java' os.environ['PYTHON_HOME'] = os.getenv('ASKAP_ROOT') # Create the builder now as we need builder._prefix. builder = Builder(confcommand=None) builder.remote_archive = "Ice-3.5.0.tar.gz" db = builder.dep.get_install_path("db") bzip2 = builder.dep.get_install_path("bzip2") expat = builder.dep.get_install_path("expat") mcpp = builder.dep.get_install_path("mcpp") openssl = builder.dep.get_install_path("openssl") # Required for java build oldldp = os.environ.get('LD_LIBRARY_PATH', '') newldp = os.path.join(db, "lib") oldcp = os.environ.get('CLASSPATH', '') newcp = os.path.join(db, "lib", "db.jar") builder.add_classpath_paths(newcp) builder.add_ld_library_paths(newldp) top_m = [('^SUBDIRS.*=.*', 'SUBDIRS = %s' % targets),
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-6.1.26.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++")
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()
from askapdev.rbuild.builders import Autotools as Builder builder = Builder("cfitsio", buildtargets=['shared']) builder.remote_archive = "cfitsio3350.tar.gz" builder.nowarnings = True builder.build()
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()
from askapdev.rbuild.builders import Autotools as Builder builder = Builder() builder.remote_archive = "gsl-1.16.tar.gz" builder.nowarnings = True builder.build()
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()
import os from askapdev.rbuild.builders import Autotools as Builder import askapdev.rbuild.utils as utils ASKAP_ROOT = os.getenv('ASKAP_ROOT') install_cmd = "make prefix=%s install" % ASKAP_ROOT platform = utils.get_platform() if platform['system'] == 'Darwin': archext = "macosx" buildext = "mac" else: archext = "linux" buildext = "gcc" if platform['system'] == 'FreeBSD': install_cmd = 'g' + install_cmd builder = Builder(pkgname="astyle/build/%s" % buildext, confcommand=None, installcommand=install_cmd) builder.remote_archive = "astyle_2.04_" + archext + ".tar.gz" # It extracts to sub directory astyle not the expected astyle-2.04. builder.add_extra_clean_targets('astyle') builder.nowarnings = True builder.build()
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()
import os from askapdev.rbuild.builders import Autotools as Builder builder = Builder("cfitsio", buildtargets=['shared']) builder.remote_archive = "cfitsio3420.tar.gz" builder.nowarnings = True if os.path.basename(os.getenv('FC')) == "pgfortran": builder.add_env("CPPFLAGS", "-DpgiFortran") builder.build()
"""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") # copytree requires that the destination not exist if os.path.exists(dst_path): shutil.rmtree(dst_path) shutil.copytree(src_path, dst_path, symlinks=True) # setup the cfitsio dependency # Some build targets honour the --with-libcfitsio flag, but others do not :( # The targets that ignore --with-libcfitsio use the following 3 variables instead cfitsio = builder.dep.get_install_path("cfitsio") os.putenv("EXTERNAL_CFITSIO", "yes") os.putenv("CFITSIO_EXT_LIB", "-L{0}/lib/ -lcfitsio".format(cfitsio)) os.putenv("CFITSIO_EXT_INC", "-I{0}/include/".format(cfitsio)) builder.add_option("--with-libcfitsio={0}".format(cfitsio)) builder.add_option("--enable-noisy-make") builder.remote_archive = "Healpix_3.31_2016Aug26.tar.gz" builder.nowarnings = True builder.add_precallback(run_autoconf) builder.add_postcallback(install) builder.build()
import os.path from askapdev.rbuild.builders import Autotools as Builder prefix = os.path.join(os.path.abspath(os.path.curdir), "install") builder = Builder(confcommand=None, installcommand='make install PREFIX=%s' % prefix) builder.remote_archive = "bzip2-1.0.5.tar.gz" builder.nowarnings = True builder.build()
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()
import os from askapdev.rbuild.builders import Autotools as Builder builder = Builder(pkgname="libcutl-1.10.0") builder.remote_archive = "libcutl-1.10.0.tar.gz" builder.nowarnings = True builder.build()
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()
utils.run("./configure --prefix %s" % ASKAP_ROOT) def postinstall(): if not os.path.exists(DOXYGEN_DIR): os.makedirs(DOXYGEN_DIR) shutil.copy('files/doxygen.css', DOXYGEN_DIR) shutil.copy('files/doxygen-%s.conf' % DOXYGEN_VER, DOXYGEN_DIR) if os.path.exists(DOXYSYMLINK): os.remove(DOXYSYMLINK) cwd = os.getcwd() os.chdir(DOXYGEN_DIR) os.symlink('doxygen-%s.conf' % DOXYGEN_VER, 'doxygen.conf') os.chdir(cwd) builder = Builder() builder.remote_archive = "doxygen-" + DOXYGEN_VER + ".src.tar.gz" # overwrite _configure method as it isn't autotools builder._configure = configure # http://trac.macports.org/changeset/101062 - remove clang flag so can build # with gcc. if platform['system'] == 'Darwin': for cfile in CFILES: builder.replace(cfile, '-Wno-invalid-source-encoding', '') builder.add_postcallback(postinstall) #builder.parallel = False builder.nowarnings = True builder.build()
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()
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++")
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()
def postinstall(): if not os.path.exists(DOXYGEN_DIR): os.makedirs(DOXYGEN_DIR) shutil.copy('files/doxygen.css', DOXYGEN_DIR) shutil.copy('files/doxygen-%s.conf' % DOXYGEN_VER, DOXYGEN_DIR) if os.path.exists(DOXYSYMLINK): os.remove(DOXYSYMLINK) cwd = os.getcwd() os.chdir(DOXYGEN_DIR) os.symlink('doxygen-%s.conf' % DOXYGEN_VER, 'doxygen.conf') os.chdir(cwd) builder = Builder() builder.remote_archive = "doxygen-" + DOXYGEN_VER + ".src.tar.gz" # overwrite _configure method as it isn't autotools builder._configure = configure # http://trac.macports.org/changeset/101062 - remove clang flag so can build # with gcc. if platform['system'] == 'Darwin': for cfile in CFILES: builder.replace(cfile, '-Wno-invalid-source-encoding', '') builder.add_postcallback(postinstall) #builder.parallel = False builder.nowarnings = True builder.build()
from askapdev.rbuild.builders import Autotools as Builder builder = Builder() builder.remote_archive = "zeromq-4.0.4.tar.gz" builder.nowarnings = True builder.add_install_file("files/zmq.hpp", "include") builder.build()
from askapdev.rbuild.builders import Autotools as Builder builder = Builder() builder.remote_archive = "cmake-2.8.12.2.tar.gz" builder.nowarnings = True builder.build()
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")
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++")
import os from askapdev.rbuild.builders import Autotools as Builder builder = Builder(pkgname="./sqlite-autoconf-3200000") builder.remote_archive = "sqlite-autoconf-3200000.tar.gz" builder.nowarnings = True builder.build()
import os 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)
import os 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)
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()
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()
from askapdev.rbuild.builders import Autotools as Builder builder = Builder() builder.remote_archive = "gsl-1.10.tar.gz" builder.nowarnings = True builder.build()
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()
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()