Commit 26ab4750eebff515ca5717ee272a79fa3866ab55

Guillem Jover 2008-06-18T08:25:48

Add a pkg-config file

diff --git a/Makefile b/Makefile
index 206f766..ca51123 100644
--- a/Makefile
+++ b/Makefile
@@ -70,10 +70,12 @@ install: libs man
 	mkdir -p $(DESTDIR)/usr/lib/ $(DESTDIR)/lib/
 	mkdir -p $(DESTDIR)/usr/include/bsd/
 	mkdir -p $(DESTDIR)/usr/share/man/man3
+	mkdir -p $(DESTDIR)/usr/lib/pkgconfig
 	install -m644 $(LIB_STATIC) $(DESTDIR)/usr/lib/
 	install -m644 $(LIB_SHARED) $(DESTDIR)/lib/
 	for i in $(LIB_INCLUDES) ; do install -m644 include/$$i $(DESTDIR)/usr/include/$$i ; done
 	install -m644 $(LIB_MANS) $(DESTDIR)/usr/share/man/man3
+	install -m644 $(LIB_NAME).pc $(DESTDIR)/usr/lib/pkgconfig
 	ln -sf /lib/$(LIB_SHARED) $(DESTDIR)/usr/lib/$(LIB_SHARED_SO)
 	ln -sf $(LIB_SHARED) $(DESTDIR)/lib/$(LIB_SONAME)
 
diff --git a/libbsd.pc b/libbsd.pc
new file mode 100644
index 0000000..9b6b43c
--- /dev/null
+++ b/libbsd.pc
@@ -0,0 +1,11 @@
+prefix=/usr
+exec_prefix=${prefix}
+libdir=${exec_prefix}/lib
+includedir=${prefix}/include
+
+Name: libbsd
+Description: BSD compatibility library
+Version: 0.0
+URL: http://libbsd.freedesktop.org/
+Libs: -L${libdir} -lbsd
+Cflags: -I${includedir}