From: des Date: Mon, 2 Jul 2007 08:23:31 +0000 (+0000) Subject: Install headers, and register with pkg-config. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9fc419759c995f2a4f2924d74bef55b21bb74d9e;p=varnish Install headers, and register with pkg-config. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1605 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/Makefile.am b/varnish-cache/Makefile.am index 9984a64a..6002d886 100644 --- a/varnish-cache/Makefile.am +++ b/varnish-cache/Makefile.am @@ -4,7 +4,10 @@ SUBDIRS = include lib bin man etc doc SUBDIRS += debian redhat -EXTRA_DIST = LICENSE autogen.sh +pkgconfigdir = $(libdir)/pkgconfig +pkgconfig_DATA = varnishapi.pc + +EXTRA_DIST = LICENSE autogen.sh varnishapi.pc.in install-data-local: $(install_sh) -d -m 0755 $(localstatedir)/varnish diff --git a/varnish-cache/configure.ac b/varnish-cache/configure.ac index dc5b73e0..b6af8def 100644 --- a/varnish-cache/configure.ac +++ b/varnish-cache/configure.ac @@ -155,5 +155,6 @@ AC_CONFIG_FILES([ man/Makefile debian/Makefile redhat/Makefile + varnishapi.pc ]) AC_OUTPUT diff --git a/varnish-cache/include/Makefile.am b/varnish-cache/include/Makefile.am index 5b62b62e..8b09fa07 100644 --- a/varnish-cache/include/Makefile.am +++ b/varnish-cache/include/Makefile.am @@ -1,5 +1,12 @@ # $Id$ +pkginclude_HEADERS = \ + shmlog.h \ + shmlog_tags.h \ + stat_field.h \ + stats.h \ + varnishapi.h + noinst_HEADERS = \ binary_heap.h \ cli.h \ @@ -22,11 +29,6 @@ noinst_HEADERS = \ queue.h \ vpf.h \ vsb.h \ - shmlog.h \ - shmlog_tags.h \ - stat_field.h \ - stats.h \ - varnishapi.h \ vcl.h \ vcl_returns.h \ vrt.h \ diff --git a/varnish-cache/varnishapi.pc.in b/varnish-cache/varnishapi.pc.in new file mode 100644 index 00000000..4b3b2ac3 --- /dev/null +++ b/varnish-cache/varnishapi.pc.in @@ -0,0 +1,10 @@ +prefix=@prefix@ +exec_prefix=@exec_prefix@ +libdir=@libdir@ +includedir=@includedir@ + +Name: VarnishAPI +Description: Varnish API +Version: @PACKAGE_VERSION@ +Cflags: -I${includedir}/varnish +Libs: -L${libdir} -lvarnishapi