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()
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 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")
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 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()
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()
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()
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()
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.add_option("--enable-reentrant") builder.add_option("--enable-sse2") 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 = "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 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")
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()
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")
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 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() 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()
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()
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()
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()
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()
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="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()
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)
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)
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()
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 # 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()