Lines 3-10
Link Here
|
3 |
# $MCom: ports/graphics/poppler/Makefile,v 1.84 2013/03/12 14:53:49 kwm Exp $ |
3 |
# $MCom: ports/graphics/poppler/Makefile,v 1.84 2013/03/12 14:53:49 kwm Exp $ |
4 |
|
4 |
|
5 |
PORTNAME= poppler |
5 |
PORTNAME= poppler |
6 |
PORTVERSION= 0.24.5 |
6 |
PORTVERSION= 0.26.3 |
7 |
PORTREVISION?= 4 |
7 |
PORTREVISION?= 0 |
8 |
CATEGORIES= graphics print |
8 |
CATEGORIES= graphics print |
9 |
MASTER_SITES= http://poppler.freedesktop.org/ |
9 |
MASTER_SITES= http://poppler.freedesktop.org/ |
10 |
|
10 |
|
Lines 12-25
Link Here
|
12 |
COMMENT?= PDF rendering library |
12 |
COMMENT?= PDF rendering library |
13 |
|
13 |
|
14 |
LICENSE= GPLv2 |
14 |
LICENSE= GPLv2 |
|
|
15 |
LICENSE_FILE= ${WRKSRC}/COPYING |
15 |
|
16 |
|
16 |
LIB_DEPENDS= libjpeg.so:${PORTSDIR}/graphics/jpeg \ |
17 |
LIB_DEPENDS= libjpeg.so:${PORTSDIR}/graphics/jpeg \ |
|
|
18 |
libpng15.so:${PORTSDIR}/graphics/png \ |
19 |
libtiff.so:${PORTSDIR}/graphics/tiff \ |
17 |
libfontconfig.so:${PORTSDIR}/x11-fonts/fontconfig \ |
20 |
libfontconfig.so:${PORTSDIR}/x11-fonts/fontconfig \ |
18 |
liblcms2.so:${PORTSDIR}/graphics/lcms2 |
21 |
liblcms2.so:${PORTSDIR}/graphics/lcms2 \ |
|
|
22 |
libfreetype.so:${PORTSDIR}/print/freetype2 |
19 |
RUN_DEPENDS= poppler-data>0:${PORTSDIR}/graphics/poppler-data |
23 |
RUN_DEPENDS= poppler-data>0:${PORTSDIR}/graphics/poppler-data |
20 |
|
24 |
|
21 |
USE_XZ= yes |
25 |
USES= gmake libtool pathfix pkgconfig tar:xz |
22 |
USES= gmake libtool:keepla pathfix pkgconfig |
|
|
23 |
USE_GNOME= libxml2 |
26 |
USE_GNOME= libxml2 |
24 |
GNU_CONFIGURE= yes |
27 |
GNU_CONFIGURE= yes |
25 |
USE_LDCONFIG= yes |
28 |
USE_LDCONFIG= yes |
Lines 26-32
Link Here
|
26 |
CONFIGURE_ARGS= --enable-zlib \ |
29 |
CONFIGURE_ARGS= --enable-zlib \ |
27 |
--enable-xpdf-headers \ |
30 |
--enable-xpdf-headers \ |
28 |
--disable-gtk-test \ |
31 |
--disable-gtk-test \ |
29 |
--with-html-dir=${DOCSDIR} |
32 |
--without-html-dir |
30 |
CPPFLAGS+= -I${LOCALBASE}/include |
33 |
CPPFLAGS+= -I${LOCALBASE}/include |
31 |
LDFLAGS+= -L${LOCALBASE}/lib |
34 |
LDFLAGS+= -L${LOCALBASE}/lib |
32 |
|
35 |
|
Lines 33-42
Link Here
|
33 |
# see https://bugs.freedesktop.org/show_bug.cgi?id=72499 |
36 |
# see https://bugs.freedesktop.org/show_bug.cgi?id=72499 |
34 |
CPPFLAGS+= -D__LONG_LONG_SUPPORTED |
37 |
CPPFLAGS+= -D__LONG_LONG_SUPPORTED |
35 |
|
38 |
|
|
|
39 |
INSTALL_TARGET= install-strip |
40 |
|
36 |
.if !defined(SLAVEPORT) |
41 |
.if !defined(SLAVEPORT) |
37 |
PORTSCOUT= limitw:1,even |
42 |
PORTSCOUT= limitw:1,even |
38 |
|
43 |
|
39 |
OPTIONS_DEFINE= CAIRO OPENJPEG |
44 |
OPTIONS_DEFINE= CAIRO CURL OPENJPEG |
40 |
OPTIONS_DEFAULT=CAIRO OPENJPEG |
45 |
OPTIONS_DEFAULT=CAIRO OPENJPEG |
41 |
|
46 |
|
42 |
USES+= iconv |
47 |
USES+= iconv |
Lines 49-55
Link Here
|
49 |
LIB_DEPENDS+= libpoppler.so:${PORTSDIR}/graphics/poppler |
54 |
LIB_DEPENDS+= libpoppler.so:${PORTSDIR}/graphics/poppler |
50 |
|
55 |
|
51 |
.if ${SLAVEPORT}==glib |
56 |
.if ${SLAVEPORT}==glib |
52 |
CONFIGURE_ARGS+=--enable-poppler-glib |
57 |
CONFIGURE_ARGS+=--enable-poppler-glib --enable-introspection=yes |
53 |
USE_GNOME+= cairo gnomehier glib20 introspection:build |
58 |
USE_GNOME+= cairo gnomehier glib20 introspection:build |
54 |
BUILD_WRKSRC= ${WRKSRC}/glib |
59 |
BUILD_WRKSRC= ${WRKSRC}/glib |
55 |
INSTALL_WRKSRC= ${WRKSRC}/glib |
60 |
INSTALL_WRKSRC= ${WRKSRC}/glib |
Lines 67-77
Link Here
|
67 |
CONFIGURE_ARGS+=--disable-poppler-qt4 |
72 |
CONFIGURE_ARGS+=--disable-poppler-qt4 |
68 |
.endif |
73 |
.endif |
69 |
|
74 |
|
70 |
# needs checking when Qt5 is available |
|
|
71 |
.if ${SLAVEPORT}==qt5 |
75 |
.if ${SLAVEPORT}==qt5 |
72 |
CONFIGURE_ARGS+=--enable-poppler-qt5 |
76 |
CONFIGURE_ARGS+=--enable-poppler-qt5 |
73 |
CONFIGURE_ENV+= ac_cv_prog_MOCQT4=${LOCALBASE}/bin/moc-qt5 |
77 |
CONFIGURE_ENV+= ac_cv_prog_MOCQT5=${MOC} |
74 |
USE_QT5= gui corelib xml qtestlib moc_build |
78 |
USE_QT5= buildtools core gui testlib widgets xml |
75 |
BUILD_WRKSRC= ${WRKSRC}/qt5 |
79 |
BUILD_WRKSRC= ${WRKSRC}/qt5 |
76 |
INSTALL_WRKSRC= ${WRKSRC}/qt5 |
80 |
INSTALL_WRKSRC= ${WRKSRC}/qt5 |
77 |
.else |
81 |
.else |
Lines 101-106
Link Here
|
101 |
PLIST_SUB+= CAIRO="@comment " |
105 |
PLIST_SUB+= CAIRO="@comment " |
102 |
.endif |
106 |
.endif |
103 |
|
107 |
|
|
|
108 |
.if ${PORT_OPTIONS:MCURL} |
109 |
LIB_DEPENDS+= libcurl.so:${PORTSDIR}/ftp/curl |
110 |
CONFIGURE_ARGS+=--enable-libcurl |
111 |
PLIST_SUB+= CURL="" |
112 |
.else |
113 |
CONFIGURE_ARGS+=--disable-libcurl |
114 |
PLIST_SUB+= CURL="@comment " |
115 |
.endif |
116 |
|
104 |
.if ${PORT_OPTIONS:MOPENJPEG} |
117 |
.if ${PORT_OPTIONS:MOPENJPEG} |
105 |
CONFIGURE_ARGS+=--enable-libopenjpeg |
118 |
CONFIGURE_ARGS+=--enable-libopenjpeg |
106 |
LIB_DEPENDS+= libopenjpeg.so:${PORTSDIR}/graphics/openjpeg15 |
119 |
LIB_DEPENDS+= libopenjpeg.so:${PORTSDIR}/graphics/openjpeg15 |
Lines 117-123
Link Here
|
117 |
${WRKSRC}/configure |
130 |
${WRKSRC}/configure |
118 |
.endif |
131 |
.endif |
119 |
.if defined(SLAVEPORT) && ${SLAVEPORT}==qt5 |
132 |
.if defined(SLAVEPORT) && ${SLAVEPORT}==qt5 |
120 |
@${REINPLACE_CMD} -e 's|MOCQT5=`.*|MOCQT5="${LOCALBASE}/bin/moc-qt5"|' \ |
133 |
@${REINPLACE_CMD} -e 's|MOCQT5=`.*|MOCQT5="${MOC}"|' \ |
121 |
${WRKSRC}/configure |
134 |
${WRKSRC}/configure |
122 |
.endif |
135 |
.endif |
123 |
|
136 |
|
Lines 134-139
Link Here
|
134 |
${STAGEDIR}${PREFIX}/libdata/pkgconfig |
147 |
${STAGEDIR}${PREFIX}/libdata/pkgconfig |
135 |
. endif |
148 |
. endif |
136 |
.endif |
149 |
.endif |
137 |
-@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libpoppler*.so.* |
|
|
138 |
|
150 |
|
139 |
.include <bsd.port.mk> |
151 |
.include <bsd.port.mk> |