add support to create a pkgconfig file 'libnfs.pc' on build, and install this with...
authorStephan Raue <stephan@openelec.tv>
Fri, 16 Sep 2011 06:23:23 +0000 (08:23 +0200)
committerStephan Raue <stephan@openelec.tv>
Fri, 16 Sep 2011 06:23:23 +0000 (08:23 +0200)
Signed-off-by: Stephan Raue <stephan@openelec.tv>
.gitignore
Makefile.am
configure.ac
libnfs.pc.in [new file with mode: 0644]
packaging/RPM/libnfs.spec.in

index 0524f8741ef65cb5b91b30f1b700dd502b8836b7..a7f4650bea2cd04628eafc79303ee1aa9f89ee4f 100644 (file)
@@ -28,3 +28,5 @@ libtool
 ltmain.sh
 missing
 stamp-h1
+
+!libnfs.pc.in
\ No newline at end of file
index 653060d0a782ed70711afadbc6ec32fecdf62d65..03e441928c36e1a505d89ed3e08f745028c53d30 100644 (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
+
index 1b21947fcd9ab8266bdc9b1914ca36dab854d24f..24400c377857832dd8d756c1f91db8130b74d7b5 100644 (file)
@@ -88,4 +88,4 @@ AC_CONFIG_FILES([Makefile]
                 [examples/Makefile]
                )
 
-AC_OUTPUT
+AC_OUTPUT([libnfs.pc])
diff --git a/libnfs.pc.in b/libnfs.pc.in
new file mode 100644 (file)
index 0000000..fdc012c
--- /dev/null
@@ -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}
index 5450ede4bb6e6c8b1ac1c7397548bd95e79a36bd..03feb04e4be975c496d24b0e252b1bbe1ce5dd7c 100644 (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