Marc Kupietz | bf9bac0 | 2022-04-11 21:16:47 +0200 | [diff] [blame] | 1 | #!/usr/bin/env perl |
| 2 | use v5.16; |
| 3 | use strict; |
| 4 | use warnings; |
| 5 | use ExtUtils::MakeMaker; |
Marc Kupietz | 9f6a19d | 2024-11-15 16:22:47 +0100 | [diff] [blame^] | 6 | use lib qw(inc); |
| 7 | use Devel::CheckLib; |
| 8 | |
| 9 | check_lib_or_exit( |
| 10 | cflags => '-Wall -Wno-unused-result -fno-rtti -O4 -I/usr/local/include', |
| 11 | header => ['unistd.h', 'stdio.h', 'stdlib.h', 'string.h', 'collocatordb.h'], |
| 12 | function => 'char *min_v = "1.3.2"; char *v = get_version(); if(strcmp(min_v, v) <= 0) { return 0; } else { fprintf(stderr, "Installed collocatordb version %s is too low. Minimally %s is required.\n", v, min_v); return(1); }', |
| 13 | libpath => ['/usr/lib', '/usr/local/lib64', '/usr/local/lib'], |
| 14 | incpath => ['/usr/include', '/usr/local/include'], |
| 15 | # debug => 1, |
| 16 | lib => 'collocatordb'); |
Marc Kupietz | bf9bac0 | 2022-04-11 21:16:47 +0200 | [diff] [blame] | 17 | |
| 18 | WriteMakefile( |
| 19 | NAME => 'derekovecs::server', |
| 20 | AUTHOR => 'Marc Kupietz', |
| 21 | ABSTRACT => 'Visualization of paradigmatic and syntagmatic word relations.', |
| 22 | VERSION_FROM => 'script/derekovecs-server', |
| 23 | LICENSE => 'apache', |
Marc Kupietz | 3e3e326 | 2022-04-12 23:11:45 +0200 | [diff] [blame] | 24 | BUILD_REQUIRES => { |
| 25 | 'Test::More' => 0, |
Marc Kupietz | c82b15f | 2022-07-19 17:36:27 +0200 | [diff] [blame] | 26 | 'Test::TempFile' => 0, |
Marc Kupietz | 3e3e326 | 2022-04-12 23:11:45 +0200 | [diff] [blame] | 27 | "REST::Client" => 0, |
| 28 | "Data::Dump" => 0, |
Marc Kupietz | 9f6a19d | 2024-11-15 16:22:47 +0100 | [diff] [blame^] | 29 | "Devel::CheckLib" => ">=1.16", |
Marc Kupietz | 3e3e326 | 2022-04-12 23:11:45 +0200 | [diff] [blame] | 30 | }, |
Marc Kupietz | bf9bac0 | 2022-04-11 21:16:47 +0200 | [diff] [blame] | 31 | PREREQ_PM => { |
| 32 | 'Inline::C' => '0.82', |
Marc Kupietz | 3576c62 | 2023-11-05 08:51:58 +0100 | [diff] [blame] | 33 | 'LWP::Simple' => 0, |
Marc Kupietz | bf9bac0 | 2022-04-11 21:16:47 +0200 | [diff] [blame] | 34 | 'Getopt::Std' => 0, |
| 35 | 'Getopt::Long' => 0, |
| 36 | 'Log::Any' => '1.701', |
| 37 | 'Encode' => "3.17", |
| 38 | 'Mojolicious' => '9.23', |
| 39 | 'Mojolicious::Plugin::Util::RandomString' => '0.09', |
| 40 | 'Mojolicious::Plugin::CHI' => '0.20', |
| 41 | 'Mojolicious::Plugin::ClientIP' => '0.02', |
| 42 | 'Mojolicious::Plugin::AutoSecrets' => '0.006', |
| 43 | 'Mojolicious::Plugin::RequestBase' => '0.3', |
| 44 | 'Mojolicious::Plugin::RemoteAddr' => 0, |
| 45 | 'Mojolicious::Plugin::Log::Access' => '0.041', |
| 46 | 'Mojolicious::Plugin::Piwik' => '1.00', |
| 47 | 'Mojo::JSON' => 0, |
| 48 | |
| 49 | # Required for older perl bundles |
| 50 | 'List::Util' => 1.45, |
| 51 | |
| 52 | # Currently on GitHub only (github.com/akron) |
| 53 | 'Mojolicious::Plugin::Localize' => '0.21' |
| 54 | |
| 55 | }, |
| 56 | MIN_PERL_VERSION => '5.016', |
| 57 | EXE_FILES => ['./script/derekovecs-server'] |
| 58 | ); |