cd($this->source_dir) ->exec( './configure ' . '--enable-static --disable-shared ' . "{$extra_libs} " . '--disable-cxx ' . '--prefix=' ); // TODO: Remove this check when https://gitlab.com/libtiff/libtiff/-/merge_requests/635 will be merged and released if (file_exists($this->source_dir . '/html')) { $shell->exec('make clean'); } $shell ->exec("make -j{$this->builder->concurrency}") ->exec('make install DESTDIR=' . BUILD_ROOT_PATH); $this->patchPkgconfPrefix(['libtiff-4.pc']); } }