freebsd-ports/cad/brlcad/Makefile
Tobias C. Berner 707c6bf295 Change cmake default behaviour to outsource.
Ports that build out of source now simply can use "USES=cmake"
instead of "USES=cmake:outsource". Ports that fail to build
out of source now need to specify "USES=cmake:insource".

I tried to only set insource where explictely needed.

PR:		232038
Exp-run by:	antoine
2018-12-25 20:25:39 +00:00

64 lines
1.8 KiB
Makefile

# Created by: Pedro F. Giffuni <giffunip@asme.org>
# $FreeBSD$
PORTNAME= brlcad
PORTVERSION= 7.24.0
PORTREVISION= 8
CATEGORIES= cad
MASTER_SITES= SF/${PORTNAME}/BRL-CAD%20Source/${PORTVERSION}
MAINTAINER= erik@brlcad.org
COMMENT= CSG modelling system from the US Ballistic Research Laboratory
LICENSE= LGPL21
LICENSE_FILE= ${WRKSRC}/COPYING
BROKEN= fails to build
BROKEN_sparc64= does not compile: invokes i386 assembler
BUILD_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/pthread-stubs.pc:devel/libpthread-stubs \
${LOCALBASE}/include/tnt/jama_lu.h:math/jama \
xsltproc:textproc/libxslt
LIB_DEPENDS= libdrm.so:graphics/libdrm \
libpng.so:graphics/png \
librle.so:graphics/urt \
libfreetype.so:print/freetype2 \
libexpat.so:textproc/expat2 \
libfontconfig.so:x11-fonts/fontconfig
CONFLICTS_INSTALL= py[23][0-9]-epsilon
USES= bison cmake:insource pathfix pkgconfig python:env shebangfix \
tar:bzip2 tk:85
USE_GL= gl glu
USE_XORG= ice sm x11 xau xcb xdamage xdmcp xext xfixes xft xi \
xorgproto xrender xscrnsaver xt xxf86vm
USE_LDCONFIG= yes
SHEBANG_FILES= src/conv/intaval-g.py
NO_MTREE= yes
PLIST_SUB+= PORTVERSION=${PORTVERSION}
CMAKE_OFF= BRLCAD_ENABLE_STRICT
CMAKE_INSTALL_PREFIX= ${PREFIX}/${PORTNAME}
MANPREFIX= ${PREFIX}/${PORTNAME}/share
TEST_TARGET= check
post-patch:
@${REINPLACE_CMD} "s+-exact Tcl 8\.5\.9+Tcl 8.5+" ${WRKSRC}/src/other/tcl/library/init.tcl
pre-install:
${CP} ${FILESDIR}/mged.sh ${WRKSRC}
${REINPLACE_CMD} -e 's+%%BRLCAD_ROOT%%+${PREFIX}/${PORTNAME}+g;' ${WRKSRC}/mged.sh
# note that installing outside of PREFIX wigs out package stuff... :/
post-install:
${MKDIR} ${STAGEDIR}${PREFIX}/bin
${INSTALL_SCRIPT} ${WRKSRC}/mged.sh ${STAGEDIR}${PREFIX}/bin/mged.sh
regression-test: build
@(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} test)
.include <bsd.port.mk>