blob: d661f77d2c6c4e0366a235fc282717b46430436e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
# New ports collection makefile for: poppler
# Date created: 03 March 2005
# Whom: marcus@FreeBSD.org
#
# $FreeBSD$
# $MCom: ports/graphics/poppler/Makefile,v 1.17 2006/01/13 00:26:29 ahze Exp $
#
PORTNAME= poppler
PORTVERSION= 0.5.0
CATEGORIES= graphics print
MASTER_SITES= http://poppler.freedesktop.org/
MAINTAINER?= gnome@FreeBSD.org
COMMENT?= A PDF rendering library
LIB_DEPENDS= cairo.2:${PORTSDIR}/graphics/cairo
CONFLICTS= *-xpdf-[0-9]* xpdf-[0-9]*
USE_GMAKE= yes
USE_X_PREFIX= yes
USE_AUTOTOOLS= libtool:15
USE_GNOME= gnomehack
INSTALLS_SHLIB= yes
CONFIGURE_ARGS= --enable-zlib \
--enable-xpdf-headers \
--with-html-dir=${DOCSDIR}
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I${LOCALBASE}/include/freetype2 -I${X11BASE}/include ${PTHREAD_CFLAGS}" \
LDFLAGS="-L${LOCALBASE}/lib -L${X11BASE}/lib ${PTHREAD_LIBS}"
.include <bsd.port.pre.mk>
.if defined(SLAVEPORT)
LIB_DEPENDS+= poppler.0:${PORTSDIR}/graphics/poppler
.if ${SLAVEPORT}=="gtk"
CONFIGURE_ARGS+=--enable-poppler-glib
USE_GNOME+= gtk20
BUILD_WRKSRC= ${WRKSRC}/glib
INSTALL_WRKSRC= ${WRKSRC}/glib
.elif ${SLAVEPORT}=="qt"
CONFIGURE_ARGS+=--enable-poppler-qt
USE_QT_VER+= 3
BUILD_WRKSRC= ${WRKSRC}/qt
INSTALL_WRKSRC= ${WRKSRC}/qt
# blah.. USE_QT_VER can't be defined after bsd.port.pre.mk
.include "${PORTSDIR}/Mk/bsd.kde.mk"
.endif
.else
CONFIGURE_ARGS+=--disable-poppler-glib --disable-poppler-qt \
--disable-poppler-qt4
MAN1= pdffonts.1 pdfimages.1 pdfinfo.1 \
pdftohtml.1 pdftops.1 pdftotext.1
.endif
post-patch:
.if defined(SLAVEPORT) && ${SLAVEPORT}=="qt"
# @${REINPLACE_CMD} -e 's|/usr/local/qt/include|${X11BASE}/include|; \
# s|/usr/local/qt/lib|${X11BASE}/lib|' \
# ${WRKSRC}/configure
@${REINPLACE_CMD} -e 's|$$QTDIR|${X11BASE}|' ${WRKSRC}/configure
.endif
post-install:
.if defined(SLAVEPORT)
.if ${SLAVEPORT}=="gtk"
${INSTALL_DATA} ${WRKSRC}/poppler-glib.pc ${PREFIX}/libdata/pkgconfig
.elif ${SLAVEPORT}=="qt"
${INSTALL_DATA} ${WRKSRC}/poppler-qt.pc ${PREFIX}/libdata/pkgconfig
.endif
.endif
.include <bsd.port.post.mk>
|