summaryrefslogtreecommitdiff
blob: 95fa835425f48b1270654d3fa2230fb37a86531e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
diff -ruN libexif-0.6.13/configure.ac libexif-0.6.13-fixed/configure.ac
--- libexif-0.6.13/configure.ac	2005-12-27 22:17:23.000000000 +0100
+++ libexif-0.6.13-fixed/configure.ac	2007-02-02 22:19:20.387292250 +0100
@@ -75,6 +75,22 @@
 GP_CONFIG_MSG([Ship binaries in tarball],[$ship_binaries])
 
 
+dnl ------------------------------------------------------------------------
+dnl Whether to install api documentation
+dnl ------------------------------------------------------------------------
+
+install_apidocs=false
+AC_ARG_ENABLE([doc],
+[AS_HELP_STRING([--enable-doc],
+[Whether to install API documentation [default=no]])],[
+	if test x$enableval = xyes; then
+		install_apidocs=true
+	fi
+])
+AM_CONDITIONAL([INSTALL_APIDOCS],[$install_apidocs])
+GP_CONFIG_MSG([Install API documentation],[$install_apidocs])
+
+
 dnl ---------------------------------------------------------------------------
 dnl Whether -lm is required for our math functions
 dnl ---------------------------------------------------------------------------
diff -ruN libexif-0.6.13/doc/Makefile.am libexif-0.6.13-fixed/doc/Makefile.am
--- libexif-0.6.13/doc/Makefile.am	2007-02-02 22:18:07.878760750 +0100
+++ libexif-0.6.13-fixed/doc/Makefile.am	2007-02-02 22:19:54.889448500 +0100
@@ -2,6 +2,7 @@
 # Conditional rules, depending on tool availability
 ########################################################################
 
+if INSTALL_APIDOCS
 if HAVE_DOXYGEN
 
 DOXYGEN_FILES =
@@ -62,7 +63,7 @@
 	ssh "sf" "find /home/groups/l/li/libexif/htdocs/internals /home/groups/l/li/libexif/htdocs/api \( -type d -exec chgrp libexif {} \; -exec chmod g+rwxs,a+rx {} \; \) -or \( -type f -exec chgrp libexif {} \; -exec chmod g+rw {} \; \( -name '*.html' -or -name '*.png' -or -name '*.php' -or -name '*.jpg' -or -name '*.css' -name '*.dot' -name '*.map' \) -exec chmod a+r {} \; \)"
 
 endif
-
+endif
 
 ########################################################################
 # Common part
@@ -74,6 +75,7 @@
 
 all-local: $(DOXYGEN_STAMPS)
 
+if INSTALL_APIDOCS
 if HAVE_DOXYGEN
 
 install-data-local: install-apidocs install-apidocs-internals
@@ -83,6 +85,7 @@
 clean-local: clean-apidocs
 
 endif
+endif
 
 upload: $(DOXYGEN_UPLOAD)