| 1 | 1 | ▶ | use alienfile; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 2 | |||
| 3 | 1 | plugin 'PkgConfig' => ( | |
| 4 | pkg_name => 'libnghttp2', | ||
| 5 | atleast_version => '1.57.0', | ||
| 6 | ); | ||
| 7 | |||
| 8 | 1 | ▶ | share { |
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||
| 9 | 1 | requires 'Alien::Build::Plugin::Build::CMake' => '0.99'; | |
| 10 | 1 | requires 'Alien::cmake3' => '0.02'; | |
| 11 | 1 | requires 'Alien::Build::Plugin::Download::GitHub' => '0.10'; | |
| 12 | |||
| 13 | 1 | plugin 'Download::GitHub' => ( | |
| 14 | github_user => 'nghttp2', | ||
| 15 | github_repo => 'nghttp2', | ||
| 16 | ); | ||
| 17 | |||
| 18 | 1 | plugin 'Extract' => 'tar.gz'; | |
| 19 | |||
| 20 | 1 | plugin 'Build::CMake' => (); | |
| 21 | |||
| 22 | build [ | ||
| 23 | ['%{cmake}', | ||
| 24 | 1 | @{ meta->prop->{plugin_build_cmake}->{args} }, | |
| 25 | '-DENABLE_LIB_ONLY=ON', | ||
| 26 | # Build static library for share install - simpler and more portable | ||
| 27 | '-DBUILD_STATIC_LIBS=ON', | ||
| 28 | '-DBUILD_SHARED_LIBS=OFF', | ||
| 29 | '-DBUILD_TESTING=OFF', | ||
| 30 | '-DCMAKE_INSTALL_PREFIX:PATH=%{.install.prefix}', | ||
| 31 | '%{.install.extract}', | ||
| 32 | ], | ||
| 33 | ['%{make}'], | ||
| 34 | ['%{make}', 'install'], | ||
| 35 | ]; | ||
| 36 | 1 | }; | |