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