New package: Slic3rPE-1.42.0
closes #9185 Co-authored-by: maxice8 <thinkabit.ukim@gmail.com>
This commit is contained in:
parent
c6bdb25622
commit
e7ab0a09c9
|
@ -0,0 +1,27 @@
|
|||
diff --git src/png/error.hpp src/png/error.hpp
|
||||
index c67f976..8ee2c87 100644
|
||||
--- src/png/error.hpp
|
||||
+++ src/png/error.hpp
|
||||
@@ -100,7 +100,7 @@ namespace png
|
||||
strerror_s(buf, ERRBUF_SIZE, errnum);
|
||||
return std::string(buf);
|
||||
#else
|
||||
-#if (_POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 600) && !_GNU_SOURCE
|
||||
+#if (_POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 600) && !_GNU_SOURCE || !defined(__GLIBC__)
|
||||
char buf[ERRBUF_SIZE] = { 0 };
|
||||
strerror_r(errnum, buf, ERRBUF_SIZE);
|
||||
return std::string(buf);
|
||||
diff --git src/slic3r/Utils/Serial.cpp src/slic3r/Utils/Serial.cpp
|
||||
index 601719b..43dab23 100644
|
||||
--- src/slic3r/Utils/Serial.cpp
|
||||
+++ src/slic3r/Utils/Serial.cpp
|
||||
@@ -42,7 +42,7 @@
|
||||
#ifndef _WIN32
|
||||
#include <sys/ioctl.h>
|
||||
#include <sys/time.h>
|
||||
- #include <sys/unistd.h>
|
||||
+ #include <unistd.h>
|
||||
#include <sys/select.h>
|
||||
#endif
|
||||
|
||||
|
|
@ -0,0 +1,22 @@
|
|||
# Template file for 'Slic3rPE'
|
||||
pkgname=Slic3rPE
|
||||
version=1.42.0
|
||||
revision=1
|
||||
_status="-alpha7"
|
||||
wrksrc="Slic3r-version_${version}${_status}"
|
||||
build_style=cmake
|
||||
configure_args="-DSLIC3R_WX_STABLE=1 -DSLIC3R_FHS=1"
|
||||
hostmakedepends="pkg-config"
|
||||
makedepends="boost-devel tbb-devel libcurl-devel nlopt-devel gtest-devel
|
||||
wxWidgets-devel glu-devel libpng-devel"
|
||||
short_desc="G-code generator for 3D printers, Prusa Edition"
|
||||
maintainer="Jasper Chan <jasperchan515@gmail.com>"
|
||||
license="GPL-3.0-or-later"
|
||||
homepage="https://www.prusa3d.com/slic3r-prusa-edition/"
|
||||
distfiles="https://github.com/prusa3d/Slic3r/archive/version_${version}${_status}.tar.gz"
|
||||
checksum=ebe991a3fbd2fc49560d59942353c5e32f2373365e903b7979a0312c2bf97ccf
|
||||
nocross="tries to run avrdude-conf-gen which is compiled for target"
|
||||
|
||||
post_install() {
|
||||
mv ${DESTDIR}/usr/bin/slic3r-{gui,pe}
|
||||
}
|
Loading…
Reference in New Issue