Add x11.pc pseudo-package for macOS

The x11.pc file is missing on macOS (at least on Brew), and it was
getting annoying to add ad-hoc rules in every makefile that required
it. The hack here is to add one directly from make-it-quick.

Putting the make-it-quick directory last should ensure this solution
still works correclty if you have an actual x11.pc on your macOS system.
This commit is contained in:
Christophe de Dinechin 2018-06-19 19:07:49 +02:00
parent 425b400d69
commit 8533fc92ec
2 changed files with 8 additions and 0 deletions

View File

@ -37,3 +37,6 @@ MIQ_SONAME_OPT= $(PRODUCTS_VERSION:%=-Wl,-install_name -Wl,$(MIQ_SONAME))
# On MacOSX, we will use basic frameworks e.g. for string and filesystem functions
LDFLAGS_BUILDENV_macosx-clang= -framework CoreFoundation \
-framework CoreServices
# Special case x11 package, missing on macOS, and unusual location - A bit yucky
export PKG_CONFIG_PATH:=$(PKG_CONFIG_PATH):$(MIQ)

5
x11.pc Normal file
View File

@ -0,0 +1,5 @@
Name: x11
Description: Hacked x11 .pc file for make-it-quick on macOS
Libs: -L/usr/X11/lib
Cflags: -I/usr/X11/include
Version: 0.1