summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVic Lee <llyzs@163.com>2011-03-27 15:55:14 +0800
committerChristian Beier <dontmind@freeshell.org>2011-03-28 14:47:11 +0200
commit64daa71ede302d4d0ba4174b3dcec49bf2588111 (patch)
tree44a11ff0701503f014ce5202d5bbcbd6243cad01
parent980dfa60fede679dc0355b2297560d70dd4d6fef (diff)
downloadlibvncserver-64daa71ede302d4d0ba4174b3dcec49bf2588111.zip
libvncserver-64daa71ede302d4d0ba4174b3dcec49bf2588111.tar.gz
Add libvncserver.pc and libvncclient.pc files.
Signed-off-by: Vic Lee <llyzs@163.com> Signed-off-by: Christian Beier <dontmind@freeshell.org>
-rw-r--r--.gitignore1
-rw-r--r--Makefile.am3
-rw-r--r--configure.ac2
-rw-r--r--libvncclient.pc.in12
-rw-r--r--libvncserver.pc.in12
5 files changed, 30 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index 4ac96c7..0402019 100644
--- a/.gitignore
+++ b/.gitignore
@@ -15,6 +15,7 @@ x11vnc.spec.in
aclocal.m4
autom4te.cache
libvncserver-config
+*.pc
_configs.sed
config.h
LibVNCServer*.tar.gz
diff --git a/Makefile.am b/Makefile.am
index cfc5612..4ff8d14 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -8,6 +8,9 @@ EXTRA_DIST = CMakeLists.txt
bin_SCRIPTS = libvncserver-config
+pkgconfigdir = $(libdir)/pkgconfig
+pkgconfig_DATA = libvncserver.pc libvncclient.pc
+
includedir=$(prefix)/include/rfb
#include_HEADERS=rfb.h rfbconfig.h rfbint.h rfbproto.h keysym.h rfbregion.h
diff --git a/configure.ac b/configure.ac
index 20f8741..3203d7a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -829,6 +829,8 @@ AM_CONDITIONAL(WITH_X11VNC, test "$build_x11vnc" = "yes")
AC_SUBST(RPMSOURCEDIR)
AC_CONFIG_FILES([Makefile
+ libvncserver.pc
+ libvncclient.pc
libvncserver/Makefile
examples/Makefile
vncterm/Makefile
diff --git a/libvncclient.pc.in b/libvncclient.pc.in
new file mode 100644
index 0000000..143dc46
--- /dev/null
+++ b/libvncclient.pc.in
@@ -0,0 +1,12 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+
+Name: LibVNCClient
+Description: A library for easy implementation of a VNC client.
+Version: @VERSION@
+Requires:
+Libs: -L${libdir} -lvncclient @LIBS@ @WSOCKLIB@
+Cflags: -I${includedir}
+
diff --git a/libvncserver.pc.in b/libvncserver.pc.in
new file mode 100644
index 0000000..f9273ea
--- /dev/null
+++ b/libvncserver.pc.in
@@ -0,0 +1,12 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+
+Name: LibVNCServer
+Description: A library for easy implementation of a VNC server.
+Version: @VERSION@
+Requires:
+Libs: -L${libdir} -lvncserver @LIBS@ @WSOCKLIB@
+Cflags: -I${includedir}
+
OpenPOWER on IntegriCloud