[packages] libsrtp:
[openwrt/svn-archive/archive.git] / libs / libsrtp / patches / 1007_update_Doxyfile.patch
1 Description: Update Doxyfile and header template
2 Author: Jonas Smedegaard <dr@jones.dk>
3 Last-Update: 2010-02-28
4 --- a/doc/Makefile.in
5 +++ b/doc/Makefile.in
6 @@ -25,6 +25,7 @@ libsrtpdoc:
7 echo "*** Sorry, can't build doc outside source dir"; exit 1; \
8 fi
9 sed 's/LIBSRTPVERSION/$(version)/' header.template > header.tex
10 + doxygen -u
11 doxygen
12 sed 's/\subsection/\section/' latex/index.tex > latex/index.tmp
13 mv latex/index.tmp latex/index.tex
14 @@ -38,7 +39,7 @@ cryptodoc: clean
15 cp latex/refman.pdf crypto.pdf
16
17 clean:
18 - rm -rf latex/ header.tex
19 + rm -rf latex/ header.tex Doxyfile.bak
20 for a in * ; do \
21 if [ -f "$$a~" ] ; then rm -f $$a~; fi; \
22 done;
23 --- a/doc/header.template
24 +++ b/doc/header.template
25 @@ -6,28 +6,40 @@
26 %
27 \documentclass[letterpaper]{book}
28 \usepackage{makeidx}
29 -\usepackage{fancyhdr}
30 \usepackage{graphicx}
31 \usepackage{multicol}
32 \usepackage{float}
33 +\usepackage{listings}
34 +\usepackage{color}
35 +\usepackage{ifthen}
36 +\usepackage[table]{xcolor}
37 \usepackage{textcomp}
38 \usepackage{alltt}
39 -\usepackage{times}
40 -\usepackage{graphicx}
41 -\ifx\pdfoutput\undefined
42 -\usepackage[ps2pdf,
43 +\usepackage{ifpdf}
44 +\ifpdf
45 +\usepackage[pdftex,
46 pagebackref=true,
47 colorlinks=true,
48 - linkcolor=blue
49 + linkcolor=blue,
50 + unicode
51 ]{hyperref}
52 \else
53 -\usepackage[pdftex,
54 +\usepackage[ps2pdf,
55 pagebackref=true,
56 colorlinks=true,
57 - linkcolor=blue
58 + linkcolor=blue,
59 + unicode
60 ]{hyperref}
61 +\usepackage{pspicture}
62 \fi
63 +\usepackage[utf8]{inputenc}
64 +\usepackage{mathptmx}
65 +\usepackage[scaled=.90]{helvet}
66 +\usepackage{courier}
67 +\usepackage{sectsty}
68 +\usepackage[titles]{tocloft}
69 \usepackage{doxygen}
70 +\lstset{language=C++,inputencoding=utf8,basicstyle=\footnotesize,breaklines=true,breakatwhitespace=true,tabsize=3,numbers=left }
71 \makeindex
72 \setcounter{tocdepth}{1}
73 \renewcommand{\footrulewidth}{0.4pt}
74 @@ -59,7 +71,9 @@
75 \selectfont
76
77
78 +\renewcommand{\familydefault}{\sfdefault}
79 \begin{document}
80 +\hypersetup{pageanchor=false}
81 \begin{titlepage}
82 \vspace*{4cm}
83 %\begin{center}
84 @@ -107,9 +121,6 @@ This reference material in this documena
85 \clearemptydoublepage
86 \pagenumbering{roman}
87 \tableofcontents
88 -%\clearemptydoublepage
89 -
90 \clearemptydoublepage
91 \pagenumbering{arabic}
92 -
93 -
94 +\hypersetup{pageanchor=true}