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

(-)Makefile (-12 / +13 lines)
Lines 23-39 Link Here
23
		--with-freetype2-includes="${LOCALBASE}/include/freetype2" \
23
		--with-freetype2-includes="${LOCALBASE}/include/freetype2" \
24
		--bindir="${PREFIX}/libexec/xpdf"
24
		--bindir="${PREFIX}/libexec/xpdf"
25
25
26
OPTIONS=	LIBPAPER "Enable libpaper"      off     \
26
OPTIONS_DEFINE=	LIBPAPER TYPE1 X11
27
		TYPE1	"Ghostscript type1 fonts" on \
27
LIBPAPER_DESC=	Enable libpaper
28
		X11     "Enable X11 support"    on      \
28
TYPE1_DESC=	Ghostscript type1 fonts
29
OPTIONS_DEFAULT=	TYPE1 X11
29
30
30
.include <bsd.port.options.mk>
31
.include <bsd.port.options.mk>
31
32
32
.if defined(WITH_TYPE1)
33
.if ${PORT_OPTIONS:MTYPE1}
33
RUN_DEPENDS=	${LOCALBASE}/share/ghostscript/fonts/n021003l.pfb:${PORTSDIR}/print/gsfonts
34
RUN_DEPENDS=	${LOCALBASE}/share/ghostscript/fonts/n021003l.pfb:${PORTSDIR}/print/gsfonts
34
.endif
35
.endif
35
36
36
.if defined(WITH_LIBPAPER)
37
.if ${PORT_OPTIONS:MLIBPAPER}
37
LIB_DEPENDS+=	paper.2:${PORTSDIR}/print/libpaper
38
LIB_DEPENDS+=	paper.2:${PORTSDIR}/print/libpaper
38
CONFIGURE_ARGS+=--with-libpaper-library="${LOCALBASE}/lib" \
39
CONFIGURE_ARGS+=--with-libpaper-library="${LOCALBASE}/lib" \
39
		--with-libpaper-includes="${LOCALBASE}/include"
40
		--with-libpaper-includes="${LOCALBASE}/include"
Lines 54-68 Link Here
54
		pdftotext.1
55
		pdftotext.1
55
MAN5=		xpdfrc.5
56
MAN5=		xpdfrc.5
56
57
57
.if defined(WITHOUT_X11)
58
.if ${PORT_OPTIONS:MX11}
58
PKGNAMESUFFIX+=		-nox11
59
CONFIGURE_ARGS+=	--without-x
60
PLIST_SUB+=		X11="@comment "
61
.else
62
CONFIGURE_ARGS+=	--with-x
59
CONFIGURE_ARGS+=	--with-x
63
USE_MOTIF=		yes
60
USE_MOTIF=		yes
64
MAN1+=			xpdf.1
61
MAN1+=			xpdf.1
65
PLIST_SUB+=		X11=""
62
PLIST_SUB+=		X11=""
63
.else
64
PKGNAMESUFFIX+=		-nox11
65
CONFIGURE_ARGS+=	--without-x
66
PLIST_SUB+=		X11="@comment "
66
.endif
67
.endif
67
68
68
post-patch:
69
post-patch:
Lines 70-82 Link Here
70
		${WRKSRC}/xpdf/XPDFViewer.h
71
		${WRKSRC}/xpdf/XPDFViewer.h
71
72
72
post-install:
73
post-install:
73
.if !defined(NOPORTDOCS)
74
.if ${PORT_OPTIONS:MDOCS}
74
	@${MKDIR} ${DOCSDIR}
75
	@${MKDIR} ${DOCSDIR}
75
.for file in ANNOUNCE CHANGES README misc/hello.pdf
76
.for file in ANNOUNCE CHANGES README misc/hello.pdf
76
	${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
77
	${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
77
.endfor
78
.endfor
78
.endif
79
.endif
79
.if !defined(WITHOUT_X11)
80
.if ${PORT_OPTIONS:MX11}
80
	${LN} -sf ${PREFIX}/libexec/xpdf/xpdf ${PREFIX}/bin/xpdf
81
	${LN} -sf ${PREFIX}/libexec/xpdf/xpdf ${PREFIX}/bin/xpdf
81
.endif
82
.endif

Return to bug 174857