use pkg-config for configuring x11
This commit is contained in:
parent
3b20394635
commit
3d5e878ed6
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user