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

Collapse All | Expand All

(-)djview4/Makefile (-10 / +11 lines)
Lines 3-8 Link Here
3
3
4
PORTNAME=	djview
4
PORTNAME=	djview
5
PORTVERSION=	4.10.6
5
PORTVERSION=	4.10.6
6
PORTREVISION=	1
6
CATEGORIES=	graphics
7
CATEGORIES=	graphics
7
MASTER_SITES=	SF/djvu/DjView/${PORTVERSION:R}
8
MASTER_SITES=	SF/djvu/DjView/${PORTVERSION:R}
8
9
Lines 12-33 Link Here
12
LICENSE=	GPLv2
13
LICENSE=	GPLv2
13
LICENSE_FILE=	${WRKSRC}/COPYING
14
LICENSE_FILE=	${WRKSRC}/COPYING
14
15
15
BUILD_DEPENDS=	rsvg-convert:graphics/librsvg2
16
LIB_DEPENDS=	libdjvulibre.so:graphics/djvulibre \
16
LIB_DEPENDS=	libdjvulibre.so:graphics/djvulibre \
17
		libtiff.so:graphics/tiff
17
		libtiff.so:graphics/tiff
18
18
19
INSTALL_TARGET=	install-strip
19
INSTALL_TARGET=	install-strip
20
GNU_CONFIGURE=	yes
20
GNU_CONFIGURE=	yes
21
USES=		autoreconf desktop-file-utils gmake libtool pkgconfig \
21
USES=		autoreconf desktop-file-utils gettext-runtime gmake libtool \
22
		webplugin:native
22
		localbase pkgconfig webplugin:native
23
USE_GL=		gl
23
USE_GL=		gl
24
USE_XORG=	sm ice xt
24
USE_XORG=	sm ice xext xt
25
USE_GNOME=	glib20
25
CONFIGURE_ENV=	LRELEASE="${LRELEASE}" LUPDATE="${LUPDATE}"
26
CONFIGURE_ENV=	LRELEASE="${LRELEASE}" LUPDATE="${LUPDATE}"
26
27
27
CPPFLAGS+=	-I${LOCALBASE}/include
28
LDFLAGS+=	-L${LOCALBASE}/lib
29
MAKE_ENV=	V=1
30
31
WEBPLUGIN_DIR=		${PREFIX}/lib/djview4/plugins
28
WEBPLUGIN_DIR=		${PREFIX}/lib/djview4/plugins
32
WEBPLUGIN_FILES=	nsdejavu.so
29
WEBPLUGIN_FILES=	nsdejavu.so
33
30
Lines 36-45 Link Here
36
OPTIONS_DEFAULT=	QT5
33
OPTIONS_DEFAULT=	QT5
37
QT_DESC=		Qt toolkit
34
QT_DESC=		Qt toolkit
38
35
39
QT4_USE=	QT4=gui,network,opengl,linguisttools_build,moc_build,qmake_build,rcc_build,uic_build
36
QT4_USE=	QT4=corelib,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
37
QT4_USE+=	XORG=x11
38
QT5_USE=	QT5=core,gui,network,opengl,printsupport,widgets,buildtools_build,linguisttools_build,qmake_build
41
39
42
post-patch:
40
post-patch:
41
# Use prebuilt icons, without using conversion tool
42
	@${REINPLACE_CMD} -e 's/conversion_tool=[[:alpha:]]*/conversion_tool=no/' \
43
		${WRKSRC}/configure.ac
43
	@${REINPLACE_CMD} -e \
44
	@${REINPLACE_CMD} -e \
44
		'/CXXFLAGS=$$/s|^|#| ; \
45
		'/CXXFLAGS=$$/s|^|#| ; \
45
		 /CFLAGS=$$/s|^|#| ; \
46
		 /CFLAGS=$$/s|^|#| ; \

Return to bug 198087