From ed0ed549c93f3f5c92c6d28edc5bd5721504dfe0 Mon Sep 17 00:00:00 2001 From: miwi Date: Thu, 13 Mar 2008 16:13:31 +0000 Subject: - Add ONLY_FOR_ARCHS Notes: The software uses SSE, so it won't compile on sparc64; add proper ONLY_FOR_ARCHS and ONLY_FOR_ARCHS_REASON PR: 121551 Submitted by: Dmitry Marakasov (maintainer) --- graphics/sharpconstruct/Makefile | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/graphics/sharpconstruct/Makefile b/graphics/sharpconstruct/Makefile index aa1dcc6c7a65..808583ccfbad 100644 --- a/graphics/sharpconstruct/Makefile +++ b/graphics/sharpconstruct/Makefile @@ -24,14 +24,12 @@ USE_GL= yes USE_GMAKE= yes GNU_CONFIGURE= yes -MAN1= sharpconstruct.1 +ONLY_FOR_ARCHS= i386 amd64 +ONLY_FOR_ARCHS_REASON= uses SSE -.include +MAN1= sharpconstruct.1 post-patch: -.if ${ARCH} != "i386" && ${ARCH} != "amd64" - @${REINPLACE_CMD} -e 's|-msse||' ${WRKSRC}/src/Makefile* -.endif @${REINPLACE_CMD} -e 's|malloc.h|stdlib.h|' ${WRKSRC}/include/Align.hh @${REINPLACE_CMD} -e 's|"/sharpconstruct|"|' ${WRKSRC}/src/MainWindow.cc @${REINPLACE_CMD} -e 's|/usr/share/sharpconstruct|${DATADIR}|' ${WRKSRC}/src/MainWindow.cc @@ -40,4 +38,4 @@ post-patch: @${FIND} ${WRKSRC} -name Makefile.in -print0 | ${XARGS} -0 \ ${REINPLACE_CMD} -e '/^DEFS / s|$$| -DDATADIR=\\"${DATADIR}\\"|' -.include +.include -- cgit