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

(-)/usr/ports/graphics/mupdf/Makefile (-22 / +17 lines)
Lines 5-50 Link Here
5
# $FreeBSD: ports/graphics/mupdf/Makefile,v 1.6 2010/04/27 19:06:53 amdmi3 Exp $
5
# $FreeBSD: ports/graphics/mupdf/Makefile,v 1.6 2010/04/27 19:06:53 amdmi3 Exp $
6
6
7
PORTNAME=	mupdf
7
PORTNAME=	mupdf
8
PORTVERSION=	r940
8
PORTVERSION=	r1309
9
PORTEPOCH=	1
9
PORTEPOCH=	1
10
CATEGORIES=	graphics
10
CATEGORIES=	graphics
11
MASTER_SITES=	http://www.mupdf.com/download/
11
MASTER_SITES=	http://www.mupdf.com/download/snapshots/
12
12
13
MAINTAINER=	martin.dieringer@gmx.de
13
MAINTAINER=	martin.dieringer@gmx.de
14
COMMENT=	Lightweight PDF viewer and toolkit
14
COMMENT=	Lightweight PDF viewer and toolkit
15
15
16
BUILD_DEPENDS=	jam:${PORTSDIR}/devel/jam
17
LIB_DEPENDS=	freetype.9:${PORTSDIR}/print/freetype2 \
16
LIB_DEPENDS=	freetype.9:${PORTSDIR}/print/freetype2 \
18
		jpeg.11:${PORTSDIR}/graphics/jpeg
17
		jpeg.11:${PORTSDIR}/graphics/jpeg \
18
		jbig2dec.0:${PORTSDIR}/graphics/jbig2dec \
19
		openjpeg.2:${PORTSDIR}/graphics/openjpeg
19
20
21
USE_GMAKE=	yes
22
MAKE_ARGS+=	build=release prefix=${PREFIX} verbose=true
20
WRKSRC=		${WRKDIR}/${PORTNAME}
23
WRKSRC=		${WRKDIR}/${PORTNAME}
21
USE_XORG=	x11 xext
24
USE_XORG=	x11 xext
22
JAM_ARGS=	-q -sLOCALBASE=${LOCALBASE} \
25
USE_GNOME=	pkgconfig
23
		-sPTHREAD_LIBS=${PTHREAD_LIBS} ${_MAKE_JOBS}
26
24
MAKE_JOBS_SAFE=	yes
27
MAKE_JOBS_SAFE=	yes
25
28
26
EXECUTABLES=	cmapdump    pdfdraw     pdfinfo \
29
LICENSE=	GPLv3
27
		fontdump    pdfclean    pdfextract  pdfshow
30
LICENSE_FILE=	${WRKSRC}/COPYING
28
31
29
OPTIONS=	CJK "Enable Asian Fontset" On
32
CFLAGS+=	-I${LOCALBASE}/include
33
LDFLAGS+=	-L${LOCALBASE}/lib
30
34
31
.include <bsd.port.options.mk>
35
.include <bsd.port.options.mk>
32
36
33
.if defined(WITHOUT_CJK)
34
JAM_ARGS+=	-sDEFINES=NOCJK
35
.endif
36
37
do-build:
38
	cd ${WRKSRC} &&	jam ${JAM_ARGS}
39
40
do-install:
41
	${INSTALL} ${WRKSRC}/build/mupdf ${PREFIX}/bin/mupdf
42
.for f in ${EXECUTABLES}
43
	${INSTALL} ${WRKSRC}/build/$f ${PREFIX}/bin/mu_$f ;
44
.endfor
45
46
.if ${ARCH} == "sparc64"
37
.if ${ARCH} == "sparc64"
47
BROKEN=		Does not install on sparc64
38
BROKEN=		Does not install on sparc64
48
.endif
39
.endif
49
40
41
post-patch:
42
	@${REINPLACE_CMD} 's/LAGS :=/LAGS +=/g' ${WRKSRC}/Makerules
43
	@${REINPLACE_CMD} 's/Linux/FreeBSD/g' ${WRKSRC}/Makerules
44
50
.include <bsd.port.mk>
45
.include <bsd.port.mk>
(-)/usr/ports/graphics/mupdf/distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
MD5 (mupdf-r940.tar.gz) = 30463110385d5279b0ba1b5d1907908b
1
MD5 (mupdf-r1309.tar.gz) = 047f1fb75d2f37837b63f2b064fa5e1c
2
SHA256 (mupdf-r940.tar.gz) = ed00e461f3ad03ee9d7634abdd183f843e41367b6326809255a4b216f452c9bf
2
SHA256 (mupdf-r1309.tar.gz) = 222f2b26c6b63561f48f1d2a6c13763a4474a862d69cdd903daa959b249fcb78
3
SIZE (mupdf-r940.tar.gz) = 3611853
3
SIZE (mupdf-r1309.tar.gz) = 3607227
(-)/usr/ports/graphics/mupdf/files/patch-Jamrules (-31 lines)
Lines 1-31 Link Here
1
--- Jamrules.orig       2009-12-09 02:59:17.000000000 +0100
2
+++ Jamrules    2010-01-11 21:53:06.000000000 +0100
3
@@ -39,22 +39,22 @@
4
 OSPLAT ?= x64 ; # this one isn't in the jambase :(
5
6
 # Place all build products here:
7
-ALL_LOCATE_TARGET ?= [ FDirName $(TOP) build $(OS:L)-$(OSPLAT:L)-$(BUILD:L) ] ;
8
+ALL_LOCATE_TARGET ?= [ FDirName $(TOP) build ] ;
9
10
 # Add compile time defines for JBIG2 and JPEG2000 support.
11
 if $(HAVE_JBIG2DEC) { DEFINES += HAVE_JBIG2DEC ; }
12
 if $(HAVE_OPENJPEG) { DEFINES += HAVE_OPENJPEG ; }
13
 
14
-if $(OS) = LINUX
15
+if $(OS) = FREEBSD
16
 {
17
-    Echo Building for LINUX ;
18
+    Echo Building for FREEBSD ;
19
 
20
     BUILD_X11APP = true ;
21
 
22
-    CCFLAGS = -Wall -std=gnu99 -I/usr/include/freetype2 ;
23
-    LINKFLAGS = -L/usr/X11R6/lib ;
24
+    CCFLAGS = -Wall -std=gnu99 -I$(LOCALBASE)/include/freetype2 -I$(LOCALBASE)/include/ ;
25
+    LINKFLAGS = -L$(LOCALBASE)/lib ;
26
     LINKLIBS = -lfreetype -ljpeg -lz -lm ;
27
-    APPLINKLIBS = -lX11 -lXext -lpthread ;
28
+    APPLINKLIBS = -lX11 -lXext $(PTHREAD_LIBS) ;
29
 
30
     if $(BUILD) = debug   { OPTIM = -g -O0 -fno-inline ; }
31
     if $(BUILD) = release { OPTIM = -O3 ; }
(-)/usr/ports/graphics/mupdf/pkg-plist (-7 / +11 lines)
Lines 1-8 Link Here
1
bin/mupdf
1
bin/mupdf
2
bin/mu_pdfshow
2
bin/pdfclean
3
bin/mu_pdfdraw
3
bin/pdfdraw
4
bin/mu_pdfinfo
4
bin/pdfextract
5
bin/mu_cmapdump
5
bin/pdfinfo
6
bin/mu_pdfextract
6
bin/pdfshow
7
bin/mu_pdfclean
7
include/fitz.h
8
bin/mu_fontdump
8
include/fitz_base.h
9
include/fitz_draw.h
10
include/fitz_stream.h
11
include/mupdf.h
12
lib/libmupdf.a

Return to bug 148423