freebsd-ports/graphics/sharpconstruct/Makefile
Pav Lucistnik 8554f1fe2d The port uses -msse compiler option, which I've disabled by ports/95552 to make
it compile under amd64. That led to the port not compiling anywhere at all, as
sse dependancy is hardcoded. So:

- Don't remove -msse from compiler flags
- Introduce ONLY_FOR_ARCHS=i386

PR:		ports/95872
Submitted by:	Dmitry Marakasov <amdmi3@mail.ru> (maintainer)
2006-05-05 07:53:27 +00:00

47 lines
1.3 KiB
Makefile

# ports collection makefile for: sharpconstruct
# Date created: 24 Feb 2006
# Whom: Dmitry Marakasov <amdmi3@mail.ru>
#
# $FreeBSD$
#
PORTNAME= sharpconstruct
PORTVERSION= 0.11
CATEGORIES= graphics
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= sharp3d
MAINTAINER= amdmi3@mail.ru
COMMENT= 3D modeller for organic shapes
LIB_DEPENDS= gtkglextmm-x11-1.0.0:${PORTSDIR}/x11-toolkits/gtkglextmm \
glademm-2.4.1:${PORTSDIR}/devel/libglademm24
USE_BZIP2= yes
USE_X_PREFIX= yes
USE_GL= yes
USE_GMAKE= yes
GNU_CONFIGURE= yes
USE_GCC= 3.4+
MAN1= sharpconstruct.1
ONLY_FOR_ARCHS= i386
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 500000
BROKEN= Does not compile on FreeBSD 4.x (lack of *round* functions)
.endif
post-patch:
@${REINPLACE_CMD} -e 's|gtkglextmm-1\.2|gtkglextmm-1.0|' ${WRKSRC}/configure
@${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
@${REINPLACE_CMD} -e '/FileDialog/,/}/ d' ${WRKSRC}/src/MainWindow.cc
@${REINPLACE_CMD} -e 's|memalign(b,c)|malloc(c)|' ${WRKSRC}/include/Align.hh
@${FIND} ${WRKSRC} -name Makefile.in -print0 | ${XARGS} -0 \
${REINPLACE_CMD} -e '/^DEFS / s|$$| -DDATADIR=\\"${DATADIR}\\"|'
.include <bsd.port.post.mk>