Skip Menu |

This queue is for tickets about the Net-Libdnet CPAN distribution.

Report information
The Basics
Id: 43899
Status: resolved
Priority: 0/
Queue: Net-Libdnet

People
Owner: gomor [...] cpan.org
Requestors: melo [...] simplicidade.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



CC: Pedro Melo <melo [...] simplicidade.org>
Subject: [PATCH] Use dnet-config to configure the location of the libs and include files
Date: Fri, 6 Mar 2009 12:04:32 +0000
To: bug-Net-Libdnet [...] rt.cpan.org
From: Pedro Melo <melo [...] simplicidade.org>
Requires dnet-config to be in your PATH, but falls back to previous hardcoded configuration values. Signed-off-by: Pedro Melo <melo@simplicidade.org> --- Makefile.PL | 10 ++++++++-- 1 files changed, 8 insertions(+), 2 deletions(-) diff --git a/Makefile.PL b/Makefile.PL index 3303eb7..c20cd1f 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -3,14 +3,20 @@ # use ExtUtils::MakeMaker; +my $libs = qx{dnet-config --libs 2>/dev/null}; +$libs ||= ['-L/lib -L/usr/lib -L/usr/local/lib -ldnet']; + +my $inc = qx{dnet-config --cflags 2>/dev/null}; +$inc ||= '-I/include -I/usr/include -I/usr/local/include'; + WriteMakefile( NAME => 'Net::Libdnet', VERSION_FROM => 'lib/Net/Libdnet.pm', LICENSE => 'bsd', ABSTRACT_FROM => 'lib/Net/Libdnet.pm', AUTHOR => 'GomoR <perl@gomor.org>', - LIBS => ['-L/lib -L/usr/lib -L/usr/local/lib -ldnet'], - INC => '-I/include -I/usr/include -I/usr/local/include', + LIBS => $libs, + INC => $inc, DEFINE => '', EXE_FILES => [ @{[glob('bin/*.pl')]} ], PREREQ_PM => { -- 1.6.2.77.g8cc3f
In version 0.92.