From 64daa71ede302d4d0ba4174b3dcec49bf2588111 Mon Sep 17 00:00:00 2001 From: Vic Lee Date: Sun, 27 Mar 2011 15:55:14 +0800 Subject: [PATCH] Add libvncserver.pc and libvncclient.pc files. Signed-off-by: Vic Lee Signed-off-by: Christian Beier --- .gitignore | 1 + Makefile.am | 3 +++ configure.ac | 2 ++ libvncclient.pc.in | 12 ++++++++++++ libvncserver.pc.in | 12 ++++++++++++ 5 files changed, 30 insertions(+) create mode 100644 libvncclient.pc.in create mode 100644 libvncserver.pc.in 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} +