pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

libnest2d-ultimaker: Import libnest2d-ultimaker-4.11.0 as libnest2d-ultimaker



Module Name:	pkgsrc-wip
Committed By:	Atsushi Toyokura <asteria.at%gmail.com@localhost>
Pushed By:	steleto
Date:		Sat Nov 6 18:21:16 2021 +0900
Changeset:	0daaa497d7f0252bc03017dfb200fcdd302b9866

Modified Files:
	Makefile
Added Files:
	libnest2d-ultimaker/DESCR
	libnest2d-ultimaker/Makefile
	libnest2d-ultimaker/PLIST
	libnest2d-ultimaker/buildlink3.mk
	libnest2d-ultimaker/distinfo
	libnest2d-ultimaker/patches/patch-cmake__modules_FindClipper.cmake
	libnest2d-ultimaker/patches/patch-cmake__modules_FindNLopt.cmake

Log Message:
libnest2d-ultimaker: Import libnest2d-ultimaker-4.11.0 as libnest2d-ultimaker

Libnest2D is a library and framework for the 2D bin packaging problem.
Inspired from the SVGNest(svgnest.com) Javascript library the
project is built from scratch in C++11. The library is written with a
policy that it should be usable out of the box with a very simple
interface but has to be customizable to the very core as well. The
algorithms are defined in a header only fashion with templated
geometry types. These geometries can have custom or already existing
implementation to avoid copying or having unnecessary dependencies.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=0daaa497d7f0252bc03017dfb200fcdd302b9866

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 Makefile                                           |  1 +
 libnest2d-ultimaker/DESCR                          |  8 +++++
 libnest2d-ultimaker/Makefile                       | 29 ++++++++++++++++++
 libnest2d-ultimaker/PLIST                          | 34 ++++++++++++++++++++++
 libnest2d-ultimaker/buildlink3.mk                  | 17 +++++++++++
 libnest2d-ultimaker/distinfo                       |  7 +++++
 .../patches/patch-cmake__modules_FindClipper.cmake | 24 +++++++++++++++
 .../patches/patch-cmake__modules_FindNLopt.cmake   | 24 +++++++++++++++
 8 files changed, 144 insertions(+)

diffs:
diff --git a/Makefile b/Makefile
index 57393d19aa..e55a423d4d 100644
--- a/Makefile
+++ b/Makefile
@@ -2125,6 +2125,7 @@ SUBDIR+=	libmpg123
 SUBDIR+=	libmpq
 SUBDIR+=	libmusclecard
 SUBDIR+=	libncl
+SUBDIR+=	libnest2d-ultimaker
 SUBDIR+=	libnestedsums
 SUBDIR+=	libneural
 SUBDIR+=	libnfo
diff --git a/libnest2d-ultimaker/DESCR b/libnest2d-ultimaker/DESCR
new file mode 100644
index 0000000000..b196d1d56b
--- /dev/null
+++ b/libnest2d-ultimaker/DESCR
@@ -0,0 +1,8 @@
+Libnest2D is a library and framework for the 2D bin packaging problem.
+Inspired from the SVGNest(svgnest.com) Javascript library the
+project is built from scratch in C++11. The library is written with a
+policy that it should be usable out of the box with a very simple
+interface but has to be customizable to the very core as well. The
+algorithms are defined in a header only fashion with templated
+geometry types. These geometries can have custom or already existing
+implementation to avoid copying or having unnecessary dependencies.
diff --git a/libnest2d-ultimaker/Makefile b/libnest2d-ultimaker/Makefile
new file mode 100644
index 0000000000..c5a2b8de34
--- /dev/null
+++ b/libnest2d-ultimaker/Makefile
@@ -0,0 +1,29 @@
+# $NetBSD$
+
+GITHUB_PROJECT=	libnest2d
+GITHUB_TAG=	4.11.0
+DISTNAME=	${GITHUB_TAG}
+PKGNAME=	${GITHUB_PROJECT}-ultimaker-${DISTNAME}
+CATEGORIES=	devel
+MASTER_SITES=	${MASTER_SITE_GITHUB:=Ultimaker/}
+DIST_SUBDIR=	${GITHUB_PROJECT}
+
+MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=	https://github.com/Ultimaker/libnest2d/
+COMMENT=	2D irregular bin packaging and nesting library written in modern C++
+LICENSE=	gnu-lgpl-v3
+
+USE_CMAKE=	yes
+USE_LANGUAGES=	c c++
+
+SUBST_CLASSES+=			fix-paths
+SUBST_STAGE.fix-paths=		pre-configure
+SUBST_MESSAGE.fix-paths=	Fixing absolute paths.
+SUBST_FILES.fix-paths=		cmake_modules/FindClipper.cmake
+SUBST_FILES.fix-paths+=		cmake_modules/FindNLopt.cmake
+SUBST_SED.fix-paths=		-e "s,@prefix@,${PREFIX},g"
+
+.include "../../devel/boost-headers/buildlink3.mk"
+.include "../../wip/nlopt/buildlink3.mk"
+.include "../../wip/polyclipping/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/libnest2d-ultimaker/PLIST b/libnest2d-ultimaker/PLIST
new file mode 100644
index 0000000000..108f274d88
--- /dev/null
+++ b/libnest2d-ultimaker/PLIST
@@ -0,0 +1,34 @@
+@comment $NetBSD$
+include/libnest2d/backends/clipper/clipper_polygon.hpp
+include/libnest2d/backends/clipper/geometries.hpp
+include/libnest2d/common.hpp
+include/libnest2d/geometry_traits.hpp
+include/libnest2d/geometry_traits_nfp.hpp
+include/libnest2d/libnest2d.hpp
+include/libnest2d/nester.hpp
+include/libnest2d/optimizer.hpp
+include/libnest2d/optimizers/nlopt/genetic.hpp
+include/libnest2d/optimizers/nlopt/nlopt_boilerplate.hpp
+include/libnest2d/optimizers/nlopt/simplex.hpp
+include/libnest2d/optimizers/nlopt/subplex.hpp
+include/libnest2d/parallel.hpp
+include/libnest2d/placers/bottomleftplacer.hpp
+include/libnest2d/placers/nfpplacer.hpp
+include/libnest2d/placers/placer_boilerplate.hpp
+include/libnest2d/selections/djd_heuristic.hpp
+include/libnest2d/selections/filler.hpp
+include/libnest2d/selections/firstfit.hpp
+include/libnest2d/selections/selection_boilerplate.hpp
+include/libnest2d/utils/bigint.hpp
+include/libnest2d/utils/boost_alg.hpp
+include/libnest2d/utils/metaloop.hpp
+include/libnest2d/utils/rational.hpp
+include/libnest2d/utils/rotcalipers.hpp
+include/libnest2d/utils/rotfinder.hpp
+lib/cmake/Libnest2D/FindClipper.cmake
+lib/cmake/Libnest2D/FindNLopt.cmake
+lib/cmake/Libnest2D/FindTBB.cmake
+lib/cmake/Libnest2D/Libnest2DConfig.cmake
+lib/cmake/Libnest2D/Libnest2DConfigVersion.cmake
+lib/cmake/Libnest2D/Libnest2DTargets.cmake
+lib/cmake/Libnest2D/RPPackageVersions.cmake
diff --git a/libnest2d-ultimaker/buildlink3.mk b/libnest2d-ultimaker/buildlink3.mk
new file mode 100644
index 0000000000..765c8655c2
--- /dev/null
+++ b/libnest2d-ultimaker/buildlink3.mk
@@ -0,0 +1,17 @@
+# $NetBSD$
+
+BUILDLINK_TREE+=	libnest2d-ultimaker
+
+.if !defined(LIBNEST2D_ULTIMAKER_BUILDLINK3_MK)
+LIBNEST2D_ULTIMAKER_BUILDLINK3_MK:=
+
+BUILDLINK_DEPMETHOD.libnest2d-ultimaker?=	build
+BUILDLINK_API_DEPENDS.libnest2d-ultimaker+=	libnest2d-ultimaker>=4.11.0
+BUILDLINK_PKGSRCDIR.libnest2d-ultimaker?=	../../wip/libnest2d-ultimaker
+
+.include "../../devel/boost-headers/buildlink3.mk"
+.include "../../wip/nlopt/buildlink3.mk"
+.include "../../wip/polyclipping/buildlink3.mk"
+.endif	# LIBNEST2D_ULTIMAKER_BUILDLINK3_MK
+
+BUILDLINK_TREE+=	-libnest2d-ultimaker
diff --git a/libnest2d-ultimaker/distinfo b/libnest2d-ultimaker/distinfo
new file mode 100644
index 0000000000..177e210e7a
--- /dev/null
+++ b/libnest2d-ultimaker/distinfo
@@ -0,0 +1,7 @@
+$NetBSD$
+
+BLAKE2s (libnest2d/4.11.0.tar.gz) = c326a7af22314af0e687212b14b7c8e648101e29eda1ac1579bd86d996d27c16
+SHA512 (libnest2d/4.11.0.tar.gz) = 9d4c71f20281d28aedaada3e74398ba178130b1d3c60b9295a4e41f41fd9e2dc908de3aba55d3f48bab8197e6d1de291c3467f6e041a8125891cfd4505b1c206
+Size (libnest2d/4.11.0.tar.gz) = 366605 bytes
+SHA1 (patch-cmake__modules_FindClipper.cmake) = 2f76689999c3bda7822f023692917438b58ff773
+SHA1 (patch-cmake__modules_FindNLopt.cmake) = 2aa22fc4a5c81c124bcc79af8c4dab237e972434
diff --git a/libnest2d-ultimaker/patches/patch-cmake__modules_FindClipper.cmake b/libnest2d-ultimaker/patches/patch-cmake__modules_FindClipper.cmake
new file mode 100644
index 0000000000..a61faf4439
--- /dev/null
+++ b/libnest2d-ultimaker/patches/patch-cmake__modules_FindClipper.cmake
@@ -0,0 +1,24 @@
+$NetBSD$
+
+Add ${PREFIX} path
+
+--- cmake_modules/FindClipper.cmake.orig	2021-01-12 14:05:41.769561283 +0000
++++ cmake_modules/FindClipper.cmake
+@@ -32,6 +32,8 @@ FIND_PATH(CLIPPER_INCLUDE_DIRS clipper.h
+     /opt/local/include/polyclipping/
+     /usr/local/include/
+     /usr/local/include/polyclipping/
++    @prefix@/include/
++    @prefix@/include/polyclipping/
+     /usr/include
+     /usr/include/polyclipping/)
+ 
+@@ -49,6 +51,8 @@ set(LIB_SEARCHDIRS 
+     /opt/local/lib/polyclipping/
+     /usr/local/lib/
+     /usr/local/lib/polyclipping/
++    @prefix@/lib/
++    @prefix@/lib/polyclipping/
+     /usr/lib/polyclipping
+ )
+ 
diff --git a/libnest2d-ultimaker/patches/patch-cmake__modules_FindNLopt.cmake b/libnest2d-ultimaker/patches/patch-cmake__modules_FindNLopt.cmake
new file mode 100644
index 0000000000..833ff84430
--- /dev/null
+++ b/libnest2d-ultimaker/patches/patch-cmake__modules_FindNLopt.cmake
@@ -0,0 +1,24 @@
+$NetBSD$
+
+Add ${PREFIX} path
+
+--- cmake_modules/FindNLopt.cmake.orig	2021-01-12 14:09:17.158086606 +0000
++++ cmake_modules/FindNLopt.cmake
+@@ -29,6 +29,8 @@ FIND_PATH(NLopt_INCLUDE_DIRS nlopt.hpp
+     /opt/local/include/nlopt/
+     /usr/local/include/
+     /usr/local/include/nlopt/
++    @prefix@/include/
++    @prefix@/include/nlopt/
+     /usr/include
+     /usr/include/nlopt/)
+ 
+@@ -44,6 +46,8 @@ set(LIB_SEARCHDIRS 
+     /opt/local/lib/nlopt/
+     /usr/local/lib/
+     /usr/local/lib/nlopt/
++    @prefix@/lib/
++    @prefix@/lib/nlopt/
+     /usr/lib/nlopt
+ )
+ 


Home | Main Index | Thread Index | Old Index