aboutsummaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
authormaho <maho@FreeBSD.org>2004-03-30 23:07:27 +0800
committermaho <maho@FreeBSD.org>2004-03-30 23:07:27 +0800
commitb0adb3aa3c5eb724fa2ebc6dbb6dc864b0a31ecf (patch)
treea3f437e2855ba0efe4d82b7067dd74bbefafd5b1 /graphics
parentec195b96a182e6331ac1e3f40c040c613f1117df (diff)
downloadfreebsd-ports-gnome-b0adb3aa3c5eb724fa2ebc6dbb6dc864b0a31ecf.tar.gz
freebsd-ports-gnome-b0adb3aa3c5eb724fa2ebc6dbb6dc864b0a31ecf.tar.zst
freebsd-ports-gnome-b0adb3aa3c5eb724fa2ebc6dbb6dc864b0a31ecf.zip
Fix build on i386, amd64 and ia64
Reported by: Harti Brandt <brandt@fokus.fraunhofer.de> and kris via bento
Diffstat (limited to 'graphics')
-rw-r--r--graphics/libemf/Makefile4
-rw-r--r--graphics/libemf/files/patch-libemf+libemf.h23
2 files changed, 23 insertions, 4 deletions
diff --git a/graphics/libemf/Makefile b/graphics/libemf/Makefile
index 86ca9a22f2b9..598babf85955 100644
--- a/graphics/libemf/Makefile
+++ b/graphics/libemf/Makefile
@@ -17,10 +17,6 @@ GNU_CONFIGURE= yes
.include <bsd.port.pre.mk>
-.if ${ARCH} == "ia64" || ${ARCH} == "amd64"
-BROKEN= "Does not compile on ia64 or amd64"
-.endif
-
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
diff --git a/graphics/libemf/files/patch-libemf+libemf.h b/graphics/libemf/files/patch-libemf+libemf.h
index c68bd22daa43..5455dfeb2459 100644
--- a/graphics/libemf/files/patch-libemf+libemf.h
+++ b/graphics/libemf/files/patch-libemf+libemf.h
@@ -1,5 +1,28 @@
--- libemf/libemf.h.orig Wed Mar 17 20:00:10 2004
+++ libemf/libemf.h Wed Mar 17 20:00:10 2004
+@@ -21,16 +21,22 @@
+ #ifndef _LIBEMF_H
+ #define _LIBEMF_H 1
+
++#include <iostream>
+ #include <cmath>
+ #include <vector>
+ #include <map>
+ #include <functional>
++#if __GNUC__ > 2
++#include <backward/function.h>
++#endif
+ #include <algorithm>
+
+ #include <config.h>
+ #include <emf.h>
+
+ #include <wine/w16.h>
++
++using namespace std;
+
+ namespace EMF {
+ /*!
@@ -338,7 +338,7 @@
fread( &dword, sizeof(DWORD), 1, fp_ );
return *this;