diff options
author | miwi <miwi@FreeBSD.org> | 2008-01-04 05:03:29 +0800 |
---|---|---|
committer | miwi <miwi@FreeBSD.org> | 2008-01-04 05:03:29 +0800 |
commit | dd4e310246f01ad7a15c1a11a3d904276f328128 (patch) | |
tree | 86e0182a4742524ceb16c2465416c77b32c8487b /graphics | |
parent | 00315a33c8929dd5cd107a611d29af9b88ea1152 (diff) | |
download | freebsd-ports-gnome-dd4e310246f01ad7a15c1a11a3d904276f328128.tar.gz freebsd-ports-gnome-dd4e310246f01ad7a15c1a11a3d904276f328128.tar.zst freebsd-ports-gnome-dd4e310246f01ad7a15c1a11a3d904276f328128.zip |
- Fix build with sparc64
PR: 119066
Submitted by: Dmitry Marakasov <amdmi3@amdmi3.ru> (maintainer)
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/sharpconstruct/Makefile | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/graphics/sharpconstruct/Makefile b/graphics/sharpconstruct/Makefile index 0ae4f249701a..aa1dcc6c7a65 100644 --- a/graphics/sharpconstruct/Makefile +++ b/graphics/sharpconstruct/Makefile @@ -7,7 +7,7 @@ PORTNAME= sharpconstruct PORTVERSION= 0.11 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= graphics MASTER_SITES= SF MASTER_SITE_SUBDIR= sharp3d @@ -26,7 +26,12 @@ GNU_CONFIGURE= yes MAN1= sharpconstruct.1 +.include <bsd.port.pre.mk> + 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 @@ -35,4 +40,4 @@ post-patch: @${FIND} ${WRKSRC} -name Makefile.in -print0 | ${XARGS} -0 \ ${REINPLACE_CMD} -e '/^DEFS / s|$$| -DDATADIR=\\"${DATADIR}\\"|' -.include <bsd.port.mk> +.include <bsd.port.post.mk> |