Subject: | Support for additional pkg-config functions |
The attached, quite simple, patch provides support for the following
pkg-config functions:
static
cflags-only-I
cflags-only-other
libs-only-other
Subject: | ExtUtils-PkgConfig-1.08.patch |
# This is a patch for ExtUtils-PkgConfig-1.08.orig to update it to ExtUtils-PkgConfig-1.08
#
# To apply this patch:
# STEP 1: Chdir to the source directory.
# STEP 2: Run the 'applypatch' program with this patch file as input.
#
# If you do not have 'applypatch', it is part of the 'makepatch' package
# that you can fetch from the Comprehensive Perl Archive Network:
# http://www.perl.com/CPAN/authors/Johan_Vromans/makepatch-x.y.tar.gz
# In the above URL, 'x' should be 2 or higher.
#
# To apply this patch without the use of 'applypatch':
# STEP 1: Chdir to the source directory.
# STEP 2: Run the 'patch' program with this file as input.
#
#### End of Preamble ####
#### Patch data follows ####
diff -c 'ExtUtils-PkgConfig-1.08.orig/lib/ExtUtils/PkgConfig.pm' 'ExtUtils-PkgConfig-1.08/lib/ExtUtils/PkgConfig.pm'
Index: ./lib/ExtUtils/PkgConfig.pm
*** ./lib/ExtUtils/PkgConfig.pm Fri Oct 19 16:04:33 2007
--- ./lib/ExtUtils/PkgConfig.pm Fri Jan 18 14:13:57 2008
***************
*** 42,49 ****
my $ans = undef;
my $arg = shift;
! if (grep {$_ eq $function} qw/libs modversion cflags
! libs-only-L libs-only-l/)
{
# simple
$ans = `pkg-config --$function \"$modulename\"`;
--- 42,51 ----
my $ans = undef;
my $arg = shift;
! if (grep {$_ eq $function} qw/libs static modversion cflags
! cflags-only-I cflags-only-other
! libs-only-L libs-only-l libs-only-other
! /)
{
# simple
$ans = `pkg-config --$function \"$modulename\"`;
#### End of Patch data ####
#### ApplyPatch data follows ####
# Data version : 1.0
# Date generated : Fri Jan 18 14:15:46 2008
# Generated by : makepatch 2.00
# Recurse directories : Yes
# p 'lib/ExtUtils/PkgConfig.pm' 7590 1200683637 0100644
#### End of ApplyPatch data ####
#### End of Patch kit [created: Fri Jan 18 14:15:46 2008] ####
#### Checksum: 54 1926 15283 ####