-
-
Notifications
You must be signed in to change notification settings - Fork 184
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add libtiff support * fix command option not working on *nix * fix test with libs ext test
- Loading branch information
1 parent
b46655e
commit 9664709
Showing
7 changed files
with
78 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace SPC\builder\linux\library; | ||
|
||
class libtiff extends LinuxLibraryBase | ||
{ | ||
use \SPC\builder\unix\library\libtiff; | ||
|
||
public const NAME = 'libtiff'; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace SPC\builder\macos\library; | ||
|
||
class libtiff extends MacOSLibraryBase | ||
{ | ||
use \SPC\builder\unix\library\libtiff; | ||
|
||
public const NAME = 'libtiff'; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace SPC\builder\unix\library; | ||
|
||
use SPC\exception\FileSystemException; | ||
use SPC\exception\RuntimeException; | ||
|
||
trait libtiff | ||
{ | ||
/** | ||
* @throws FileSystemException | ||
* @throws RuntimeException | ||
*/ | ||
protected function build(): void | ||
{ | ||
shell()->cd($this->source_dir) | ||
->exec( | ||
'./configure ' . | ||
'--enable-static --disable-shared ' . | ||
'--disable-cxx ' . | ||
'--prefix=' | ||
) | ||
->exec('make clean') | ||
->exec("make -j{$this->builder->concurrency}") | ||
->exec('make install DESTDIR=' . BUILD_ROOT_PATH); | ||
$this->patchPkgconfPrefix(['libtiff-4.pc']); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters