aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTim Orling <TicoTimo@gmail.com>2014-07-14 15:35:50 -0700
committerTim Orling <TicoTimo@gmail.com>2014-08-24 19:47:44 -0700
commit16fec8f06d52e66eb6ad8e2333003a04ba5ac326 (patch)
treec6a7d292cd640532968f5d157ba50bed02e5f15e
parent7d07455d5a5b12428a5778d1316bd62b0f9940c9 (diff)
downloadmeta-openembedded-contrib-timo/meta-maker.tar.gz
meta-openembedded-contrib-timo/meta-maker.tar.bz2
meta-openembedded-contrib-timo/meta-maker.zip
slic3r, libslic3r-perl, libslic3r-xs-perl: tweaks for packagingtimo/meta-maker
* Add libslic3r-perl to install Slic3r.pm * Tweak libslic3r-xs-perl to install in proper location * Install slic3r.pl in ${bindir} * Additional RDEPENDS for slic3r.pl Still a work-in-progress.
-rw-r--r--meta-maker/recipes-printing/slic3r/libslic3r-perl_git.bb55
-rw-r--r--meta-maker/recipes-printing/slic3r/libslic3r-xs-perl_git.bb5
-rw-r--r--meta-maker/recipes-printing/slic3r/slic3r_git.bb18
3 files changed, 77 insertions, 1 deletions
diff --git a/meta-maker/recipes-printing/slic3r/libslic3r-perl_git.bb b/meta-maker/recipes-printing/slic3r/libslic3r-perl_git.bb
new file mode 100644
index 0000000000..53f0eb699c
--- /dev/null
+++ b/meta-maker/recipes-printing/slic3r/libslic3r-perl_git.bb
@@ -0,0 +1,55 @@
+SUMMARY = "Slic3r - G-code generator for 3D printers"
+DESCRIPTION = "Slic3r takes 3D models (STL, OBJ, AMF) and converts them into \
+G-code instructions for 3D printers. It's compatible with any modern printer \
+based on the RepRap toolchain, including all those based on the Marlin, \
+Sprinter and Repetier firmware. It also works with Mach3 and LinuxCNC \
+controllers. \
+"
+HOMEPAGE = "http://slic3r.org/"
+SECTION = "devel"
+
+LICENSE = "AGPL-3.0 | CC-BY-3.0"
+LIC_FILES_CHKSUM = "file://README.md;beginline=77;endline=84;md5=4e907cb01787f6711506359a57c22961"
+
+export SLIC3R_NO_AUTO = "1"
+export PERL_MM_USE_DEFAULT = "1"
+export PERL_AUTOINSTALL = "--skipdeps"
+export PERL_MM_OPT = "INSTALLDIRS=vendor DESTDIR=${D}"
+export PERL_MB_OPT = "--installdirs vendor --destdir ${D}"
+export MODULEBUILDRC = "/dev/null"
+
+#DEPENDS = " libcapture-tiny-perl-native \
+# libencode-locale-perl-native \
+# libextutils-cppguess-perl-native \
+# libextutils-parsexs-perl-native \
+# libextutils-typemaps-default-perl-native \
+# libio-stringy-perl-native \
+# libmath-planepath-perl-native \
+# libmodule-build-withxspp-perl-native \
+# libmoo-perl-native \
+#"
+
+SRC_URI = "git://github.com/alexrj/Slic3r.git"
+SRCREV = "f82a8475a1ccd7ca9ebddd31d6b60953a26b5f39"
+
+S = "${WORKDIR}/git"
+
+inherit cpan-base
+
+do_install() {
+ # Top level Build.PL does not generate a Build script
+ # Hence, Slic3r.pm is not installed.
+ if [ "${@is_target(d)}" = "yes" ]; then
+ install -d ${STAGING_LIBDIR}/perl/vendor_perl/${@get_perl_version(d)}
+ install lib/Slic3r.pm ${STAGING_LIBDIR}/perl/vendor_perl/${@get_perl_version(d)}/Slic3r.pm
+ else
+ # -native
+ install -d ${STAGING_LIBDIR_NATIVE}/perl-native/perl/${@get_perl_version(d)}
+ install lib/Slic3r.pm ${STAGING_LIBDIR_NATIVE}/perl-native/perl/${@get_perl_version(d)}/Slic3r.pm
+ fi
+}
+
+RDEPENDS_${PN} = " libslic3r-xs-perl \
+"
+
+BBCLASSEXTEND = "native"
diff --git a/meta-maker/recipes-printing/slic3r/libslic3r-xs-perl_git.bb b/meta-maker/recipes-printing/slic3r/libslic3r-xs-perl_git.bb
index e155bdeb90..8de002147c 100644
--- a/meta-maker/recipes-printing/slic3r/libslic3r-xs-perl_git.bb
+++ b/meta-maker/recipes-printing/slic3r/libslic3r-xs-perl_git.bb
@@ -12,6 +12,11 @@ LICENSE = "AGPL-3.0 | CC-BY-3.0"
LIC_FILES_CHKSUM = "file://../README.md;beginline=77;endline=84;md5=4e907cb01787f6711506359a57c22961"
export SLIC3R_NO_AUTO = "1"
+export PERL_MM_USE_DEFAULT = "1"
+export PERL_AUTOINSTALL = "--skipdeps"
+export PERL_MM_OPT = "INSTALLDIRS=vendor DESTDIR=${D}"
+export PERL_MB_OPT = "--installdirs vendor --destdir ${D}"
+export MODULEBUILDRC = "/dev/null"
export EXTRA_CPAN_BUILD_FLAGS = " --xs"
DEPENDS = " libcapture-tiny-perl-native \
diff --git a/meta-maker/recipes-printing/slic3r/slic3r_git.bb b/meta-maker/recipes-printing/slic3r/slic3r_git.bb
index 6c45a53af8..3e7d2f431f 100644
--- a/meta-maker/recipes-printing/slic3r/slic3r_git.bb
+++ b/meta-maker/recipes-printing/slic3r/slic3r_git.bb
@@ -12,12 +12,16 @@ LICENSE = "AGPL-3.0 | CC-BY-3.0"
LIC_FILES_CHKSUM = "file://README.md;beginline=77;endline=84;md5=4e907cb01787f6711506359a57c22961"
export SLIC3R_NO_AUTO = "1"
+export PERL_MM_USE_DEFAULT = "1"
+export PERL_AUTOINSTALL = "--skipdeps"
+export PERL_MM_OPT = "INSTALLDIRS=vendor DESTDIR=${D}"
+export PERL_MB_OPT = "--installdirs vendor --destdir ${D}"
+export MODULEBUILDRC = "/dev/null"
DEPENDS = " libcapture-tiny-perl-native \
libconstant-defer-perl-native \
libencode-locale-perl-native \
libextutils-cppguess-perl-native \
- libextutils-parsexs-perl-native \
libextutils-typemaps-default-perl-native \
libio-stringy-perl-native \
libmath-libm-perl-native \
@@ -47,6 +51,7 @@ RDEPENDS_${PN} = " libencode-locale-perl \
libextutils-parsexs-perl \
perl-module-file-basename \
perl-module-file-spec \
+ perl-module-findbin \
perl-module-getopt-long \
libmath-planepath-perl \
libmodule-build-withxspp-perl \
@@ -54,6 +59,7 @@ RDEPENDS_${PN} = " libencode-locale-perl \
perl-module-scalar-util \
libtest-harness-perl \
libio-scalar-perl \
+ libslic3r-perl \
libslic3r-xs-perl \
perl-module-time-hires \
"
@@ -63,5 +69,15 @@ RECOMMENDS += " libclass-xsaccessor-perl-native \
libxml-sax-expatxs-perl-native \
libwx-perl-native \
"
+do_compile() {
+ bbnote "No Build script generated. Skip."
+}
+
+do_install() {
+ install -d ${D}${bindir}
+ install -m 755 ${S}/slic3r.pl ${D}${bindir}
+}
+
+FILES_${PN} = "${bindir}/slic3r.pl"
BBCLASSEXTEND = "native"