From ad4ad716edda28026f876dea8b68b2d164740162 Mon Sep 17 00:00:00 2001 From: Pav Lucistnik Date: Sun, 23 May 2010 13:21:24 +0000 Subject: [PATCH] - Really fix on 6.X PR: ports/146831 Submitted by: Andras Horvath (maintainer) --- graphics/aaphoto/Makefile | 4 ++-- graphics/aaphoto/files/patch-Makefile.in | 11 +++++++++++ 2 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 graphics/aaphoto/files/patch-Makefile.in 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 -.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 =