2013-12-06 14:10:59 +01:00
|
|
|
# $NetBSD: Makefile,v 1.12 2013/12/06 13:10:59 wiz Exp $
|
2011-10-20 18:32:57 +02:00
|
|
|
|
|
|
|
.include "../../print/poppler/Makefile.common"
|
|
|
|
|
|
|
|
PKGNAME= poppler-cpp-${POPPLER_VERS}
|
|
|
|
|
|
|
|
COMMENT= PDF rendering library (cpp wrapper)
|
|
|
|
MAINTAINER= reed@reedmedia.net
|
|
|
|
|
|
|
|
CONFLICTS+= poppler<0.4.5nb1
|
|
|
|
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
USE_TOOLS+= gmake
|
|
|
|
PKGCONFIG_OVERRIDE+= ${WRKSRC}/poppler-glib.pc.in
|
|
|
|
|
|
|
|
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q}
|
|
|
|
# Don't build the cairo graphics backend, required by glib.
|
|
|
|
CONFIGURE_ARGS+= --disable-cairo-output
|
|
|
|
# Don't build the splash graphics backend.
|
|
|
|
CONFIGURE_ARGS+= --disable-splash-output
|
|
|
|
# Don't compile poppler qt wrapper.
|
|
|
|
CONFIGURE_ARGS+= --disable-poppler-qt
|
|
|
|
# Don't compile GTK+ test program.
|
|
|
|
CONFIGURE_ARGS+= --disable-gtk-test
|
|
|
|
CONFIGURE_ARGS+= --disable-utils
|
|
|
|
|
2012-12-12 16:51:58 +01:00
|
|
|
BUILDLINK_API_DEPENDS.poppler+= poppler-${POPPLER_VERS}{,nb*}
|
2011-10-20 18:32:57 +02:00
|
|
|
.include "../../print/poppler/buildlink3.mk"
|
|
|
|
|
|
|
|
BUILD_DIRS= cpp
|
|
|
|
INSTALL_DIRS= cpp
|
|
|
|
|
|
|
|
INSTALLATION_DIRS+= lib/pkgconfig
|
|
|
|
|
2012-12-12 16:51:58 +01:00
|
|
|
.include "../../converters/libiconv/buildlink3.mk"
|
|
|
|
|
|
|
|
CHECK_BUILTIN.iconv:= yes
|
|
|
|
.include "../../converters/libiconv/builtin.mk"
|
|
|
|
CHECK_BUILTIN.iconv:= no
|
|
|
|
|
|
|
|
.if !empty(USE_BUILTIN.iconv:M[nN][oO])
|
|
|
|
CONFIGURE_ARGS+= --with-libiconv-prefix=${BUILDLINK_PREFIX.iconv}
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --with-libiconv-prefix
|
|
|
|
.endif
|
|
|
|
|
2011-10-20 18:32:57 +02:00
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/poppler-cpp.pc ${DESTDIR}${PREFIX}/lib/pkgconfig
|
|
|
|
|
|
|
|
.include "../../mk/pthread.buildlink3.mk"
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|