View | Details | Raw Unified | Return to bug 198088 | Differences between
and this patch

Collapse All | Expand All

(-)djview4/Makefile (-28 / +30 lines)
Lines 2-56 Link Here
2
# $FreeBSD: head/graphics/djview4/Makefile 398102 2015-09-28 09:08:02Z rm $
2
# $FreeBSD: head/graphics/djview4/Makefile 398102 2015-09-28 09:08:02Z rm $
3
3
4
PORTNAME=	djview
4
PORTNAME=	djview
5
PORTVERSION=	4.9
5
PORTVERSION=	4.10.3
6
PORTREVISION=	5
7
CATEGORIES=	graphics
6
CATEGORIES=	graphics
8
MASTER_SITES=	SF/djvu/DjView/${PORTVERSION}
7
MASTER_SITES=	SF/djvu/DjView/${PORTVERSION:R}
9
8
10
MAINTAINER=	ports@FreeBSD.org
9
MAINTAINER=	ports@FreeBSD.org
11
COMMENT=	Standalone Djvu viewer and plugin based on Qt4 toolkit
10
COMMENT=	Standalone Djvu viewer and plugin based on Qt toolkit
12
11
13
LICENSE=	GPLv2
12
LICENSE=	GPLv2
14
LICENSE_FILE=	${WRKSRC}/COPYING
13
LICENSE_FILE=	${WRKSRC}/COPYING
15
14
15
BUILD_DEPENDS=	rsvg-convert:${PORTSDIR}/graphics/librsvg2
16
LIB_DEPENDS=	libdjvulibre.so:${PORTSDIR}/graphics/djvulibre \
16
LIB_DEPENDS=	libdjvulibre.so:${PORTSDIR}/graphics/djvulibre \
17
		libtiff.so:${PORTSDIR}/graphics/tiff
17
		libtiff.so:${PORTSDIR}/graphics/tiff
18
18
19
INSTALL_TARGET=	install-strip
19
GNU_CONFIGURE=	yes
20
GNU_CONFIGURE=	yes
20
USES=		desktop-file-utils libtool pkgconfig webplugin:native
21
USES=		autoreconf desktop-file-utils gmake libtool pkgconfig \
21
USE_QT4=	gui network linguisttools_build moc_build qmake_build rcc_build \
22
		webplugin:native
22
		uic_build
23
USE_XORG=	sm ice xt
23
USE_XORG=	sm ice xt
24
QT_NONSTANDARD=	yes
25
CONFIGURE_ARGS=	--x-includes="${LOCALBASE}/include" \
24
CONFIGURE_ARGS=	--x-includes="${LOCALBASE}/include" \
26
		--x-libraries="${LOCALBASE}/lib" --disable-desktopfiles
25
		--x-libraries="${LOCALBASE}/lib"
27
CONFIGURE_ENV=	QMAKE="${QMAKE}" \
26
CONFIGURE_ENV=	LRELEASE="${LRELEASE}" LUPDATE="${LUPDATE}"
28
		QMAKESPEC="${QMAKESPEC}"
27
29
CPPFLAGS+=	-I${LOCALBASE}/include
28
CPPFLAGS+=	-I${LOCALBASE}/include
30
LDFLAGS+=	-L${LOCALBASE}/lib
29
LDFLAGS+=	-L${LOCALBASE}/lib
31
MAKE_ENV=	INSTALL_SCRIPT="${INSTALL_SCRIPT}"
30
MAKE_ENV=	INSTALL_SCRIPT="${INSTALL_SCRIPT}"
32
31
33
WRKSRC=		${WRKDIR}/djview4-${PORTVERSION}
34
35
WEBPLUGIN_DIR=		${PREFIX}/lib/djview4/plugins
32
WEBPLUGIN_DIR=		${PREFIX}/lib/djview4/plugins
36
WEBPLUGIN_FILES=	nsdejavu.so
33
WEBPLUGIN_FILES=	nsdejavu.so
37
34
38
post-patch:
35
OPTIONS_SINGLE=	QT
39
	@${REINPLACE_CMD} -e 's,/netscape/,/djview4/,' \
36
OPTIONS_SINGLE_QT=	QT4 QT5
40
		${WRKSRC}/nsdejavu/Makefile.in ${WRKSRC}/nsdejavu/nsdejavu.1.in
37
OPTIONS_DEFAULT=	QT5
41
	@${REINPLACE_CMD} -e 's,@NSDEJAVU_LIBS@,& -lXt -lXext,g' \
38
42
		${WRKSRC}/nsdejavu/Makefile.in
39
QT4_USE=	QT4=gui,network,opengl,linguisttools_build,moc_build,qmake_build,rcc_build,uic_build
40
QT5_USE=	QT5=gui,network,opengl,printsupport,widgets,buildtools_build,linguisttools_build,qmake_build
41
42
post-patch: .SILENT
43
# Change plugins directory
44
# Add GLIB cflags and libs (including -lX*)
45
	${REINPLACE_CMD} -e '/^pluginsdir/s/mozilla/djview4/ ; \
46
		/NSDEJAVU_CFLAGS/s|$$| $$\(GLIB_CFLAGS\)| ; \
47
		/NSDEJAVU_LIBS/s|$$| $$\(GLIB_LIBS\) -lXt -lXext|' \
48
		${WRKSRC}/nsdejavu/Makefile.am
43
49
44
post-install:
50
post-install:
45
.for f in ${WEBPLUGIN_FILES}
51
# Changing file write permissions needed to strip a file installed as a script
46
	@${STRIP_CMD} ${STAGEDIR}${WEBPLUGIN_DIR}/${f}
52
	${CHMOD} +w ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
47
.endfor
53
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
48
.for d in 32 64
54
	${CHMOD} -w ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
49
	@${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/${d}x${d}/apps
55
# Create a symbolic link to match desktop file exec name
50
	${INSTALL_DATA} ${WRKSRC}/desktopfiles/hi${d}-djview4.png \
56
	(cd ${STAGEDIR}${PREFIX}/bin && ${LN} -sf ${PORTNAME} ${PORTNAME}4)
51
		${STAGEDIR}${PREFIX}/share/icons/hicolor/${d}x${d}/apps/djvulibre-djview4.png
52
.endfor
53
	${INSTALL_DATA} ${WRKSRC}/desktopfiles/djvulibre-djview4.desktop \
54
		${STAGEDIR}${PREFIX}/share/applications
55
57
56
.include <bsd.port.mk>
58
.include <bsd.port.mk>
(-)djview4/distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
SHA256 (djview-4.9.tar.gz) = d150f557aaa073356d77c1f5e566a6a566281df5f92395b6822139f0e5c90e0c
1
SHA256 (djview-4.10.3.tar.gz) = 50b80ecddc5aec03c49882c91b3af2f42abfe8454d5ddc01fb313e3481e6ab25
2
SIZE (djview-4.9.tar.gz) = 930676
2
SIZE (djview-4.10.3.tar.gz) = 1119618
(-)djview4/files/patch-desktopfiles_Makefile.in (-34 lines)
Lines 1-34 Link Here
1
--- desktopfiles/Makefile.in.orig	2012-04-09 20:56:55.000000000 -0700
2
+++ desktopfiles/Makefile.in	2012-04-21 20:39:20.000000000 -0700
3
@@ -50,14 +50,14 @@
4
 
5
 hi32-djview4.png hi64-djview4.png: djview.svg
6
 	s=`echo $@ | sed -e 's/[a-z]*\([0-9]*\).*/\1/'`; \
7
-	  ${RSVG} -w $${s} -h $${s} -o $@ $< \
8
-	  || ${CONVERT} -geometry $${s}x$${s} -depth 8 -background none $< $@ \
9
+	  ${RSVG} -w $${s} -h $${s} -o $@ $> \
10
+	  || ${CONVERT} -geometry $${s}x$${s} -depth 8 -background none $> $@ \
11
 	  || ${INKSCAPE} --without-gui --export-width=$${s} \
12
-                         --export-height=$${s} --export-png=$@ $< \
13
+                         --export-height=$${s} --export-png=$@ $> \
14
 	  || cp ${srcdir}/prebuilt-$@ $@
15
 
16
 hi-djview4.svgz: djview.svg
17
-	gzip <$< >$@
18
+	gzip <${.ALLSRC} >$@
19
 
20
 register-djview-menu: register-djview-menu.in
21
 	sed < ${srcdir}/register-djview-menu.in > register-djview-menu \
22
@@ -74,10 +74,10 @@
23
 
24
 install-djview-files: FORCE
25
 	${INSTALL} -d ${DESTDIR}${datadir_djview}
26
-	${INSTALL_PROGRAM} register-djview-menu ${DESTDIR}${datadir_djview}
27
+	${INSTALL_SCRIPT} register-djview-menu ${DESTDIR}${datadir_djview}
28
 	${INSTALL_DATA} *djview4.png ${DESTDIR}${datadir_djview}
29
 	${INSTALL_DATA} *djview4.svgz ${DESTDIR}${datadir_djview}
30
-	${INSTALL_PROGRAM} ${srcdir}/*djview4.desktop ${DESTDIR}${datadir_djview}
31
+	${INSTALL_DATA} ${srcdir}/*djview4.desktop ${DESTDIR}${datadir_djview}
32
 	-@echo "Run ${datadir_djview}/register-djview-menu install"
33
 	-@echo " to register the djview3 menu entries."
34
 
(-)djview4/pkg-descr (-1 / +1 lines)
Lines 1-4 Link Here
1
Standalone Djvu viewer and plugin based on the Qt4 toolkit. Uses djvulibre
1
Standalone Djvu viewer and plugin based on the Qt toolkit. Uses djvulibre
2
for rendering.
2
for rendering.
3
3
4
WWW: http://djvu.sourceforge.net/
4
WWW: http://djvu.sourceforge.net/
(-)djview4/pkg-plist (-3 / +4 lines)
Lines 2-16 Link Here
2
bin/djview4
2
bin/djview4
3
lib/djview4/plugins/nsdejavu.so
3
lib/djview4/plugins/nsdejavu.so
4
man/man1/djview.1.gz
4
man/man1/djview.1.gz
5
man/man1/djview4.1.gz
6
man/man1/nsdejavu.1.gz
5
man/man1/nsdejavu.1.gz
7
share/applications/djvulibre-djview4.desktop
6
share/applications/djvulibre-djview4.desktop
8
share/djvu/djview4/djview_cs.qm
7
share/djvu/djview4/djview_cs.qm
9
share/djvu/djview4/djview_de.qm
8
share/djvu/djview4/djview_de.qm
9
share/djvu/djview4/djview_es.qm
10
share/djvu/djview4/djview_fr.qm
10
share/djvu/djview4/djview_fr.qm
11
share/djvu/djview4/djview_ru.qm
11
share/djvu/djview4/djview_ru.qm
12
share/djvu/djview4/djview_uk.qm
12
share/djvu/djview4/djview_uk.qm
13
share/djvu/djview4/djview_zh_cn.qm
13
share/djvu/djview4/djview_zh_cn.qm
14
share/djvu/djview4/djview_zh_tw.qm
14
share/djvu/djview4/djview_zh_tw.qm
15
share/icons/hicolor/32x32/apps/djvulibre-djview4.png
15
share/icons/hicolor/32x32/mimetypes/djvulibre-djview4.png
16
share/icons/hicolor/64x64/apps/djvulibre-djview4.png
16
share/icons/hicolor/64x64/mimetypes/djvulibre-djview4.png
17
share/icons/hicolor/scalable/mimetypes/djvulibre-djview4.svgz

Return to bug 198088