aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrendan Fabeny <bf@FreeBSD.org>2012-06-13 04:49:48 +0000
committerBrendan Fabeny <bf@FreeBSD.org>2012-06-13 04:49:48 +0000
commitdfe91aa6aea1b0ebfee4bceeb43ad4c22245e70f (patch)
tree2d23b83683c6c6a8b7577e24084dedf72be0e9c5
parent955fb96849384905563eeaa238873abfc709f3ff (diff)
downloadports-dfe91aa6aea1b0ebfee4bceeb43ad4c22245e70f.tar.gz
ports-dfe91aa6aea1b0ebfee4bceeb43ad4c22245e70f.zip
Notes
-rw-r--r--MOVED1
-rw-r--r--UPDATING13
-rw-r--r--converters/pdf2djvu/Makefile4
-rw-r--r--graphics/ImageMagick/Makefile2
-rw-r--r--graphics/Makefile1
-rw-r--r--graphics/apvlv/Makefile2
-rw-r--r--graphics/djview4/Makefile4
-rw-r--r--graphics/djvulibre-nox11/Makefile85
-rw-r--r--graphics/djvulibre-nox11/distinfo2
-rw-r--r--graphics/djvulibre-nox11/files/patch-desktopfiles_Makefile.in41
-rw-r--r--graphics/djvulibre-nox11/files/patch-libdjvu__GSmartPointer.h10
-rw-r--r--graphics/djvulibre-nox11/pkg-descr14
-rw-r--r--graphics/djvulibre-nox11/pkg-plist68
-rw-r--r--graphics/djvulibre/Makefile107
-rw-r--r--graphics/djvulibre/distinfo4
-rw-r--r--graphics/djvulibre/files/patch-config_ltmain.sh (renamed from graphics/djvulibre-nox11/files/patch-config_ltmain.sh)0
-rw-r--r--graphics/djvulibre/files/patch-configure20
-rw-r--r--graphics/djvulibre/files/patch-desktopfiles_Makefile.in33
-rw-r--r--graphics/djvulibre/files/patch-gui_djview_Makefile.in11
-rw-r--r--graphics/djvulibre/files/patch-libdjvu__miniexp.cpp11
-rw-r--r--graphics/djvulibre/files/patch-tools_Makefile.in (renamed from graphics/djvulibre-nox11/files/patch-tools_Makefile.in)0
-rw-r--r--graphics/djvulibre/files/patch-tools_any2djvu (renamed from graphics/djvulibre-nox11/files/patch-tools_any2djvu)0
-rw-r--r--graphics/djvulibre/files/patch-xmltools_Makefile.in (renamed from graphics/djvulibre-nox11/files/patch-xmltools_Makefile.in)0
-rw-r--r--graphics/djvulibre/pkg-descr8
-rw-r--r--graphics/djvulibre/pkg-plist87
-rw-r--r--graphics/evince/Makefile2
-rw-r--r--graphics/gscan2pdf/Makefile2
-rw-r--r--graphics/okular/Makefile4
28 files changed, 167 insertions, 369 deletions
diff --git a/MOVED b/MOVED
index c53744960321..68d38d347434 100644
--- a/MOVED
+++ b/MOVED
@@ -3474,3 +3474,4 @@ java/eclipseme||2012-06-12|Has expired: depends on java/sun-wtk
mail/lmtpd||2012-06-12|Has expired: BROKEN for more than 6 month
print/cups-magicolor||2012-06-12|Has expired: BROKEN for more than 6 month
security/pantera||2012-06-12|Has expired: BROKEN for more than 6 month
+graphics/djvulibre-nox11|graphics/djvulibre|2012-06-13|Merged back into graphics/djvulibre
diff --git a/UPDATING b/UPDATING
index 0e1f5257c77d..b44d0e8895f9 100644
--- a/UPDATING
+++ b/UPDATING
@@ -5,6 +5,19 @@ they are unavoidable.
You should get into the habit of checking this file for changes each time
you update your ports collection, before attempting any port upgrades.
+20120613:
+ AFFECTS: users of graphics/djvulibre and graphics/djvulibre-nox11
+ AUTHOR: bf@FreeBSD.org
+
+ DjVuLibre been updated to 3.5.25.3. The QT3 GUI that was in
+ graphics/djvulibre has been removed (users of this GUI should consider
+ switching to the new QT4 GUI in graphics/djview4), and
+ graphics/djvulibre-nox11 has been merged back into graphics/djvulibre.
+ To update DjVuLibre, you can use:
+
+ # pkg_delete djvulibre-\?.\*
+ # portmaster -o graphics/djvulibre djvulibre-nox11
+
20120612:
AFFECTS: users of databases/postgresql-libpqxx
AUTHOR: avilla@FreeBSD.org
diff --git a/converters/pdf2djvu/Makefile b/converters/pdf2djvu/Makefile
index 9aa1cc4ed7e3..b03407f08ce8 100644
--- a/converters/pdf2djvu/Makefile
+++ b/converters/pdf2djvu/Makefile
@@ -7,7 +7,7 @@
PORTNAME= pdf2djvu
PORTVERSION= 0.5.11
-PORTREVISION= 9
+PORTREVISION= 10
CATEGORIES= converters
MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE}
DISTNAME= ${PORTNAME}_${PORTVERSION}${EXTRACT_SUFFIX}
@@ -17,7 +17,7 @@ COMMENT= Pdf2djvu creates DjVu files from PDF files
BUILD_DEPENDS= ${LOCALBASE}/include/pstreams/pstream.h:${PORTSDIR}/devel/pstreams
LIB_DEPENDS= poppler.18:${PORTSDIR}/graphics/poppler
-LIB_DEPENDS+= djvulibre.24:${PORTSDIR}/graphics/djvulibre-nox11
+LIB_DEPENDS+= djvulibre:${PORTSDIR}/graphics/djvulibre
GNU_CONFIGURE= yes
CONFIGURE_ENV= LIBS=${PTHREAD_LIBS}
diff --git a/graphics/ImageMagick/Makefile b/graphics/ImageMagick/Makefile
index 481084f25c27..009eb82086d9 100644
--- a/graphics/ImageMagick/Makefile
+++ b/graphics/ImageMagick/Makefile
@@ -173,7 +173,7 @@ PLIST_SUB+= OPENEXR="@comment "
. if ${_IMAGEMAGICK_THREADS} == "no"
IGNORE=DjVu requires threads${_IMAGEMAGICK_THREADS_IGNORE_MSG}
. endif
-LIB_DEPENDS+= djvulibre:${PORTSDIR}/graphics/djvulibre-nox11
+LIB_DEPENDS+= djvulibre:${PORTSDIR}/graphics/djvulibre
PLIST_SUB+= DJVU=""
.else
CONFIGURE_ARGS+= --without-djvu
diff --git a/graphics/Makefile b/graphics/Makefile
index b925ac708c7f..921159b4291b 100644
--- a/graphics/Makefile
+++ b/graphics/Makefile
@@ -126,7 +126,6 @@
SUBDIR += divxcalc
SUBDIR += djview4
SUBDIR += djvulibre
- SUBDIR += djvulibre-nox11
SUBDIR += dmtx-utils
SUBDIR += dri
SUBDIR += driconf
diff --git a/graphics/apvlv/Makefile b/graphics/apvlv/Makefile
index bfabb97961b4..4b6326e4aa3f 100644
--- a/graphics/apvlv/Makefile
+++ b/graphics/apvlv/Makefile
@@ -37,7 +37,7 @@ OPTIONS= DJVU "Enable DJVU support" off
CMAKE_ARGS+= -DAPVLV_WITH_DJVU=OFF
.else
CMAKE_ARGS+= -DAPVLV_WITH_DJVU=ON
-LIB_DEPENDS+= djvulibre.24:${PORTSDIR}/graphics/djvulibre-nox11
+LIB_DEPENDS+= djvulibre:${PORTSDIR}/graphics/djvulibre
.endif
.include <bsd.port.mk>
diff --git a/graphics/djview4/Makefile b/graphics/djview4/Makefile
index 9a9fe9edd144..f6fe5698887a 100644
--- a/graphics/djview4/Makefile
+++ b/graphics/djview4/Makefile
@@ -7,7 +7,7 @@
PORTNAME= djview
PORTVERSION= 4.9
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= graphics
MASTER_SITES= SF/djvu/DjView/${PORTVERSION}
@@ -16,7 +16,7 @@ COMMENT= Standalone Djvu viewer and plugin based on Qt4 toolkit
LICENSE= GPLv2
-LIB_DEPENDS= djvulibre.24:${PORTSDIR}/graphics/djvulibre-nox11
+LIB_DEPENDS= djvulibre:${PORTSDIR}/graphics/djvulibre
GNU_CONFIGURE= yes
USE_GNOME= pkgconfig
diff --git a/graphics/djvulibre-nox11/Makefile b/graphics/djvulibre-nox11/Makefile
deleted file mode 100644
index 73aa8d034af8..000000000000
--- a/graphics/djvulibre-nox11/Makefile
+++ /dev/null
@@ -1,85 +0,0 @@
-# New ports collection makefile for: libdjvu++
-# Date Created: 20 July 1999
-# Whom: Mikhail Teterin <mi@aldan.algebra.com>
-#
-# $FreeBSD$
-#
-
-PORTNAME= djvulibre
-PORTVERSION= 3.5.24
-PORTREVISION= 0
-CATEGORIES= graphics www
-MASTER_SITES= SF/djvu/DjVuLibre/${PORTVERSION}
-PKGNAMESUFFIX= -nox11
-
-MAINTAINER= bf@FreeBSD.org
-COMMENT= DjVu base libraries and utilities
-
-LICENSE= GPLv2
-
-LIB_DEPENDS+= jpeg.11:${PORTSDIR}/graphics/jpeg \
- tiff.4:${PORTSDIR}/graphics/tiff
-
-USE_ICONV= yes
-USE_GNOME= gnomehack
-GNU_CONFIGURE= yes
-CONFIGURE_ENV= JPEG_CFLAGS="-I${LOCALBASE}/include" \
- JPEG_LIBS="-L${LOCALBASE}/lib -ljpeg" \
- TIFF_CFLAGS="-I${LOCALBASE}/include" \
- TIFF_LIBS="-L${LOCALBASE}/lib -ltiff" \
- PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \
- PTHREAD_LIBS="${PTHREAD_LIBS}" \
- LOCALBASE="${LOCALBASE}"
-CONFIGURE_ARGS= --enable-threads=pthread --enable-shared
-USE_LDCONFIG= yes
-
-OPTIONS= ANY2DJVU "Install any2djvu script (requires curl)" off
-
-MANLANG= "" ja
-MAN1= bzz.1 c44.1 cjb2.1 cpaldjvu.1 csepdjvu.1 ddjvu.1 djvm.1 \
- djvmcvt.1 djvu.1 djvudump.1 djvuextract.1 djvumake.1 djvups.1 \
- djvused.1 djvuserve.1 djvutxt.1
-MAN1_EN= djvutoxml.1 djvuxml.1 djvuxmlparser.1 djvudigital.1
-
-PORTDOCS= djvu2spec.djvu lizard2002.djvu
-
-CONFIGURE_ARGS+= --disable-djview --without-x
-
-.include <bsd.port.pre.mk>
-
-.if defined(WITH_ANY2DJVU)
-MAN1_EN+= any2djvu.1
-RUN_DEPENDS+= curl:${PORTSDIR}/ftp/curl
-PLIST_SUB+= ANY2DJVU=""
-.else
-PLIST_SUB+= ANY2DJVU="@comment "
-.endif
-
-post-patch:
- @${REINPLACE_CMD} -e \
- 's|$${libdir}/pkgconfig|${PREFIX}/libdata/pkgconfig|' \
- ${WRKSRC}/libdjvu/Makefile.in
- @${REINPLACE_CMD} -e '/-O\*/d ; \
- s|$$OPTS -O3|$$OPTS|g ; \
- s|$$OPTS -O2|$$OPTS|g ; \
- s|$$OPTS $$opt|$$OPTS|g' ${WRKSRC}/configure
- @${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${REINPLACE_CMD} -e \
- 's|= @CPPFLAGS|= $${FLAGS} @CPPFLAGS|g ; \
- s|@ $${FLAGS}|@|g ; \
- s|} $${FLAGS}|}|g ; \
- s|/netscape/|/djvulibre/|g ; \
- s|eucjp|eucJP|g ; \
- s|_PROGRAM} -m|} -m|g'
-
-.if !defined(WITH_ANY2DJVU)
- @${REINPLACE_CMD} -e 's,any2djvu,,' ${WRKSRC}/tools/Makefile.in
-.endif
-
-post-install:
-
-.if !defined(NOPORTDOCS)
- @${MKDIR} ${DOCSDIR}
- ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/doc/,} ${DOCSDIR}/
-.endif
-
-.include <bsd.port.post.mk>
diff --git a/graphics/djvulibre-nox11/distinfo b/graphics/djvulibre-nox11/distinfo
deleted file mode 100644
index 06a720491578..000000000000
--- a/graphics/djvulibre-nox11/distinfo
+++ /dev/null
@@ -1,2 +0,0 @@
-SHA256 (djvulibre-3.5.24.tar.gz) = c0734c81d22a0e458c3fb5efd4c3eab051bcb6ad8740f5a5784c1f5699482534
-SIZE (djvulibre-3.5.24.tar.gz) = 2998853
diff --git a/graphics/djvulibre-nox11/files/patch-desktopfiles_Makefile.in b/graphics/djvulibre-nox11/files/patch-desktopfiles_Makefile.in
deleted file mode 100644
index fd218965e260..000000000000
--- a/graphics/djvulibre-nox11/files/patch-desktopfiles_Makefile.in
+++ /dev/null
@@ -1,41 +0,0 @@
---- ./desktopfiles/Makefile.in.orig 2009-07-03 16:20:19.000000000 +0400
-+++ ./desktopfiles/Makefile.in 2009-07-03 16:20:48.000000000 +0400
-@@ -30,6 +30,7 @@
-
- INSTALL = @INSTALL@
- INSTALL_PROGRAM = @INSTALL_PROGRAM@
-+INSTALL_SCRIPT = @INSTALL_SCRIPT@
- INSTALL_DATA = @INSTALL_DATA@
- CONVERT = @CONVERT@
- XDG_MIME = @XDG_MIME@
-@@ -64,10 +65,10 @@
- || cp ${srcdir}/prebuilt-$@ $@
-
- hi-djvu.svgz: djvu.svg
-- cat $< | gzip >$@
-+ cat ${.ALLSRC} | gzip >$@
-
- hi-djview3.svgz: djview.svg
-- cat $< | gzip >$@
-+ cat ${.ALLSRC} | gzip >$@
-
- register-djvu-mime: register-djvu-mime.in
- sed < ${srcdir}/register-djvu-mime.in > register-djvu-mime \
-@@ -96,7 +97,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}
-@@ -105,7 +106,7 @@
-
- install-djview-files: FORCE
- ${INSTALL} -d ${DESTDIR}${datadir_djview}
-- ${INSTALL_PROGRAM} register-djview-menu ${DESTDIR}${datadir_djview}
-+ ${INSTALL_SCRIPT} register-djview-menu ${DESTDIR}${datadir_djview}
- ${INSTALL_DATA} *djview3.png ${DESTDIR}${datadir_djview}
- ${INSTALL_DATA} *djview3.svgz ${DESTDIR}${datadir_djview}
- ${INSTALL_PROGRAM} ${srcdir}/*djview3.desktop ${DESTDIR}${datadir_djview}
diff --git a/graphics/djvulibre-nox11/files/patch-libdjvu__GSmartPointer.h b/graphics/djvulibre-nox11/files/patch-libdjvu__GSmartPointer.h
deleted file mode 100644
index 577600f5cd01..000000000000
--- a/graphics/djvulibre-nox11/files/patch-libdjvu__GSmartPointer.h
+++ /dev/null
@@ -1,10 +0,0 @@
---- libdjvu/GSmartPointer.h.orig 2011-03-06 12:43:17.000000000 -0500
-+++ libdjvu/GSmartPointer.h 2011-11-22 09:16:50.000000000 -0500
-@@ -94,6 +94,7 @@
- #pragma warning( disable : 4243 )
- #endif
-
-+#include <stddef.h>
- #include "DjVuGlobal.h"
- #include "atomic.h"
-
diff --git a/graphics/djvulibre-nox11/pkg-descr b/graphics/djvulibre-nox11/pkg-descr
deleted file mode 100644
index cba2ce42d22a..000000000000
--- a/graphics/djvulibre-nox11/pkg-descr
+++ /dev/null
@@ -1,14 +0,0 @@
-DjVu is a web-centric format and software platform for distributing
-documents and images. DjVu was originally developped at AT&T
-Labs-Research. In March 2000, AT&T sold DjVu to LizardTech Inc. who
-now distributes Windows/Mac plug-ins, and commercial encoders (mostly
-on Windows)
-
-The LizardTech released the reference implementation of DjVu under
-the GNU GPL in October 2000. DjVuLibre (which means free DjVu), is
-an enhanced version of that code maintained by the original inventors
-of DjVu. It is compatible with version 3.5 of the LizardTech DjVu
-software suite.
-
-Author: Leon Bottou <leonb@users.sf.net>
-WWW: http://djvu.sourceforge.net/
diff --git a/graphics/djvulibre-nox11/pkg-plist b/graphics/djvulibre-nox11/pkg-plist
deleted file mode 100644
index 094049bb227a..000000000000
--- a/graphics/djvulibre-nox11/pkg-plist
+++ /dev/null
@@ -1,68 +0,0 @@
-%%ANY2DJVU%%bin/any2djvu
-bin/bzz
-bin/c44
-bin/cjb2
-bin/cpaldjvu
-bin/csepdjvu
-bin/ddjvu
-bin/djvm
-bin/djvmcvt
-bin/djvudigital
-bin/djvudump
-bin/djvuextract
-bin/djvumake
-bin/djvups
-bin/djvused
-bin/djvuserve
-bin/djvutoxml
-bin/djvutxt
-bin/djvuxmlparser
-include/libdjvu/ddjvuapi.h
-include/libdjvu/miniexp.h
-lib/libdjvulibre.so
-lib/libdjvulibre.so.24
-libdata/pkgconfig/ddjvuapi.pc
-share/djvu/osi/cs/messages.xml
-share/djvu/osi/de/libdjvu++.xml
-share/djvu/osi/de/messages.xml
-share/djvu/osi/desktop/djvulibre-mime.xml
-share/djvu/osi/desktop/hi-djvu.svgz
-share/djvu/osi/desktop/hi22-djvu.png
-share/djvu/osi/desktop/hi32-djvu.png
-share/djvu/osi/desktop/hi48-djvu.png
-share/djvu/osi/desktop/hi64-djvu.png
-share/djvu/osi/desktop/prebuilt-hi22-djvu.png
-share/djvu/osi/desktop/prebuilt-hi32-djvu.png
-share/djvu/osi/desktop/prebuilt-hi48-djvu.png
-share/djvu/osi/desktop/prebuilt-hi64-djvu.png
-share/djvu/osi/desktop/register-djvu-mime
-share/djvu/osi/en/djvutools-reference.xml
-share/djvu/osi/en/libdjvu++.xml
-share/djvu/osi/en/messages.xml
-share/djvu/osi/en/unixgui-shared.xml
-share/djvu/osi/en/unixgui-viewer.xml
-share/djvu/osi/fr/libdjvu++.xml
-share/djvu/osi/fr/messages.xml
-share/djvu/osi/ja/libdjvu++.xml
-share/djvu/osi/ja/messages.xml
-share/djvu/osi/languages.xml
-share/djvu/osi/zh/libdjvu++.xml
-share/djvu/osi/zh/messages.xml
-share/djvu/pubtext/DjVuMessages.dtd
-share/djvu/pubtext/DjVuOCR.dtd
-share/djvu/pubtext/DjVuXML-s.dtd
-@dirrm share/djvu/pubtext
-@dirrm share/djvu/osi/zh
-@dirrm share/djvu/osi/ja
-@dirrm share/djvu/osi/fr
-@dirrm share/djvu/osi/en
-@dirrm share/djvu/osi/desktop
-@dirrm share/djvu/osi/de
-@dirrm share/djvu/osi/cs
-@dirrm share/djvu/osi
-@dirrmtry share/djvu
-@dirrmtry man/fr/man1
-@dirrmtry man/fr
-@dirrmtry man/de/man1
-@dirrmtry man/de
-@dirrm include/libdjvu
diff --git a/graphics/djvulibre/Makefile b/graphics/djvulibre/Makefile
index b82ef627bfbd..b1dee69a46d4 100644
--- a/graphics/djvulibre/Makefile
+++ b/graphics/djvulibre/Makefile
@@ -6,19 +6,17 @@
#
PORTNAME= djvulibre
-PORTVERSION= 3.5.24
-PORTREVISION= 1
+PORTVERSION= 3.5.25.3
CATEGORIES= graphics www
-MASTER_SITES= SF/djvu/DjVuLibre/${PORTVERSION}
+MASTER_SITES= SF/djvu/DjVuLibre/${PORTVERSION:R}
MAINTAINER= bf@FreeBSD.org
-COMMENT= DjVu viewers and browser plugin
+COMMENT= DjVu base libraries and utilities
LICENSE= GPLv2
-LIB_DEPENDS+= jpeg.11:${PORTSDIR}/graphics/jpeg \
- tiff.4:${PORTSDIR}/graphics/tiff \
- djvulibre.24:${PORTSDIR}/graphics/djvulibre-nox11
+LIB_DEPENDS+= jpeg:${PORTSDIR}/graphics/jpeg \
+ tiff:${PORTSDIR}/graphics/tiff
USE_ICONV= yes
USE_GNOME= gnomehack
@@ -28,66 +26,55 @@ CONFIGURE_ENV= JPEG_CFLAGS="-I${LOCALBASE}/include" \
TIFF_CFLAGS="-I${LOCALBASE}/include" \
TIFF_LIBS="-L${LOCALBASE}/lib -ltiff" \
PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \
- PTHREAD_LIBS="${PTHREAD_LIBS}" \
- LOCALBASE="${LOCALBASE}" \
- CXX="${CXX}"
-CONFIGURE_ARGS= --enable-threads=pthread --enable-shared \
- --enable-djview
+ PTHREAD_LIBS="${PTHREAD_LIBS}"
+CONFIGURE_ARGS= --enable-threads=pthread --enable-shared
USE_LDCONFIG= yes
+WRKSRC = ${WRKDIR}/${DISTNAME:R}
-INSTALL_TARGET= install-gui install-i18n
+OPTIONS_DEFINE = ANY2DJVU
+ANY2DJVU_DESC= Install any2djvu script (requires curl)
-USE_QT_VER= 3
-CONFIGURE_ENV+= QTLIBS="-L${QT_PREFIX}/lib -lqt-mt"
-MANLANG= "" ja
-MAN1= djview3.1 nsdejavu.1
-MLINKS= djview3.1 djview.1
-DESKTOPDIR= ${PREFIX}/share/djvu/djview3/desktop
+MAN1= bzz.1 c44.1 cjb2.1 cpaldjvu.1 csepdjvu.1 ddjvu.1 djvm.1 \
+ djvmcvt.1 djvu.1 djvudump.1 djvuextract.1 djvumake.1 djvups.1 \
+ djvused.1 djvuserve.1 djvutxt.1
+MAN1_EN= djvutoxml.1 djvuxml.1 djvuxmlparser.1 djvudigital.1
-USE_WEBPLUGINS= gecko*
-WEBPLUGINS_DIR= ${PREFIX}/lib/djvulibre/plugins
-WEBPLUGINS_FILES= nsdejavu.so
+.include <bsd.port.options.mk>
-.include <bsd.port.pre.mk>
-.include "${PORTSDIR}/www/firefox/Makefile.webplugins"
+.if ${PORT_OPTIONS:MANY2DJVU}
+MAN1_EN+= any2djvu.1
+RUN_DEPENDS+= curl:${PORTSDIR}/ftp/curl
+PLIST_SUB+= ANY2DJVU=""
+.else
+PLIST_SUB+= ANY2DJVU="@comment "
+.endif
post-patch:
- @${REINPLACE_CMD} -E \
- -e 's,(SUBDIRS_FIRST[[:space:]]+=[[:space:]]+).*,\1,' \
- -e 's,(SUBDIRS_XML[[:space:]]+=[[:space:]]+).*,\1,' \
- ${WRKSRC}/Makefile.in
- @${FIND} ${WRKSRC}/i18n/ -name "Makefile.in" | \
- ${XARGS} ${REINPLACE_CMD} -E -e \
- 's,(MANFILES[[:space:]]*=[[:space:]]*).*,\1$${MANFILES_GUI},'
- @${REINPLACE_CMD} -E -e \
- 's,(LIBDJVU[[:space:]]+=[[:space:]]+).*,\1-ldjvulibre,' \
- ${WRKSRC}/gui/djview/Makefile.in \
- ${WRKSRC}/gui/bin2cpp/Makefile.in \
- ${WRKSRC}/tools/Makefile.in \
- ${WRKSRC}/xmltools/Makefile.in
- @${REINPLACE_CMD} -e '/-O\*/d ; \
- s|$$OPTS -O3|$$OPTS|g ; \
- s|$$OPTS -O2|$$OPTS|g ; \
- s|$$OPTS $$opt|$$OPTS|g' ${WRKSRC}/configure
- @${REINPLACE_CMD} -e 's,/netscape/,/djvulibre/,' \
- ${WRKSRC}/gui/nsdejavu/nsdejavu.1.in
- @${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${REINPLACE_CMD} -e \
- 's|= @CPPFLAGS|= $${FLAGS} @CPPFLAGS|g ; \
- s|@ $${FLAGS}|@|g ; \
- s|} $${FLAGS}|}|g ; \
- s|/netscape/|/djvulibre/|g ; \
- s|eucjp|eucJP|g ; \
- s|_PROGRAM} -m|} -m|g'
+ @${REINPLACE_CMD} -e \
+ 's|$${libdir}/pkgconfig|${PREFIX}/libdata/pkgconfig|' \
+ ${WRKSRC}/libdjvu/Makefile.in
+ @${REINPLACE_CMD} -e \
+ '/-[Og]\*)/d ; \
+ s|$$OPTS -O[[:digit:]]*|$$OPTS|g ; \
+ s|$$OPTS $$opt|$$OPTS|g' \
+ ${WRKSRC}/configure
+ @${REINPLACE_CMD} -e \
+ 's|$${FLAGS}|| ; \
+ s|@CPPFLAGS@|$${FLAGS} &|' \
+ ${WRKSRC}/tools/jb2cmp/Makefile.in
+ @${REINPLACE_CMD} -e \
+ 's|_PROGRAM} -m 0755|_SCRIPT}|' \
+ ${WRKSRC}/tools/Makefile.in
+.if empty(PORT_OPTIONS:MANY2DJVU)
+ @${REINPLACE_CMD} -e 's,any2djvu,,' ${WRKSRC}/tools/Makefile.in
+.endif
+
+.if ${PORT_OPTIONS:MDOC}
+PORTDOCS= djvu2spec.djvu djvu3spec.djvu djvuchanges.txt lizard2002.djvu lizard2007.djvu
post-install:
-#
-# Install desktop files.
-#
- ${MKDIR} ${DESKTOPDIR}
- ${INSTALL_DATA} ${WRKSRC}/desktopfiles/djvulibre-djview3.desktop \
- ${WRKSRC}/desktopfiles/hi32-djview3.png \
- ${DESKTOPDIR}
- ${INSTALL_SCRIPT} ${WRKSRC}/desktopfiles/register-djview-menu \
- ${DESKTOPDIR}
+ @${MKDIR} ${DOCSDIR}
+ ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/doc/,} ${DOCSDIR}/
+.endif
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/graphics/djvulibre/distinfo b/graphics/djvulibre/distinfo
index 06a720491578..0f7812ba82c3 100644
--- a/graphics/djvulibre/distinfo
+++ b/graphics/djvulibre/distinfo
@@ -1,2 +1,2 @@
-SHA256 (djvulibre-3.5.24.tar.gz) = c0734c81d22a0e458c3fb5efd4c3eab051bcb6ad8740f5a5784c1f5699482534
-SIZE (djvulibre-3.5.24.tar.gz) = 2998853
+SHA256 (djvulibre-3.5.25.3.tar.gz) = 898d7ed6dd2fa311a521baa95407a91b20a872d80c45e8245442d64f142cb1e0
+SIZE (djvulibre-3.5.25.3.tar.gz) = 2543949
diff --git a/graphics/djvulibre-nox11/files/patch-config_ltmain.sh b/graphics/djvulibre/files/patch-config_ltmain.sh
index db247645038a..db247645038a 100644
--- a/graphics/djvulibre-nox11/files/patch-config_ltmain.sh
+++ b/graphics/djvulibre/files/patch-config_ltmain.sh
diff --git a/graphics/djvulibre/files/patch-configure b/graphics/djvulibre/files/patch-configure
deleted file mode 100644
index bf21e13ba438..000000000000
--- a/graphics/djvulibre/files/patch-configure
+++ /dev/null
@@ -1,20 +0,0 @@
---- configure.orig 2009-07-03 15:21:12.000000000 +0400
-+++ configure 2009-07-03 15:22:16.000000000 +0400
-@@ -945,7 +945,7 @@
- srcdir=
- verbose=
- x_includes=NONE
--x_libraries=NONE
-+x_libraries=${LOCALBASE}/lib
-
- # Installation directory options.
- # These are left unexpanded so users can "make install exec_prefix=/foo"
-@@ -28076,7 +28076,7 @@
-
- NSDEJAVU_CFLAGS=${X_CFLAGS}
- case "$host" in
-- *-cygwin* | *-mingw*)
-+ *-cygwin* | *-mingw* | *-freebsd*)
- NSDEJAVU_LIBS="`echo ${X_LIBS} | sed -e 's/-lXext/-lXt -lXext/'`"
- NSDEJAVU_LIBS="-no-undefined $NSDEJAVU_LIBS"
- ;;
diff --git a/graphics/djvulibre/files/patch-desktopfiles_Makefile.in b/graphics/djvulibre/files/patch-desktopfiles_Makefile.in
index fd218965e260..6059dc24e4ad 100644
--- a/graphics/djvulibre/files/patch-desktopfiles_Makefile.in
+++ b/graphics/djvulibre/files/patch-desktopfiles_Makefile.in
@@ -1,27 +1,31 @@
---- ./desktopfiles/Makefile.in.orig 2009-07-03 16:20:19.000000000 +0400
-+++ ./desktopfiles/Makefile.in 2009-07-03 16:20:48.000000000 +0400
-@@ -30,6 +30,7 @@
+--- desktopfiles/Makefile.in.orig 2012-05-07 22:56:53.000000000 -0400
++++ desktopfiles/Makefile.in 2012-06-09 21:00:25.000000000 -0400
+@@ -30,9 +30,10 @@
INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_SCRIPT = @INSTALL_SCRIPT@
INSTALL_DATA = @INSTALL_DATA@
CONVERT = @CONVERT@
+-INKSCAPE = @INKSCAPE@
++INKSCAPE = false
+ RSVG = @RSVG@
XDG_MIME = @XDG_MIME@
-@@ -64,10 +65,10 @@
- || cp ${srcdir}/prebuilt-$@ $@
+ XDG_ICON_RESOURCE = @XDG_ICON_RESOURCE@
+@@ -58,10 +59,10 @@
+ || ${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 >$@
- hi-djview3.svgz: djview.svg
-- cat $< | gzip >$@
-+ cat ${.ALLSRC} | gzip >$@
-
register-djvu-mime: register-djvu-mime.in
sed < ${srcdir}/register-djvu-mime.in > register-djvu-mime \
-@@ -96,7 +97,7 @@
+@@ -80,7 +81,7 @@
install-djvu-files: FORCE
${INSTALL} -d ${DESTDIR}${datadir_djvu}
@@ -30,12 +34,3 @@
${INSTALL_DATA} *djvu.png ${DESTDIR}${datadir_djvu}
${INSTALL_DATA} *djvu.svgz ${DESTDIR}${datadir_djvu}
${INSTALL_DATA} ${srcdir}/*mime.xml ${DESTDIR}${datadir_djvu}
-@@ -105,7 +106,7 @@
-
- install-djview-files: FORCE
- ${INSTALL} -d ${DESTDIR}${datadir_djview}
-- ${INSTALL_PROGRAM} register-djview-menu ${DESTDIR}${datadir_djview}
-+ ${INSTALL_SCRIPT} register-djview-menu ${DESTDIR}${datadir_djview}
- ${INSTALL_DATA} *djview3.png ${DESTDIR}${datadir_djview}
- ${INSTALL_DATA} *djview3.svgz ${DESTDIR}${datadir_djview}
- ${INSTALL_PROGRAM} ${srcdir}/*djview3.desktop ${DESTDIR}${datadir_djview}
diff --git a/graphics/djvulibre/files/patch-gui_djview_Makefile.in b/graphics/djvulibre/files/patch-gui_djview_Makefile.in
deleted file mode 100644
index 677986aaad72..000000000000
--- a/graphics/djvulibre/files/patch-gui_djview_Makefile.in
+++ /dev/null
@@ -1,11 +0,0 @@
---- gui/djview/Makefile.in.orig 2009-07-08 18:38:28.000000000 +0400
-+++ gui/djview/Makefile.in 2009-07-08 18:38:52.000000000 +0400
-@@ -161,7 +161,7 @@
- MISCFLAGS = ${JPEG_CFLAGS} ${THREAD_CFLAGS} ${QT_CFLAGS} ${X_CFLAGS}
- FLAGS = ${DEFS} ${INCS} ${OPTS} ${MISCFLAGS}
-
--LIBS= @LDFLAGS@ ${QT_LIBS} ${X_LIBS} @LIBS@
-+LIBS= @LDFLAGS@ ${QT_LIBS} ${X_LIBS} @LIBS@ ${THREAD_LIBS}
-
- CFLAGS = ${FLAGS} @CPPFLAGS@ @CFLAGS@
-
diff --git a/graphics/djvulibre/files/patch-libdjvu__miniexp.cpp b/graphics/djvulibre/files/patch-libdjvu__miniexp.cpp
new file mode 100644
index 000000000000..87c57b2b5e7f
--- /dev/null
+++ b/graphics/djvulibre/files/patch-libdjvu__miniexp.cpp
@@ -0,0 +1,11 @@
+--- libdjvu/miniexp.cpp.orig 2012-05-07 22:56:53.000000000 -0400
++++ libdjvu/miniexp.cpp 2012-06-12 07:23:54.000000000 -0400
+@@ -1008,7 +1008,7 @@
+ if (io == &miniexp_io && !CompatCounter::count)
+ return (*minilisp_getc)(); /* compatibility hack */
+ FILE *f = (io->data[0]) ? (FILE*)(io->data[0]) : stdin;
+- return ::getc(f);
++ return getc(f);
+ }
+
+ static int
diff --git a/graphics/djvulibre-nox11/files/patch-tools_Makefile.in b/graphics/djvulibre/files/patch-tools_Makefile.in
index 74a93ab39199..74a93ab39199 100644
--- a/graphics/djvulibre-nox11/files/patch-tools_Makefile.in
+++ b/graphics/djvulibre/files/patch-tools_Makefile.in
diff --git a/graphics/djvulibre-nox11/files/patch-tools_any2djvu b/graphics/djvulibre/files/patch-tools_any2djvu
index 1b86edc3e213..1b86edc3e213 100644
--- a/graphics/djvulibre-nox11/files/patch-tools_any2djvu
+++ b/graphics/djvulibre/files/patch-tools_any2djvu
diff --git a/graphics/djvulibre-nox11/files/patch-xmltools_Makefile.in b/graphics/djvulibre/files/patch-xmltools_Makefile.in
index 1b01a25406c8..1b01a25406c8 100644
--- a/graphics/djvulibre-nox11/files/patch-xmltools_Makefile.in
+++ b/graphics/djvulibre/files/patch-xmltools_Makefile.in
diff --git a/graphics/djvulibre/pkg-descr b/graphics/djvulibre/pkg-descr
index cba2ce42d22a..bc24c20fbaf6 100644
--- a/graphics/djvulibre/pkg-descr
+++ b/graphics/djvulibre/pkg-descr
@@ -1,12 +1,12 @@
DjVu is a web-centric format and software platform for distributing
-documents and images. DjVu was originally developped at AT&T
+documents and images. DjVu was originally developed at AT&T
Labs-Research. In March 2000, AT&T sold DjVu to LizardTech Inc. who
now distributes Windows/Mac plug-ins, and commercial encoders (mostly
-on Windows)
+on Windows).
-The LizardTech released the reference implementation of DjVu under
+LizardTech released the reference implementation of DjVu under
the GNU GPL in October 2000. DjVuLibre (which means free DjVu), is
-an enhanced version of that code maintained by the original inventors
+an enhanced version of that code, maintained by the original inventors
of DjVu. It is compatible with version 3.5 of the LizardTech DjVu
software suite.
diff --git a/graphics/djvulibre/pkg-plist b/graphics/djvulibre/pkg-plist
index d2f54f5e40be..3710bc4fcd10 100644
--- a/graphics/djvulibre/pkg-plist
+++ b/graphics/djvulibre/pkg-plist
@@ -1,23 +1,66 @@
-bin/djview
-bin/djview3
-lib/djvulibre/plugins/nsdejavu.so
-share/djvu/djview3/cs/djview.qm
-share/djvu/djview3/cs/qt.qm
-share/djvu/djview3/de/djview.qm
-share/djvu/djview3/de/qt.qm
-share/djvu/djview3/desktop/djvulibre-djview3.desktop
-share/djvu/djview3/desktop/hi32-djview3.png
-share/djvu/djview3/desktop/register-djview-menu
-share/djvu/djview3/fr/djview.qm
-share/djvu/djview3/fr/qt.qm
-share/djvu/djview3/ja/djview.qm
-share/djvu/djview3/ja/qt.qm
-@dirrm share/djvu/djview3/ja
-@dirrm share/djvu/djview3/fr
-@dirrm share/djvu/djview3/desktop
-@dirrm share/djvu/djview3/de
-@dirrm share/djvu/djview3/cs
-@dirrm share/djvu/djview3
+%%ANY2DJVU%%bin/any2djvu
+bin/bzz
+bin/c44
+bin/cjb2
+bin/cpaldjvu
+bin/csepdjvu
+bin/ddjvu
+bin/djvm
+bin/djvmcvt
+bin/djvudigital
+bin/djvudump
+bin/djvuextract
+bin/djvumake
+bin/djvups
+bin/djvused
+bin/djvuserve
+bin/djvutoxml
+bin/djvutxt
+bin/djvuxmlparser
+include/libdjvu/ddjvuapi.h
+include/libdjvu/miniexp.h
+lib/libdjvulibre.so
+lib/libdjvulibre.so.25
+libdata/pkgconfig/ddjvuapi.pc
+share/djvu/osi/cs/messages.xml
+share/djvu/osi/de/libdjvu++.xml
+share/djvu/osi/de/messages.xml
+share/djvu/osi/desktop/djvulibre-mime.xml
+share/djvu/osi/desktop/hi-djvu.svgz
+share/djvu/osi/desktop/hi22-djvu.png
+share/djvu/osi/desktop/hi32-djvu.png
+share/djvu/osi/desktop/hi48-djvu.png
+share/djvu/osi/desktop/hi64-djvu.png
+share/djvu/osi/desktop/prebuilt-hi22-djvu.png
+share/djvu/osi/desktop/prebuilt-hi32-djvu.png
+share/djvu/osi/desktop/prebuilt-hi48-djvu.png
+share/djvu/osi/desktop/prebuilt-hi64-djvu.png
+share/djvu/osi/desktop/register-djvu-mime
+share/djvu/osi/en/djvutools-reference.xml
+share/djvu/osi/en/libdjvu++.xml
+share/djvu/osi/en/messages.xml
+share/djvu/osi/fr/libdjvu++.xml
+share/djvu/osi/fr/messages.xml
+share/djvu/osi/ja/libdjvu++.xml
+share/djvu/osi/ja/messages.xml
+share/djvu/osi/languages.xml
+share/djvu/osi/zh/libdjvu++.xml
+share/djvu/osi/zh/messages.xml
+share/djvu/pubtext/DjVuMessages.dtd
+share/djvu/pubtext/DjVuOCR.dtd
+share/djvu/pubtext/DjVuXML-s.dtd
+@dirrm share/djvu/pubtext
+@dirrm share/djvu/osi/zh
+@dirrm share/djvu/osi/ja
+@dirrm share/djvu/osi/fr
+@dirrm share/djvu/osi/en
+@dirrm share/djvu/osi/desktop
+@dirrm share/djvu/osi/de
+@dirrm share/djvu/osi/cs
+@dirrm share/djvu/osi
@dirrmtry share/djvu
-@dirrm lib/djvulibre/plugins
-@dirrm lib/djvulibre
+@dirrmtry man/fr/man1
+@dirrmtry man/fr
+@dirrmtry man/de/man1
+@dirrmtry man/de
+@dirrm include/libdjvu
diff --git a/graphics/evince/Makefile b/graphics/evince/Makefile
index a96df8f8bb19..7747de598367 100644
--- a/graphics/evince/Makefile
+++ b/graphics/evince/Makefile
@@ -99,7 +99,7 @@ PLIST_SUB+= IMPRESS="@comment "
.endif
.if defined(WITH_DJVU)
-LIB_DEPENDS+= djvulibre.24:${PORTSDIR}/graphics/djvulibre-nox11
+LIB_DEPENDS+= djvulibre:${PORTSDIR}/graphics/djvulibre
CONFIGURE_ARGS+= --enable-djvu
GCONF_SCHEMAS+= evince-thumbnailer-djvu.schemas
PLIST_SUB+= DJVU=""
diff --git a/graphics/gscan2pdf/Makefile b/graphics/gscan2pdf/Makefile
index 8eee6ae74057..ecd0b8884787 100644
--- a/graphics/gscan2pdf/Makefile
+++ b/graphics/gscan2pdf/Makefile
@@ -31,7 +31,7 @@ BUILD_DEPENDS= ${SITE_PERL}/Test/Perl/Critic.pm:${PORTSDIR}/textproc/p5-Test-Per
${SITE_PERL}/Archive/Tar.pm:${PORTSDIR}/archivers/p5-Archive-Tar \
p5-Locale-gettext>=1.05:${PORTSDIR}/devel/p5-Locale-gettext \
p5-Config-General>=0:${PORTSDIR}/devel/p5-Config-General \
- cjb2:${PORTSDIR}/graphics/djvulibre-nox11 \
+ cjb2:${PORTSDIR}/graphics/djvulibre \
gocr:${PORTSDIR}/graphics/gocr \
p5-Sane>=0:${PORTSDIR}/graphics/p5-Sane \
scanimage:${PORTSDIR}/graphics/sane-backends \
diff --git a/graphics/okular/Makefile b/graphics/okular/Makefile
index 85096e41ec85..005636dee590 100644
--- a/graphics/okular/Makefile
+++ b/graphics/okular/Makefile
@@ -7,7 +7,7 @@
PORTNAME= okular
PORTVERSION= ${KDE4_VERSION}
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= graphics kde
MASTER_SITES= ${MASTER_SITE_KDE}
MASTER_SITE_SUBDIR= ${KDE4_BRANCH}/${PORTVERSION}/src
@@ -16,7 +16,7 @@ DIST_SUBDIR= KDE
MAINTAINER= kde@FreeBSD.org
COMMENT= KDE 4 universal document viewer
-LIB_DEPENDS= djvulibre.24:${PORTSDIR}/graphics/djvulibre-nox11 \
+LIB_DEPENDS= djvulibre:${PORTSDIR}/graphics/djvulibre \
jpeg.11:${PORTSDIR}/graphics/jpeg \
qca.2:${PORTSDIR}/devel/qca \
tiff.4:${PORTSDIR}/graphics/tiff \