|
NAMEExtUtils::PkgConfig - simplistic interface to pkg-configSYNOPSISuse ExtUtils::PkgConfig; $package = 'gtk+-2.0'; %pkg_info = ExtUtils::PkgConfig->find ($package); print "modversion: $pkg_info{modversion}\n"; print "cflags: $pkg_info{cflags}\n"; print "libs: $pkg_info{libs}\n"; $exists = ExtUtils::PkgConfig->exists($package); $modversion = ExtUtils::PkgConfig->modversion($package); $libs = ExtUtils::PkgConfig->libs($package); $cflags = ExtUtils::PkgConfig->cflags($package); $cflags_only_I = ExtUtils::PkgConfig->cflags_only_I($package); $cflags_only_other = ExtUtils::PkgConfig->cflags_only_other($package); $libs_only_L = ExtUtils::PkgConfig->libs_only_L($package); $libs_only_l = ExtUtils::PkgConfig->libs_only_l($package); $libs_only_other = ExtUtils::PkgConfig->libs_only_other($package); $static_libs = ExtUtils::PkgConfig->static_libs($package); $var_value = ExtUtils::PkgConfig->variable($package, $var); if (ExtUtils::PkgConfig->atleast_version($package,$version)) { ... } if (ExtUtils::PkgConfig->exact_version($package,$version)) { ... } if (ExtUtils::PkgConfig->max_version($package,$version)) { ... } DESCRIPTIONThe pkg-config program retrieves information about installed libraries, usually for the purposes of compiling against and linking to them.ExtUtils::PkgConfig is a very simplistic interface to this utility, intended for use in the Makefile.PL of perl extensions which bind libraries that pkg-config knows. It is really just boilerplate code that you would've written yourself. USAGE
SEE ALSOExtUtils::PkgConfig was designed to work with ExtUtils::Depends for compiling the various modules of the gtk2-perl project.L<ExtUtils::Depends> L<http://gtk2-perl.sourceforge.net/> This module is really just an interface to the pkg-config utility program. http://www.freedesktop.org/Software/pkgconfig AUTHORSmuppet <scott at asofyet dot org>.COPYRIGHT AND LICENSECopyright 2003-2004, 2012-2013 by muppet, Ross McFarland, and the gtk2-perl teamThis library is free software; you can redistribute it and/or modify it under the terms of the Lesser General Public License (LGPL). For more information, see http://www.fsf.org/licenses/lgpl.txt
Visit the GSP FreeBSD Man Page Interface. |