-
- if (!chdir($temp)) {
- $this->error(null);
- exit(4);
- }
-
- // phpize
- $this->exec("phpize", $this->php("ize"));
-
- // configure
- $args = ["--with-php-config=". $this->php("-config")];
- if ($this->args->configure) {
- $args = array_merge($args, $this->args->configure);
- }
- $this->exec("configure", "./configure", $args);
-
- // make
- if ($this->args->verbose) {
- $this->exec("make", "make", ["-j3"]);
- } else {
- $this->exec("make", "make", ["-j3", "-s"]);
- }
-
- // install
- if ($this->args->verbose) {
- $this->exec("install", "make", ["install"], true);
- } else {
- $this->exec("install", "make", ["install", "-s"], true);
- }
-
- // activate
- $this->activate();
-
- // cleanup
- $this->cleanup($temp);