aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormarkus <markus@FreeBSD.org>2004-08-14 08:01:06 +0800
committermarkus <markus@FreeBSD.org>2004-08-14 08:01:06 +0800
commit6fde42dc290e500f31f7b0e9ec73c3c3a34e50a6 (patch)
treec16d62e149fc8efe0a2e9ea2a7e836cb1124bd99
parent38b77686035dab37f37d77c4b06c44ccf829fe5b (diff)
downloadfreebsd-ports-gnome-6fde42dc290e500f31f7b0e9ec73c3c3a34e50a6.tar.gz
freebsd-ports-gnome-6fde42dc290e500f31f7b0e9ec73c3c3a34e50a6.tar.zst
freebsd-ports-gnome-6fde42dc290e500f31f7b0e9ec73c3c3a34e50a6.zip
- Fix build with gcc 3.4 [1]
- Fix build on amd64 Reported by: pointyhat via kris [1]
-rw-r--r--graphics/kimagemapeditor/Makefile2
-rw-r--r--graphics/kimagemapeditor/files/patch-kimagemapeditor.cpp11
-rw-r--r--graphics/kimagemapeditor/files/patch-kimearea.cpp11
3 files changed, 23 insertions, 1 deletions
diff --git a/graphics/kimagemapeditor/Makefile b/graphics/kimagemapeditor/Makefile
index ba927eade3c0..58485588bf86 100644
--- a/graphics/kimagemapeditor/Makefile
+++ b/graphics/kimagemapeditor/Makefile
@@ -23,7 +23,7 @@ GNU_CONFIGURE= yes
CONFIGURE_ENV+= LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib ${PTHREAD_LIBS}"
pre-configure:
- ${REINPLACE_CMD} -e 's|-O2||g; s|-lpthread|${PTHREAD_LIBS}|g' \
+ ${REINPLACE_CMD} -e 's|-O2|-fPIC|g; s|-lpthread|${PTHREAD_LIBS}|g' \
${WRKSRC}/configure
.include <bsd.port.mk>
diff --git a/graphics/kimagemapeditor/files/patch-kimagemapeditor.cpp b/graphics/kimagemapeditor/files/patch-kimagemapeditor.cpp
new file mode 100644
index 000000000000..9977af86fec3
--- /dev/null
+++ b/graphics/kimagemapeditor/files/patch-kimagemapeditor.cpp
@@ -0,0 +1,11 @@
+--- src/kimagemapeditor.cpp.orig Sat Aug 14 01:43:23 2004
++++ src/kimagemapeditor.cpp Sat Aug 14 01:48:29 2004
+@@ -76,7 +76,7 @@
+
+ // Factory code for KDE 3
+ typedef KParts::GenericFactory<KImageMapEditor> KimeFactory;
+-K_EXPORT_COMPONENT_FACTORY( libkimagemapeditor , KimeFactory );
++K_EXPORT_COMPONENT_FACTORY( libkimagemapeditor , KimeFactory )
+
+ KImageMapEditor::KImageMapEditor(QWidget *parentWidget, const char *,
+ QObject *parent, const char *name, const QStringList & )
diff --git a/graphics/kimagemapeditor/files/patch-kimearea.cpp b/graphics/kimagemapeditor/files/patch-kimearea.cpp
new file mode 100644
index 000000000000..d2fee839e3fc
--- /dev/null
+++ b/graphics/kimagemapeditor/files/patch-kimearea.cpp
@@ -0,0 +1,11 @@
+--- src/kimearea.cpp.orig Sat Aug 14 01:41:52 2004
++++ src/kimearea.cpp Sat Aug 14 01:42:17 2004
+@@ -440,7 +440,7 @@
+ }
+ p.setRasterOp(Qt::XorROP);
+
+-};
++}
+
+ QRect* Area::onSelectionPoint(const QPoint & p, double zoom) const
+ {