use pkg-config for configuring x11

master
Rachel Lambda Samuelsson 2021-01-27 23:42:59 +01:00
parent 3b20394635
commit 3d5e878ed6
1 changed files with 4 additions and 3 deletions

View File

@ -1,9 +1,10 @@
#!/bin/sh
if command -V pkg-config >/dev/null 2>&1; then
printf '%s\n' "CONFIG=$(pkg-config libmpdclient --libs --cflags || exit
) $(pkg-config imlib2 --libs --cflags || exit
) -lX11" > config.mk
printf '%s\n' "CONFIG=$(
pkg-config libmpdclient --libs --cflags) $(
pkg-config imlib2 --libs --cflags) $(
pkg-config x11 --libs --cflags)" > config.mk
else
printf '%s\n' "CONFIG=-lmpdclient -lImlib2 -lX11" > config.mk
fi