From ff9ac28fb273a85b19b806f1ffe6bebaa43800c3 Mon Sep 17 00:00:00 2001 From: Martin Matuska Date: Sun, 20 Oct 2013 19:37:16 +0000 Subject: [PATCH] Compile wkhtmltopdf under FreeBSD 10.x by dependig on gcc TODO: backport patches from www/qt4-webkit --- converters/wkhtmltopdf/Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/converters/wkhtmltopdf/Makefile b/converters/wkhtmltopdf/Makefile index 087885749e46..2023116a52c1 100644 --- a/converters/wkhtmltopdf/Makefile +++ b/converters/wkhtmltopdf/Makefile @@ -3,7 +3,7 @@ PORTNAME= wkhtmltopdf DISTVERSION= 0.11.0_rc1 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= converters MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE}:wkhtmltopdf \ ${MASTER_SITE_LOCAL} @@ -25,6 +25,7 @@ USE_XORG= x11 xext xrender USE_PERL5= build USE_LDCONFIG= yes HAS_CONFIGURE= yes +USE_GCC= yes OPTIONS_DEFINE= BUNDLED_LIBS BUNDLED_LIBS_DESC= Use Qt-bundled jpeg, mng, png and tiff @@ -76,6 +77,8 @@ post-patch: -e 's|/usr/X11R6/include|${LOCALBASE}/include/X11|g' \ -e 's|/usr/X11R6/lib|${LOCALBASE}/lib|g' \ ${WRKSRC}/mkspecs/freebsd-g++/qmake.conf + @${REINPLACE_CMD} -e "s|gcc|${CC}|g" -e "s|g++|${CXX}|g" \ + ${WRKSRC}/mkspecs/common/g++-base.conf post-build: @cd ${WRKSRC} && \