svn commit: r488279 - in head/graphics/xpdf4: . files
Cy Schubert
cy at FreeBSD.org
Mon Dec 24 18:29:42 UTC 2018
Author: cy
Date: Mon Dec 24 18:29:40 2018
New Revision: 488279
URL: https://svnweb.freebsd.org/changeset/ports/488279
Log:
Fix GCC build.
This commit is based (not entirely) on a patch submitted by
Poitr Kubaj <pkubaj at anongoth.pl> in PR 234251.
PR: 234251
Modified:
head/graphics/xpdf4/Makefile (contents, props changed)
head/graphics/xpdf4/files/patch-xpdf-qt_XpdfWidgetPrint.cc (contents, props changed)
Modified: head/graphics/xpdf4/Makefile
==============================================================================
--- head/graphics/xpdf4/Makefile Mon Dec 24 17:05:13 2018 (r488278)
+++ head/graphics/xpdf4/Makefile Mon Dec 24 18:29:40 2018 (r488279)
@@ -26,7 +26,7 @@ CONFLICTS_INSTALL= xpdf
MANPREFIX= ${PREFIX}/share/xpdf
SUB_FILES= xpdf-man.conf
-USES= cmake:outsource localbase
+USES= compiler:c++11-lang cmake:outsource localbase:ldflags
CMAKE_ARGS+= -DOPI_SUPPORT:BOOL=ON -DCMAKE_DISABLE_FIND_PACKAGE_Qt4:BOOL=ON \
-DUSE_LCMS:BOOL=OFF -DSYSTEM_XPDFRC=${PREFIX}/etc/xpdfrc
Modified: head/graphics/xpdf4/files/patch-xpdf-qt_XpdfWidgetPrint.cc
==============================================================================
--- head/graphics/xpdf4/files/patch-xpdf-qt_XpdfWidgetPrint.cc Mon Dec 24 17:05:13 2018 (r488278)
+++ head/graphics/xpdf4/files/patch-xpdf-qt_XpdfWidgetPrint.cc Mon Dec 24 18:29:40 2018 (r488279)
@@ -5,7 +5,7 @@
# include <CoreFoundation/CoreFoundation.h>
# include <ApplicationServices/ApplicationServices.h>
-#elif defined(__linux__)
-+#elif defined(__linux__) || defined(__FreeBSD_cc_version)
++#elif defined(__linux__) || defined(__FreeBSD__)
# include "PSOutputDev.h"
# include <cups/cups.h>
#endif
@@ -14,7 +14,7 @@
//------------------------------------------------------------------------
-#elif defined(__linux__)
-+#elif defined(__linux__) || defined(__FreeBSD_cc_version)
++#elif defined(__linux__) || defined(__FreeBSD__)
static void fileOut(void *stream, const char *data, int len) {
fwrite(data, 1, len, (FILE *)stream);
More information about the svn-ports-all
mailing list