add --enable-docs configure option

so you can now stop all docs installing, freebsd likes this
This commit is contained in:
John Cupitt 2014-06-27 14:56:11 +01:00
parent a13ec2aef8
commit 04d130828f
3 changed files with 31 additions and 2 deletions

View File

@ -1,6 +1,8 @@
25/6/14 started 7.40.2
- dzsave write to zip stops at 4gb, thanks bgilbert
- improve short option name handling, thanks bgilbert
- added --enable-docs configure option to help freebsd
- removed a bash-ism from configure to help freebsd
24/6/14 started 7.40.1
- revise man.1 pages

View File

@ -19,6 +19,14 @@ P_COMPILE_DIR =
P_DIST_DIR = swig
endif
if ENABLE_DOCS
D_DIST_DIR =
D_BUILD_DIR = doc
else
D_DIST_DIR = doc
D_BUILD_DIR =
endif
SUBDIRS = \
libvips \
tools \
@ -26,7 +34,8 @@ SUBDIRS = \
man \
doc \
$(C_COMPILE_DIR) \
$(P_COMPILE_DIR)
$(P_COMPILE_DIR) \
$(D_BUILD_DIR)
EXTRA_DIST = \
m4 \
@ -38,15 +47,18 @@ EXTRA_DIST = \
acinclude.m4 \
depcomp \
$(C_DIST_DIR) \
$(P_DIST_DIR)
$(P_DIST_DIR) \
$(D_DIST_DIR)
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = vips.pc $(C_PKGCONFIG)
if ENABLE_DOCS
install-exec-hook:
-rm -rf ${DESTDIR}$(datadir)/doc/vips
$(mkinstalldirs) ${DESTDIR}$(datadir)/doc/vips
-cp -r ${top_srcdir}/doc/html ${top_srcdir}/doc/pdf ${DESTDIR}$(datadir)/doc/vips
endif
dist-hook:
# make sure we don't get any .svn dirs from EXTRA_DIST

View File

@ -207,6 +207,20 @@ else
fi
AC_DEFINE_UNQUOTED(VIPS_ICC_DIR,"$profile_dir",[default directory for ICC profiles])
# option to stop docs installing ... eg. freebsd likes this
AC_ARG_ENABLE(docs,
AS_HELP_STRING([--enable-docs], [install docs (default: yes)]))
if test x"$enable_docs" != x"no"; then
AM_CONDITIONAL(ENABLE_DOCS, true)
enable_docs=yes
fi
if test x"$enable_docs" != x"yes"; then
AM_CONDITIONAL(ENABLE_DOCS, true)
enable_docs=no
fi
# we want largefile support, if possible
AC_SYS_LARGEFILE
@ -794,6 +808,7 @@ open files in binary mode: $vips_binary_open
enable debug: $enable_debug
build C++ components: $enable_cxx
build docs with gtkdoc: $enable_gtk_doc
install docs: $enable_docs
gobject introspection: $found_introspection
* optional packages and modules