]> https://gitweb.dealii.org/ - candi.git/commitdiff
Update package opencascade 213/head
authorFabian Castelli <fabian.castelli@kit.edu>
Mon, 7 Jun 2021 13:55:10 +0000 (15:55 +0200)
committerFabian Castelli <fabian.castelli@kit.edu>
Mon, 28 Jun 2021 16:57:10 +0000 (18:57 +0200)
deal.II-toolchain/packages/dealii.package
deal.II-toolchain/packages/opencascade.package

index 3f490dbe7ca0fd889bf14c916fdaa1ac461385ec..ea74f0bfd0535df7f99c16677e08cc392ae9332c 100644 (file)
@@ -212,10 +212,9 @@ if [ ! -z "${SLEPC_DIR}" ]; then
         -D SLEPC_DIR=${SLEPC_DIR}"
 fi
 
-# opencascade
+########################################
+# OPENCASCADE
 if [[ ${PACKAGES_OFF} =~ 'opencascade' ]]; then
-    # Disable OPENCASCADE for deal.II, if a special DEAL_II_CONFOPTS together with
-    # the dealii-prepare loop forces opencascade to be off
     if [ ! -z "${OPENCASCADE_DIR}" ]; then
         cecho ${INFO} "deal.II: unset OPENCASCADE_DIR due to forced DEAL_II_WITH_OPENCASCADE:BOOL=OFF option"
         unset OPENCASCADE_DIR
@@ -224,9 +223,8 @@ fi
 
 if [ ! -z "${OPENCASCADE_DIR}" ]; then
     cecho ${INFO} "deal.II: configuration with OPENCASCADE"
-    CONFOPTS="\
-        ${CONFOPTS} \
-        -D DEAL_II_WITH_OPENCASCADE:BOOL=ON"
+    CONFOPTS="${CONFOPTS} \
+      -D DEAL_II_WITH_OPENCASCADE:BOOL=ON"
 fi
 
 ########################################
index 595efb616ef70d0e83497d03ceb9d7eaaa608617..9a6ea9c3a87337f6dde0c011713c0d5a958e6e24 100644 (file)
@@ -1,54 +1,61 @@
-# NOTE: uncomment the following line to use the git repository
-#       and not a release tarball:
-#CANDI_OPENCASCADE_FROM_GIT=1
+################################################################################
+## OPENCASCADE                                                                ##
+################################################################################
 
-if [ -n "$CANDI_OPENCASCADE_FROM_GIT" ]; then
+# Option {ON|OFF}: Choose whether to load the tarball or the git repository.
+CANDI_OPENCASCADE_LOAD_TARBALL=ON
+
+if [ ${CANDI_OPENCASCADE_LOAD_TARBALL} = ON ]; then
+    # download release tarball
+    VERSION=0.18.3
+    CHECKSUM=c553d6a7bf52f790abc3b6bb7a1e91a65947e92a426bb1a88a11960c31f0966c
+    CHECKSUM="${CHECKSUM} 452c8e26a469e8b0ba6cdd800848a0b406648b1b"
+    CHECKSUM="${CHECKSUM} 1686393c8493bbbb2f3f242330b33cba"
+
+    # VERSION=0.18.2
+    # CHECKSUM=6dfd68e459e2c62387579888a867281f
+
+    # VERSION=0.18.1
+    # CHECKSUM=2a7597f4243ee1f03245aeeb02d00956
+
+    # VERSION=0.17
+    # CHECKSUM=f1a89395c4b0d199bea3db62b85f818d
+
+    NAME=OCE-${VERSION}
+    SOURCE=https://github.com/tpaviot/oce/archive/
+    EXTRACTSTO=oce-OCE-${VERSION}
+    PACKING=.tar.gz
+else
     # download git repository (huge download)
-    # if possible, try to download a release tarball (see below)
-    
+    # if possible, try to download a release tarball (see above)
+
     # checkout specific release version
+    # VERSION=OCE-0.18.3
     # VERSION=OCE-0.18.2
-    # checkout current development version (master)
+
+    # or checkout current development version (master)
     VERSION=master
-    
-    if [ "${VERSION}" = "master" ]; then
-        EXTRACTSTO=OCE-master
-    fi
-    
+
     # set up git repository
     NAME=oce.git
-    PACKING=git
     SOURCE=https://github.com/tpaviot/
-    
-else
-    # download release tarball
-    
-    #VERSION=0.17
-    #CHECKSUM=f1a89395c4b0d199bea3db62b85f818d
-    #VERSION=0.18.1
-    #CHECKSUM=2a7597f4243ee1f03245aeeb02d00956
-    VERSION=0.18.2
-    CHECKSUM=6dfd68e459e2c62387579888a867281f
-
-    NAME=OCE-${VERSION}
-    PACKING=.tar.gz
-    SOURCE=https://github.com/tpaviot/oce/archive/
-    EXTRACTSTO=oce-OCE-${VERSION}
+    EXTRACTSTO=OCE-${VERSION}
+    PACKING=git
 fi
-unset CANDI_OPENCASCADE_FROM_GIT
+unset CANDI_OPENCASCADE_LOAD_TARBALL
 
 BUILDCHAIN=cmake
 
 BUILDDIR=${BUILD_PATH}/${EXTRACTSTO}
 INSTALL_PATH=${INSTALL_PATH}/${EXTRACTSTO}
 
-CONFOPTS="-D OCE_INSTALL_PREFIX=${INSTALL_PATH} \
-D OCE_VISUALISATION=OFF \
-D OCE_DISABLE_TKSERVICE_FONT=ON \
-D OCE_DATAEXCHANGE=ON \
-D OCE_OCAF=OFF \
-D OCE_DISABLE_X11=ON \
-"
+CONFOPTS="\
 -D OCE_INSTALL_PREFIX=${INSTALL_PATH} \
 -D OCE_VISUALISATION:BOOL=OFF \
 -D OCE_DISABLE_TKSERVICE_FONT:BOOL=ON \
 -D OCE_DATAEXCHANGE:BOOL=ON \
 -D OCE_OCAF:BOOL=OFF \
+  -D OCE_DISABLE_X11:BOOL=ON"
 
 package_specific_patch () {
     cd ${UNPACK_PATH}/${EXTRACTSTO}

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.