Mon Jun 19 17:34:13 2023 UTC ()
tiff: don't try to rebuild docs if sphinx-build is present.

Fixes PLIST mismatch (DESTDIR is missing _sources/multi_page.rst.txt and
multi_page.html) in that case, at least on my macOS system. No change on
my NetBSD system without sphinx.


(schmonz)
diff -r1.157 -r1.158 pkgsrc/graphics/tiff/Makefile

cvs diff -r1.157 -r1.158 pkgsrc/graphics/tiff/Makefile (expand / switch to unified diff)

--- pkgsrc/graphics/tiff/Makefile 2023/06/14 13:03:31 1.157
+++ pkgsrc/graphics/tiff/Makefile 2023/06/19 17:34:13 1.158
@@ -1,38 +1,39 @@ @@ -1,38 +1,39 @@
1# $NetBSD: Makefile,v 1.157 2023/06/14 13:03:31 gdt Exp $ 1# $NetBSD: Makefile,v 1.158 2023/06/19 17:34:13 schmonz Exp $
2 2
3VERSION_BASE= 4.5.1 3VERSION_BASE= 4.5.1
4# Accomodate testing unreleased versions. 4# Accomodate testing unreleased versions.
5#VERSION_RC= rc3 5#VERSION_RC= rc3
6DISTNAME= tiff-${VERSION_BASE}${VERSION_RC} 6DISTNAME= tiff-${VERSION_BASE}${VERSION_RC}
7CATEGORIES= graphics 7CATEGORIES= graphics
8MASTER_SITES= https://download.osgeo.org/libtiff/ 8MASTER_SITES= https://download.osgeo.org/libtiff/
9 9
10MAINTAINER= gdt@NetBSD.org 10MAINTAINER= gdt@NetBSD.org
11HOMEPAGE= http://simplesystems.org/libtiff/ 11HOMEPAGE= http://simplesystems.org/libtiff/
12COMMENT= Library and tools for reading and writing TIFF data files 12COMMENT= Library and tools for reading and writing TIFF data files
13LICENSE= mit 13LICENSE= mit
14 14
15WRKSRC= ${WRKDIR}/tiff-${VERSION_BASE} 15WRKSRC= ${WRKDIR}/tiff-${VERSION_BASE}
16 16
17EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} 17EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
18 18
19USE_LANGUAGES= c99 c++ 19USE_LANGUAGES= c99 c++
20USE_LIBTOOL= yes 20USE_LIBTOOL= yes
21GNU_CONFIGURE= yes 21GNU_CONFIGURE= yes
22CONFIGURE_ARGS+= --enable-rpath 22CONFIGURE_ARGS+= --enable-rpath
23CONFIGURE_ARGS+= --enable-cxx 23CONFIGURE_ARGS+= --enable-cxx
24CONFIGURE_ARGS+= --with-docdir=${PREFIX}/share/doc/tiff 24CONFIGURE_ARGS+= --with-docdir=${PREFIX}/share/doc/tiff
25CONFIGURE_ARGS+= --without-x # just in case detects gl to build tiffgt 25CONFIGURE_ARGS+= --without-x # just in case detects gl to build tiffgt
 26CONFIGURE_ARGS+= --disable-sphinx
26CONFIGURE_ARGS+= --disable-webp 27CONFIGURE_ARGS+= --disable-webp
27CONFIGURE_ARGS+= --disable-zstd 28CONFIGURE_ARGS+= --disable-zstd
28 29
29PKGCONFIG_OVERRIDE= libtiff-4.pc.in 30PKGCONFIG_OVERRIDE= libtiff-4.pc.in
30 31
31TEST_TARGET= check 32TEST_TARGET= check
32 33
33post-extract: 34post-extract:
34 cd ${WRKSRC} && \ 35 cd ${WRKSRC} && \
35 ${MV} -f VERSION VERSION.txt 36 ${MV} -f VERSION VERSION.txt
36 37
37post-install: 38post-install:
38 cd ${DESTDIR}/${PREFIX}/${PKGMANDIR}/man3 && for file in *.3tiff; do\ 39 cd ${DESTDIR}/${PREFIX}/${PKGMANDIR}/man3 && for file in *.3tiff; do\