Skip to content

Commit 3f11243

Browse files
authored
Merge pull request #433 from petterreinholdtsen/debian-build-rules
Added more Debian build rule files.
2 parents 0ba007c + 75db3c2 commit 3f11243

File tree

4 files changed

+48
-1
lines changed

4 files changed

+48
-1
lines changed

debian/camotics.docs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
usr/share/doc/camotics/README.md

debian/compat

Lines changed: 0 additions & 1 deletion
This file was deleted.

debian/control

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
Source: camotics
2+
Maintainer: Joseph Coffland <joseph@cauldrondevelopment.com>
3+
Section: science
4+
Priority: optional
5+
Standards-Version: 4.7.0
6+
Homepage: https://camotics.org/
7+
Build-Depends: debhelper-compat (= 13), scons, libcbang0-dev
8+
9+
Package: camotics
10+
Architecture: any
11+
Depends: ${shlibs:Depends}, ${misc:Depends}
12+
Description: 3-axis numerical control machining simulator
13+
CAMotics is an Open-Source software which can simulate 3-axis NC
14+
machining. It is a fast, flexible and user-friendly simulation
15+
software for the DIY and Open-Source community. CAMotics works on
16+
Linux, OS-X and Windows.

debian/rules

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
#!/usr/bin/make -f
2+
export DH_VERBOSE = 1
3+
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
4+
NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
5+
6+
# link to libatomic on armel and mipsel
7+
ifneq (,$(filter $(DEB_HOST_ARCH), armel mipsel))
8+
export DEB_LDFLAGS_MAINT_APPEND += -Wl,--no-as-needed -latomic -Wl,--as-needed
9+
endif
10+
11+
include /usr/share/dpkg/default.mk # provides DEB_VERSION
12+
13+
SCONS_OPTIONS = cycles=0 mode=release sharedlib=1 -j8 werror=0 clang=1
14+
15+
%:
16+
dh $@
17+
18+
override_dh_auto_clean:
19+
scons -c
20+
find . -name __pycache__|xargs rm -rf
21+
rm -rf .sconf_temp config.log
22+
rm -rf .sconsign.dblite
23+
24+
override_dh_auto_build:
25+
scons $(SCONS_OPTIONS) --jobs=$(NUMJOBS) --no-cache
26+
27+
override_dh_usrlocal:
28+
true
29+
30+
override_dh_auto_install:
31+
PREFIX=/usr scons prefix=debian/camotics/usr $(SCONS_OPTIONS) install

0 commit comments

Comments
 (0)