fwknop/perl/FKO/Makefile.PL
Michael Rash 8078b0ec1f Commented out Devel::Checklib since this is most likely for CPAN anyway
There were portability issues on FreeBSD when Devel::Checklib was in use, but
this can be added back in for a CPAN version of the perl FKO module.
2012-12-09 10:28:50 -05:00

41 lines
1009 B
Perl

use lib 'inc';
#use Devel::CheckLib; ### maybe use for CPAN distribution?
use 5.008008;
use ExtUtils::MakeMaker;
my $fkolib_dir;
my @libdirs = qw(
/usr/lib64
/usr/lib
/usr/local/lib64
/usr/local/lib
/usr/lib64/fko
/usr/lib/fko
/usr/local/lib64/fko
/usr/local/lib/fko
/opt/fko/lib64
/opt/fko/lib
../../lib/.libs
);
### uncomment for CPAN distribution?
#check_lib_or_exit(
# lib => [qw( fko )],
# libpath => \@libdirs
#);
WriteMakefile(
NAME => 'FKO',
VERSION_FROM => 'lib/FKO.pm',
PREREQ_PM => {},
($] >= 5.005 ?
(ABSTRACT_FROM => 'lib/FKO.pm',
AUTHOR => 'Damien S. Stuart <dstuart@dstuart.org>') : ()),
LIBS => ['-L../../lib/.libs -lfko'],
DEFINE => '', # e.g., '-DHAVE_SOMETHING'
INC => '-I. -I../../lib',
# Un-comment this if you add C files to link with later:
# OBJECT => '$(O_FILES)', # link all the C files too
);