[libnet-dbus-perl] 90/335: Use pkg-config for finding CFLAGS & LIBS for dbus

Intrigeri intrigeri at moszumanska.debian.org
Sat Mar 21 01:07:31 UTC 2015


This is an automated email from the git hooks/post-receive script.

intrigeri pushed a commit to branch experimental
in repository libnet-dbus-perl.

commit 3f29450bf8fd447833c1bec6ccc6b9c5c0c66ed3
Author: Daniel P. Berrange <dan at berrange.com>
Date:   Mon Aug 29 12:54:04 2005 +0000

    Use pkg-config for finding CFLAGS & LIBS for dbus
---
 Makefile.PL | 27 ++++++---------------------
 1 file changed, 6 insertions(+), 21 deletions(-)

diff --git a/Makefile.PL b/Makefile.PL
index 9f65bd0..095421b 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -3,23 +3,8 @@ use ExtUtils::MakeMaker;
 # See lib/ExtUtils/MakeMaker.pm for details of how to influence
 # the contents of the Makefile that is written.
 
-$DBUS_HOME="/usr";
-#$DBUS_HOME="/usr/local";
-#$DBUS_HOME="/usr/local/dbus-0.21";
-#$DBUS_HOME="/opt/dbus-0.21";
-
-$PD_DEBUG="";
-#$PD_DEBUG="-DPD_DO_DEBUG";
-
-foreach (@ARGV) {
-    if (/^DBUS_HOME=(.*)$/) {
-	$DBUS_HOME = $1;
-    } elsif (/^DBUS_DEBUG=0$/) {
-	$PD_DEBUG = "";
-    } elsif (/^DBUS_DEBUG=1$/) {
-	$PD_DEBUG = "-DPD_DO_DEBUG";
-    }
-}
+my $DBUS_LIBS = `pkg-config --libs dbus-1`;
+my $DBUS_CFLAGS = `pkg-config --cflags dbus-1`;
 
 WriteMakefile(
     'NAME' => 'Net::DBus',
@@ -30,11 +15,11 @@ WriteMakefile(
         'XML::Grove' => 0,
         'XML::Parser' => 0
     },
-    'ABSTRACT_FROM' => 'lib/Net/DBus.pm',
+#    'ABSTRACT_FROM' => 'lib/Net/DBus.pm',
     'AUTHOR' => 'Daniel Berrange <dan at berrange.com>',
-    'LIBS' => ["-L$DBUS_HOME/lib -ldbus-1"], 
-    'DEFINE' => "-DDBUS_API_SUBJECT_TO_CHANGE $PD_DEBUG",
-    'INC' => "-Wall -I$DBUS_HOME/include/dbus-1.0 -I$DBUS_HOME/lib/dbus-1.0/include",
+    'LIBS' => [$DBUS_LIBS], 
+    'DEFINE' => "-DDBUS_API_SUBJECT_TO_CHANGE",
+    'INC' => "-Wall $DBUS_CFLAGS",
     'depend' => {
        Net-DBus.spec => '$(VERSION_FROM)'
     }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libnet-dbus-perl.git



More information about the Pkg-perl-cvs-commits mailing list