cad/brlcad: miscellaneous improvements

- add LICENSE (LGPL21)
- fix stage-qa
- pet portlint
- clean up PREFIX, regenerate pkg-plist consequently
- clean up other Makefile variables
- bump PORTREVISION

PR:		211921 (partially)
Submitted by:	pfg@
Approved by:	maintainer timeout
This commit is contained in:
Rene Ladan 2018-01-21 12:10:11 +00:00
parent 37ff3cc46f
commit 0f6476167d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=459598
2 changed files with 3815 additions and 3812 deletions

View file

@ -3,13 +3,18 @@
PORTNAME= brlcad
PORTVERSION= 7.24.0
PORTREVISION= 5
PORTREVISION= 6
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_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
@ -22,36 +27,35 @@ LIB_DEPENDS= libdrm.so:graphics/libdrm \
CONFLICTS_INSTALL= py[23][0-9]-epsilon
USES= bison cmake:outsource pathfix pkgconfig python:env shebangfix \
tar:bzip2 tk:85
USE_GL= gl glu
USE_XORG= ice inputproto sm x11 xau xcb xdamage xdmcp xext xfixes xft xi \
xproto xrender xscrnsaver xt xxf86vm
USES= tar:bzip2 bison pathfix cmake:outsource pkgconfig tk:85
USE_LDCONFIG= yes
SHEBANG_FILES= src/conv/intaval-g.py
PREFIX?= ${LOCALBASE}/${PORTNAME}
NO_MTREE= yes
PLIST_SUB+= PORTVERSION=${PORTVERSION}
CFLAGS+= -I${LOCALBASE}/include
#LDFLAGS+= -L${LOCALBASE}/lib
CMAKE_ARGS= -DBRLCAD_ENABLE_STRICT:BOOL=OFF
MANPREFIX= ${PREFIX}/share
CMAKE_OFF= BRLCAD_ENABLE_STRICT
CMAKE_INSTALL_PREFIX= ${PREFIX}/${PORTNAME}
MANPREFIX= ${PREFIX}/${PORTNAME}/share
BROKEN_sparc64= does not compile: invokes i386 assembler
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}+g;' ${WRKSRC}/mged.sh
${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
${MKDIR} ${STAGEDIR}${LOCALBASE}/bin
${LN} -s ${PREFIX}/bin/mged.sh ${STAGEDIR}${LOCALBASE}/bin/mged.sh
regression-test: build
@(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} test)

File diff suppressed because it is too large Load diff