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-24
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 |
USES= gmake libtool:keepla pathfix pkgconfig tar:xz |
25 |
USES= gmake libtool pathfix pkgconfig tar:xz |
22 |
USE_GNOME= libxml2 |
26 |
USE_GNOME= libxml2 |
23 |
GNU_CONFIGURE= yes |
27 |
GNU_CONFIGURE= yes |
24 |
USE_LDCONFIG= yes |
28 |
USE_LDCONFIG= yes |
Lines 25-31
Link Here
|
25 |
CONFIGURE_ARGS= --enable-zlib \ |
29 |
CONFIGURE_ARGS= --enable-zlib \ |
26 |
--enable-xpdf-headers \ |
30 |
--enable-xpdf-headers \ |
27 |
--disable-gtk-test \ |
31 |
--disable-gtk-test \ |
28 |
--with-html-dir=${DOCSDIR} |
32 |
--without-html-dir \ |
|
|
33 |
--disable-static |
29 |
CPPFLAGS+= -I${LOCALBASE}/include |
34 |
CPPFLAGS+= -I${LOCALBASE}/include |
30 |
LDFLAGS+= -L${LOCALBASE}/lib |
35 |
LDFLAGS+= -L${LOCALBASE}/lib |
31 |
|
36 |
|
Lines 32-41
Link Here
|
32 |
# see https://bugs.freedesktop.org/show_bug.cgi?id=72499 |
37 |
# see https://bugs.freedesktop.org/show_bug.cgi?id=72499 |
33 |
CPPFLAGS+= -D__LONG_LONG_SUPPORTED |
38 |
CPPFLAGS+= -D__LONG_LONG_SUPPORTED |
34 |
|
39 |
|
|
|
40 |
INSTALL_TARGET= install-strip |
41 |
|
35 |
.if !defined(SLAVEPORT) |
42 |
.if !defined(SLAVEPORT) |
36 |
PORTSCOUT= limitw:1,even |
43 |
PORTSCOUT= limitw:1,even |
37 |
|
44 |
|
38 |
OPTIONS_DEFINE= CAIRO OPENJPEG |
45 |
OPTIONS_DEFINE= CAIRO CURL OPENJPEG |
39 |
OPTIONS_DEFAULT=CAIRO OPENJPEG |
46 |
OPTIONS_DEFAULT=CAIRO OPENJPEG |
40 |
|
47 |
|
41 |
USES+= iconv |
48 |
USES+= iconv |
Lines 48-54
Link Here
|
48 |
LIB_DEPENDS+= libpoppler.so:${PORTSDIR}/graphics/poppler |
55 |
LIB_DEPENDS+= libpoppler.so:${PORTSDIR}/graphics/poppler |
49 |
|
56 |
|
50 |
.if ${SLAVEPORT}==glib |
57 |
.if ${SLAVEPORT}==glib |
51 |
CONFIGURE_ARGS+=--enable-poppler-glib |
58 |
CONFIGURE_ARGS+=--enable-poppler-glib --enable-introspection=yes |
52 |
USE_GNOME+= cairo gnomehier glib20 introspection:build |
59 |
USE_GNOME+= cairo gnomehier glib20 introspection:build |
53 |
BUILD_WRKSRC= ${WRKSRC}/glib |
60 |
BUILD_WRKSRC= ${WRKSRC}/glib |
54 |
INSTALL_WRKSRC= ${WRKSRC}/glib |
61 |
INSTALL_WRKSRC= ${WRKSRC}/glib |
Lines 66-76
Link Here
|
66 |
CONFIGURE_ARGS+=--disable-poppler-qt4 |
73 |
CONFIGURE_ARGS+=--disable-poppler-qt4 |
67 |
.endif |
74 |
.endif |
68 |
|
75 |
|
69 |
# needs checking when Qt5 is available |
|
|
70 |
.if ${SLAVEPORT}==qt5 |
76 |
.if ${SLAVEPORT}==qt5 |
71 |
CONFIGURE_ARGS+=--enable-poppler-qt5 |
77 |
CONFIGURE_ARGS+=--enable-poppler-qt5 |
72 |
CONFIGURE_ENV+= ac_cv_prog_MOCQT4=${LOCALBASE}/bin/moc-qt5 |
78 |
CONFIGURE_ENV+= MOCQT5=${MOC} |
73 |
USE_QT5= gui corelib xml qtestlib moc_build |
79 |
USE_QT5= core gui widgets xml buildtools_build testlib_build |
74 |
BUILD_WRKSRC= ${WRKSRC}/qt5 |
80 |
BUILD_WRKSRC= ${WRKSRC}/qt5 |
75 |
INSTALL_WRKSRC= ${WRKSRC}/qt5 |
81 |
INSTALL_WRKSRC= ${WRKSRC}/qt5 |
76 |
.else |
82 |
.else |
Lines 100-105
Link Here
|
100 |
PLIST_SUB+= CAIRO="@comment " |
106 |
PLIST_SUB+= CAIRO="@comment " |
101 |
.endif |
107 |
.endif |
102 |
|
108 |
|
|
|
109 |
.if ${PORT_OPTIONS:MCURL} |
110 |
LIB_DEPENDS+= libcurl.so:${PORTSDIR}/ftp/curl |
111 |
CONFIGURE_ARGS+=--enable-libcurl |
112 |
PLIST_SUB+= CURL="" |
113 |
.else |
114 |
CONFIGURE_ARGS+=--disable-libcurl |
115 |
PLIST_SUB+= CURL="@comment " |
116 |
.endif |
117 |
|
103 |
.if ${PORT_OPTIONS:MOPENJPEG} |
118 |
.if ${PORT_OPTIONS:MOPENJPEG} |
104 |
CONFIGURE_ARGS+=--enable-libopenjpeg |
119 |
CONFIGURE_ARGS+=--enable-libopenjpeg |
105 |
LIB_DEPENDS+= libopenjpeg.so:${PORTSDIR}/graphics/openjpeg15 |
120 |
LIB_DEPENDS+= libopenjpeg.so:${PORTSDIR}/graphics/openjpeg15 |
Lines 116-122
Link Here
|
116 |
${WRKSRC}/configure |
131 |
${WRKSRC}/configure |
117 |
.endif |
132 |
.endif |
118 |
.if defined(SLAVEPORT) && ${SLAVEPORT}==qt5 |
133 |
.if defined(SLAVEPORT) && ${SLAVEPORT}==qt5 |
119 |
@${REINPLACE_CMD} -e 's|MOCQT5=`.*|MOCQT5="${LOCALBASE}/bin/moc-qt5"|' \ |
134 |
@${REINPLACE_CMD} -e 's|MOCQT5=`.*|MOCQT5="${MOC}"|' \ |
120 |
${WRKSRC}/configure |
135 |
${WRKSRC}/configure |
121 |
.endif |
136 |
.endif |
122 |
|
137 |
|
Lines 133-138
Link Here
|
133 |
${STAGEDIR}${PREFIX}/libdata/pkgconfig |
148 |
${STAGEDIR}${PREFIX}/libdata/pkgconfig |
134 |
. endif |
149 |
. endif |
135 |
.endif |
150 |
.endif |
136 |
-@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libpoppler*.so.* |
|
|
137 |
|
151 |
|
138 |
.include <bsd.port.mk> |
152 |
.include <bsd.port.mk> |