add support to create a pkgconfig file 'libnfs.pc' on build, and install this with 'make install'

Signed-off-by: Stephan Raue <stephan@openelec.tv>
libnfs-4.0.0-vitalif
Stephan Raue 2011-09-16 08:23:23 +02:00
parent 22e73f32dd
commit ea545df912
5 changed files with 23 additions and 1 deletions

2
.gitignore vendored
View File

@ -28,3 +28,5 @@ libtool
ltmain.sh
missing
stamp-h1
!libnfs.pc.in

View File

@ -1,2 +1,7 @@
SUBDIRS = mount nfs portmap rquota lib include . $(MAYBE_EXAMPLES)
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = libnfs.pc
EXTRA_DIST = README COPYING libnfs.pc.in

View File

@ -88,4 +88,4 @@ AC_CONFIG_FILES([Makefile]
[examples/Makefile]
)
AC_OUTPUT
AC_OUTPUT([libnfs.pc])

14
libnfs.pc.in Normal file
View File

@ -0,0 +1,14 @@
# libnfs pkg-config file
prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@includedir@
Name: libnfs
Description: libnfs is a client library for accessing NFS shares over a network.
Version: @VERSION@
Requires:
Conflicts:
Libs: -L${libdir} -lnfs
Cflags: -I${includedir}

View File

@ -91,6 +91,7 @@ development libraries for LibNFS
%{_includedir}/nfsc/libnfs-raw-rquota.h
%{_libdir}/libnfs.a
%{_libdir}/libnfs.la
%{_libdir}/pkgconfig/libnfs.pc
%changelog
* Sun Jul 31 2011 : Version 1.0