summaryrefslogtreecommitdiffstats
path: root/package/pkg-config
Commit message (Collapse)AuthorAgeFilesLines
* pkg-config: add usr/share/pkgconfig to search path as wellPeter Korsgaard2011-03-271-1/+1
| | | | | | | | A few packages (like xlib_xtrans) install their .pc files here, and upstream pkg-config defaults to searching both /usr/lib/pkgconfig and /usr/share/pkgconfig, so add it as well. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* pkg-config: only prepend sysroot to includedir / libdirPeter Korsgaard2011-03-101-8/+10
| | | | | | | | | | | | | | | | | | Only append sysroot to includedir / libdir, and not to other variables, when a variable is requested (--variable=<name>), similar to how it is done for the -I / -L flags in cflags/ldflags. The problem is that pkg-config doesn't have any explicit cross compilation support, so there's some confusion about what are host paths and what are target ones. Includedir / libdir are paths for the (cross) compiler, so those should normally have sysroot prepended, but other variables might refer to target paths instead. This fixes the installation of the xfonts-* packages, which uses pkg-config --variable=fontrootdir fontutil to figure out the target installation location for fonts. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* pkg-config: rework --with-sysroot patch so it doesn't break target buildPeter Korsgaard2011-01-301-12/+20
| | | | | | | | | | | We don't currently autoreconf pkg-config for the target as we don't need --with-sysroot support, which means PKG_CONFIG_SYSROOT=NULL wasn't passed, breaking the build. Fix it by reworking the patch to only pass this if --with-sysroot is given, and handle the not set case in main.c. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* pkg-config: add --with-sysroot option for compiled in default sysroot settingPeter Korsgaard2011-01-302-0/+73
| | | | | | | | | | | | | Similar to the --with-pc-path option. It works just like the existing PKG_CONFIG_SYSROOT_DIR environment variable, but compiled in. The environment variable overrides this default setting if set. This way we don't need to pass PKG_CONFIG_SYSROOT_DIR in the environment when building for the target, and it is easier to reuse pkg-config outside BR (E.G. for the SDK) without having to setup special environment variables. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* pkg-config: prefix sysroot to path variablesPeter Korsgaard2011-01-291-0/+27
| | | | | | | | Fixes gst-plugins-bad build, if gstreamer is installed on host with xml support, as it uses pkg-config --variable=includedir to find gstconfig.h, and hence ends up looking at the host version. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* pkg-config: bump versionPeter Korsgaard2011-01-292-35/+1
| | | | Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* package: avoid copying .m4 files from host to stagingLionel Landwerlin2010-12-281-7/+0
| | | | | | | | | | | Since we are preparing a package generation mechanism, we would like to avoid packages that move/touch/modify files which are not part of their own package. That's why we try to not install host files into the staging directory (in this case .m4 files) and instead we include $(HOST_DIR)/usr/share/aclocal into autoreconf search directory. Signed-off-by: Lionel Landwerlin <llandwerlin@gmail.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* packages: remove unneeded _INSTALL_TARGET_OPT definitionsThomas Petazzoni2010-09-271-4/+0
| | | | | | | | Now that <pkg>_INSTALL_TARGET_OPT always defaults to 'DESTDIR=$(TARGET_DIR) install', we can remove the <pkg>_INSTALL_TARGET_OPT definition from a lot of packages. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* package: gettext needs WCHAR supportPeter Korsgaard2010-05-251-0/+4
| | | | | | | | gettext needs WCHAR support in the toolchain, and as libglib2 depends on gettext and lots of stuff depends on libglib2, quite a lot of packages needs to have their dependencies adjusted. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* pkg-config: convert to autotools infrastructure for host packageThomas Petazzoni2009-12-151-42/+9
| | | | Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* buildroot: silence ./configure step when building with 'make -s'Peter Korsgaard2009-10-011-1/+1
| | | | | | | | | | We have been passing -q to ./configure when using 'make -s' for packages using Makefile.autotools.in for some time. Do the same for packages using autotools, but not using the Makefile.autotools.in infrastructure, taking care to not do it for packages with hand written configure scripts. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* package: Remove unnecessary dependencies on uclibc.Will Newton2009-09-031-1/+1
| | | | | | | | A C library will have been built by the toolchain makefiles, so there is no need for packages to explicitly depend on uclibc. Signed-off-by: Will Newton <will.newton@gmail.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* pkg-config: fix target packagePeter Korsgaard2009-04-173-0/+109
As reported by Sven Neumann on the list.