From 3db309aecee57d7e0055a49a0e12a491a554347b Mon Sep 17 00:00:00 2001 From: Stéphane Marchesin Date: Fri, 30 Sep 2011 17:49:48 -0700 Subject: configure: replace pkg-config calls with $(PKG_CONFIG) in the makefiles. Us poor souls who cross compile mesa want to be able to specify which pkg-config to pick, or at least just change one place. Reviewed-by: Brian Paul Reviewed-by: Matt Turner --- src/gallium/state_trackers/dri/drm/Makefile | 2 +- src/gallium/state_trackers/egl/Makefile | 6 +++--- src/gallium/state_trackers/va/Makefile | 2 +- src/gallium/state_trackers/vdpau/Makefile | 2 +- src/gallium/state_trackers/xorg/Makefile | 8 ++++---- src/gallium/state_trackers/xorg/xvmc/Makefile | 2 +- 6 files changed, 11 insertions(+), 11 deletions(-) (limited to 'src/gallium/state_trackers') diff --git a/src/gallium/state_trackers/dri/drm/Makefile b/src/gallium/state_trackers/dri/drm/Makefile index c717b2bdeb5..695dc0c294c 100644 --- a/src/gallium/state_trackers/dri/drm/Makefile +++ b/src/gallium/state_trackers/dri/drm/Makefile @@ -10,7 +10,7 @@ LIBRARY_INCLUDES = \ -I$(TOP)/src/gallium/state_trackers/dri/common \ -I$(TOP)/src/mesa/drivers/dri/common \ -I$(TOP)/src/mesa/main \ - $(shell pkg-config --cflags-only-I libdrm) + $(shell $(PKG_CONFIG) --cflags-only-I libdrm) C_SOURCES = \ diff --git a/src/gallium/state_trackers/egl/Makefile b/src/gallium/state_trackers/egl/Makefile index 876f196cf6b..f65a9151873 100644 --- a/src/gallium/state_trackers/egl/Makefile +++ b/src/gallium/state_trackers/egl/Makefile @@ -18,7 +18,7 @@ x11_INCLUDES = \ -I$(TOP)/src/mapi \ -I$(TOP)/src/mesa \ $(X11_CFLAGS) \ - $(shell pkg-config --cflags-only-I libdrm dri2proto) + $(shell $(PKG_CONFIG) --cflags-only-I libdrm dri2proto) x11_SOURCES = $(wildcard x11/*.c) \ $(TOP)/src/glx/dri2.c @@ -28,12 +28,12 @@ wayland_INCLUDES = \ -I$(TOP)/src/gallium/winsys \ -I$(TOP)/src/egl/wayland/wayland-egl \ -I$(TOP)/src/egl/wayland/wayland-drm \ - $(shell pkg-config --cflags-only-I libdrm wayland-client) + $(shell $(PKG_CONFIG) --cflags-only-I libdrm wayland-client) wayland_SOURCES = $(wildcard wayland/*.c) wayland_OBJECTS = $(wayland_SOURCES:.c=.o) -drm_INCLUDES = -I$(TOP)/src/gallium/winsys $(shell pkg-config --cflags-only-I libdrm) \ +drm_INCLUDES = -I$(TOP)/src/gallium/winsys $(shell $(PKG_CONFIG) --cflags-only-I libdrm) -I$(TOP)/src/gbm/main -I$(TOP)/src/gallium/state_trackers/gbm drm_SOURCES = $(wildcard drm/*.c) drm_OBJECTS = $(drm_SOURCES:.c=.o) diff --git a/src/gallium/state_trackers/va/Makefile b/src/gallium/state_trackers/va/Makefile index d5b3ec3caf2..775e4db216d 100644 --- a/src/gallium/state_trackers/va/Makefile +++ b/src/gallium/state_trackers/va/Makefile @@ -8,7 +8,7 @@ VA_MINOR = 3 LIBRARY_DEFINES = -DVER_MAJOR=$(VA_MAJOR) -DVER_MINOR=$(VA_MINOR) $(STATE_TRACKER_DEFINES) LIBRARY_INCLUDES = \ - $(shell pkg-config --cflags-only-I libva) \ + $(shell $(PKG_CONFIG) --cflags-only-I libva) \ -I$(TOP)/src/gallium/winsys/g3dvl C_SOURCES = htab.c \ diff --git a/src/gallium/state_trackers/vdpau/Makefile b/src/gallium/state_trackers/vdpau/Makefile index c1fd0eb7d0e..0aeadc0b5b0 100644 --- a/src/gallium/state_trackers/vdpau/Makefile +++ b/src/gallium/state_trackers/vdpau/Makefile @@ -8,7 +8,7 @@ VDPAU_MINOR = 0 LIBRARY_DEFINES = -DVER_MAJOR=$(VDPAU_MAJOR) -DVER_MINOR=$(VDPAU_MINOR) $(STATE_TRACKER_DEFINES) LIBRARY_INCLUDES = \ - $(shell pkg-config --cflags-only-I vdpau) \ + $(shell $(PKG_CONFIG) --cflags-only-I vdpau) \ -I$(TOP)/src/gallium/winsys/g3dvl C_SOURCES = htab.c \ diff --git a/src/gallium/state_trackers/xorg/Makefile b/src/gallium/state_trackers/xorg/Makefile index 7a44d28017b..d42ea5416dc 100644 --- a/src/gallium/state_trackers/xorg/Makefile +++ b/src/gallium/state_trackers/xorg/Makefile @@ -5,12 +5,12 @@ LIBNAME = xorgtracker LIBRARY_INCLUDES = \ -DHAVE_CONFIG_H \ - $(shell pkg-config xextproto --atleast-version=7.0.99.1 \ + $(shell $(PKG_CONFIG) xextproto --atleast-version=7.0.99.1 \ && echo "-DHAVE_XEXTPROTO_71") \ - $(shell pkg-config libkms --atleast-version=1.0 \ + $(shell $(PKG_CONFIG) libkms --atleast-version=1.0 \ && echo "-DHAVE_LIBKMS") \ - $(shell pkg-config libkms --silence-errors --cflags-only-I) \ - $(shell pkg-config --cflags-only-I pixman-1 xorg-server libdrm xproto dri2proto) \ + $(shell $(PKG_CONFIG) libkms --silence-errors --cflags-only-I) \ + $(shell $(PKG_CONFIG) --cflags-only-I pixman-1 xorg-server libdrm xproto dri2proto) \ -I$(TOP)/src/gallium/include \ -I$(TOP)/src/gallium/auxiliary \ -I$(TOP)/include \ diff --git a/src/gallium/state_trackers/xorg/xvmc/Makefile b/src/gallium/state_trackers/xorg/xvmc/Makefile index 126dc6d58f1..c4680995c66 100644 --- a/src/gallium/state_trackers/xorg/xvmc/Makefile +++ b/src/gallium/state_trackers/xorg/xvmc/Makefile @@ -4,7 +4,7 @@ include $(TOP)/configs/current LIBNAME = xvmctracker LIBRARY_INCLUDES = \ - $(shell pkg-config --cflags-only-I xvmc) \ + $(shell $(PKG_CONFIG) --cflags-only-I xvmc) \ -I$(TOP)/src/gallium/winsys/g3dvl C_SOURCES = block.c \ -- cgit v1.2.3