freebsd-ports/graphics/djvulibre/files/patch-desktopfiles_Makefile.in
Brendan Fabeny a80dfd38a8 fix the build when librsvg2 or ImageMagick is installed
Reported by:	avg, J.H. Sylvester
2012-06-13 14:26:58 +00:00

37 lines
1.4 KiB
Text

--- desktopfiles/Makefile.in.orig 2012-06-13 09:31:40.000000000 -0400
+++ desktopfiles/Makefile.in 2012-06-13 09:34:37.000000000 -0400
@@ -30,6 +30,7 @@
INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_SCRIPT = @INSTALL_SCRIPT@
INSTALL_DATA = @INSTALL_DATA@
CONVERT = @CONVERT@
INKSCAPE = @INKSCAPE@
@@ -53,15 +54,10 @@
icons: ${PNGICONS} hi-djvu.svgz
${PNGICONS}: djvu.svg
- s=`echo $@ | sed -e 's/[a-z]*\([0-9]*\).*/\1/'`; \
- ${RSVG} -w $${s} -h $${s} -o $@ $< \
- || ${CONVERT} -geometry $${s}x$${s} -depth 8 -background none $< $@ \
- || ${INKSCAPE} --without-gui --export-width=$${s} \
- --export-height=$${s} --export-png=$@ $< \
- || cp ${srcdir}/prebuilt-$@ $@
+ if test -f ${srcdir}/prebuilt-$@ ; then cp ${srcdir}/prebuilt-$@ $@ ; fi
hi-djvu.svgz: djvu.svg
- cat $< | gzip >$@
+ cat ${.ALLSRC} | gzip >$@
register-djvu-mime: register-djvu-mime.in
sed < ${srcdir}/register-djvu-mime.in > register-djvu-mime \
@@ -80,7 +76,7 @@
install-djvu-files: FORCE
${INSTALL} -d ${DESTDIR}${datadir_djvu}
- ${INSTALL_PROGRAM} register-djvu-mime ${DESTDIR}${datadir_djvu}
+ ${INSTALL_SCRIPT} register-djvu-mime ${DESTDIR}${datadir_djvu}
${INSTALL_DATA} *djvu.png ${DESTDIR}${datadir_djvu}
${INSTALL_DATA} *djvu.svgz ${DESTDIR}${datadir_djvu}
${INSTALL_DATA} ${srcdir}/*mime.xml ${DESTDIR}${datadir_djvu}