Skip to content

Commit

Permalink
Add pkg_config_path class method
Browse files Browse the repository at this point in the history
  • Loading branch information
zmughal committed Oct 30, 2023
1 parent f1b5d6e commit b507a22
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions lib/Alien/Serd.pm
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,18 @@ use warnings;
use base qw( Alien::Base );
use 5.008004;

use File::Spec;
use ExtUtils::PkgConfig;

sub pkg_config_path {
my ($class) = @_;
if( $class->install_type eq 'share' ) {
return File::Spec->catfile( File::Spec->rel2abs($class->dist_dir), qw(lib pkgconfig) );
} else {
return ExtUtils::PkgConfig->variable('serd-0', 'pcfiledir');
}
}

1;

=head1 NAME
Expand Down

0 comments on commit b507a22

Please sign in to comment.