summaryrefslogtreecommitdiff
path: root/graphics/FreeCAD/FreeCAD.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/FreeCAD/FreeCAD.SlackBuild')
-rw-r--r--graphics/FreeCAD/FreeCAD.SlackBuild41
1 files changed, 35 insertions, 6 deletions
diff --git a/graphics/FreeCAD/FreeCAD.SlackBuild b/graphics/FreeCAD/FreeCAD.SlackBuild
index 75b816f84e..f893ef1a6a 100644
--- a/graphics/FreeCAD/FreeCAD.SlackBuild
+++ b/graphics/FreeCAD/FreeCAD.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for FreeCAD
-# Copyright 2010-2011 Niels Horn, Rio de Janeiro, RJ, Brazil
+# Copyright 2010-2012 Niels Horn, Rio de Janeiro, RJ, Brazil
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -22,10 +22,10 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-# revision date: 2011/08/10
+# revision date: 2012/01/04
PRGNAM=FreeCAD
-VERSION=${VERSION:-0.11.3729}
+VERSION=${VERSION:-0.12.5284}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -64,13 +64,15 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$SRCNAM-$VERSION.tar.gz
+tar xvf $CWD/$SRCNAM-$VERSION.tar.xz
cd $PRGNAM-$VERSION
chown -R root:root .
chmod -R u+w,go+r-w,a-s .
-# Patch for OpenCASCADE-6.5.x
-patch -p1 < $CWD/OpenCASCADE65.patch
+# FreeCAD is ready for OpenCASCADE 6.5.{0,1} - patch for 6.5.2
+patch -p1 < $CWD/OpenCASCADE652.patch
+
+./autogen.sh
# Fix references to old boost_*-mt libs
sed -i "/-lboost/s/-mt\"/\"/g" configure
@@ -92,9 +94,36 @@ CXXFLAGS="$SLKCFLAGS" \
make
make install DESTDIR=$PKG
+### This is for future use. FreeCAD is switching to cmake, but is is not
+### 100% operational yet.
+### These are the options that *should* do it:
+
+#mkdir build
+#cd build
+# cmake \
+# -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
+# -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
+# -DCMAKE_INSTALL_PREFIX=/opt/$PRGNAM \
+# -DRESOURCEDIR=/opt/$PRGNAM/share/data \
+# -DLIB_SUFFIX=${LIBDIRSUFFIX} \
+# -DMAN_INSTALL_DIR=/usr/man \
+# -DDOCDIR=/usr/doc/$PRGNAM-$VERSION \
+# -DOCC_INCLUDE_DIR=/usr/include/OpenCASCADE \
+# -DOCC_LIBRARY=/usr/lib${LIBDIRSUFFIX} \
+# -DCMAKE_BUILD_TYPE=Release ..
+#
+# make V=1
+# make install DESTDIR=$PKG
+#cd ..
+
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
+# Get man page from debian
+mkdir -p $PKG/usr/man/man1
+cat package/debian/freecad.1 > $PKG/usr/man/man1/FreeCAD.1
+gzip -9 $PKG/usr/man/man1/FreeCAD.1
+
# Copy icon & desktop file
mkdir -p $PKG/usr/share/{applications,pixmaps}
cp $PKG/opt/$PRGNAM/share/freecad.xpm $PKG/usr/share/pixmaps/