Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions debian/camotics.docs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
usr/share/doc/camotics/README.md
1 change: 0 additions & 1 deletion debian/compat

This file was deleted.

16 changes: 16 additions & 0 deletions debian/control
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
Source: camotics
Maintainer: Joseph Coffland <joseph@cauldrondevelopment.com>
Section: science
Priority: optional
Standards-Version: 4.7.0
Homepage: https://camotics.org/
Build-Depends: debhelper-compat (= 13), scons, libcbang0-dev

Package: camotics
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: 3-axis numerical control machining simulator
CAMotics is an Open-Source software which can simulate 3-axis NC
machining. It is a fast, flexible and user-friendly simulation
software for the DIY and Open-Source community. CAMotics works on
Linux, OS-X and Windows.
31 changes: 31 additions & 0 deletions debian/rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#!/usr/bin/make -f
export DH_VERBOSE = 1
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))

# link to libatomic on armel and mipsel
ifneq (,$(filter $(DEB_HOST_ARCH), armel mipsel))
export DEB_LDFLAGS_MAINT_APPEND += -Wl,--no-as-needed -latomic -Wl,--as-needed
endif

include /usr/share/dpkg/default.mk # provides DEB_VERSION

SCONS_OPTIONS = cycles=0 mode=release sharedlib=1 -j8 werror=0 clang=1

%:
dh $@

override_dh_auto_clean:
scons -c
find . -name __pycache__|xargs rm -rf
rm -rf .sconf_temp config.log
rm -rf .sconsign.dblite

override_dh_auto_build:
scons $(SCONS_OPTIONS) --jobs=$(NUMJOBS) --no-cache

override_dh_usrlocal:
true

override_dh_auto_install:
PREFIX=/usr scons prefix=debian/camotics/usr $(SCONS_OPTIONS) install