Contents of /trunk/libexif/patches/libexif-0.6.13-optional-apidocs.patch
Parent Directory | Revision Log
Revision 144 -
(show annotations)
(download)
Tue May 8 20:06:05 2007 UTC (17 years, 6 months ago) by niro
File size: 2214 byte(s)
Tue May 8 20:06:05 2007 UTC (17 years, 6 months ago) by niro
File size: 2214 byte(s)
-import
1 | diff -ruN libexif-0.6.13/configure.ac libexif-0.6.13-fixed/configure.ac |
2 | --- libexif-0.6.13/configure.ac 2005-12-27 22:17:23.000000000 +0100 |
3 | +++ libexif-0.6.13-fixed/configure.ac 2007-02-02 22:19:20.387292250 +0100 |
4 | @@ -75,6 +75,22 @@ |
5 | GP_CONFIG_MSG([Ship binaries in tarball],[$ship_binaries]) |
6 | |
7 | |
8 | +dnl ------------------------------------------------------------------------ |
9 | +dnl Whether to install api documentation |
10 | +dnl ------------------------------------------------------------------------ |
11 | + |
12 | +install_apidocs=false |
13 | +AC_ARG_ENABLE([doc], |
14 | +[AS_HELP_STRING([--enable-doc], |
15 | +[Whether to install API documentation [default=no]])],[ |
16 | + if test x$enableval = xyes; then |
17 | + install_apidocs=true |
18 | + fi |
19 | +]) |
20 | +AM_CONDITIONAL([INSTALL_APIDOCS],[$install_apidocs]) |
21 | +GP_CONFIG_MSG([Install API documentation],[$install_apidocs]) |
22 | + |
23 | + |
24 | dnl --------------------------------------------------------------------------- |
25 | dnl Whether -lm is required for our math functions |
26 | dnl --------------------------------------------------------------------------- |
27 | diff -ruN libexif-0.6.13/doc/Makefile.am libexif-0.6.13-fixed/doc/Makefile.am |
28 | --- libexif-0.6.13/doc/Makefile.am 2007-02-02 22:18:07.878760750 +0100 |
29 | +++ libexif-0.6.13-fixed/doc/Makefile.am 2007-02-02 22:19:54.889448500 +0100 |
30 | @@ -2,6 +2,7 @@ |
31 | # Conditional rules, depending on tool availability |
32 | ######################################################################## |
33 | |
34 | +if INSTALL_APIDOCS |
35 | if HAVE_DOXYGEN |
36 | |
37 | DOXYGEN_FILES = |
38 | @@ -62,7 +63,7 @@ |
39 | 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 {} \; \)" |
40 | |
41 | endif |
42 | - |
43 | +endif |
44 | |
45 | ######################################################################## |
46 | # Common part |
47 | @@ -74,6 +75,7 @@ |
48 | |
49 | all-local: $(DOXYGEN_STAMPS) |
50 | |
51 | +if INSTALL_APIDOCS |
52 | if HAVE_DOXYGEN |
53 | |
54 | install-data-local: install-apidocs install-apidocs-internals |
55 | @@ -83,6 +85,7 @@ |
56 | clean-local: clean-apidocs |
57 | |
58 | endif |
59 | +endif |
60 | |
61 | upload: $(DOXYGEN_UPLOAD) |
62 |