configure: replace pkg-config calls with $(PKG_CONFIG) in the makefiles.
authorStéphane Marchesin <marcheu@chromium.org>
Sat, 1 Oct 2011 00:49:48 +0000 (17:49 -0700)
committerStéphane Marchesin <marcheu@chromium.org>
Tue, 4 Oct 2011 18:19:48 +0000 (11:19 -0700)
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 <brianp@vmware.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
34 files changed:
configs/default
configs/freebsd-dri
configs/linux-dri
configs/linux-dri-xcb
configs/linux-egl
configs/linux-llvm
src/egl/wayland/wayland-drm/Makefile
src/gallium/state_trackers/dri/drm/Makefile
src/gallium/state_trackers/egl/Makefile
src/gallium/state_trackers/va/Makefile
src/gallium/state_trackers/vdpau/Makefile
src/gallium/state_trackers/xorg/Makefile
src/gallium/state_trackers/xorg/xvmc/Makefile
src/gallium/targets/Makefile.xorg
src/gallium/targets/dri-nouveau/Makefile
src/gallium/targets/va-r300/Makefile
src/gallium/targets/va-r600/Makefile
src/gallium/targets/vdpau-r300/Makefile
src/gallium/targets/vdpau-r600/Makefile
src/gallium/targets/xorg-i915/Makefile
src/gallium/targets/xorg-i965/Makefile
src/gallium/targets/xorg-nouveau/Makefile
src/gallium/targets/xorg-r300/Makefile
src/gallium/targets/xorg-r600/Makefile
src/gallium/targets/xvmc-nouveau/Makefile
src/gallium/targets/xvmc-r300/Makefile
src/gallium/targets/xvmc-r600/Makefile
src/gallium/winsys/g3dvl/dri/Makefile
src/gallium/winsys/i915/drm/Makefile
src/gallium/winsys/i965/drm/Makefile
src/gallium/winsys/nouveau/drm/Makefile
src/gallium/winsys/radeon/drm/Makefile
src/gallium/winsys/svga/drm/Makefile
src/mesa/drivers/dri/i915/Makefile

index 43666110b393defebd42b22c61b64159117c820b..2b1bf9bef3d75c6f8661bb48b3b98347adde4ecd 100644 (file)
@@ -40,6 +40,7 @@ MKDEP_OPTIONS = -fdepend
 MAKE = make
 FLEX = flex
 BISON = bison
+PKG_CONFIG = pkg-config
 
 # Use MINSTALL for installing libraries, INSTALL for everything else
 MINSTALL = $(SHELL) $(TOP)/bin/minstall
index c4169b81d4ef7f02182565d044c411414efe00ff..9e810c4b8f8149ca342fee713dfa86cac275032c 100644 (file)
@@ -32,8 +32,8 @@ MESA_ASM_SOURCES =
 # Library/program dependencies
 MESA_MODULES  = $(TOP)/src/mesa/libmesa.a
 
-LIBDRM_CFLAGS = `pkg-config --cflags libdrm`
-LIBDRM_LIB = `pkg-config --libs libdrm`
+LIBDRM_CFLAGS = `$(PKG_CONFIG) --cflags libdrm`
+LIBDRM_LIB = `$(PKG_CONFIG) --libs libdrm`
 DRI_LIB_DEPS = $(MESA_MODULES) -L/usr/local/lib -lm -pthread -lexpat $(LIBDRM_LIB)
 GL_LIB_DEPS = -L/usr/local/lib -lX11 -lXext -lXxf86vm -lXdamage -lXfixes \
        -lm -pthread $(LIBDRM_LIB)
index 26c73ccf01969d0de87010be27a47de40e151474..a3e9baba2f2714279b71a412918d150e0b289ef2 100644 (file)
@@ -44,8 +44,8 @@ EXTRA_LIB_PATH=-L/usr/X11R6/lib
 
 MESA_MODULES  = $(TOP)/src/mesa/libmesa.a
 
-LIBDRM_CFLAGS = $(shell pkg-config --cflags libdrm)
-LIBDRM_LIB = $(shell pkg-config --libs libdrm)
+LIBDRM_CFLAGS = $(shell $(PKG_CONFIG) --cflags libdrm)
+LIBDRM_LIB = $(shell $(PKG_CONFIG) --libs libdrm)
 DRI_LIB_DEPS  = $(MESA_MODULES) $(EXTRA_LIB_PATH) -lm -lpthread -lexpat -ldl $(LIBDRM_LIB)
 GL_LIB_DEPS   = $(EXTRA_LIB_PATH) -lX11 -lXext -lXxf86vm -lXdamage -lXfixes \
                -lm -lpthread -ldl $(LIBDRM_LIB)
@@ -64,13 +64,13 @@ GALLIUM_STATE_TRACKERS_DIRS = egl
 
 DRI_DIRS = i915 i965 nouveau r200 r300 r600 radeon swrast
 
-INTEL_LIBS = $(shell pkg-config --libs libdrm_intel)
-INTEL_CFLAGS = $(shell pkg-config --cflags libdrm_intel)
+INTEL_LIBS = $(shell $(PKG_CONFIG) --libs libdrm_intel)
+INTEL_CFLAGS = $(shell $(PKG_CONFIG) --cflags libdrm_intel)
 
-NOUVEAU_LIBS = $(shell pkg-config --libs libdrm_nouveau)
-NOUVEAU_CFLAGS = $(shell pkg-config --cflags libdrm_nouveau)
+NOUVEAU_LIBS = $(shell $(PKG_CONFIG) --libs libdrm_nouveau)
+NOUVEAU_CFLAGS = $(shell $(PKG_CONFIG) --cflags libdrm_nouveau)
 
-LIBDRM_RADEON_LIBS = $(shell pkg-config --libs libdrm_radeon)
-LIBDRM_RADEON_CFLAGS = $(shell pkg-config --cflags libdrm_radeon)
+LIBDRM_RADEON_LIBS = $(shell $(PKG_CONFIG) --libs libdrm_radeon)
+LIBDRM_RADEON_CFLAGS = $(shell $(PKG_CONFIG) --cflags libdrm_radeon)
 RADEON_CFLAGS = "-DHAVE_LIBDRM_RADEON=1 $(LIBDRM_RADEON_CFLAGS)"
 RADEON_LDFLAGS = $(LIBDRM_RADEON_LIBS)
index a845f71d231c0f7eca78ba33e411bdde4890a0f8..6968bebe4506d7767dbd68b589d81566d2a983b4 100644 (file)
@@ -25,7 +25,7 @@ DEFINES = -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE \
        -DGLX_DIRECT_RENDERING -DGLX_INDIRECT_RENDERING \
         -DHAVE_ALIAS -DUSE_XCB -DHAVE_POSIX_MEMALIGN
 
-X11_INCLUDES = $(shell pkg-config --cflags-only-I x11) $(shell pkg-config --cflags-only-I xcb) $(shell pkg-config --cflags-only-I x11-xcb) $(shell pkg-config --cflags-only-I xcb-glx)
+X11_INCLUDES = $(shell $(PKG_CONFIG) --cflags-only-I x11) $(shell $(PKG_CONFIG) --cflags-only-I xcb) $(shell $(PKG_CONFIG) --cflags-only-I x11-xcb) $(shell $(PKG_CONFIG) --cflags-only-I xcb-glx)
 
 CFLAGS = -Wall -Wmissing-prototypes $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) \
        $(DEFINES) $(ASM_FLAGS) -std=c99 -ffast-math 
@@ -39,15 +39,15 @@ CXXFLAGS += -fno-strict-aliasing
 MESA_ASM_SOURCES = 
 
 # Library/program dependencies
-EXTRA_LIB_PATH=$(shell pkg-config --libs-only-L x11)
+EXTRA_LIB_PATH=$(shell $(PKG_CONFIG) --libs-only-L x11)
 
 MESA_MODULES  = $(TOP)/src/mesa/libmesa.a
 
-LIBDRM_CFLAGS = $(shell pkg-config --cflags libdrm)
-LIBDRM_LIB = $(shell pkg-config --libs libdrm)
+LIBDRM_CFLAGS = $(shell $(PKG_CONFIG) --cflags libdrm)
+LIBDRM_LIB = $(shell $(PKG_CONFIG) --libs libdrm)
 DRI_LIB_DEPS  = $(MESA_MODULES) $(EXTRA_LIB_PATH) -lm -lpthread -lexpat -ldl $(LIBDRM_LIB)
 GL_LIB_DEPS   = $(EXTRA_LIB_PATH) -lX11 -lXext -lXxf86vm -lm -lpthread -ldl \
-                $(LIBDRM_LIB) $(shell pkg-config --libs xcb) $(shell pkg-config --libs x11-xcb) $(shell pkg-config --libs xcb-glx)
+                $(LIBDRM_LIB) $(shell $(PKG_CONFIG) --libs xcb) $(shell $(PKG_CONFIG) --libs x11-xcb) $(shell $(PKG_CONFIG) --libs xcb-glx)
 
 SRC_DIRS = glx gallium mesa glu
 
index 216bcbab321f907ccea98212f529debbc2566a95..2c8bfdd6f592081a26aa8a52b7a157d31a8fec7c 100644 (file)
@@ -40,8 +40,8 @@ EXTRA_LIB_PATH=-L/usr/X11R6/lib
 
 MESA_MODULES  = $(TOP)/src/mesa/libmesa.a
 
-LIBDRM_CFLAGS = $(shell pkg-config --cflags libdrm)
-LIBDRM_LIB = $(shell pkg-config --libs libdrm)
+LIBDRM_CFLAGS = $(shell $(PKG_CONFIG) --cflags libdrm)
+LIBDRM_LIB = $(shell $(PKG_CONFIG) --libs libdrm)
 DRI_LIB_DEPS  = $(MESA_MODULES) $(EXTRA_LIB_PATH) -lm -lpthread -lexpat -ldl $(LIBDRM_LIB)
 GL_LIB_DEPS   = $(EXTRA_LIB_PATH) -lX11 -lXext -lXxf86vm -lXdamage -lXfixes \
                -lm -lpthread -ldl \
index ef6c7bb105a9ca8501c0fd04b015ccfd7b099f4d..259d8ac7a2ea6b5c5668592c2a31d11fe087b2d5 100644 (file)
@@ -44,4 +44,4 @@ LD = g++
 GL_LIB_DEPS = $(LLVM_LDFLAGS) $(LLVM_LIBS) $(EXTRA_LIB_PATH) -lX11 -lXext -lm -lpthread -lstdc++
 
 # to allow the NV drivers to compile
-LIBDRM_CFLAGS = $(shell pkg-config --cflags libdrm)
+LIBDRM_CFLAGS = $(shell $(PKG_CONFIG) --cflags libdrm)
index bc010b6d9cb6ba967e87e246277619b0f3ecef4d..42222a9872cd82f79ba25210d1b0d932bfe53123 100644 (file)
@@ -16,8 +16,8 @@ wayland_drm_INCLUDES = \
                -I$(TOP)/include
 
 # Generate protocol sources
-prefix=$(shell pkg-config --variable=prefix wayland-server)
-exec_prefx=$(shell pkg-config --variable=exec_prefix wayland-server)
+prefix=$(shell $(PKG_CONFIG) --variable=prefix wayland-server)
+exec_prefx=$(shell $(PKG_CONFIG) --variable=exec_prefix wayland-server)
 wayland_protocoldir = $(PWD)/protocol
 wayland_scanner=$(exec_prefix)/bin/wayland-scanner
 
index c717b2bdeb53ea113cf34c2257e8bf226c404718..695dc0c294c935d27c41e92eebdbc91db534d867 100644 (file)
@@ -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 = \
index 876f196cf6bd23981b6b4f0cd394284e126b9f67..f65a9151873f3d02f143d40a90b079f734567f48 100644 (file)
@@ -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)
index d5b3ec3caf2a0ffc5379932555d9b52e61146b24..775e4db216d597fc22daa9c3dfed565989e4df9e 100644 (file)
@@ -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 \
index c1fd0eb7d0e03574fa484319918d926fc17f43fd..0aeadc0b5b061ebc50ee8629e6b745fd967e5ccc 100644 (file)
@@ -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 \
index 7a44d28017bf87e9f4ee0685f786146ef456d29d..d42ea5416dcc74201fb9818cbbb98eff33587fab 100644 (file)
@@ -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 \
index 126dc6d58f192862245403a80e0b2a818b0e49f4..c4680995c66cc5d222b738e7dd0799472186586d 100644 (file)
@@ -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 \
index 025f7426f8597824c2a498c73c0aed3414a45aa8..9269375e85174192bd9948bd306440780bfca683 100644 (file)
@@ -19,7 +19,7 @@ OBJECTS = $(C_SOURCES:.c=.o) \
        $(ASM_SOURCES:.S=.o)
 
 INCLUDES = \
-       $(shell pkg-config --cflags-only-I pixman-1 xorg-server libdrm xproto) \
+       $(shell $(PKG_CONFIG) --cflags-only-I pixman-1 xorg-server libdrm xproto) \
        -I$(TOP)/src/gallium/include \
        -I$(TOP)/src/gallium/drivers \
        -I$(TOP)/src/gallium/auxiliary \
index eb1ee859a00389a594b18c1b5ded32fcec1332ca..dacb85ced825c8c6d4a67ccad1973fd23037f9fc 100644 (file)
@@ -23,6 +23,6 @@ DRIVER_DEFINES = \
 
 include ../Makefile.dri
 
-DRI_LIB_DEPS += $(shell pkg-config libdrm_nouveau --libs)
+DRI_LIB_DEPS += $(shell $(PKG_CONFIG) libdrm_nouveau --libs)
 
 symlinks:
index c4b8fe770b86291618a57adf84d266e7807ea847..3e0797b65a037412402d23bb6c9cd6818fe051a0 100644 (file)
@@ -19,7 +19,7 @@ C_SOURCES = \
        $(COMMON_GALLIUM_SOURCES) \
        $(DRIVER_SOURCES)
 
-DRIVER_LIBS = $(shell pkg-config libdrm --libs) -lXfixes
+DRIVER_LIBS = $(shell $(PKG_CONFIG) libdrm --libs) -lXfixes
 
 include ../Makefile.va
 
index 3aee430000dc6663f4fe52ce9a95e4b15675e9ec..bab18fea2acd56227007820a54c0eeccd33084e1 100644 (file)
@@ -19,7 +19,7 @@ C_SOURCES = \
        $(COMMON_GALLIUM_SOURCES) \
        $(DRIVER_SOURCES)
 
-DRIVER_LIBS = $(shell pkg-config libdrm --libs) -lXfixes
+DRIVER_LIBS = $(shell $(PKG_CONFIG) libdrm --libs) -lXfixes
 
 include ../Makefile.va
 
index fd4110b78550fd8121d1fe77911d823070789c54..95988bdc65293838e27b9778f7c13c465dfb2bf0 100644 (file)
@@ -20,7 +20,7 @@ C_SOURCES = \
        $(COMMON_GALLIUM_SOURCES) \
        $(DRIVER_SOURCES)
 
-DRIVER_LIBS = $(shell pkg-config libdrm --libs) -lXfixes
+DRIVER_LIBS = $(shell $(PKG_CONFIG) libdrm --libs) -lXfixes
 
 include ../Makefile.vdpau
 
index 17805e326c3a976168e8502eddceec1233b8c8f1..466e80eadf9e9b927003a1ee023785c39b4e06c5 100644 (file)
@@ -15,7 +15,7 @@ C_SOURCES = \
        $(COMMON_GALLIUM_SOURCES) \
        $(DRIVER_SOURCES)
 
-DRIVER_LIBS = $(shell pkg-config libdrm --libs) -lXfixes
+DRIVER_LIBS = $(shell $(PKG_CONFIG) libdrm --libs) -lXfixes
 
 include ../Makefile.vdpau
 
index 865240404ca21bda00d873be7bbe1073ee0f539f..28f8873653122d7cb65fadad61a05c916eaf49ca 100644 (file)
@@ -19,6 +19,6 @@ DRIVER_PIPES = \
        $(TOP)/src/gallium/drivers/rbug/librbug.a
 
 DRIVER_LINKS = \
-       $(shell pkg-config --libs libdrm libdrm_intel)
+       $(shell $(PKG_CONFIG) --libs libdrm libdrm_intel)
 
 include ../Makefile.xorg
index 494dce41c8ad3c3583fc23dbf4a73bfe0ee04ca8..36df276cb7123a34a8123a7d4f5e894ac3891a4a 100644 (file)
@@ -21,6 +21,6 @@ DRIVER_PIPES = \
        $(TOP)/src/gallium/drivers/softpipe/libsoftpipe.a
 
 DRIVER_LINKS = \
-       $(shell pkg-config --libs libdrm libdrm_intel)
+       $(shell $(PKG_CONFIG) --libs libdrm libdrm_intel)
 
 include ../Makefile.xorg
index 755969cae270201b6b02a20f898e41a4c119aaa1..cb4ae4975946398ddd970fb93a1e041671d8a54f 100644 (file)
@@ -21,9 +21,9 @@ DRIVER_PIPES = \
        $(TOP)/src/gallium/drivers/rbug/librbug.a
 
 DRIVER_LINKS = \
-       $(shell pkg-config --libs libdrm libdrm_nouveau)
+       $(shell $(PKG_CONFIG) --libs libdrm libdrm_nouveau)
 
 DRIVER_INCLUDES = \
-       $(shell pkg-config --cflags-only-I libdrm libdrm_nouveau xf86driproto)
+       $(shell $(PKG_CONFIG) --cflags-only-I libdrm libdrm_nouveau xf86driproto)
 
 include ../Makefile.xorg
index 195ab817ad0b076ef507e9608de26dc4fc1bc383..26cc5590d7d869704448c337d3de0724e2b913cd 100644 (file)
@@ -19,6 +19,6 @@ DRIVER_PIPES = \
        $(TOP)/src/gallium/drivers/rbug/librbug.a
 
 DRIVER_LINKS = \
-       $(shell pkg-config --libs libdrm)
+       $(shell $(PKG_CONFIG) --libs libdrm)
 
 include ../Makefile.xorg
index 08d5635e63388bde653c482299c3c451a5fc252a..3c0cc83711c7daa371c7c4c381103380a81971d1 100644 (file)
@@ -19,6 +19,6 @@ DRIVER_PIPES = \
        $(TOP)/src/gallium/drivers/rbug/librbug.a
 
 DRIVER_LINKS = \
-       $(shell pkg-config --libs libdrm)
+       $(shell $(PKG_CONFIG) --libs libdrm)
 
 include ../Makefile.xorg
index e1aadbf4259974566ca15534b37026ca6e65c2c0..cc1886415c14fd1cf597122af0f8baefeac4052c 100644 (file)
@@ -19,7 +19,7 @@ C_SOURCES = \
        $(COMMON_GALLIUM_SOURCES) \
        $(DRIVER_SOURCES)
 
-DRIVER_LIBS = $(shell pkg-config libdrm_nouveau --libs) -lXfixes
+DRIVER_LIBS = $(shell $(PKG_CONFIG) libdrm_nouveau --libs) -lXfixes
 
 include ../Makefile.xvmc
 
index a427fe1a3cbffc9288039de7c1fa903c4e4bfb9c..43bc9abc4d7a6ffe27950da83414de73f54b122b 100644 (file)
@@ -15,7 +15,7 @@ C_SOURCES = \
        $(COMMON_GALLIUM_SOURCES) \
        $(DRIVER_SOURCES)
 
-DRIVER_LIBS = $(shell pkg-config libdrm --libs) -lXfixes
+DRIVER_LIBS = $(shell $(PKG_CONFIG) libdrm --libs) -lXfixes
 
 include ../Makefile.xvmc
 
index 7be866510d64e176f9fde1b4545275c26900047c..d8638bf7f846ec76f7c8f099701568d84998da37 100644 (file)
@@ -15,7 +15,7 @@ C_SOURCES = \
        $(COMMON_GALLIUM_SOURCES) \
        $(DRIVER_SOURCES)
 
-DRIVER_LIBS = $(shell pkg-config libdrm --libs) -lXfixes
+DRIVER_LIBS = $(shell $(PKG_CONFIG) libdrm --libs) -lXfixes
 
 include ../Makefile.xvmc
 
index b270e780fec286adf29da7ac4db1a315304de3fc..572571da9c2352eeb570f3634077253a80a34f13 100644 (file)
@@ -4,7 +4,7 @@ include $(TOP)/configs/current
 LIBNAME = vldri
 
 LIBRARY_INCLUDES = -I$(TOP)/src/gallium/winsys/g3dvl \
-                   $(shell pkg-config libdrm --cflags-only-I)
+                   $(shell $(PKG_CONFIG) libdrm --cflags-only-I)
 
 C_SOURCES = \
        driclient.c \
index 37307ca8a4b23f70ca407e6478089a7350df74b0..ebe3ded7ac2477ffdc9717794106e0dc0b62624c 100644 (file)
@@ -6,8 +6,8 @@ LIBNAME = i915drm
 # get C_SOURCES
 include Makefile.sources
 
-LIBRARY_INCLUDES = $(shell pkg-config libdrm --cflags-only-I)
+LIBRARY_INCLUDES = $(shell $(PKG_CONFIG) libdrm --cflags-only-I)
 
-LIBRARY_DEFINES = $(shell pkg-config libdrm --cflags-only-other)
+LIBRARY_DEFINES = $(shell $(PKG_CONFIG) libdrm --cflags-only-other)
 
 include ../../../Makefile.template
index 46f98d7a24afa0f6a1cefe12abc75f8365c8d777..830007ed47849007643443723e578b33fa1ba978 100644 (file)
@@ -7,8 +7,8 @@ C_SOURCES = \
        i965_drm_buffer.c \
        i965_drm_winsys.c
 
-LIBRARY_INCLUDES = $(shell pkg-config libdrm --cflags-only-I)
+LIBRARY_INCLUDES = $(shell $(PKG_CONFIG) libdrm --cflags-only-I)
 
-LIBRARY_DEFINES = $(shell pkg-config libdrm --cflags-only-other)
+LIBRARY_DEFINES = $(shell $(PKG_CONFIG) --cflags-only-other)
 
 include ../../../Makefile.template
index 74a3c6a0d70b1979b25b7f4c299acaee66ce2357..ed748ac9fd6e9dbecd922c0562e11dbdda357620 100644 (file)
@@ -5,7 +5,7 @@ LIBNAME = nouveaudrm
 
 C_SOURCES = nouveau_drm_winsys.c
 
-LIBRARY_INCLUDES = $(shell pkg-config libdrm libdrm_nouveau --cflags-only-I)
-LIBRARY_DEFINES = $(shell pkg-config libdrm libdrm_nouveau --cflags-only-other)
+LIBRARY_INCLUDES = $(shell $(PKG_CONFIG) libdrm libdrm_nouveau --cflags-only-I)
+LIBRARY_DEFINES = $(shell $(PKG_CONFIG) libdrm libdrm_nouveau --cflags-only-other)
 
 include ../../../Makefile.template
index 68b9efebfa4203e35a7874afb7dcf66618d316f0..517360e4364d70aa2c5c983899927c9e371263a5 100644 (file)
@@ -8,7 +8,7 @@ LIBNAME = radeonwinsys
 include Makefile.sources
 
 LIBRARY_INCLUDES = -I$(TOP)/include \
-                  $(shell pkg-config libdrm --cflags-only-I)
+                  $(shell $(PKG_CONFIG) libdrm --cflags-only-I)
 
 include ../../../Makefile.template
 
index a378900f408b0c67b388540ceb5f8dce35eef1c5..02ea91bf3345db3584db676112efaba6a3ff20ec 100644 (file)
@@ -9,11 +9,11 @@ include Makefile.sources
 LIBRARY_INCLUDES = \
        -I$(TOP)/src/gallium/drivers/svga \
        -I$(TOP)/src/gallium/drivers/svga/include \
-       $(shell pkg-config libdrm --cflags-only-I)
+       $(shell $(PKG_CONFIG) libdrm --cflags-only-I)
 
 LIBRARY_DEFINES = \
        -std=gnu99 -fvisibility=hidden \
        -DHAVE_STDINT_H -D_FILE_OFFSET_BITS=64 \
-       $(shell pkg-config libdrm --cflags-only-other)
+       $(shell $(PKG_CONFIG) libdrm --cflags-only-other)
 
 include ../../../Makefile.template
index e2e5382b782bdfc786457a97392efadff843cc20..b7da46bc3b6c8e4992a0746b1a89e8bc1250f654 100644 (file)
@@ -16,7 +16,7 @@ C_SOURCES = \
 ASM_SOURCES = 
 
 DRIVER_DEFINES = $(addprefix -I$(TOP)/, $(i915_INCLUDES)) -DI915 \
-       $(shell pkg-config libdrm --atleast-version=2.3.1 \
+       $(shell $(PKG_CONFIG) libdrm --atleast-version=2.3.1 \
                                && echo "-DDRM_VBLANK_FLIP=DRM_VBLANK_FLIP")
 
 INCLUDES += $(INTEL_CFLAGS)