summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorespie <espie@openbsd.org>2017-05-24 20:17:31 (GMT)
committerespie <espie@openbsd.org>2017-05-24 20:17:31 (GMT)
commit3cb99ad81c9efb8aedf1550c5065a64d32e4f510 (patch)
treed37493dbc91657aa10086e4ce3356c9b68b70fd2
parentaecaf219d93ddc8fa21169b2c995ca979beaf63b (diff)
downloadopenbsd-ports-3cb99ad81c9efb8aedf1550c5065a64d32e4f510.tar.gz
openbsd-ports-3cb99ad81c9efb8aedf1550c5065a64d32e4f510.tar.xz
steal freebsd patches to allow etl to actually be useful
-rw-r--r--devel/etl/Makefile3
-rw-r--r--devel/etl/patches/patch-ETL__stringf_h14
-rw-r--r--devel/etl/patches/patch-ETL__surface_h13
3 files changed, 29 insertions, 1 deletions
diff --git a/devel/etl/Makefile b/devel/etl/Makefile
index fbb43df..7db7f84 100644
--- a/devel/etl/Makefile
+++ b/devel/etl/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.3 2015/09/21 16:58:21 jasper Exp $
+# $OpenBSD: Makefile,v 1.4 2017/05/24 20:17:31 espie Exp $
COMMENT = C++ class and template library
@@ -7,6 +7,7 @@ DISTNAME = ETL-${V}
PKGNAME = etl-${V}
# Keep in sync with multimedia/synfig
SYNFIG_V = 1.0.1
+REVISION = 0
CATEGORIES = devel
diff --git a/devel/etl/patches/patch-ETL__stringf_h b/devel/etl/patches/patch-ETL__stringf_h
new file mode 100644
index 0000000..363ca7c
--- /dev/null
+++ b/devel/etl/patches/patch-ETL__stringf_h
@@ -0,0 +1,14 @@
+$OpenBSD: patch-ETL__stringf_h,v 1.1 2017/05/24 20:17:31 espie Exp $
+
+Index: ETL/_stringf.h
+--- ETL/_stringf.h.orig
++++ ETL/_stringf.h
+@@ -57,7 +57,7 @@
+
+ _ETL_BEGIN_CDECLS
+
+-#if defined(__APPLE__) || defined(__CYGWIN__) || defined(_WIN32)
++#if defined(__clang__) || defined(__APPLE__) || defined(__CYGWIN__) || defined(_WIN32)
+ #define ETL_NO_THROW
+ #else
+ #define ETL_NO_THROW throw()
diff --git a/devel/etl/patches/patch-ETL__surface_h b/devel/etl/patches/patch-ETL__surface_h
new file mode 100644
index 0000000..73dab35
--- /dev/null
+++ b/devel/etl/patches/patch-ETL__surface_h
@@ -0,0 +1,13 @@
+$OpenBSD: patch-ETL__surface_h,v 1.1 2017/05/24 20:17:31 espie Exp $
+
+Index: ETL/_surface.h
+--- ETL/_surface.h.orig
++++ ETL/_surface.h
+@@ -34,6 +34,7 @@
+ #include "_misc.h"
+ #include <algorithm>
+ #include <cstring>
++#include <cstdlib>
+
+ /* === M A C R O S ========================================================= */
+