[617118d] | 1 | #!/bin/bash
|
---|
| 2 |
|
---|
| 3 | ### doxygen ###
|
---|
| 4 |
|
---|
| 5 | cd ${SRC}
|
---|
| 6 | LOG=doxygen-blfs.log
|
---|
| 7 |
|
---|
| 8 | SELF=`basename ${0}`
|
---|
| 9 | set_buildenv
|
---|
| 10 | set_libdirname
|
---|
| 11 | setup_multiarch
|
---|
| 12 |
|
---|
[17c4d95] | 13 | unpack_tarball doxygen-${DOXYGEN_VER}.src
|
---|
[617118d] | 14 | cd ${PKGDIR}
|
---|
| 15 |
|
---|
| 16 | # overwrite src/unistd.h with the systems
|
---|
| 17 | cp -p /usr/include/unistd.h src/
|
---|
| 18 |
|
---|
| 19 | # Setup platform template for linux-g++-64
|
---|
| 20 | if [ ! "${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}
|
---|
| 24 | else
|
---|
| 25 | platform=linux-g++
|
---|
| 26 | fi
|
---|
| 27 |
|
---|
| 28 | extra_conf="--platform ${platform}"
|
---|
| 29 |
|
---|
| 30 | sed -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" \
|
---|
[17c4d95] | 35 | -e "s@^TMAKE_LINK\s.*@& ${ARCH_CFLAGS}@g" \
|
---|
| 36 | -e "s@^TMAKE_LINK_SHLIB\s.*@& ${ARCH_CFLAGS}@g" \
|
---|
[617118d] | 37 | tmake/lib/${platform}/tmake.conf
|
---|
[17c4d95] | 38 | touch 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
|
---|
[617118d] | 46 |
|
---|
| 47 | max_log_init doxygen ${DOXYGEN_VER} "blfs (shared)" ${CONFLOGS} ${LOG}
|
---|
| 48 |
|
---|
| 49 | CC="${CC-gcc} ${ARCH_CFLAGS}" \
|
---|
| 50 | CXX="${CXX-g++} ${ARCH_CFLAGS}" \
|
---|
| 51 | CFLAGS="${TGT_CFLAGS}" \
|
---|
| 52 | CXXFLAGS="${TGT_CFLAGS}" \
|
---|
| 53 | ./configure --prefix /usr \
|
---|
| 54 | --docdir /usr/share/doc \
|
---|
| 55 | --with-doxywizard ${extra_conf} \
|
---|
| 56 | >> ${LOGFILE} 2>&1 &&
|
---|
| 57 | echo " o Configure OK" &&
|
---|
| 58 |
|
---|
| 59 | min_log_init ${BUILDLOGS}
|
---|
| 60 | make \
|
---|
| 61 | >> ${LOGFILE} 2>&1 &&
|
---|
| 62 | echo " o Build OK" || barf
|
---|
| 63 |
|
---|
| 64 | min_log_init ${INSTLOGS}
|
---|
[17c4d95] | 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 &&
|
---|
[617118d] | 76 | echo " o Install OK" || barf
|
---|