ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/Geo-LatLon2Place/Makefile.PL
Revision: 1.4
Committed: Mon Mar 14 22:48:05 2022 UTC (2 years, 1 month ago) by root
Content type: text/plain
Branch: MAIN
CVS Tags: rel-1_0, rel-0_9, HEAD
Changes since 1.3: +21 -1 lines
Log Message:
*** empty log message ***

File Contents

# Content
1 use ExtUtils::MakeMaker;
2
3 use Canary::Stability Geo::LatLon2Place => 1, 5.010;
4
5 my $embed_cdb = $^O eq "MSWin32";
6
7 if (exists $ENV{GEO_LATLON2PLACE_EMBED_CDB}) {
8 $embed_cdb = $ENV{GEO_LATLON2PLACE_EMBED_CDB};
9 } else {
10 print <<EOF;
11
12 *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
13
14 Use embedded CDB?
15
16 On most platforms, this module will rely on the system tinycdb library
17 (on GNU/Debian you can "apt install libcdb-dev" for example). However,
18 this module can also use an embedded version of this library.
19
20 EOF
21
22 $embed_cdb = prompt ("Use embedded tinycdb library (y/n)?", $embed_cdb ? "y" : "n") =~ /y/i;
23 }
24
25 WriteMakefile(
26 dist => {
27 PREOP => 'pod2text LatLon2Place.pm | tee README >$(DISTVNAME)/README; chmod -R u=rwX,go=rX . ;',
28 COMPRESS => 'gzip -9v',
29 SUFFIX => '.gz',
30 },
31 NAME => "Geo::LatLon2Place",
32 ($embed_cdb ? (DEFINE => "-DEMBED_CDB") : (LIBS => ["-lcdb"])),
33 VERSION_FROM => "LatLon2Place.pm",
34 CONFIGURE_REQUIRES => {
35 "ExtUtils::MakeMaker" => 6.6,
36 "Canary::Stability" => 0,
37 },
38 PREREQ_PM => {
39 common::sense => 3.75,
40 },
41 EXE_FILES => ["bin/geo-latlon2place-makedb"],
42 );
43