Add a pkg-config file

This commit is contained in:
Guillem Jover 2008-06-18 08:25:48 +03:00
parent b37f1039ef
commit 26ab4750ee
2 changed files with 13 additions and 0 deletions

View File

@ -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)

11
libbsd.pc Normal file
View File

@ -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}