Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomasz CEDRO <cederom@tlen.pl>2014-07-11 19:22:46 +0400
committerTomasz CEDRO <cederom@tlen.pl>2014-07-11 20:11:36 +0400
commitbc35a1a876aaa7d27bda77b689160c83a9a78529 (patch)
tree5ee10aa26446cf612d9c3429d2f9380ef901470e /scripts
parent70c16228ca84ac002009842b6dcd6b9b2c9b69d6 (diff)
Initial package.sh script builder for FreeBSD.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/freebsd/cura2
-rwxr-xr-xscripts/freebsd/cura.desktop10
-rwxr-xr-xscripts/freebsd/cura.py34
3 files changed, 46 insertions, 0 deletions
diff --git a/scripts/freebsd/cura b/scripts/freebsd/cura
new file mode 100755
index 0000000000..63cc06128b
--- /dev/null
+++ b/scripts/freebsd/cura
@@ -0,0 +1,2 @@
+#!/bin/sh
+PYTHONPATH=$PYTHONPATH:/usr/local/share/cura/ `echo /usr/bin/env python` /usr/local/share/cura/cura.py "$@"
diff --git a/scripts/freebsd/cura.desktop b/scripts/freebsd/cura.desktop
new file mode 100755
index 0000000000..aa62b2c2ff
--- /dev/null
+++ b/scripts/freebsd/cura.desktop
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Type=Application
+Name=Cura
+Comment=Cura is a complete and open slicing solution for RepRap 3D printers
+Icon=/usr/local/share/cura/resources/images/c.png
+Exec=/usr/local/bin/cura
+Path=/usr/local/share/cura/
+StartupNotify=true
+Terminal=false
+Categories=GNOME;GTK;Utility;
diff --git a/scripts/freebsd/cura.py b/scripts/freebsd/cura.py
new file mode 100755
index 0000000000..ef85a7c852
--- /dev/null
+++ b/scripts/freebsd/cura.py
@@ -0,0 +1,34 @@
+#!/usr/bin/env python
+
+import os, sys
+
+sys.path.insert(1, os.path.dirname(__file__))
+
+try:
+ import numpy
+ import OpenGL
+ import wx
+ import serial
+ import power
+except ImportError as e:
+ if e.message[0:16] == 'No module named ':
+ module = e.message[16:]
+
+ if module == 'OpenGL':
+ module = 'PyOpenGL'
+ elif module == 'serial':
+ module = 'pyserial'
+ print 'Requires ' + module
+
+ if module == 'power':
+ print "Install from: https://github.com/GreatFruitOmsk/Power"
+ else:
+ print "Try sudo easy_install " + module
+ print e.message
+
+ exit(1)
+
+
+import Cura.cura as cura
+
+cura.main()