aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/aaphoto
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/aaphoto')
-rw-r--r--graphics/aaphoto/Makefile4
-rw-r--r--graphics/aaphoto/files/patch-Makefile.in11
2 files changed, 13 insertions, 2 deletions
diff --git a/graphics/aaphoto/Makefile b/graphics/aaphoto/Makefile
index 6244e9dc190e..2e4cf6f1cdf9 100644
--- a/graphics/aaphoto/Makefile
+++ b/graphics/aaphoto/Makefile
@@ -31,8 +31,8 @@ PORTDOCS= AUTHORS ChangeLog COPYING COPYRIGHT INSTALL LICENSE \
.include <bsd.port.pre.mk>
-.if ${OSVERSION} < 700000
-CFLAGS+= -fno-openmp -Wno-unknown-pragmas -U__OPENMP__
+.if ${OSVERSION} >= 700000
+CFLAGS+= -fopenmp -D__OPENMP__
.endif
do-install:
diff --git a/graphics/aaphoto/files/patch-Makefile.in b/graphics/aaphoto/files/patch-Makefile.in
new file mode 100644
index 000000000000..eefb2448c794
--- /dev/null
+++ b/graphics/aaphoto/files/patch-Makefile.in
@@ -0,0 +1,11 @@
+--- Makefile.in.orig 2010-05-22 18:13:54.000000000 +0200
++++ Makefile.in 2010-05-22 18:15:25.000000000 +0200
+@@ -157,7 +157,7 @@
+ target_alias = @target_alias@
+ top_builddir = @top_builddir@
+ top_srcdir = @top_srcdir@
+-AM_CFLAGS = -Wall -O2 -D__OPENMP__ -fopenmp
++AM_CFLAGS = -Wall -O2 -Wno-unknown-pragmas
+ AM_LDFLAGS = -ljasper -ljpeg -lpng -lm
+ aaphoto_SOURCES = aaphoto.c
+ INCLUDES =