[617118d] | 1 | #!/bin/bash
|
---|
| 2 |
|
---|
| 3 | ### foomatic ###
|
---|
| 4 |
|
---|
| 5 | cd ${SRC}
|
---|
| 6 | LOG=foomatic-db-blfs.log
|
---|
| 7 |
|
---|
| 8 | set_libdirname
|
---|
| 9 | setup_multiarch
|
---|
| 10 |
|
---|
| 11 | unpack_tarball foomatic-db-${FOOMATIC_DB_VER}
|
---|
| 12 | cd ${PKGDIR}
|
---|
| 13 |
|
---|
| 14 | max_log_init foomatic-db ${FOOMATIC_DB_VER} "blfs (shared)" ${CONFLOGS} ${LOG}
|
---|
| 15 | CC="${CC-gcc} ${ARCH_CFLAGS}" \
|
---|
| 16 | ./configure --prefix=/usr \
|
---|
| 17 | >> ${LOGFILE} 2>&1 &&
|
---|
| 18 | echo " o Configure OK" &&
|
---|
| 19 |
|
---|
| 20 | min_log_init ${INSTLOGS}
|
---|
[83ea618] | 21 | make install \
|
---|
[617118d] | 22 | >> ${LOGFILE} 2>&1 &&
|
---|
| 23 | echo " o Install OK" || barf
|
---|
| 24 |
|
---|
| 25 | cd ${SRC}
|
---|
| 26 | LOG=foomatic-db-hpijs-blfs.log
|
---|
| 27 |
|
---|
[83ea618] | 28 | unpack_tarball foomatic-db-hpijs-${FOOMATIC_DB_HPIJS_VER}-current
|
---|
[617118d] | 29 | cd ${PKGDIR}
|
---|
| 30 |
|
---|
| 31 | max_log_init foomatic-db ${FOOMATIC_DB_HPIJS_VER} "blfs (shared)" ${CONFLOGS} ${LOG}
|
---|
| 32 | CC="${CC-gcc} ${ARCH_CFLAGS}" \
|
---|
| 33 | ./configure --prefix=/usr \
|
---|
| 34 | >> ${LOGFILE} 2>&1 &&
|
---|
| 35 | echo " o Configure OK" &&
|
---|
| 36 |
|
---|
[83ea618] | 37 | min_log_init ${BUILDLOGS}
|
---|
| 38 | make \
|
---|
| 39 | >> ${LOGFILE} 2>&1 &&
|
---|
| 40 | echo " o Build OK" || barf
|
---|
| 41 |
|
---|
[617118d] | 42 | min_log_init ${INSTLOGS}
|
---|
[83ea618] | 43 | make install \
|
---|
[617118d] | 44 | >> ${LOGFILE} 2>&1 &&
|
---|
| 45 | echo " o Install OK" || barf
|
---|
| 46 |
|
---|
| 47 | cd ${SRC}
|
---|
| 48 | LOG=foomatic-filters-blfs.log
|
---|
| 49 |
|
---|
| 50 | unpack_tarball foomatic-filters-${FOOMATIC_FILTERS_VER}
|
---|
| 51 | cd ${PKGDIR}
|
---|
| 52 |
|
---|
| 53 | max_log_init foomatic-filters ${FOOMATIC_FILTERS_VER} "blfs (shared)" ${CONFLOGS} ${LOG}
|
---|
| 54 | CC="${CC-gcc} ${ARCH_CFLAGS}" \
|
---|
| 55 | ./configure --prefix=/usr \
|
---|
| 56 | >> ${LOGFILE} 2>&1 &&
|
---|
| 57 | echo " o Configure OK" &&
|
---|
| 58 |
|
---|
[83ea618] | 59 | min_log_init ${BUILDLOGS}
|
---|
| 60 | make \
|
---|
[617118d] | 61 | >> ${LOGFILE} 2>&1 &&
|
---|
[83ea618] | 62 | echo " o Build OK" || barf
|
---|
[617118d] | 63 |
|
---|
| 64 | min_log_init ${INSTLOGS}
|
---|
[83ea618] | 65 | make install \
|
---|
[617118d] | 66 | >> ${LOGFILE} 2>&1 &&
|
---|
| 67 | echo " o Install OK" || barf
|
---|
| 68 |
|
---|
| 69 | if [ ! "${libdirname}" = "lib" ]; then
|
---|
| 70 | # additional symlinks for lib64 cups, ppr to get the foomatic filters
|
---|
| 71 | # TODO: this needs to be done better
|
---|
| 72 |
|
---|
| 73 | mkdir -p /usr/${libdirname}/cups/filter
|
---|
| 74 | ln -sf /usr/bin/foomatic-rip /usr/${libdirname}/cups/filter
|
---|
| 75 | mkdir -p /usr/${libdirname}/ppr/interfaces
|
---|
| 76 | mkdir -p /usr/${libdirname}/ppr/lib
|
---|
| 77 | ln -sf /usr/bin/foomatic-rip /usr/${libdirname}/ppr/interfaces
|
---|
| 78 | ln -sf /usr/bin/foomatic-rip /usr/${libdirname}/ppr/lib
|
---|
| 79 | fi
|
---|
| 80 |
|
---|