From f3afdd179e958fbdf6d1ca517d682f29a5ce2c70 Mon Sep 17 00:00:00 2001 From: Karl Nilsson Date: Wed, 29 Jul 2020 23:51:18 -0400 Subject: [PATCH] New package: opencamlib-2019.07 --- common/shlibs | 1 + srcpkgs/opencamlib-devel | 1 + srcpkgs/opencamlib-python3 | 1 + srcpkgs/opencamlib/template | 36 ++++++++++++++++++++++++++++++++++++ 4 files changed, 39 insertions(+) create mode 120000 srcpkgs/opencamlib-devel create mode 120000 srcpkgs/opencamlib-python3 create mode 100644 srcpkgs/opencamlib/template diff --git a/common/shlibs b/common/shlibs index a6b5737b845..31f7806cdd0 100644 --- a/common/shlibs +++ b/common/shlibs @@ -3982,6 +3982,7 @@ libtexlua53.so.5 texlive-LuaTeX-20200406_1 libptexenc.so.1 texlive-20200406_1 libsynctex.so.2 libsynctex-20200406_3 libdolphinvcs.so.5 dolphin-20.04.3_1 +libocl.so.2019.07 opencamlib-2019.07_1 libcglm.so.0 cglm-0.7.6_1 libfcft.so.3 fcft-2.2.2_1 libaml.so.0 aml-0.1.0_1 diff --git a/srcpkgs/opencamlib-devel b/srcpkgs/opencamlib-devel new file mode 120000 index 00000000000..04163ffbe65 --- /dev/null +++ b/srcpkgs/opencamlib-devel @@ -0,0 +1 @@ +opencamlib/ \ No newline at end of file diff --git a/srcpkgs/opencamlib-python3 b/srcpkgs/opencamlib-python3 new file mode 120000 index 00000000000..04163ffbe65 --- /dev/null +++ b/srcpkgs/opencamlib-python3 @@ -0,0 +1 @@ +opencamlib/ \ No newline at end of file diff --git a/srcpkgs/opencamlib/template b/srcpkgs/opencamlib/template new file mode 100644 index 00000000000..ba58b45a18c --- /dev/null +++ b/srcpkgs/opencamlib/template @@ -0,0 +1,36 @@ +# Template file for 'opencamlib' +pkgname=opencamlib +version=2019.07 +revision=1 +build_style=cmake +configure_args="-DBUILD_PY_LIB=ON -DUSE_PY_3=ON -DVERSION_STRING=${version}" +hostmakedepends="python3-devel" +makedepends="boost-devel libboost_program_options1.72 libgomp-devel" +short_desc="Open source computer aided manufacturing algorithms library" +maintainer="Karl Nilsson " +license="LGPL-2.1-or-later" +homepage="http://www.anderswallin.net/CAM" +distfiles="https://github.com/aewallin/opencamlib/archive/${version}.tar.gz" +checksum=e08ab50672e24b51d30938ac60a6caa38bd8f5fb5f8fa3375dec0e69031cb620 + +subpackages="opencamlib-devel" +# opencamlib-python3 cannot be cross compiled because of vtk-python3 +if [ -z "$CROSS_BUILD" ]; then + subpackages+=" opencamlib-python3" +fi + +opencamlib-devel_package() { + depends="${sourcepkg}>=${version}_${revision}" + short_desc+=" - development files" + pkg_install() { + vmove usr/include + } +} + +opencamlib-python3_package() { + short_desc+=" - Python3 bindings" + depends="vtk-python3" + pkg_install() { + vmove "usr/lib/python3*" + } +}