source_dir . '/src/lib/thirdparty/apple/dnsinfo.h')) { FileSystem::createDir($this->source_dir . '/src/lib/thirdparty/apple'); copy(ROOT_DIR . '/src/globals/extra/libcares_dnsinfo.h', $this->source_dir . '/src/lib/thirdparty/apple/dnsinfo.h'); return true; } return false; } /** * @throws RuntimeException */ protected function build(): void { shell()->cd($this->source_dir)->initializeEnv($this) ->exec('./configure --prefix= --enable-static --disable-shared --disable-tests --with-pic') ->exec("make -j {$this->builder->concurrency}") ->exec('make install DESTDIR=' . BUILD_ROOT_PATH); $this->patchPkgconfPrefix(['libcares.pc'], PKGCONF_PATCH_PREFIX); } }