1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-03 01:23:49 +00:00

- 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 <amdmi3@amdmi3.ru> (maintainer)
This commit is contained in:
Martin Wilke 2008-03-13 16:13:31 +00:00
parent f5ad7b48a8
commit c50ae2c70e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=208972

View File

@ -24,14 +24,12 @@ USE_GL= yes
USE_GMAKE= yes
GNU_CONFIGURE= yes
ONLY_FOR_ARCHS= i386 amd64
ONLY_FOR_ARCHS_REASON= uses SSE
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
@ -40,4 +38,4 @@ post-patch:
@${FIND} ${WRKSRC} -name Makefile.in -print0 | ${XARGS} -0 \
${REINPLACE_CMD} -e '/^DEFS / s|$$| -DDATADIR=\\"${DATADIR}\\"|'
.include <bsd.port.post.mk>
.include <bsd.port.mk>