- Add port for djview4, a standalone Djvu viewer and browser plugin based on

Qt4 toolkit.
This commit is contained in:
Stanislav Sedov 2007-02-14 16:20:00 +00:00
parent 06021cb885
commit e969c9385c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=185176
6 changed files with 89 additions and 0 deletions

View File

@ -85,6 +85,7 @@
SUBDIR += digikamimageplugins
SUBDIR += digikamimageplugins-doc
SUBDIR += divxcalc
SUBDIR += djview4
SUBDIR += djvulibre
SUBDIR += djvulibre-nox11
SUBDIR += dore

60
graphics/djview4/Makefile Normal file
View File

@ -0,0 +1,60 @@
# New ports collection makefile for: djview
# Date created: 2007-02-13
# Whom: Stanislav Sedov <stas@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= djview
PORTVERSION= 4.0
CATEGORIES= graphics
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= djvu
DISTNAME= ${PORTNAME}4-${PORTVERSION}
MAINTAINER= stas@FreeBSD.org
COMMENT= Standalone Djvu viewer and plugin based on Qt4 toolkit
BUILD_DEPENDS= moc4:${PORTSDIR}/devel/qt4-moc \
qmake-qt4:${PORTSDIR}/devel/qmake4 \
rcc:${PORTSDIR}/devel/qt4-rcc \
uic4:${PORTSDIR}/devel/qt4-uic
LIB_DEPENDS= djvulibre.18:${PORTSDIR}/graphics/djvulibre-nox11 \
QtCore:${PORTSDIR}/devel/qt4-corelib \
QtGui:${PORTSDIR}/x11-toolkits/qt4-gui \
QtNetwork:${PORTSDIR}/net/qt4-network
GNU_CONFIGURE= yes
USE_GNOME= pkgconfig gnometarget
CONFIGURE_ENV= QMAKE="${LOCALBASE}/bin/qmake-qt4" \
QMAKESPEC="${QMAKESPEC}"
MAKE_ENV= INSTALL_SCRIPT="${INSTALL_SCRIPT}"
.if defined(CXX) && ${CXX:M*icc}
QMAKESPEC?= freebsd-icc
.else
QMAKESPEC?= freebsd-g++
.endif
MAN1= djview4.1 nsdejavu.1
MLINKS= djview4.1 djview.1
post-patch:
@${REINPLACE_CMD} -e 's,/netscape/,/djview4/,' \
${WRKSRC}/nsdejavu/Makefile.in ${WRKSRC}/nsdejavu/nsdejavu.1.in
post-install:
@${MKDIR} ${LOCALBASE}/lib/browser_plugins
${LN} -sf ${PREFIX}/lib/djview4/plugins/nsdejavu.so \
${LOCALBASE}/lib/browser_plugins/nsdejavu.so
@${FIND} -ds ${PREFIX}/share/djvu/djview4/ ! -type d | \
${SED} 's,${PREFIX}/,,' >> ${TMPPLIST}
@${ECHO_CMD} "@dirrm share/djvu/djview4/desktop" >> ${TMPPLIST}
@${ECHO_CMD} "@dirrm share/djvu/djview4" >> ${TMPPLIST}
@${ECHO_CMD} "@unexec ${RMDIR} %D/share/djvu 2>/dev/null || true" \
>> ${TMPPLIST}
.include <bsd.port.mk>

View File

@ -0,0 +1,3 @@
MD5 (djview4-4.0.tar.gz) = 1952637bfd96cb605e24de3f32e8cda7
SHA256 (djview4-4.0.tar.gz) = 36d48e1e7e16ec0865769a015b38500706197121176be0500614b957cd7f4534
SIZE (djview4-4.0.tar.gz) = 600237

View File

@ -0,0 +1,11 @@
--- desktopfiles/Makefile.in.orig Wed Feb 14 03:30:43 2007
+++ desktopfiles/Makefile.in Wed Feb 14 03:30:56 2007
@@ -56,7 +56,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} ${srcdir}/*djview4.png ${DESTDIR}${datadir_djview}
${INSTALL_DATA} ${srcdir}/*djview4.desktop ${DESTDIR}${datadir_djview}
-@echo "Run ${datadir_djview}/register-djview-menu install"

View File

@ -0,0 +1,5 @@
Standalone Djvu viewer and plugin based on the Qt4 toolkit. Uses djvulibre
for rendering.
Author: Leon Bottou <leonb@users.sf.net>
WWW: http://djvu.sourceforge.net/

View File

@ -0,0 +1,9 @@
bin/djview
bin/djview4
lib/djview4/plugins/nsdejavu.so
@exec mkdir -p %%LOCALBASE%%/lib/browser_plugins
@exec ln -sf %D/lib/djview4/plugins/nsdejavu.so %%LOCALBASE%%/lib/browser_plugins/nsdejavu.so
@unexec rm -f %%LOCALBASE%%/lib/browser_plugins/nsdejavu.so
@unexec rmdir %%LOCALBASE%%/lib/browser_plugins > /dev/null 2>&1
@dirrm lib/djview4/plugins
@dirrm lib/djview4