Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Mar 2024 10:36:11 +0100
From:      Daniel Engberg <daniel.engberg.lists@pyret.net>
To:        Michael Zhilin <mizhka@FreeBSD.org>
Cc:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org, lwhsu@FreeBSD.org
Subject:   Re: git: 9784fb237cdf - main - cad/libbgcode: new port
Message-ID:  <9e4f95a9f17095b157b809e469495723@mail.infomaniak.com>
In-Reply-To: <202403281937.42SJbYnV072687@gitrepo.freebsd.org>
References:  <202403281937.42SJbYnV072687@gitrepo.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2024-03-28T20:37:34.000+01:00, Michael Zhilin <mizhka@FreeBSD.org> wrote=
:
>  The branch main has been updated by mizhka:
>=20
> URL: https://cgit.FreeBSD.org/ports/commit/?id=3D9784fb237cdf00b5f379c90d=
f5c2d9f2bec97ea3
>=20
> commit 9784fb237cdf00b5f379c90df5c2d9f2bec97ea3
> Author:     Michael Zhilin <mizhka@FreeBSD.org>
> AuthorDate: 2024-03-06 19:53:23 +0000
> Commit:     Michael Zhilin <mizhka@FreeBSD.org>
> CommitDate: 2024-03-28 19:31:42 +0000
>=20
>     cad/libbgcode: new port
>    =20
>     It is required by PrusaSlicer 2.7+. This port provides library and
>     binary to work with g-code (read/write/convert)
>    =20
>     Reported by: Teodor Sigaev <teodorsigaev@gmail.com>
>     Reviewed by: lwhsu (mentor)
>     Sponsored by: Postgres Professional
>     Differential Revision: https://reviews.freebsd.org/D44257
> ---
>  cad/Makefile                                       |  1 +
>  cad/libbgcode/Makefile                             | 27 ++++++++++++++++=
++++++
>  cad/libbgcode/distinfo                             |  5 ++++
>  cad/libbgcode/files/patch-CMakeLists.txt           | 13 +++++++++++
>  cad/libbgcode/files/patch-deps_CMakeLists.txt      | 23 ++++++++++++++++=
++
>  .../files/patch-deps_heatshrink_heatshrink.cmake   | 12 ++++++++++
>  cad/libbgcode/pkg-descr                            |  2 ++
>  cad/libbgcode/pkg-plist                            | 21 ++++++++++++++++=
+
>  8 files changed, 104 insertions(+)
>=20
> diff --git a/cad/Makefile b/cad/Makefile
> index e85ed462ada0..f43f0c101c4f 100644
> --- a/cad/Makefile
> +++ b/cad/Makefile
> @@ -74,6 +74,7 @@
>      SUBDIR +=3D ldview
>      SUBDIR +=3D leocad
>      SUBDIR +=3D lepton-eda
> +    SUBDIR +=3D libbgcode
>      SUBDIR +=3D libgdsii
>      SUBDIR +=3D libopencad
>      SUBDIR +=3D librecad
> diff --git a/cad/libbgcode/Makefile b/cad/libbgcode/Makefile
> new file mode 100644
> index 000000000000..ffa5500927c5
> --- /dev/null
> +++ b/cad/libbgcode/Makefile
> @@ -0,0 +1,27 @@
> +PORTNAME=3D=09libbgcode
> +DISTVERSION=3D=090.2.0
> +CATEGORIES=3D=09cad
> +
> +MAINTAINER=3D=09teodorsigaev@gmail.com
> +COMMENT=3D=09Prusa Block & Binary G-code reader/writer/converter
> +WWW=3D=09=09https://github.com/prusa3d/libbgcode
> +
> +LICENSE=3D=09AGPLv3
> +LICENSE_FILE=3D=09${WRKSRC}/LICENSE
> +
> +LIB_DEPENDS=3D=09libboost_nowide.so:devel/boost-libs
> +
> +USES=3D=09cmake
> +
> +USE_GITHUB=3D=09yes
> +GH_ACCOUNT=3D=09prusa3d
> +GH_TAGNAME=3D=096f43cb004ef3d3bda37dde49f6235e24d2717629
> +GH_TUPLE=3D=09atomicobject:heatshrink:v0.4.1:heatshrink
> +
> +CMAKE_ARGS+=3D=09-DBUILD_SHARED_LIBS=3DON \
> +=09=09-DLibBGCode_BUILD_DEPS=3DON \
> +=09=09-DLibBGCode_BUILD_TESTS=3DOFF
> +
...

Hi,

Please try to follow Poters Handbook,
(GH_TAGNAME  should use short hash)
https://docs.freebsd.org/en/books/porters-handbook/book/#makefile-master_si=
tes-github

CMAKE_ARGS+=3D should be CMAKE_ARGS=3D and you can also use CMAKE_OFF and C=
MAKE_ON instead which probably is a bit cleaner.
https://docs.freebsd.org/en/books/porters-handbook/book/#using-cmake

Best regards,
Daniel (diizzy@)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9e4f95a9f17095b157b809e469495723>