Enlightenment CVS committal Author : leviathan Project : e17 Module : libs/etk-perl
Dir : e17/libs/etk-perl/xs Modified Files: Makefile.PL Log Message: version increment for CPAN release, and add flags check =================================================================== RCS file: /cvs/e/e17/libs/etk-perl/xs/Makefile.PL,v retrieving revision 1.3 retrieving revision 1.4 diff -u -3 -r1.3 -r1.4 --- Makefile.PL 17 Jul 2007 08:51:54 -0000 1.3 +++ Makefile.PL 3 Mar 2008 08:29:15 -0000 1.4 @@ -2,6 +2,11 @@ use ExtUtils::MakeMaker; use Devel::PPPort; +my $cflags = `pkg-config --cflags etk`; +my $libs = `pkg-config --libs etk`; +if ($cflags eq "" || $libs eq "") { + die "Cannot find Etk."; +} # Add the boot section my $debug = $ARGV[0] eq "debug" ? 1 : 0; my @list = grep { $_ ne "Etk" } map { s/\.xs$//; $_ } <*.xs>; @@ -32,9 +37,9 @@ ($] >= 5.005 ? (ABSTRACT => 'Perl bindings for the Enlightened ToolKit (Etk)', AUTHOR => q|Chady 'Leviathan' Kassouf <[EMAIL PROTECTED]>|) : ()), - LIBS => [`pkg-config --libs etk`], + LIBS => [$libs], DEFINE => '', #'-DDEBUG', - INC => "-g -I. `pkg-config --cflags etk`", + INC => "-g -I. $cflags", XSPROTOARG => '-noprototypes', OBJECT => '$(O_FILES)', clean => {FILES=>"Etk.xs"}, ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs