diff --git a/debian/camotics.docs b/debian/camotics.docs new file mode 100644 index 00000000..2fb80d18 --- /dev/null +++ b/debian/camotics.docs @@ -0,0 +1 @@ +usr/share/doc/camotics/README.md diff --git a/debian/compat b/debian/compat deleted file mode 100644 index 45a4fb75..00000000 --- a/debian/compat +++ /dev/null @@ -1 +0,0 @@ -8 diff --git a/debian/control b/debian/control new file mode 100644 index 00000000..8898bde9 --- /dev/null +++ b/debian/control @@ -0,0 +1,16 @@ +Source: camotics +Maintainer: Joseph Coffland +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. diff --git a/debian/rules b/debian/rules new file mode 100755 index 00000000..9239f5b2 --- /dev/null +++ b/debian/rules @@ -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