swc

Unnamed repository; edit this file 'description' to name the repository.
git clone git://git.nihaljere.xyz/swc
Log | Files | Refs | README | LICENSE

commit ffbdce05af9a173d586fff6e34f212c0ca1c6d1a
parent 2b04296673ea352e4d14ba4fc1b9833bebdd77b2
Author: Michael Forney <mforney@mforney.org>
Date:   Sat,  1 Nov 2014 21:07:34 +0000

swc.pc: Properly set Requires{,.private}

Diffstat:
MMakefile | 12+++++-------
Mswc.pc.in | 5++---
2 files changed, 7 insertions(+), 10 deletions(-)

diff --git a/Makefile b/Makefile @@ -103,14 +103,12 @@ $(foreach dir,BIN LIB INCLUDE PKGCONFIG,$(DESTDIR)$($(dir)DIR)) $(DESTDIR)$(DATA .PHONY: build build: $(SUBDIRS:%=build-%) $(TARGETS) +REQUIRES := wayland-server +REQUIRES_PRIVATE := $(filter-out $(REQUIRES),$(libswc_PACKAGES)) +SWC_PC_VARS := VERSION PREFIX LIBDIR INCLUDEDIR DATADIR REQUIRES REQUIRES_PRIVATE + swc.pc: swc.pc.in - $(Q_GEN)sed \ - -e "s:@VERSION@:$(VERSION):" \ - -e "s:@PREFIX@:$(PREFIX):" \ - -e "s:@LIBDIR@:$(LIBDIR):" \ - -e "s:@INCLUDEDIR@:$(INCLUDEDIR):" \ - -e "s:@DATADIR@:$(DATADIR):" \ - $< > $@ + $(Q_GEN)sed $(foreach var,$(SWC_PC_VARS),-e 's:@$(var)@:$($(var)):') $< >$@ .PHONY: install-swc.pc install-swc.pc: swc.pc | $(DESTDIR)$(PKGCONFIGDIR) diff --git a/swc.pc.in b/swc.pc.in @@ -10,6 +10,5 @@ Version: @VERSION@ Cflags: -I${includedir} Libs: -L${libdir} -lswc -Requires: wayland-server -Requires.private: libudev libevdev xkbcommon libdrm pixman-1 wld - +Requires: @REQUIRES@ +Requires.private: @REQUIRES_PRIVATE@