Beispiel #1
0
    def build(self):
        autotools = AutoToolsBuildEnvironment(self)
        autotools.fPIC = True
        env_build_vars = autotools.vars
        configure_args = [
            "--disable-bsdtar", "--disable-bsdcat", "--disable-bsdcpio",
            "--with-zlib", "--without-bz2lib", "--without-iconv",
            "--without-lz4", "--without-lzma", "--without-lzo2",
            "--without-nettle", "--without-openssl", "--without-xml2",
            "--without-expat"
        ]

        if self.options["shared"]:
            configure_args += ["--enable-shared", "--disable-static"]
        else:
            configure_args += ["--disable-shared", "--enable-static"]

        if self.options["fPIC"]:
            configure_args += ["--with-pic"]

        autotools.configure(configure_dir="libarchive-3.3.3",
                            vars=env_build_vars,
                            args=configure_args)

        autotools.make(vars=env_build_vars)
        autotools.install(vars=env_build_vars)
Beispiel #2
0
 def _build_configure(self):
     with tools.chdir(self._source_subfolder):
         env_build = AutoToolsBuildEnvironment(self)
         env_build.fPIC = self.options.fPIC
         env_build.configure()
         env_build.make()