pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: pkg/47215: print/poppler-cpp fails with error: invalid conversion from 'const char**' to 'char**' [-fpermissive]
The following reply was made to PR pkg/47215; it has been noted by GNATS.
From: Richard PALO <richard.palo%baou.fr@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc:
Subject: Re: pkg/47215: print/poppler-cpp fails with error: invalid conversion
from 'const char**' to 'char**' [-fpermissive]
Date: Wed, 21 Nov 2012 08:11:57 +0100
After some digging around, I noticed a mechanism in the Makefile found
in pkgsrc/net/php-xmlrpc/ that I adapted to poppler-cpp and it seems to
work in my case.
For what it is worth:
diff --git a/print/poppler-cpp/Makefile b/print/poppler-cpp/Makefile
index c47e6bf..23704ad 100644
--- a/print/poppler-cpp/Makefile
+++ b/print/poppler-cpp/Makefile
@@ -34,6 +34,19 @@ CONFIGURE_ARGS+= --enable-cms
CONFIGURE_ARGS+= --disable-cms
.endif
+.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
+
+
BUILD_DIRS= cpp
INSTALL_DIRS= cpp
Home |
Main Index |
Thread Index |
Old Index