diff options
author | Ulrich Sibiller <uli42@gmx.de> | 2015-07-12 01:52:29 +0200 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2015-09-28 07:53:07 +0200 |
commit | 708cf86a5e2d56c7de6738684d3e4f48bc6478ed (patch) | |
tree | 003dbf14f0cf712b8622063c5a0fac2daee837db /nxcompext | |
parent | 8c0a6161dc12a13da8a8507797814f208315b718 (diff) | |
download | nx-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 'nxcompext')
-rw-r--r-- | nxcompext/Makefile.in | 19 | ||||
-rw-r--r-- | nxcompext/configure.in | 5 | ||||
-rw-r--r-- | nxcompext/nxcompext.pc.in | 13 |
3 files changed, 28 insertions, 9 deletions
diff --git a/nxcompext/Makefile.in b/nxcompext/Makefile.in index b33c5aaf3..b66a4c361 100644 --- a/nxcompext/Makefile.in +++ b/nxcompext/Makefile.in @@ -50,14 +50,15 @@ LIBS = @LIBS@ -lz -lNX_X11 -lXcomp # LIBS = @LIBS@ -lz -ljpeg -lpthread -lNX_X11 -lXcomp # -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@ @@ -171,6 +172,7 @@ install.lib: all $(INSTALL_LINK) $(LIBLOAD) $(DESTDIR)${libdir} $(INSTALL_LINK) $(LIBSHARED) $(DESTDIR)${libdir} $(INSTALL_DATA) NX*.h $(DESTDIR)${includedir}/nx + $(INSTALL_DATA) nxcompext.pc $(DESTDIR)${pkgconfigdir} echo "Running ldconfig tool, this may take a while..." && ldconfig || true install.man: @@ -185,6 +187,7 @@ uninstall.lib: $(RM_FILE) $(DESTDIR)${libdir}/$(LIBSHARED) $(RM_FILE) $(DESTDIR)${includedir}/nx/NXlib.h $(RM_FILE) $(DESTDIR)${includedir}/nx/NXlibint.h + $(RM_FILE) $(DESTDIR)${pkgconfigdir}/nxcompext.pc echo "Running ldconfig tool, this may take a while..." && ldconfig || true uninstall.man: diff --git a/nxcompext/configure.in b/nxcompext/configure.in index e6f13c0ea..eb6604dba 100644 --- a/nxcompext/configure.in +++ b/nxcompext/configure.in @@ -5,6 +5,9 @@ dnl Prolog AC_INIT(NXlib.h) AC_PREREQ(2.13) +pkgconfigdir=${libdir}/pkgconfig +AC_SUBST(pkgconfigdir) + dnl Reset default compilation flags. CXXFLAGS="$CXXFLAGS -O3" @@ -243,4 +246,4 @@ else ALL="\$(LIBFULL) \$(LIBLOAD) \$(LIBSHARED) \$(LIBARCHIVE)" fi -AC_OUTPUT(Makefile) +AC_OUTPUT(Makefile nxcompext.pc) diff --git a/nxcompext/nxcompext.pc.in b/nxcompext/nxcompext.pc.in new file mode 100644 index 000000000..669397af6 --- /dev/null +++ b/nxcompext/nxcompext.pc.in @@ -0,0 +1,13 @@ +prefix=@prefix@ +exec_prefix=@exec_prefix@ +libdir=@libdir@ +includedir=@includedir@ + +Name: nxcompext +Description: Extension for NX Compression Library +Version: @VERSION@ +Requires: nxcomp +Requires.private: x11 +Cflags: -I${includedir} -I${includedir}/nx +Libs: -L${libdir} -lXcompext + |