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:
parent
9cdaa76b52
commit
f7e53c6d74
1
.gitignore
vendored
1
.gitignore
vendored
@ -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
|
||||
|
1
Makefile
1
Makefile
@ -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
|
||||
|
@ -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
10
libqpdf.pc.in
Normal 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}
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user