Skip to content
Permalink
Browse files

nomacs: add mission iostream header

this is not apparently required on all systems,
but it is required on some systems, and does not break
the build on systems that do not originally need it.

No revbump as port originally built or did not build at all
  • Loading branch information
kencu committed Apr 28, 2019
1 parent e3ea263 commit b1b057070964e4fbdee5c48ec73309ebb39df211
Showing with 31 additions and 0 deletions.
  1. +5 −0 aqua/nomacs/Portfile
  2. +26 −0 aqua/nomacs/files/patch-nomacs-iostream-missing.diff
@@ -42,6 +42,11 @@ patchfiles-append patch-name.diff \
patch-Info.plist.in.diff \
patch-CMakeLists.txt.diff

#ImageLounge/src/DkCore/DkMetaData.cpp:1267:7: error: no member named 'cout' in namespace 'std'
# std::cout << xmpPacket << "\n";
# ~~~~~^
patchfiles-append patch-nomacs-iostream-missing.diff

post-destroot {
move {*}[glob ${destroot}${applications_dir}/*.dylib ${destroot}${prefix}/lib]
xinstall -d -m 0755 ${destroot}${applications_dir}/Nomacs.app/Contents/Resources
@@ -0,0 +1,26 @@
diff --git src/DkCore/DkMetaData.cpp src/DkCore/DkMetaData.cpp
index d195757..affec7b 100644
--- src/DkCore/DkMetaData.cpp
+++ src/DkCore/DkMetaData.cpp
@@ -42,6 +42,8 @@
#include <QApplication>
#pragma warning(pop) // no warnings from includes - end

+#include <iostream>
+
namespace nmc {

// DkMetaDataT --------------------------------------------------------------------
diff --git src/DkGui/DkNoMacs.cpp src/DkGui/DkNoMacs.cpp
index 6a412f7..bbfba23 100644
--- src/DkGui/DkNoMacs.cpp
+++ src/DkGui/DkNoMacs.cpp
@@ -96,6 +96,8 @@
#include <QWinTaskbarButton>
#endif

+#include <iostream>
+
namespace nmc {

DkNomacsOSXEventFilter::DkNomacsOSXEventFilter(QObject *parent) : QObject(parent) {

1 comment on commit b1b0570

@kencu

This comment has been minimized.

Copy link
Contributor Author

@kencu kencu commented on b1b0570 Apr 28, 2019

"mission" -- how did I type that? -- "missing" was what I meant, of course.

Please sign in to comment.
You can’t perform that action at this time.