summaryrefslogtreecommitdiff
path: root/source4/build/smb_build/env.pm
diff options
context:
space:
mode:
Diffstat (limited to 'source4/build/smb_build/env.pm')
-rw-r--r--source4/build/smb_build/env.pm23
1 files changed, 23 insertions, 0 deletions
diff --git a/source4/build/smb_build/env.pm b/source4/build/smb_build/env.pm
index 86632bdb89..9e52e1974d 100644
--- a/source4/build/smb_build/env.pm
+++ b/source4/build/smb_build/env.pm
@@ -45,5 +45,28 @@ sub set_config($$)
}
}
+sub PkgConfig($$$$$$)
+{
+ my ($self,$path,$name,$libs,$cflags,$version) = @_;
+
+ print __FILE__.": creating $path\n";
+
+ open(OUT, ">$path") or die("Can't open $path: $!");
+
+ print OUT <<"__EOF__";
+prefix=$self->{config}->{prefix}
+exec_prefix=$self->{config}->{exec_prefix}
+libdir=$self->{config}->{libdir}
+includedir=$self->{config}->{includedir}
+
+__EOF__
+
+ print OUT "Name: $name\n";
+ print OUT "Version: $version\n";
+ print OUT "Libs: $libs\n";
+ print OUT "Cflags: $cflags\n";
+
+ close(OUT);
+}
1;