Commit be0cec47 authored by Simon McVittie's avatar Simon McVittie

debian: Separate documentation into libcapsule-doc

This makes it more straightforward to omit the gtk-doc part of the
build. Note that we still need it at autogen.sh time, for the m4 macros.
Signed-off-by: Simon McVittie's avatarSimon McVittie <smcv@collabora.com>
parent bb6f0f0e
......@@ -7,6 +7,7 @@
/libGL-proxy-build/
/libcapsule-dev/
/libcapsule-dev-bin
/libcapsule-doc/
/libcapsule-gl-shims/
/libcapsule-tools/
/libcapsule-libgl1-shims/
......
......@@ -41,6 +41,20 @@ Description:
.
This package contains the files needed to build libcapsule proxy libraries.
Package: libcapsule-doc
Architecture: all
Multi-Arch: foreign
Section: doc
Depends:
${misc:Depends},
Description:
libcapsule is a helper library used to implement segregated run-time
dynamic linking proxy libraries - used (for example) to load a library
that has dependencies incompatible with the regular libraries that are
part of the host OS, such as an incompatible libstdc++ version.
.
This package contains documentation.
Package: libcapsule-tools
Architecture: amd64 i386
Multi-Arch: same
......
......@@ -2,6 +2,3 @@ usr/include/*
usr/lib/*/libcapsule.a
usr/lib/*/libcapsule.so
usr/lib/*/pkgconfig/libcapsule.pc
usr/share/doc/libcapsule/* usr/share/doc/libcapsule-dev
usr/share/gtk-doc/html/libcapsule/*
usr/share/man/man3/*
usr/share/doc/libcapsule/* usr/share/doc/libcapsule-dev
usr/share/gtk-doc/html/libcapsule/*
usr/share/man/man3/*
......@@ -5,12 +5,18 @@
%:
dh $@ --with autoreconf
binaries := $(shell dh_listpackages)
confflags = \
--enable-gtk-doc \
--enable-host-prefix=$(DEB_HOST_GNU_TYPE)- \
--libexecdir=\$${exec_prefix}/lib/libcapsule \
$(NULL)
ifneq ($(filter libcapsule-doc,$(binaries)),)
confflags += --enable-gtk-doc
else
confflags += --disable-gtk-doc
endif
ifeq ($(DEB_HOST_ARCH),amd64)
confflags += --with-glib
else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment