aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--x11/babl/Makefile12
-rw-r--r--x11/babl/files/patch-docs-Makefile.in11
2 files changed, 22 insertions, 1 deletions
diff --git a/x11/babl/Makefile b/x11/babl/Makefile
index e731eff6185a..6615e3af3379 100644
--- a/x11/babl/Makefile
+++ b/x11/babl/Makefile
@@ -27,4 +27,14 @@ USE_AUTOTOOLS= libtool:22
USE_GNOME= pkgconfig gnomehack ltverhack
USE_GMAKE= yes
-.include <bsd.port.mk>
+OPTIONS= SIMD "Use cpu-specific optimizations if available" off
+
+.include <bsd.port.pre.mk>
+
+.if !defined(WITHOUT_SIMD)
+CONFIGURE_ARGS+=--enable-mmx \
+ --enable-sse \
+ --enable-altivec
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/x11/babl/files/patch-docs-Makefile.in b/x11/babl/files/patch-docs-Makefile.in
new file mode 100644
index 000000000000..9ca19747e46e
--- /dev/null
+++ b/x11/babl/files/patch-docs-Makefile.in
@@ -0,0 +1,11 @@
+--- docs/Makefile.in~
++++ docs/Makefile.in
+@@ -571,7 +571,7 @@ index.html: index-static.html
+ Makefile.am
+ echo -n "HTML: $@"
+ cp $< $@
+- (which mktemp > /dev/null&& TMPFILE=`mktemp` || TMPFILE="/tmp/babl_build_tempfile" ;\
++ (which mktemp > /dev/null&& TMPFILE=`mktemp -t babl` || TMPFILE="/tmp/babl_build_tempfile" ;\
+ export BABL_PATH="$(top_builddir)/extensions"; $(babl_html_dump) > $$TMPFILE;\
+ $(top_srcdir)/docs/tools/xml_insert.sh $@ BablBase $$TMPFILE;\
+ rm -f $$TMPFILE )