]> pilppa.com Git - uci.git/commitdiff
added pk-config files
authorMika Laitio <lamikr@pilppa.org>
Sat, 25 Dec 2010 23:04:54 +0000 (01:04 +0200)
committerMika Laitio <lamikr@pilppa.org>
Sat, 25 Dec 2010 23:04:54 +0000 (01:04 +0200)
Signed-off-by: Mika Laitio <lamikr@pilppa.org>
Makefile
libuci.pc [new file with mode: 0644]

index 8062bd410042dfa254787dfbb57fbf700a733aa1..f9fe9dd45cc1ae0a6b822e641534088ea168dbca 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -78,8 +78,10 @@ install: install-bin install-dev
 install-dev: all
        $(MKDIR) -p $(DESTDIR)$(prefix)/$(LIBDIRNAME)
        $(MKDIR) -p $(DESTDIR)$(prefix)/include
+       $(MKDIR) -p $(DESTDIR)$(prefix)/$(LIBDIRNAME)/pkgconfig
        $(INSTALL) -m0644 libuci.a $(DESTDIR)$(prefix)/$(LIBDIRNAME)/
        $(INSTALL) -m0644 uci_config.h uci.h ucimap.h $(DESTDIR)$(prefix)/include/
+       $(INSTALL) -m0644 libuci.pc $(DESTDIR)$(prefix)/$(LIBDIRNAME)/pkgconfig
 
 install-bin: all
        $(MKDIR) -p $(DESTDIR)$(prefix)/$(LIBDIRNAME)
diff --git a/libuci.pc b/libuci.pc
new file mode 100644 (file)
index 0000000..63a9f44
--- /dev/null
+++ b/libuci.pc
@@ -0,0 +1,10 @@
+prefix=/usr
+exec_prefix=${prefix}
+libdir=${prefix}/lib
+includedir=${prefix}/include
+
+Name: libuci
+Description: Unified Configuration Interface
+Version: 0.8
+Libs: -L${libdir} -luci 
+Cflags: -I${includedir}