aboutsummaryrefslogtreecommitdiff
path: root/nxcompshad
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2015-07-12 01:52:29 +0200
committerUlrich Sibiller <uli42@gmx.de>2015-07-12 02:11:25 +0200
commit00cec4924157db9498d56e5c1fbde852e8eb3717 (patch)
treec9c6928aeac3183ea888bf68b2a31bc68ff7302a /nxcompshad
parentf4c07c07760c33bf7bc908e2d45aee4c4f73f088 (diff)
downloadnx-libs-00cec4924157db9498d56e5c1fbde852e8eb3717.tar.gz
nx-libs-00cec4924157db9498d56e5c1fbde852e8eb3717.tar.bz2
nx-libs-00cec4924157db9498d56e5c1fbde852e8eb3717.zip
Add pkg-config support to nxcomp, nxcompext and nxcompshad
Diffstat (limited to 'nxcompshad')
-rw-r--r--nxcompshad/Makefile.in19
-rw-r--r--nxcompshad/configure.in5
-rw-r--r--nxcompshad/nxcompshad.pc.in13
3 files changed, 28 insertions, 9 deletions
diff --git a/nxcompshad/Makefile.in b/nxcompshad/Makefile.in
index 3e5c33a22..5b1abebed 100644
--- a/nxcompshad/Makefile.in
+++ b/nxcompshad/Makefile.in
@@ -68,14 +68,15 @@ LIBS = @LIBS@ -lNX_X11
# LIBS = $(LIBS) -lmpatrol -lbfd -liberty
#
-srcdir = @srcdir@
-prefix = @prefix@
-exec_prefix = @exec_prefix@
-bindir = @bindir@
-man1dir = @mandir@/man1
-VPATH = @srcdir@
-libdir = @libdir@
-includedir = @includedir@
+srcdir = @srcdir@
+prefix = @prefix@
+exec_prefix = @exec_prefix@
+bindir = @bindir@
+man1dir = @mandir@/man1
+VPATH = @srcdir@
+libdir = @libdir@
+includedir = @includedir@
+pkgconfigdir = @pkgconfigdir@
INSTALL = @INSTALL@
INSTALL_DIR = $(INSTALL) -d -o root -g root -m 0755
@@ -206,6 +207,7 @@ install.lib: all
$(INSTALL_LINK) $(LIBSHARED) $(DESTDIR)${libdir}
$(INSTALL_DATA) $(LIBARCHIVE) $(DESTDIR)${libdir}
$(INSTALL_DATA) *.h $(DESTDIR)${includedir}/nx
+ $(INSTALL_DATA) nxcompshad.pc $(DESTDIR)${pkgconfigdir}
echo "Running ldconfig tool, this may take a while..." && ldconfig || true
install.man:
@@ -222,6 +224,7 @@ uninstall.lib:
for header in *.h; do $(RM_FILE) $(DESTDIR)${includedir}/nx/$$header; done
$(RM_DIR) $(DESTDIR)${libdir}/nx/
$(RM_DIR) $(DESTDIR)${includedir}/nx/
+ $(RM_FILE) $(DESTDIR)${pkgconfigdir}/nxcompshad.pc
echo "Running ldconfig tool, this may take a while..." && ldconfig || true
uninstall.man:
diff --git a/nxcompshad/configure.in b/nxcompshad/configure.in
index 8dd1b2e21..8468b4733 100644
--- a/nxcompshad/configure.in
+++ b/nxcompshad/configure.in
@@ -5,6 +5,9 @@ dnl Prolog
AC_INIT(Shadow.h)
AC_PREREQ(2.13)
+pkgconfigdir=${libdir}/pkgconfig
+AC_SUBST(pkgconfigdir)
+
dnl Reset default compilation flags.
CXXFLAGS="$CXXFLAGS -O3"
@@ -281,4 +284,4 @@ if test -z "${MAKEDEPEND}"; then
fi
fi
-AC_OUTPUT(Makefile)
+AC_OUTPUT(Makefile nxcompshad.pc)
diff --git a/nxcompshad/nxcompshad.pc.in b/nxcompshad/nxcompshad.pc.in
new file mode 100644
index 000000000..4d4265c76
--- /dev/null
+++ b/nxcompshad/nxcompshad.pc.in
@@ -0,0 +1,13 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+
+Name: nxcompshad
+Description: Shadow Session Support for NX Compression Library
+Version: @VERSION@
+Requires: nxcomp
+Requires.private: x11
+Cflags: -I${includedir} -I${includedir}/nx
+Libs: -L${libdir} -lXcompshad
+