[617118d] | 1 | #!/bin/bash
|
---|
| 2 |
|
---|
| 3 | ### openjade ###
|
---|
| 4 |
|
---|
| 5 | cd ${SRC}
|
---|
| 6 | LOG=openjade-blfs.log
|
---|
| 7 |
|
---|
| 8 | SELF=`basename ${0}`
|
---|
| 9 | set_buildenv
|
---|
| 10 | set_libdirname
|
---|
| 11 | setup_multiarch
|
---|
| 12 | if [ ! "${libdirname}" = "lib" ]; then
|
---|
| 13 | extra_conf="--libdir=/usr/${libdirname}"
|
---|
| 14 | fi
|
---|
| 15 |
|
---|
| 16 | unpack_tarball openjade-${OPENJADE_VER}
|
---|
| 17 | cd ${PKGDIR}
|
---|
| 18 |
|
---|
| 19 | max_log_init openjade ${OPENJADE_VER} "blfs (shared)" ${CONFLOGS} ${LOG}
|
---|
| 20 | CC="${CC-gcc} ${ARCH_CFLAGS}" \
|
---|
| 21 | CXX="${CXX-g++} ${ARCH_CFLAGS}" \
|
---|
| 22 | CFLAGS="${TGT_CFLAGS}" \
|
---|
| 23 | CXXFLAGS="${TGT_CFLAGS}" \
|
---|
| 24 | ./configure --prefix=/usr --disable-static \
|
---|
| 25 | ${extra_conf} --enable-http \
|
---|
| 26 | --enable-splibdir=/usr/${libdirname} \
|
---|
| 27 | --enable-default-catalog=/etc/sgml/catalog \
|
---|
| 28 | --enable-default-search-path=/usr/share/sgml \
|
---|
| 29 | --datadir=/usr/share/sgml/openjade-${OPENJADE_VER} \
|
---|
| 30 | >> ${LOGFILE} 2>&1 &&
|
---|
| 31 | echo " o Configure OK" &&
|
---|
| 32 |
|
---|
| 33 | min_log_init ${BUILDLOGS} &&
|
---|
| 34 | make ${PMFLAGS} \
|
---|
| 35 | >> ${LOGFILE} 2>&1 &&
|
---|
| 36 | echo " o Build OK" &&
|
---|
| 37 |
|
---|
| 38 | min_log_init ${INSTLOGS} &&
|
---|
| 39 | make install \
|
---|
| 40 | >> ${LOGFILE} 2>&1 &&
|
---|
| 41 | echo " o ALL OK" || barf
|
---|
| 42 |
|
---|
| 43 | ln -sf openjade /usr/bin/jade &&
|
---|
| 44 | ln -sf libogrove.so /usr/${libdirname}/libgrove.so &&
|
---|
| 45 | ln -sf libospgrove.so /usr/${libdirname}/libspgrove.so &&
|
---|
| 46 | ln -sf libostyle.so /usr/${libdirname}/libstyle.so &&
|
---|
| 47 | install -m644 dsssl/catalog /usr/share/sgml/openjade-${OPENJADE_VER}/ &&
|
---|
| 48 | install -m644 dsssl/*.{dtd,dsl,sgm} \
|
---|
| 49 | /usr/share/sgml/openjade-${OPENJADE_VER} &&
|
---|
| 50 | install-catalog --add /etc/sgml/openjade-${OPENJADE_VER}.cat \
|
---|
| 51 | /usr/share/sgml/openjade-${OPENJADE_VER}/catalog &&
|
---|
| 52 | install-catalog --add /etc/sgml/sgml-docbook.cat \
|
---|
| 53 | /etc/sgml/openjade-${OPENJADE_VER}.cat
|
---|
| 54 |
|
---|