doxygen/doxygen.spec

changeset 772
f4bf307969d5
parent 217
ccd470e665aa
equal deleted inserted replaced
0:a9b9e67f7bc9 1:98330538a034
30 Distribution: OpenPKG Community 30 Distribution: OpenPKG Community
31 Class: PLUS 31 Class: PLUS
32 Group: Development 32 Group: Development
33 License: GPL 33 License: GPL
34 Version: 1.6.1 34 Version: 1.6.1
35 Release: 20090825 35 Release: 20091001
36
37 # build options
38 %option with_qt no
36 39
37 # list of sources 40 # list of sources
38 Source0: ftp://ftp.stack.nl/pub/users/dimitri/doxygen-%{version}.src.tar.gz 41 Source0: ftp://ftp.stack.nl/pub/users/dimitri/doxygen-%{version}.src.tar.gz
39 Patch0: doxygen.patch
40 42
41 # build information 43 # build information
42 Prefix: %{l_prefix} 44 Prefix: %{l_prefix}
43 BuildRoot: %{l_buildroot} 45 BuildRoot: %{l_buildroot}
44 BuildPreReq: OpenPKG, openpkg >= 20040130, make, flex, bison, perl, gcc, gcc::with_cxx = yes 46 BuildPreReq: OpenPKG, openpkg >= 20040130, make, flex, bison, perl, gcc, gcc::with_cxx = yes
45 PreReq: OpenPKG, openpkg >= 20040130 47 PreReq: OpenPKG, openpkg >= 20040130
46 BuildPreReq: libiconv 48 BuildPreReq: libiconv
47 PreReq: libiconv 49 PreReq: libiconv
50 %if "%{with_qt}" == "yes"
51 BuildPreReq: qt >= 4
52 PreReq: qt >= 4
53 %endif
48 AutoReq: no 54 AutoReq: no
49 AutoReqProv: no 55 AutoReqProv: no
50 56
51 %description 57 %description
52 Doxygen is a documentation system for C, C++, Java, and IDL. 58 Doxygen is a documentation system for C, C++, Java, and IDL.
58 regex = doxygen-(\d+\.\d+(\.\d+)?)\.src\.tar\.gz 64 regex = doxygen-(\d+\.\d+(\.\d+)?)\.src\.tar\.gz
59 } 65 }
60 66
61 %prep 67 %prep
62 %setup -q 68 %setup -q
63 %patch -p0 69 %{l_shtool} subst \
70 -e 's;\(\$(INSTALL)\);$(DESTDIR)/\1;g' \
71 addon/doxywizard/Makefile.in
72 %{l_shtool} subst \
73 -e 's;\($(DESTDIR)\)/;\1;g' \
74 addon/doxywizard/Makefile.in \
75 Makefile.in
64 76
65 %build 77 %build
66 opt="" 78 opt=""
67 case "%{l_platform -t}" in 79 case "%{l_platform -t}" in
68 *-freebsd* ) opt="--platform freebsd-g++" ;; 80 *-freebsd* ) opt="--platform freebsd-g++" ;;
71 esac 83 esac
72 CC="%{l_cc}" \ 84 CC="%{l_cc}" \
73 CXX="%{l_cxx}" \ 85 CXX="%{l_cxx}" \
74 CFLAGS="%{l_cflags -O}" \ 86 CFLAGS="%{l_cflags -O}" \
75 CXXFLAGS="%{l_cxxflags -O}" \ 87 CXXFLAGS="%{l_cxxflags -O}" \
88 %if "%{with_qt}" == "yes"
89 QTDIR="%{l_prefix}" \
90 %endif
76 %{l_bash} ./configure \ 91 %{l_bash} ./configure \
77 --prefix %{l_prefix} \ 92 --prefix %{l_prefix} \
78 --perl %{l_prefix}/bin/perl \ 93 --perl %{l_prefix}/bin/perl \
79 --make %{l_prefix}/bin/make \ 94 --make %{l_prefix}/bin/make \
80 --install %{l_prefix}/bin/install \ 95 --install %{l_prefix}/bin/install \
81 --release \ 96 --release \
82 --english-only \ 97 --english-only \
98 %if "%{with_qt}" == "yes"
99 --with-doxywizard \
100 %endif
83 $opt 101 $opt
84 ( cd src 102 ( cd src
85 %{l_make} %{l_mflags} Makefile.libdoxycfg Makefile.doxygen 103 %{l_make} %{l_mflags} Makefile.libdoxycfg Makefile.doxygen
86 ) || exit $? 104 ) || exit $?
87 %{l_shtool} subst \ 105 %{l_shtool} subst \
93 %{l_make} %{l_mflags -O} 111 %{l_make} %{l_mflags -O}
94 112
95 %install 113 %install
96 rm -rf $RPM_BUILD_ROOT 114 rm -rf $RPM_BUILD_ROOT
97 %{l_make} %{l_mflags} install \ 115 %{l_make} %{l_mflags} install \
98 INSTALL=$RPM_BUILD_ROOT%{l_prefix} \ 116 DESTDIR=$RPM_BUILD_ROOT \
99 INSTTOOL="%{l_shtool} install" || true 117 INSTALL=%{l_prefix} \
118 MAN1DIR=man/man1 \
119 INSTTOOL="%{l_shtool} install -c" || true
100 strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true 120 strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
101 %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} 121 %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
102 122
103 %files -f files 123 %files -f files
104 124

mercurial