summaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authorYth - Arnaud <yth@ythogtha.org>2018-10-09 05:58:15 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2018-10-09 05:58:15 +0700
commitf49f3eb947d77bae8b1227af27f499090dab58be (patch)
tree648de820c6ba1f8fab0d7c3b57f6985e6ab914ab /graphics
parentfb4a2447acf9c7baeb941b9e92afd421e6b26e6f (diff)
downloadslackbuilds-f49f3eb947d77bae8b1227af27f499090dab58be.tar.gz
graphics/brlcad: Changes in build options and REQUIRES.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'graphics')
-rw-r--r--graphics/brlcad/README31
-rw-r--r--graphics/brlcad/brlcad.SlackBuild39
-rw-r--r--graphics/brlcad/brlcad.info2
3 files changed, 37 insertions, 35 deletions
diff --git a/graphics/brlcad/README b/graphics/brlcad/README
index 51b6b0a313..25e5c18639 100644
--- a/graphics/brlcad/README
+++ b/graphics/brlcad/README
@@ -4,8 +4,31 @@ rendering and geometric analysis, image and signal-processing tools, a
system performance analysis benchmark suite, libraries for robust geometric
representation, with more than 20 years of active development.
-NOTE: This package needs about 7GB of space to build, so adapt your
-OUTPUT and TMP variables if necessary.
+Optional dependencies : lz4, astyle, re2c, proj, gdal
+BRL-CAD will use them if available, if not it will use bundled versions.
+gdal is used by BRL-CAD but it does not detect the SBo version and always
+uses bundled one.
-WARNING: There is a known conflict with the 'qt5' package, remove it
-before building.
+Also there are a few options (usage : OPTION=ON/OFF sh ./brlcad.SlackBuild)
+* BRLCAD_ENABLE_RUNTIME_DEBUG=ON
+Enables support for application and library debugging facilities.
+Disabling the run-time debugging facilities can provide a significant
+(10%-30%) performance boost at the expense of extensive error
+checking (that in turn help prevent corruption of your data).
+Default is "ON", and should only be disabled for read-only render
+work where performance is critical.
+
+! Warning ! None of the options below seems to actually complete the build
+* BRLCAD_ENABLE_QT=OFF
+Uses qt5 instead of TCL/Tk.
+Requires that the qt5 package is installed.
+Default value is OFF, BRL-CAD does not autodetect qt5 presence.
+
+* BRLCAD_ENABLE_OSG=OFF
+Uses OpenSceneGraph based optional features.
+Requires that the OpenSceneGraph package is installed.
+Default value is OFF, BRL-CAD does not autodetect OSG presence.
+
+* BRLCAD_ENABLE_RTGL=OFF
+Enable experimental RTGL code.
+Default value is OFF, it is experimental.
diff --git a/graphics/brlcad/brlcad.SlackBuild b/graphics/brlcad/brlcad.SlackBuild
index 492818ae3a..4cd44015ad 100644
--- a/graphics/brlcad/brlcad.SlackBuild
+++ b/graphics/brlcad/brlcad.SlackBuild
@@ -66,44 +66,23 @@ mkdir -p build
cd build
# There is a "known issue" according to the guys on #brlcad and we need
# the cmake define "-DBRLCAD_ENABLE_STRICT=OFF" for now
-LDFLAGS="-lpng16" \
cmake \
- -DBRLCAD_ASTYLE=BUNDLED \
- -DBRLCAD_GDIAM=BUNDLED \
- -DBRLCAD_FLAGS_OPTIMIZATION=ON \
- -DBRLCAD_ENABLE_STRICT=OFF \
- -DBRLCAD_FLAGS_DEBUG=OFF \
- -DBRLCAD_FLAGS_ENABLE_RUNTIME_DEBUG=OFF \
+ -DBRLCAD_BUNDLED_LIBS=AUTO \
-DBRLCAD_ENABLE_OPENGL=ON \
+ -DBRLCAD_ENABLE_RUNTIME_DEBUG=${BRLCAD_ENABLE_RUNTIME_DEBUG:-ON} \
+ -DBRLCAD_FLAGS_DEBUG=OFF \
+ -DBRLCAD_ENABLE_STRICT=OFF \
+ -DBRLCAD_ENABLE_COMPILER_WARNINGS=OFF\
-DBRLCAD_ENABLE_EXTRADOCS=ON \
+ -DBRLCAD_FLAGS_OPTIMIZATION=ON \
-DBRLCAD_INSTALL_EXAMPLE_GEOMETRY=ON \
- -DBRLCAD_BUNDLED_LIBS=OFF \
- -DBRLCAD_REGEX=SYSTEM \
- -DBRLCAD_TERMLIB=SYSTEM \
- -DBRLCAD_XMLLINT=SYSTEM \
- -DBRLCAD_XSLTPROC=SYSTEM \
- -DBRLCAD_ZLIB=SYSTEM \
-DBRLCAD_TCL=BUNDLED \
-DBRLCAD_TK=BUNDLED \
-DBRLCAD_ITCL=BUNDLED \
-DBRLCAD_ITK=BUNDLED \
- -DBRLCAD_IWIDGETS=BUNDLED \
- -DBRLCAD_LZ4=SYSTEM \
- -DBRLCAD_LIBVDS=BUNDLED \
- -DBRLCAD_VDS=BUNDLED \
- -DBRLCAD_OPENNURBS=BUNDLED \
- -DBRLCAD_PNG=SYSTEM \
- -DBRLCAD_LEMON=BUNDLED \
- -DBRLCAD_PERPLEX=BUNDLED \
- -DBRLCAD_RE2C=BUNDLED \
- -DBRLCAD_NETPBM=BUNDLED \
- -DBRLCAD_SC=BUNDLED \
- -DBRLCAD_SCL=BUNDLED \
- -DBRLCAD_TKHTML=BUNDLED \
- -DBRLCAD_TKPNG=BUNDLED \
- -DBRLCAD_TINYCTHREAD=BUNDLED \
- -DBRLCAD_TKTABLE=BUNDLED \
- -DBRLCAD_UTAHRLE=BUNDLED \
+ -DBRLCAD_ENABLE_QT=${BRLCAD_ENABLE_QT:-OFF} \
+ -DBRLCAD_ENABLE_OSG=${BRLCAD_ENABLE_OSG:-OFF} \
+ -DBRLCAD_ENABLE_RTGL=${BRLCAD_ENABLE_RTGL:-OFF} \
-DCMAKE_INSTALL_PREFIX=/opt/$PRGNAM \
-DMAN_DIR=man \
-DDATA_DIR=share \
diff --git a/graphics/brlcad/brlcad.info b/graphics/brlcad/brlcad.info
index 46419f669e..1ee2dff912 100644
--- a/graphics/brlcad/brlcad.info
+++ b/graphics/brlcad/brlcad.info
@@ -5,6 +5,6 @@ DOWNLOAD="http://downloads.sourceforge.net/brlcad/brlcad-7.28.0.tar.bz2"
MD5SUM="bbd56e0c6c32e8433ae328903652e44b"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES="lz4 gdal"
+REQUIRES=""
MAINTAINER="Yth - Arnaud"
EMAIL="yth@ythogtha.org"