wok-6.x rev 15346
epdfview-cups: add cups 1.6 support
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Sep 29 21:44:00 2013 +0000 (2013-09-29) |
parents | b65a485271eb |
children | a9a5db029b18 |
files | epdfview-cups/receipt |
line diff
1.1 --- a/epdfview-cups/receipt Sun Sep 29 20:30:03 2013 +0000 1.2 +++ b/epdfview-cups/receipt Sun Sep 29 21:44:00 2013 +0000 1.3 @@ -22,6 +22,12 @@ 1.4 sed -i 's/<config.h>/&\n#include <stdio.h>\n#define g_fopen fopen/' \ 1.5 src/epdfview.h 1.6 find . -name '*.[ch]*' | xargs sed -i 's|<glib/.*h|<glib.h|' 1.7 + # cups 1.6 support 1.8 + sed -i -e '/ippNew/{NNNNNNNNNd}' \ 1.9 + -e 's/state->values\[0\].integer/ippGetInteger(state, 0)/' \ 1.10 + -e 's/location->values\[0\].string.text/ippGetString(location, 0, NULL)/' \ 1.11 + -e 's/.*IPP_TAG_KEYWORD.*/ ipp_t *request = ippNewRequest(IPP_GET_PRINTER_ATTRIBUTES);\n&/' \ 1.12 + src/PrintPter.cxx 1.13 ./configure \ 1.14 --with-cups \ 1.15 $CONFIGURE_ARGS &&