summaryrefslogtreecommitdiffstats
path: root/graphics/FreeCAD
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/FreeCAD')
-rw-r--r--graphics/FreeCAD/FreeCAD.SlackBuild55
-rw-r--r--graphics/FreeCAD/FreeCAD.desktop10
-rw-r--r--graphics/FreeCAD/FreeCAD.info8
-rw-r--r--graphics/FreeCAD/FreeCAD.xml8
4 files changed, 33 insertions, 48 deletions
diff --git a/graphics/FreeCAD/FreeCAD.SlackBuild b/graphics/FreeCAD/FreeCAD.SlackBuild
index 2efa262ff0..e54fa1bb08 100644
--- a/graphics/FreeCAD/FreeCAD.SlackBuild
+++ b/graphics/FreeCAD/FreeCAD.SlackBuild
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for FreeCAD
@@ -24,11 +24,13 @@
#
# Maintained by David Spencer <baildon.research@googlemail.com>
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=FreeCAD
-VERSION=${VERSION:-0.17.13541}
-COMMIT=${COMMIT:-9948ee4f1570df9216862a79705afb367b2c6ffb}
+VERSION=${VERSION:-0.19.2}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -38,7 +40,14 @@ if [ -z "$ARCH" ]; then
esac
fi
-CWD=$(pwd)
+# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
+# the name of the created package would be, and then exit. This information
+# could be useful to other scripts.
+if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
+ echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
+ exit 0
+fi
+
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
@@ -62,9 +71,9 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $PRGNAM-$COMMIT
-tar xvf $CWD/$PRGNAM-$COMMIT.tar.gz
-cd $PRGNAM-$COMMIT
+rm -rf $PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
@@ -72,19 +81,6 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-# SBo's OpenCASCADE 6.9.1 includes were in /opt/OpenCASCADE, but for 7.3.0
-# the includes are in /usr/include/opencascade, so let's accept either :)
-if [ -d /usr/include/opencascade ]; then
- occinc=/usr/include/opencascade
-elif [ -d /opt/OpenCASCADE/inc ]; then
- occinc=/opt/OpenCASCADE/inc
- # However, 6.9.1's libs are in /usr/lib${LIBDIRSUFFIX} just like 7.3.0
- # (see OCC_LIBRARY below)
-else
- echo "OpenCASCADE include directory was not found"
- exit 1
-fi
-
mkdir build
cd build
cmake \
@@ -92,11 +88,18 @@ cd build
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_INSTALL_PREFIX=/opt/$PRGNAM \
-DDOCDIR=/usr/doc/$PRGNAM-$VERSION \
- -DOCC_INCLUDE_DIR:PATH=$occinc \
+ -DOCC_INCLUDE_DIR:PATH=/usr/include/opencascade \
-DOCC_LIBRARY:PATH=/usr/lib${LIBDIRSUFFIX} \
-DRESOURCEDIR=/opt/$PRGNAM/share/data \
+ -DBUILD_ENABLE_CXX_STD=C++14 \
+ -DBUILD_QT5=ON \
-DBUILD_FEM=OFF \
+ -DPYTHON_EXECUTABLE=/usr/bin/python3 \
+ -DFREECAD_USE_PYSIDE=ON \
+ -DFREECAD_USE_SHIBOKEN=ON \
+ -DOCCT_CMAKE_FALLBACK=ON \
-DCMAKE_BUILD_TYPE=Release ..
+
make
make install DESTDIR=$PKG
cd ..
@@ -111,13 +114,13 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr
# Copy icon, desktop file and mime info
mkdir -p $PKG/usr/share/applications $PKG/usr/share/pixmaps $PKG/usr/share/mime/packages
-cp $PKG/opt/$PRGNAM/data/freecad.xpm $PKG/usr/share/pixmaps/
-cat $CWD/$PRGNAM.desktop > $PKG/usr/share/applications/$PRGNAM.desktop
-cat $CWD/$PRGNAM.xml > $PKG/usr/share/mime/packages/$PRGNAM.xml
+cp $PKG/opt/$PRGNAM/share/pixmaps/freecad.xpm $PKG/usr/share/pixmaps/
+cp $PKG/opt/$PRGNAM/share/applications/*.desktop $PKG/usr/share/applications/
+cp $PKG/opt/$PRGNAM/share/mime/packages/*.xml $PKG/usr/share/mime/packages/
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
- README.md ChangeLog.txt \
+ README.md ChangeLog.txt LICENSE \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
@@ -126,4 +129,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
diff --git a/graphics/FreeCAD/FreeCAD.desktop b/graphics/FreeCAD/FreeCAD.desktop
deleted file mode 100644
index 07d2a8c7fd..0000000000
--- a/graphics/FreeCAD/FreeCAD.desktop
+++ /dev/null
@@ -1,10 +0,0 @@
-[Desktop Entry]
-Version=1.0
-Type=Application
-Name=FreeCAD
-Comment=General purpose 3D CAD modeler
-Categories=Graphics;
-Exec=/opt/FreeCAD/bin/FreeCAD
-Icon=freecad
-Terminal=false
-StartupNotify=false
diff --git a/graphics/FreeCAD/FreeCAD.info b/graphics/FreeCAD/FreeCAD.info
index b9449797bc..0c35cbfdd1 100644
--- a/graphics/FreeCAD/FreeCAD.info
+++ b/graphics/FreeCAD/FreeCAD.info
@@ -1,10 +1,10 @@
PRGNAM="FreeCAD"
-VERSION="0.17.13541"
+VERSION="0.19.2"
HOMEPAGE="https://www.freecadweb.org/"
-DOWNLOAD="https://github.com/FreeCAD/FreeCAD/archive/9948ee4/FreeCAD-9948ee4f1570df9216862a79705afb367b2c6ffb.tar.gz"
-MD5SUM="1cc16667376a7c9d981319144b857e46"
+DOWNLOAD="https://github.com/FreeCAD/FreeCAD/archive/0.19.2/FreeCAD-0.19.2.tar.gz"
+MD5SUM="5c13477c7cc2e9a8324da2e5aa47ef66"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES="OpenCASCADE Pivy matplotlib pyside pyside-tools shiboken xerces-c"
+REQUIRES="OpenCASCADE Pivy pyside2 shiboken2 xerces-c"
MAINTAINER="David Spencer"
EMAIL="baildon.research@googlemail.com"
diff --git a/graphics/FreeCAD/FreeCAD.xml b/graphics/FreeCAD/FreeCAD.xml
deleted file mode 100644
index 9a27f098b7..0000000000
--- a/graphics/FreeCAD/FreeCAD.xml
+++ /dev/null
@@ -1,8 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<mime-info xmlns='http://www.freedesktop.org/standards/shared-mime-info'>
- <mime-type type="application/x-extension-fcstd">
- <sub-class-of type="application/zip"/>
- <comment>FreeCAD document</comment>
- <glob pattern="*.fcstd"/>
- </mime-type>
-</mime-info>