source: scripts/scripts/untested/blfs-scripts/blfs-doxygen.sh @ 7f65c0e

clfs-1.2clfs-2.1clfs-3.0.0-systemdclfs-3.0.0-sysvinitsystemdsysvinit
Last change on this file since 7f65c0e was 7f65c0e, checked in by Jim Gifford <clfs@…>, 18 years ago

r625@server (orig r623): jim | 2005-10-31 12:43:24 -0800
Final Move

  • Property mode set to 100755
File size: 2.0 KB
Line 
1#!/bin/bash
2
3### doxygen ###
4
5cd ${SRC}
6LOG=doxygen-blfs.log
7
8SELF=`basename ${0}`
9set_buildenv
10set_libdirname
11setup_multiarch
12
13unpack_tarball doxygen-${DOXYGEN_VER}.src
14cd ${PKGDIR}
15
16# overwrite src/unistd.h with the systems
17cp -p /usr/include/unistd.h src/
18
19# Setup platform template for linux-g++-64
20if [ ! "${libdirname}" = "lib" ]; then
21   mkdir -p ./tmake/lib/linux-g++-${BUILDENV} &&
22   cp -Rp ./tmake/lib/linux-g++/* ./tmake/lib/linux-g++-${BUILDENV}
23   platform=linux-g++-${BUILDENV}
24else
25   platform=linux-g++
26fi
27
28extra_conf="--platform ${platform}"
29
30sed -i -e "/TMAKE_LIBDIR.*/s@lib@${libdirname}@g" \
31       -e '/TMAKE_LIBS_OPENGL/s@Mesa@@g' \
32       -e "s@^TMAKE_CC\s.*@& ${ARCH_CFLAGS}@g" \
33       -e "s@^TMAKE_CFLAGS\s.*@& ${TGT_CFLAGS}@g" \
34       -e "s@^TMAKE_CXX\s.*@& ${ARCH_CFLAGS}@g" \
35       -e "s@^TMAKE_LINK\s.*@& ${ARCH_CFLAGS}@g" \
36       -e "s@^TMAKE_LINK_SHLIB\s.*@& ${ARCH_CFLAGS}@g" \
37      tmake/lib/${platform}/tmake.conf
38touch src/scanner.cpp
39
40#for file in src/libdoxycfg.t src/Makefile.libdoxycfg \
41#            src/doxytag.t src/libdoxygen.t \
42#            addon/doxywizard/doxywizard.t \
43#            addon/doxywizard/Makefile.doxywizard; do
44#   sed -i '/^LEX.*=/s@flex@flex -l@g' ${file}
45#done
46
47max_log_init doxygen ${DOXYGEN_VER} "blfs (shared)" ${CONFLOGS} ${LOG}
48
49CC="${CC-gcc} ${ARCH_CFLAGS}" \
50CXX="${CXX-g++} ${ARCH_CFLAGS}" \
51CFLAGS="${TGT_CFLAGS}" \
52CXXFLAGS="${TGT_CFLAGS}" \
53./configure --prefix /usr \
54   --docdir /usr/share/doc \
55   --with-doxywizard ${extra_conf} \
56  >> ${LOGFILE} 2>&1 &&
57echo " o Configure OK" &&
58
59min_log_init ${BUILDLOGS}
60make \
61  >> ${LOGFILE} 2>&1 &&
62echo " o Build OK" || barf
63
64min_log_init ${INSTLOGS}
65(
66   make install &&
67   make doxywizard_install &&
68   make docs &&
69   make pdf &&
70   install -d -m755 /usr/share/doc/doxygen/src &&
71   install -m644 src/translator{,_adapter,_en}.h \
72      /usr/share/doc/doxygen/src &&
73   install -m644 VERSION /usr/share/doc/doxygen &&
74   make install_docs
75)  >> ${LOGFILE} 2>&1 &&
76echo " o Install OK" || barf
Note: See TracBrowser for help on using the repository browser.