PLIST_SUB= SHLIB_VER="${PORTVERSION}"
post-patch:
${REINPLACE_CMD} -e 's|$${CMAKE_INSTALL_LIBDIR}/pkgconfig|libdata/pkgconfig|' \
@${REINPLACE_CMD} -e 's|$${CMAKE_INSTALL_LIBDIR}/pkgconfig|libdata/pkgconfig|' \
${WRKSRC}/CMakeLists.txt
.include <bsd.port.mk>
--- src/QGlib/connect.cpp.orig 2014-07-08 18:38:36 UTC
+++ src/QGlib/connect.cpp
@@ -20,10 +20,12 @@
#include <glib-object.h>
#include <QtCore/QHash>
#include <QtCore/QMutex>
+#ifndef Q_MOC_RUN
#include <boost/multi_index_container.hpp>
#include <boost/multi_index/sequenced_index.hpp>
#include <boost/multi_index/ordered_index.hpp>
#include <boost/multi_index/member.hpp>
+#endif
namespace QGlib {
namespace Private {
--- src/QGlib/connect.h.orig 2014-07-08 18:38:36 UTC
+++ src/QGlib/connect.h
@@ -25,8 +25,11 @@
#include <QtCore/QSharedPointer>
#include <QtCore/QFlags>
+
#include <boost/type_traits.hpp>
#include <boost/utility/enable_if.hpp>
--- src/QGlib/connectimpl.h.orig 2014-07-08 18:38:36 UTC
+++ src/QGlib/connectimpl.h
@@ -26,7 +26,9 @@
# include "refpointer.h"
# include <QtCore/QList>
# include <stdexcept>
# include <boost/type_traits.hpp>
--- src/QGlib/global.h.orig 2014-07-08 18:38:36 UTC
+++ src/QGlib/global.h
@@ -23,7 +23,9 @@
#endif
#include <QtCore/QtGlobal>
#include <boost/config.hpp>
/* defined by cmake when building this library */
#if defined(QtGLib_EXPORTS) || defined(Qt5GLib_EXPORTS)
--- src/QGlib/refpointer.h.orig 2014-07-08 18:38:36 UTC
+++ src/QGlib/refpointer.h
@@ -23,8 +23,10 @@
#include "type.h"
#include "wrap.h"
#include <cstddef>
--- src/QGlib/type.h.orig 2014-07-08 18:38:36 UTC
+++ src/QGlib/type.h
@@ -21,7 +21,9 @@
#include "global.h"
#include <QtCore/QList>
#include <boost/mpl/if.hpp>
/*
* This is a re-definition of GType inside the QGlib::Private namespace.
--- src/QGlib/value.h.orig 2014-07-08 18:38:36 UTC
+++ src/QGlib/value.h
#include "refpointer.h"
#include "error.h"
#include <stdexcept>
#include <QtCore/QString>
#include <QtCore/QDebug>