---
 wmlib/Makefile.am | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/wmlib/Makefile.am b/wmlib/Makefile.am
index c6432b6..9169aae 100644
--- a/wmlib/Makefile.am
+++ b/wmlib/Makefile.am
@@ -18,8 +18,20 @@ libWMaker_la_SOURCES =       \
        app.h           \
        menu.h  
 
+pkgconfigdir = $(libdir)/pkgconfig
+pkgconfig_DATA = wmlib.pc
+
 DISTCLEANFILES = wmlib.pc
 
+wmlib.pc: Makefile
+       @echo "Generating $@"
+       @echo 'Name: wmlib' > $@
+       @echo 'Description: Window Maker interface definitions' >> $@
+       @echo 'Version: $(VERSION)' >> $@
+       @echo 'Requires: x11' >> $@
+       @echo 'Libs: $(lib_search_path) -lWMaker' >> $@
+       @echo 'Cflags: $(inc_search_path)' >> $@
+
 install-exec-local:
        @$(NORMAL_INSTALL)
        $(mkinstalldirs) $(DESTDIR)$(libdir)/pkgconfig
-- 
2.5.0


-- 
To unsubscribe, send mail to wmaker-dev-unsubscr...@lists.windowmaker.org.

Reply via email to