2012-12-15 18:09:31 +01:00
|
|
|
# Created by: Pedro F. Giffuni <giffunip@asme.org>
|
2005-02-20 23:00:46 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= brlcad
|
2012-07-01 14:32:37 +02:00
|
|
|
PORTVERSION= 7.22.0
|
2012-12-15 18:09:31 +01:00
|
|
|
PORTREVISION= 1
|
2005-02-20 23:00:46 +01:00
|
|
|
CATEGORIES= cad
|
2009-08-22 02:15:15 +02:00
|
|
|
MASTER_SITES= SF/${PORTNAME}/BRL-CAD%20Source/${PORTVERSION}
|
2005-02-20 23:00:46 +01:00
|
|
|
|
2010-05-16 11:59:41 +02:00
|
|
|
MAINTAINER= erik@brlcad.org
|
2005-02-21 07:34:39 +01:00
|
|
|
COMMENT= CSG modelling system from the US Ballistic Research Laboratory
|
2005-02-20 23:00:46 +01:00
|
|
|
|
2010-05-16 11:59:41 +02:00
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/include/tnt/jama_lu.h:${PORTSDIR}/math/jama \
|
|
|
|
xsltproc:${PORTSDIR}/textproc/libxslt
|
2012-12-15 18:09:31 +01:00
|
|
|
LIB_DEPENDS= pthread-stubs:${PORTSDIR}/devel/libpthread-stubs \
|
|
|
|
drm:${PORTSDIR}/graphics/libdrm \
|
|
|
|
png15:${PORTSDIR}/graphics/png \
|
|
|
|
rle:${PORTSDIR}/graphics/urt \
|
|
|
|
freetype:${PORTSDIR}/print/freetype2 \
|
|
|
|
expat:${PORTSDIR}/textproc/expat2 \
|
The FreeBSD x11 team proudly presents
an zeising, kwm, miwi, bapt, eadler production:
Xorg 7.7
Starring:
xserver 1.12.4 (new xorg only)
Mesa 8.0.4, including libGL, libGLU and dri (new xorg only)
libX11 1.5.0
libxcb 1.9
libdrm 2.4.42 (new xorg only)
freeglut 2.8.1
Also starring:
Updates to drivers and other libraries and utilities
Additional notes:
Change pkgconf to be a build dependency.
Add a new USE_XORG, xcb, to depend on libxcb and update all ports to use
this.
Trim makefile headers.
Take maintanership of x11/xcb-proto, ok'd by ashish.
If you are running WITH_NEW_XORG=, you need to rebuild all installed
drivers, see UPDATING for more information.
Various fixes to make ports compile.
PR: ports/177942
Exp-run by: miwi
Approved by: portmgr (miwi)
Thanks to all who helped testing!
2013-05-25 16:37:02 +02:00
|
|
|
fontconfig:${PORTSDIR}/x11-fonts/fontconfig
|
2012-09-09 17:01:14 +02:00
|
|
|
|
2005-02-20 23:00:46 +01:00
|
|
|
USE_BZIP2= yes
|
2011-12-03 20:39:12 +01:00
|
|
|
USE_GL= gl glu
|
The FreeBSD x11 team proudly presents
an zeising, kwm, miwi, bapt, eadler production:
Xorg 7.7
Starring:
xserver 1.12.4 (new xorg only)
Mesa 8.0.4, including libGL, libGLU and dri (new xorg only)
libX11 1.5.0
libxcb 1.9
libdrm 2.4.42 (new xorg only)
freeglut 2.8.1
Also starring:
Updates to drivers and other libraries and utilities
Additional notes:
Change pkgconf to be a build dependency.
Add a new USE_XORG, xcb, to depend on libxcb and update all ports to use
this.
Trim makefile headers.
Take maintanership of x11/xcb-proto, ok'd by ashish.
If you are running WITH_NEW_XORG=, you need to rebuild all installed
drivers, see UPDATING for more information.
Various fixes to make ports compile.
PR: ports/177942
Exp-run by: miwi
Approved by: portmgr (miwi)
Thanks to all who helped testing!
2013-05-25 16:37:02 +02:00
|
|
|
USE_XORG= ice inputproto sm x11 xau xcb xdamage xdmcp xext xfixes xft xi \
|
2012-12-15 18:09:31 +01:00
|
|
|
xproto xrender xscrnsaver xt xxf86vm
|
2005-04-09 23:15:27 +02:00
|
|
|
USE_GMAKE= yes
|
2013-03-22 21:06:14 +01:00
|
|
|
USES= bison pathfix cmake
|
2012-12-15 18:09:31 +01:00
|
|
|
USE_TCL= 85
|
2007-08-27 16:06:14 +02:00
|
|
|
USE_TK= 85
|
2012-07-01 14:32:37 +02:00
|
|
|
USE_LDCONFIG= yes
|
2005-02-20 23:00:46 +01:00
|
|
|
|
|
|
|
PREFIX?= ${LOCALBASE}/${PORTNAME}
|
|
|
|
NO_MTREE= yes
|
2011-12-03 20:39:12 +01:00
|
|
|
MAKE_JOBS_SAFE= yes
|
2005-02-20 23:00:46 +01:00
|
|
|
|
2005-09-14 23:46:26 +02:00
|
|
|
PLIST_SUB+= PORTVERSION=${PORTVERSION}
|
2005-02-20 23:00:46 +01:00
|
|
|
|
2011-12-03 20:39:12 +01:00
|
|
|
CFLAGS+= -I${LOCALBASE}/include
|
|
|
|
#LDFLAGS+= -L${LOCALBASE}/lib
|
2012-12-15 18:09:31 +01:00
|
|
|
CMAKE_ARGS= -DBRLCAD_ENABLE_STRICT:BOOL=OFF -DBRLCAD_TOGL=SYSTEM
|
2012-07-01 14:32:37 +02:00
|
|
|
MANPREFIX= ${DATADIR}/${PORTVERSION}
|
|
|
|
|
2013-01-10 19:12:45 +01:00
|
|
|
OPTIONS_DEFINE= OPTIMIZATION
|
|
|
|
OPTIMIZATION_DESC= Build with optimizations
|
|
|
|
OPTIONS_DEFAULT= OPTIMIZATION
|
2006-07-06 15:56:37 +02:00
|
|
|
|
2013-01-10 19:12:45 +01:00
|
|
|
.include "${.CURDIR}/Makefile.man"
|
2005-02-20 23:00:46 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2013-02-07 15:57:49 +01:00
|
|
|
EXTRA_LIBS= -pthread
|
2006-07-14 18:18:00 +02:00
|
|
|
|
2013-01-10 19:12:45 +01:00
|
|
|
.if ${PORT_OPTIONS:MOPTIMIZATION}
|
2011-12-03 20:39:12 +01:00
|
|
|
CMAKE_BUILD_TYPE=Release
|
2005-03-26 22:35:12 +01:00
|
|
|
.endif
|
|
|
|
|
2011-07-16 07:23:25 +02:00
|
|
|
.if ${ARCH} == "sparc64"
|
|
|
|
BROKEN= Does not compile on sparc64: invokes i386 assembler
|
|
|
|
.endif
|
|
|
|
|
2006-12-05 22:45:12 +01:00
|
|
|
post-patch:
|
2011-12-03 20:39:12 +01:00
|
|
|
@${REINPLACE_CMD} "s+-exact Tcl 8\.5\.1+Tcl 8.5+" ${WRKSRC}/src/other/tcl/library/init.tcl
|
|
|
|
@${REINPLACE_CMD} -e 's|{LIB_DIR}|{prefix}/libdata|' \
|
|
|
|
${WRKSRC}/misc/pkgconfig/CMakeLists.txt
|
2006-12-05 22:45:12 +01:00
|
|
|
|
2005-02-20 23:00:46 +01:00
|
|
|
pre-install:
|
|
|
|
${CP} ${FILESDIR}/mged.sh ${WRKSRC}
|
2007-11-06 11:18:58 +01:00
|
|
|
${REINPLACE_CMD} -e 's+%%BRLCAD_ROOT%%+${PREFIX}+g;' ${WRKSRC}/mged.sh
|
2005-02-20 23:00:46 +01:00
|
|
|
|
2006-07-06 15:56:37 +02:00
|
|
|
# note that installing outside of PREFIX wigs out package stuff... :/
|
2005-02-20 23:00:46 +01:00
|
|
|
post-install:
|
2006-07-06 15:56:37 +02:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/mged.sh ${PREFIX}/bin/mged.sh
|
|
|
|
${LN} -s ${PREFIX}/bin/mged.sh ${LOCALBASE}/bin/mged.sh
|
2005-02-20 23:00:46 +01:00
|
|
|
|
2008-07-13 23:17:17 +02:00
|
|
|
regression-test: build
|
|
|
|
@(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${GMAKE} test)
|
|
|
|
|
2005-02-20 23:00:46 +01:00
|
|
|
.include <bsd.port.post.mk>
|