aboutsummaryrefslogtreecommitdiff
path: root/graphics/sharpconstruct
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2008-01-03 21:03:29 +0000
committerMartin Wilke <miwi@FreeBSD.org>2008-01-03 21:03:29 +0000
commit56a39c2b48a8ca257d7f276e51a0e20ca3e8a125 (patch)
tree3b8641d016becd273de37cc1d77bdf5934504bf1 /graphics/sharpconstruct
parentda93caf7f3809763c9492fc1d32de7d468d48364 (diff)
downloadports-56a39c2b48a8ca257d7f276e51a0e20ca3e8a125.tar.gz
ports-56a39c2b48a8ca257d7f276e51a0e20ca3e8a125.zip
Notes
Diffstat (limited to 'graphics/sharpconstruct')
-rw-r--r--graphics/sharpconstruct/Makefile9
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>