michael@217: ## michael@217: ## doxygen.spec -- OpenPKG RPM Package Specification michael@217: ## Copyright (c) 2000-2009 OpenPKG Foundation e.V. michael@217: ## michael@217: ## Permission to use, copy, modify, and distribute this software for michael@217: ## any purpose with or without fee is hereby granted, provided that michael@217: ## the above copyright notice and this permission notice appear in all michael@217: ## copies. michael@217: ## michael@217: ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED michael@217: ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF michael@217: ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. michael@217: ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR michael@217: ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, michael@217: ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT michael@217: ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF michael@217: ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND michael@217: ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, michael@217: ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT michael@217: ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF michael@217: ## SUCH DAMAGE. michael@217: ## michael@217: michael@217: # package information michael@217: Name: doxygen michael@217: Summary: Source Code Documentation Extraction Tool michael@217: URL: http://www.doxygen.org/ michael@217: Vendor: Dimitri van Heesch michael@217: Packager: OpenPKG Foundation e.V. michael@217: Distribution: OpenPKG Community michael@217: Class: PLUS michael@217: Group: Development michael@217: License: GPL michael@217: Version: 1.6.1 michael@218: Release: 20091001 michael@218: michael@218: # build options michael@218: %option with_qt no michael@217: michael@217: # list of sources michael@217: Source0: ftp://ftp.stack.nl/pub/users/dimitri/doxygen-%{version}.src.tar.gz michael@217: michael@217: # build information michael@217: Prefix: %{l_prefix} michael@217: BuildRoot: %{l_buildroot} michael@217: BuildPreReq: OpenPKG, openpkg >= 20040130, make, flex, bison, perl, gcc, gcc::with_cxx = yes michael@217: PreReq: OpenPKG, openpkg >= 20040130 michael@217: BuildPreReq: libiconv michael@217: PreReq: libiconv michael@218: %if "%{with_qt}" == "yes" michael@218: BuildPreReq: qt >= 4 michael@218: PreReq: qt >= 4 michael@218: %endif michael@217: AutoReq: no michael@217: AutoReqProv: no michael@217: michael@217: %description michael@217: Doxygen is a documentation system for C, C++, Java, and IDL. michael@217: michael@217: %track michael@217: prog doxygen = { michael@217: version = %{version} michael@217: url = ftp://ftp.stack.nl/pub/users/dimitri/ michael@217: regex = doxygen-(\d+\.\d+(\.\d+)?)\.src\.tar\.gz michael@217: } michael@217: michael@217: %prep michael@217: %setup -q michael@218: %{l_shtool} subst \ michael@218: -e 's;\(\$(INSTALL)\);$(DESTDIR)/\1;g' \ michael@218: addon/doxywizard/Makefile.in michael@218: %{l_shtool} subst \ michael@218: -e 's;\($(DESTDIR)\)/;\1;g' \ michael@218: addon/doxywizard/Makefile.in \ michael@218: Makefile.in michael@217: michael@217: %build michael@217: opt="" michael@217: case "%{l_platform -t}" in michael@217: *-freebsd* ) opt="--platform freebsd-g++" ;; michael@217: *-linux* ) opt="--platform linux-g++" ;; michael@217: *-sunos* ) opt="--platform solaris-g++" ;; michael@217: esac michael@217: CC="%{l_cc}" \ michael@217: CXX="%{l_cxx}" \ michael@217: CFLAGS="%{l_cflags -O}" \ michael@217: CXXFLAGS="%{l_cxxflags -O}" \ michael@218: %if "%{with_qt}" == "yes" michael@218: QTDIR="%{l_prefix}" \ michael@218: %endif michael@217: %{l_bash} ./configure \ michael@217: --prefix %{l_prefix} \ michael@217: --perl %{l_prefix}/bin/perl \ michael@217: --make %{l_prefix}/bin/make \ michael@217: --install %{l_prefix}/bin/install \ michael@217: --release \ michael@217: --english-only \ michael@218: %if "%{with_qt}" == "yes" michael@218: --with-doxywizard \ michael@218: %endif michael@217: $opt michael@217: ( cd src michael@217: %{l_make} %{l_mflags} Makefile.libdoxycfg Makefile.doxygen michael@217: ) || exit $? michael@217: %{l_shtool} subst \ michael@217: -e 's;\(INCPATH[ ]=.*\)$;\1 %{l_cppflags};' \ michael@217: src/Makefile.libdoxycfg michael@217: %{l_shtool} subst \ michael@217: -e 's;\(LIBS[ ]=.*\)$;\1 %{l_ldflags} -liconv;' \ michael@217: src/Makefile.doxygen michael@217: %{l_make} %{l_mflags -O} michael@217: michael@217: %install michael@217: rm -rf $RPM_BUILD_ROOT michael@217: %{l_make} %{l_mflags} install \ michael@218: DESTDIR=$RPM_BUILD_ROOT \ michael@218: INSTALL=%{l_prefix} \ michael@218: MAN1DIR=man/man1 \ michael@218: INSTTOOL="%{l_shtool} install -c" || true michael@217: strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true michael@217: %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} michael@217: michael@217: %files -f files michael@217: michael@217: %clean michael@217: rm -rf $RPM_BUILD_ROOT michael@217: