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

Collapse All | Expand All

(-)djview4/Makefile (-8 / +21 lines)
Lines 3-9 Link Here
3
3
4
PORTNAME=	djview
4
PORTNAME=	djview
5
PORTVERSION=	4.9
5
PORTVERSION=	4.9
6
PORTREVISION=	3
6
PORTREVISION=	4
7
CATEGORIES=	graphics
7
CATEGORIES=	graphics
8
MASTER_SITES=	SF/djvu/DjView/${PORTVERSION}
8
MASTER_SITES=	SF/djvu/DjView/${PORTVERSION}
9
9
Lines 11-31 Link Here
11
COMMENT=	Standalone Djvu viewer and plugin based on Qt4 toolkit
11
COMMENT=	Standalone Djvu viewer and plugin based on Qt4 toolkit
12
12
13
LICENSE=	GPLv2
13
LICENSE=	GPLv2
14
LICENSE_FILE=	${WRKSRC}/COPYING
14
15
15
LIB_DEPENDS=	libdjvulibre.so:${PORTSDIR}/graphics/djvulibre
16
LIB_DEPENDS=	libdjvulibre.so:${PORTSDIR}/graphics/djvulibre \
17
		libtiff.so:${PORTSDIR}/graphics/tiff
16
18
17
GNU_CONFIGURE=	yes
19
GNU_CONFIGURE=	yes
18
USES=		pkgconfig webplugin:native libtool
20
USES=		desktop-file-utils libtool pkgconfig webplugin:native
19
USE_QT4=	gui network rcc_build uic_build moc_build qmake_build
21
USE_QT4=	gui linguist network rcc_build uic_build moc_build qmake_build
20
USE_XORG=	sm ice xt
22
USE_XORG=	sm ice xt
21
QT_NONSTANDARD=	yes
23
QT_NONSTANDARD=	yes
22
CONFIGURE_ARGS=	--x-includes="${LOCALBASE}/include" \
24
CONFIGURE_ARGS=	--x-includes="${LOCALBASE}/include" \
23
		--x-libraries="${LOCALBASE}/lib"
25
		--x-libraries="${LOCALBASE}/lib" --disable-desktopfiles
24
CONFIGURE_ENV=	QMAKE="${QMAKE}" \
26
CONFIGURE_ENV=	QMAKE="${QMAKE}" \
25
		QMAKESPEC="${QMAKESPEC}"
27
		QMAKESPEC="${QMAKESPEC}"
28
CPPFLAGS+=	-I${LOCALBASE}/include
26
LDFLAGS+=	-L${LOCALBASE}/lib
29
LDFLAGS+=	-L${LOCALBASE}/lib
27
CFLAGS+=	-I${LOCALBASE}/include
28
CXXFLAGS+=	-I${LOCALBASE}/include
29
MAKE_ENV=	INSTALL_SCRIPT="${INSTALL_SCRIPT}"
30
MAKE_ENV=	INSTALL_SCRIPT="${INSTALL_SCRIPT}"
30
31
31
WRKSRC=		${WRKDIR}/djview4-${PORTVERSION}
32
WRKSRC=		${WRKDIR}/djview4-${PORTVERSION}
Lines 36-42 Link Here
36
post-patch:
37
post-patch:
37
	@${REINPLACE_CMD} -e 's,/netscape/,/djview4/,' \
38
	@${REINPLACE_CMD} -e 's,/netscape/,/djview4/,' \
38
		${WRKSRC}/nsdejavu/Makefile.in ${WRKSRC}/nsdejavu/nsdejavu.1.in
39
		${WRKSRC}/nsdejavu/Makefile.in ${WRKSRC}/nsdejavu/nsdejavu.1.in
39
	@${REINPLACE_CMD} -e 's,@NSDEJAVU_LIBS@,@NSDEJAVU_LIBS@ -lXt -lXext,g' \
40
	@${REINPLACE_CMD} -e 's,@NSDEJAVU_LIBS@,& -lXt -lXext,g' \
40
		${WRKSRC}/nsdejavu/Makefile.in
41
		${WRKSRC}/nsdejavu/Makefile.in
41
42
43
post-install:
44
.for f in ${WEBPLUGIN_FILES}
45
	@${STRIP_CMD} ${STAGEDIR}${WEBPLUGIN_DIR}/${f}
46
.endfor
47
.for d in 32 64
48
	@${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/${d}x${d}/apps
49
	${INSTALL_DATA} ${WRKSRC}/desktopfiles/hi${d}-djview4.png \
50
		${STAGEDIR}${PREFIX}/share/icons/hicolor/${d}x${d}/apps/djvulibre-djview4.png
51
.endfor
52
	${INSTALL_DATA} ${WRKSRC}/desktopfiles/djvulibre-djview4.desktop \
53
		${STAGEDIR}${PREFIX}/share/applications
54
42
.include <bsd.port.mk>
55
.include <bsd.port.mk>
(-)djview4/pkg-plist (-7 / +10 lines)
Lines 4-13 Link Here
4
man/man1/djview.1.gz
4
man/man1/djview.1.gz
5
man/man1/djview4.1.gz
5
man/man1/djview4.1.gz
6
man/man1/nsdejavu.1.gz
6
man/man1/nsdejavu.1.gz
7
share/djvu/djview4/desktop/djvulibre-djview4.desktop
7
share/applications/djvulibre-djview4.desktop
8
share/djvu/djview4/desktop/hi-djview4.svgz
8
share/djvu/djview4/djview_cs.qm
9
share/djvu/djview4/desktop/hi32-djview4.png
9
share/djvu/djview4/djview_de.qm
10
share/djvu/djview4/desktop/hi64-djview4.png
10
share/djvu/djview4/djview_fr.qm
11
share/djvu/djview4/desktop/prebuilt-hi32-djview4.png
11
share/djvu/djview4/djview_ru.qm
12
share/djvu/djview4/desktop/prebuilt-hi64-djview4.png
12
share/djvu/djview4/djview_uk.qm
13
share/djvu/djview4/desktop/register-djview-menu
13
share/djvu/djview4/djview_zh_cn.qm
14
share/djvu/djview4/djview_zh_tw.qm
15
share/icons/hicolor/32x32/apps/djvulibre-djview4.png
16
share/icons/hicolor/64x64/apps/djvulibre-djview4.png

Return to bug 196409