aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2021-03-09 21:00:00 +0100
committerMattias Andrée <maandree@kth.se>2021-03-09 21:00:00 +0100
commit1f4d6e14812f4cbe816fa7cecf3895ac0880a9ed (patch)
treea7ae504d1878adf978d93cc54c3e5390e218d6f1
parentAdd pkg-config and librarian files (diff)
downloadlibgamma-1f4d6e14812f4cbe816fa7cecf3895ac0880a9ed.tar.gz
libgamma-1f4d6e14812f4cbe816fa7cecf3895ac0880a9ed.tar.bz2
libgamma-1f4d6e14812f4cbe816fa7cecf3895ac0880a9ed.tar.xz
Add PKGCONFIG_FLAGS to Makefile
Signed-off-by: Mattias Andrée <maandree@kth.se>
-rw-r--r--Makefile2
-rw-r--r--mk/method-linux-drm=yes.mk4
-rw-r--r--mk/method-x-randr=yes.mk4
-rw-r--r--mk/method-x-vidmode=yes.mk4
4 files changed, 7 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index 161893f..6e81556 100644
--- a/Makefile
+++ b/Makefile
@@ -188,7 +188,7 @@ libgamma.pc: config.h Makefile $(METHOD_CONFS)
printf '%s\n'\
'Cflags: -I$${includedir}'\
'Libs: -L$${libdir} -lgamma'\
- "Libs.private: $$(pkg-config --libs $(DEPS_METHODS)) $(LDFLAGS_QUARTZ_GC)"\
+ "Libs.private: $$(pkg-config $(PKGCONFIG_FLAGS) --libs $(DEPS_METHODS)) $(LDFLAGS_QUARTZ_GC)"\
>> $@
libgamma.librarian: config.h Makefile $(METHOD_CONFS)
diff --git a/mk/method-linux-drm=yes.mk b/mk/method-linux-drm=yes.mk
index 3867bf6..6d8f56f 100644
--- a/mk/method-linux-drm=yes.mk
+++ b/mk/method-linux-drm=yes.mk
@@ -1,8 +1,8 @@
HDR_LINUX_DRM = method-linux-drm.h
PARAMS_LINUX_DRM = LIBGAMMA_METHOD_LINUX_DRM linux_drm 16 ramps16
CPPFLAGS_LINUX_DRM = -DHAVE_LIBGAMMA_METHOD_LINUX_DRM
-CFLAGS_LINUX_DRM = $$(pkg-config --cflags libdrm)
-LDFLAGS_LINUX_DRM = $$(pkg-config --libs libdrm)
+CFLAGS_LINUX_DRM = $$(pkg-config $(PKGCONFIG_FLAGS) --cflags libdrm)
+LDFLAGS_LINUX_DRM = $$(pkg-config $(PKGCONFIG_FLAGS) --libs libdrm)
DEPS_LINUX_DRM = libdrm
OBJ_LINUX_DRM =\
diff --git a/mk/method-x-randr=yes.mk b/mk/method-x-randr=yes.mk
index 0690df5..07a55e9 100644
--- a/mk/method-x-randr=yes.mk
+++ b/mk/method-x-randr=yes.mk
@@ -1,8 +1,8 @@
HDR_X_RANDR = method-x-randr.h
PARAMS_X_RANDR = LIBGAMMA_METHOD_X_RANDR x_randr 16 ramps16
CPPFLAGS_X_RANDR = -DHAVE_LIBGAMMA_METHOD_X_RANDR
-CFLAGS_X_RANDR = $$(pkg-config --cflags xcb xcb-randr)
-LDFLAGS_X_RANDR = $$(pkg-config --libs xcb xcb-randr)
+CFLAGS_X_RANDR = $$(pkg-config $(PKGCONFIG_FLAGS) --cflags xcb xcb-randr)
+LDFLAGS_X_RANDR = $$(pkg-config $(PKGCONFIG_FLAGS) --libs xcb xcb-randr)
DEPS_X_RANDR = xcb xcb-randr
OBJ_X_RANDR =\
diff --git a/mk/method-x-vidmode=yes.mk b/mk/method-x-vidmode=yes.mk
index 29181c1..c709f20 100644
--- a/mk/method-x-vidmode=yes.mk
+++ b/mk/method-x-vidmode=yes.mk
@@ -1,8 +1,8 @@
HDR_X_VIDMODE = method-x-vidmode.h
PARAMS_X_VIDMODE = LIBGAMMA_METHOD_X_VIDMODE x_vidmode 16 ramps16
CPPFLAGS_X_VIDMODE = -DHAVE_LIBGAMMA_METHOD_X_VIDMODE
-CFLAGS_X_VIDMODE = $$(pkg-config --cflags x11 xxf86vm)
-LDFLAGS_X_VIDMODE = $$(pkg-config --libs x11 xxf86vm)
+CFLAGS_X_VIDMODE = $$(pkg-config $(PKGCONFIG_FLAGS) --cflags x11 xxf86vm)
+LDFLAGS_X_VIDMODE = $$(pkg-config $(PKGCONFIG_FLAGS) --libs x11 xxf86vm)
DEPS_X_VIDMODE = x11 xxf86vm
OBJ_X_VIDMODE =\