source: scripts/untested/blfs-scripts/blfs-doxygen.sh@ fdfb73b

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since fdfb73b was 617118d, checked in by Jim Gifford <clfs@…>, 19 years ago

r561@server (orig r559): root | 2005-06-05 02:38:49 -0700
Fixed Directory Structure

  • Property mode set to 100755
File size: 1.7 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}
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 tmake/lib/${platform}/tmake.conf
36
37max_log_init doxygen ${DOXYGEN_VER} "blfs (shared)" ${CONFLOGS} ${LOG}
38
39CC="${CC-gcc} ${ARCH_CFLAGS}" \
40CXX="${CXX-g++} ${ARCH_CFLAGS}" \
41CFLAGS="${TGT_CFLAGS}" \
42CXXFLAGS="${TGT_CFLAGS}" \
43./configure --prefix /usr \
44 --docdir /usr/share/doc \
45 --with-doxywizard ${extra_conf} \
46 >> ${LOGFILE} 2>&1 &&
47echo " o Configure OK" &&
48
49min_log_init ${BUILDLOGS}
50make \
51 >> ${LOGFILE} 2>&1 &&
52echo " o Build OK" || barf
53
54min_log_init ${INSTLOGS}
55make install \
56 >> ${LOGFILE} 2>&1 &&
57make doxywizard_install \
58 >> ${LOGFILE} 2>&1 &&
59make docs \
60 >> ${LOGFILE} 2>&1 &&
61make pdf \
62 >> ${LOGFILE} 2>&1 &&
63install -d -m755 /usr/share/doc/doxygen/src &&
64install -m644 src/translator{,_adapter,_en}.h \
65 /usr/share/doc/doxygen/src &&
66install -m644 VERSION /usr/share/doc/doxygen &&
67make install_docs \
68 >> ${LOGFILE} 2>&1 &&
69echo " o Install OK" || barf
Note: See TracBrowser for help on using the repository browser.