openscad: install openscad, examples and libraries

This commit is contained in:
Henrik Grimler 2019-10-26 10:43:16 +02:00
parent a25d559f89
commit fffc39cd59
2 changed files with 21 additions and 1 deletions

View File

@ -6,10 +6,16 @@ TERMUX_PKG_SRCURL=https://files.openscad.org/openscad-$TERMUX_PKG_VERSION.src.ta
TERMUX_PKG_SHA256=0a16c4263ce52380819dd91c609a719d38f12f6b8c4da0e828dcbe5b70996f59
TERMUX_PKG_DEPENDS="boost, cgal, double-conversion, fontconfig, harfbuzz, libzip"
TERMUX_PKG_BUILD_DEPENDS="eigen"
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
-DBoost_USE_STATIC_LIBS=OFF
-DBUILD_SHARED_LIBS=ON
-DBUILD_STATIC_LIBS=OFF
-DNULLGL=ON
"
termux_step_make_install () {
mkdir -p $TERMUX_PREFIX/share/openscad
install openscad $TERMUX_PREFIX/bin/
cp -r $TERMUX_PKG_SRCDIR/libraries $TERMUX_PREFIX/share/openscad/
cp -r $TERMUX_PKG_SRCDIR/examples $TERMUX_PREFIX/share/openscad/
}

View File

@ -0,0 +1,14 @@
--- ../boost.prf.orig 2019-10-25 22:38:26.246010994 +0200
+++ ./features/boost.prf 2019-10-25 22:54:58.104675990 +0200
@@ -69,10 +69,6 @@
}
}
-isEmpty(BOOST_LINK_FLAGS) {
- unix|macx {
- BOOST_LINK_FLAGS = -lboost_thread -lboost_program_options -lboost_filesystem -lboost_system -lboost_regex
- }
-}
+BOOST_LINK_FLAGS = -lboost_thread -lboost_program_options -lboost_filesystem -lboost_system -lboost_regex
LIBS += $$BOOST_LINK_FLAGS