View | Details | Raw Unified | Return to bug 157756
Collapse All | Expand All

(-)/usr/ports/graphics/mupdf/Makefile (-1 / +2 lines)
Lines 6-12 Link Here
6
6
7
PORTNAME=	mupdf
7
PORTNAME=	mupdf
8
PORTVERSION=	0.8.165
8
PORTVERSION=	0.8.165
9
PORTREVISION=	1
9
PORTREVISION=	2
10
PORTEPOCH=	1
10
PORTEPOCH=	1
11
CATEGORIES=	graphics
11
CATEGORIES=	graphics
12
MASTER_SITES=	GOOGLE_CODE \
12
MASTER_SITES=	GOOGLE_CODE \
Lines 20-25 Link Here
20
		jpeg.11:${PORTSDIR}/graphics/jpeg \
20
		jpeg.11:${PORTSDIR}/graphics/jpeg \
21
		jbig2dec.0:${PORTSDIR}/graphics/jbig2dec \
21
		jbig2dec.0:${PORTSDIR}/graphics/jbig2dec \
22
		openjpeg.2:${PORTSDIR}/graphics/openjpeg
22
		openjpeg.2:${PORTSDIR}/graphics/openjpeg
23
RUN_DEPENDS=	xdg-open:${PORTSDIR}/devel/xdg-utils
23
24
24
USE_GMAKE=	yes
25
USE_GMAKE=	yes
25
MAKE_ARGS+=	build=native prefix=${PREFIX} verbose=1 mandir=${PREFIX}/man
26
MAKE_ARGS+=	build=native prefix=${PREFIX} verbose=1 mandir=${PREFIX}/man
(-)/usr/ports/graphics/mupdf/files/patch-apps_x11_main.c (-4 / +15 lines)
Lines 1-6 Link Here
1
--- apps/x11_main.c.orig	2011-05-16 23:18:12.046785782 -0500
1
--- apps/x11_main.c.orig	2011-04-29 14:06:09.000000000 -0500
2
+++ apps/x11_main.c	2011-05-16 23:24:55.669305772 -0500
2
+++ apps/x11_main.c	2011-06-11 02:15:12.203411543 -0500
3
@@ -563,6 +563,24 @@ static void winresettmo(struct timeval *
3
@@ -482,9 +482,7 @@ void winreloadfile(pdfapp_t *app)
4
 
5
 void winopenuri(pdfapp_t *app, char *buf)
6
 {
7
-	char *browser = getenv("BROWSER");
8
-	if (!browser)
9
-		browser = "open";
10
+	char browser[] = "xdg-open";
11
 	if (fork() == 0)
12
 		execlp(browser, browser, buf, (char*)0);
13
 }
14
@@ -563,6 +561,24 @@ static void winresettmo(struct timeval *
4
 	tmo_at->tv_usec = 0;
15
 	tmo_at->tv_usec = 0;
5
 }
16
 }
6
 
17
 
Lines 25-31 Link Here
25
 int main(int argc, char **argv)
36
 int main(int argc, char **argv)
26
 {
37
 {
27
 	int c;
38
 	int c;
28
@@ -571,7 +589,7 @@ int main(int argc, char **argv)
39
@@ -571,7 +587,7 @@ int main(int argc, char **argv)
29
 	KeySym keysym;
40
 	KeySym keysym;
30
 	int oldx = 0;
41
 	int oldx = 0;
31
 	int oldy = 0;
42
 	int oldy = 0;

Return to bug 157756