2
1
mirror of https://github.com/qpdf/qpdf.git synced 2024-12-22 02:49:00 +00:00

Add pkg-config support

This commit is contained in:
Jay Berkenbilt 2012-06-21 16:30:08 -04:00
parent 9cdaa76b52
commit f7e53c6d74
5 changed files with 15 additions and 1 deletions

1
.gitignore vendored
View File

@ -8,6 +8,7 @@ doc/fix-qdf.1
doc/qpdf.1
doc/zlib-flate.1
examples/build/
libqpdf.pc
libqpdf/build/
libqpdf/qpdf/qpdf-config.h
libqpdf/qpdf/qpdf-config.h.in

View File

@ -96,6 +96,7 @@ distclean: clean
$(RM) manual/html.xsl
$(RM) manual/print.xsl
$(RM) doc/*.1
$(RM) libqpdf.pc
maintainer-clean: distclean
$(RM) configure doc/qpdf-manual.* libqpdf/qpdf/qpdf-config.h.in

View File

@ -7,6 +7,7 @@ AC_INIT([qpdf],[2.3.1])
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_FILES([autoconf.mk])
AC_CONFIG_FILES([manual/html.xsl manual/print.xsl])
AC_CONFIG_FILES([libqpdf.pc])
AC_CONFIG_HEADERS([libqpdf/qpdf/qpdf-config.h])
AC_PROG_CC

10
libqpdf.pc.in Normal file
View File

@ -0,0 +1,10 @@
prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@includedir@
Name: libqpdf
Description: PDF transformation library
Version: @PACKAGE_VERSION@
Libs: -L${libdir} -lqpdf
Cflags: -I${includedir}

View File

@ -103,7 +103,7 @@ endef
# Install target
install: all
./mkinstalldirs $(DESTDIR)$(libdir)
./mkinstalldirs $(DESTDIR)$(libdir)/pkgconfig
./mkinstalldirs $(DESTDIR)$(bindir)
./mkinstalldirs $(DESTDIR)$(includedir)/qpdf
./mkinstalldirs $(DESTDIR)$(docdir)
@ -126,3 +126,4 @@ install: all
cp doc/qpdf-manual.html $(DESTDIR)$(docdir)
cp doc/qpdf-manual.pdf $(DESTDIR)$(docdir)
cp doc/*.1 $(DESTDIR)$(mandir)/man1
cp libqpdf.pc $(DESTDIR)$(libdir)/pkgconfig