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}
|
---|
21 | make install
|
---|
22 | >> ${LOGFILE} 2>&1 &&
|
---|
23 | echo " o Install OK" || barf
|
---|
24 |
|
---|
25 | cd ${SRC}
|
---|
26 | LOG=foomatic-db-hpijs-blfs.log
|
---|
27 |
|
---|
28 | unpack_tarball foomatic-db-hpijs-${FOOMATIC_DB_HPIJS_VER}
|
---|
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 |
|
---|
37 | min_log_init ${INSTLOGS}
|
---|
38 | make install
|
---|
39 | >> ${LOGFILE} 2>&1 &&
|
---|
40 | echo " o Install OK" || barf
|
---|
41 |
|
---|
42 | cd ${SRC}
|
---|
43 | LOG=foomatic-filters-blfs.log
|
---|
44 |
|
---|
45 | unpack_tarball foomatic-filters-${FOOMATIC_FILTERS_VER}
|
---|
46 | cd ${PKGDIR}
|
---|
47 |
|
---|
48 | max_log_init foomatic-filters ${FOOMATIC_FILTERS_VER} "blfs (shared)" ${CONFLOGS} ${LOG}
|
---|
49 | CC="${CC-gcc} ${ARCH_CFLAGS}" \
|
---|
50 | ./configure --prefix=/usr \
|
---|
51 | >> ${LOGFILE} 2>&1 &&
|
---|
52 | echo " o Configure OK" &&
|
---|
53 |
|
---|
54 | min_log_init ${INSTLOGS}
|
---|
55 | make install
|
---|
56 | >> ${LOGFILE} 2>&1 &&
|
---|
57 | echo " o Install OK" || barf
|
---|
58 |
|
---|
59 | if [ ! "${libdirname}" = "lib" ]; then
|
---|
60 | # additional symlinks for lib64 cups, ppr to get the foomatic filters
|
---|
61 | # TODO: this needs to be done better
|
---|
62 |
|
---|
63 | mkdir -p /usr/${libdirname}/cups/filter
|
---|
64 | ln -sf /usr/bin/foomatic-rip /usr/${libdirname}/cups/filter
|
---|
65 | mkdir -p /usr/${libdirname}/ppr/interfaces
|
---|
66 | mkdir -p /usr/${libdirname}/ppr/lib
|
---|
67 | ln -sf /usr/bin/foomatic-rip /usr/${libdirname}/ppr/interfaces
|
---|
68 | ln -sf /usr/bin/foomatic-rip /usr/${libdirname}/ppr/lib
|
---|
69 | fi
|
---|
70 |
|
---|
71 | #### we probably want libxml2
|
---|
72 | cd ${SRC}
|
---|
73 | LOG=foomatic-db-engine-blfs.log
|
---|
74 |
|
---|
75 | unpack_tarball foomatic-db-engine-${FOOMATIC_DB_ENG_VER}
|
---|
76 | cd ${PKGDIR}
|
---|
77 |
|
---|
78 | max_log_init foomatic-db-engine ${FOOMATIC_DB_ENG_VER} "blfs (shared)" ${CONFLOGS} ${LOG}
|
---|
79 | CC="${CC-gcc} ${ARCH_CFLAGS}" \
|
---|
80 | ./configure --prefix=/usr \
|
---|
81 | >> ${LOGFILE} 2>&1 &&
|
---|
82 | echo " o Configure OK" &&
|
---|
83 |
|
---|
84 | min_log_init ${INSTLOGS}
|
---|
85 | make install
|
---|
86 | >> ${LOGFILE} 2>&1 &&
|
---|
87 | echo " o Install OK" || barf
|
---|
88 |
|
---|
89 | if [ ! "${libdirname}" = "lib" ]; then
|
---|
90 | # additional symlinks for lib64 cups, ppr to get the foomatic filters
|
---|
91 | # TODO: this needs to be done better
|
---|
92 |
|
---|
93 | mkdir -p /usr/${libdirname}/cups/filter
|
---|
94 | ln -sf /usr/bin/foomatic-rip /usr/${libdirname}/cups/filter
|
---|
95 | mkdir -p /usr/${libdirname}/ppr/interfaces
|
---|
96 | mkdir -p /usr/${libdirname}/ppr/lib
|
---|
97 | ln -sf /usr/bin/foomatic-rip /usr/${libdirname}/ppr/interfaces
|
---|
98 | ln -sf /usr/bin/foomatic-rip /usr/${libdirname}/ppr/lib
|
---|
99 | fi
|
---|
100 |
|
---|