aboutsummaryrefslogtreecommitdiff
path: root/nxcomp
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2015-07-12 01:52:29 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2015-09-28 07:53:07 +0200
commit708cf86a5e2d56c7de6738684d3e4f48bc6478ed (patch)
tree003dbf14f0cf712b8622063c5a0fac2daee837db /nxcomp
parent8c0a6161dc12a13da8a8507797814f208315b718 (diff)
downloadnx-libs-708cf86a5e2d56c7de6738684d3e4f48bc6478ed.tar.gz
nx-libs-708cf86a5e2d56c7de6738684d3e4f48bc6478ed.tar.bz2
nx-libs-708cf86a5e2d56c7de6738684d3e4f48bc6478ed.zip
Add pkg-config support to nxcomp, nxcompext and nxcompshad
Diffstat (limited to 'nxcomp')
-rw-r--r--nxcomp/Makefile.in19
-rw-r--r--nxcomp/configure.in5
-rw-r--r--nxcomp/nxcomp.pc.in15
3 files changed, 30 insertions, 9 deletions
diff --git a/nxcomp/Makefile.in b/nxcomp/Makefile.in
index 6022747cb..a8647cead 100644
--- a/nxcomp/Makefile.in
+++ b/nxcomp/Makefile.in
@@ -58,14 +58,15 @@ LIBS = @LIBS@
# Other autoconfigured settings, not used at the moment.
#
-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_PROGRAM = @INSTALL_PROGRAM@
@@ -292,6 +293,7 @@ install.lib: all
$(INSTALL_DATA) $(LIBARCHIVE) $(DESTDIR)${libdir}
$(INSTALL_DATA) NX*.h $(DESTDIR)${includedir}/nx
$(INSTALL_DATA) MD5.h $(DESTDIR)${includedir}/nx
+ $(INSTALL_DATA) nxcomp.pc $(DESTDIR)${pkgconfigdir}
echo "Running ldconfig tool, this may take a while..." && ldconfig || true
install.man:
@@ -313,6 +315,7 @@ uninstall.lib:
$(RM_FILE) $(DESTDIR)${includedir}/nx/NXrender.h
$(RM_FILE) $(DESTDIR)${includedir}/nx/NXvars.h
$(RM_FILE) $(DESTDIR)${includedir}/nx/MD5.h
+ $(RM_FILE) $(DESTDIR)${pkgconfigdir}/nxcomp.pc
echo "Running ldconfig tool, this may take a while..." && ldconfig || true
uninstall.man:
diff --git a/nxcomp/configure.in b/nxcomp/configure.in
index 43b51573a..206df2ec7 100644
--- a/nxcomp/configure.in
+++ b/nxcomp/configure.in
@@ -5,6 +5,9 @@ dnl Prolog
AC_INIT(NX.h)
AC_PREREQ(2.13)
+pkgconfigdir=${libdir}/pkgconfig
+AC_SUBST(pkgconfigdir)
+
dnl Set our default compilation flags.
CXXFLAGS="$CXXFLAGS -O3 -fno-rtti -fno-exceptions"
@@ -387,4 +390,4 @@ else
ALL="\$(LIBFULL) \$(LIBLOAD) \$(LIBSHARED) \$(LIBARCHIVE)"
fi
-AC_OUTPUT(Makefile)
+AC_OUTPUT(Makefile nxcomp.pc)
diff --git a/nxcomp/nxcomp.pc.in b/nxcomp/nxcomp.pc.in
new file mode 100644
index 000000000..f4d3a7efb
--- /dev/null
+++ b/nxcomp/nxcomp.pc.in
@@ -0,0 +1,15 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+
+Name: nxcomp
+Description: NX Compression Library
+Version: @VERSION@
+#libjepg does not provide a pkgconfig-file, zlib does not provide it for older versions
+#Requires: libjpeg zlib
+Requires: libpng
+Requires.private: x11
+Cflags: -I${includedir} -I${includedir}/nx
+Libs: -L${libdir} -lXcomp
+