blob: e095a24ce2cf030dc02af7d538592f124e4536f0 [file] [log] [blame]
Marc Kupietzbf9bac02022-04-11 21:16:47 +02001#!/usr/bin/env perl
2use v5.16;
3use strict;
4use warnings;
5use ExtUtils::MakeMaker;
Marc Kupietz9f6a19d2024-11-15 16:22:47 +01006use lib qw(inc);
7use Devel::CheckLib;
8
9check_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 Kupietzbf9bac02022-04-11 21:16:47 +020017
18WriteMakefile(
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 Kupietz3e3e3262022-04-12 23:11:45 +020024 BUILD_REQUIRES => {
25 'Test::More' => 0,
Marc Kupietzc82b15f2022-07-19 17:36:27 +020026 'Test::TempFile' => 0,
Marc Kupietz3e3e3262022-04-12 23:11:45 +020027 "REST::Client" => 0,
28 "Data::Dump" => 0,
Marc Kupietz9f6a19d2024-11-15 16:22:47 +010029 "Devel::CheckLib" => ">=1.16",
Marc Kupietz3e3e3262022-04-12 23:11:45 +020030 },
Marc Kupietzbf9bac02022-04-11 21:16:47 +020031 PREREQ_PM => {
32 'Inline::C' => '0.82',
Marc Kupietz3576c622023-11-05 08:51:58 +010033 'LWP::Simple' => 0,
Marc Kupietzbf9bac02022-04-11 21:16:47 +020034 '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);