From nobody Fri May 26 08:46:39 2023 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4QSJSH6FqNz4WRqF; Fri, 26 May 2023 08:46:39 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4QSJSH5q3nz4Cys; Fri, 26 May 2023 08:46:39 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1685090799; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=zPKFI1H4pF9D7GpvURSMjGDzlIS4C+roavPjFsqq6bU=; b=V3c0ZholLshFGyWWU+t3YTjezlIVunxh1SfE/8o1aBgz9dZX6oaMF3zyJe93L7nXamxe5M Ponws2RQuS+YySjcbjTlXaXLuEwFqIWUAMt7z472keBH0D7MMK4ifZ/0v1Jxr9T8u7YwY6 hxES6pG7Dvm1du5889x6CMqh7e8pVhvdcIE+gL3m55ORMmKlaroaFN7Mv+qAkoY0jVwTga CpcxsKkxI1k6xj7sp4hkbf+3/qCVWGKJvNBprLitMGvatADYLvaFWSgT4Sf3wwgBUGKEM6 dSSs6pFeOqhXnecgtXCu7pQJFWJVW5RHArDADbOQ/5a0yULgZY3loDEVEYegzg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1685090799; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=zPKFI1H4pF9D7GpvURSMjGDzlIS4C+roavPjFsqq6bU=; b=oMPy9TJD1y1I5XFa5n+RC8T6zyItV6QlflhAHSmGWPDL52PKa36RrLyuJFT4nnq3eW92Nh j9UHF6Yn5dpCPvCfSB9uanCu1gSK1h/JKr0YTApJo8u4/fNSUjnwTTosR5Tc9AHulHA93A qWqKvhWKu+86qol7qLBtytLbV91gaehIKJ3CNsIg4tuY62pPqYtcxqGLu8+kA0KfSm4K3J tI6/FAoB7sK8/fvE46r0JO+ziWtBneSY9PwIKTBbHd9CLLBo5dAxxQCDWGYhZCmcS5a1eY ot8XAlOPFoCOlYDOPW7EOwvaW1omEbNznSgR+rZjm7JjDr5DyREH0pRHLL7gLA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1685090799; a=rsa-sha256; cv=none; b=mmLC7eLUnynOe+1AeVL2zzH147bDi+qAgla7syGJtpuGojz/s9ecdA19KYVvXuupSW0/Jh Pen0BvgXsA2Vx1ZXpbA3r8X59Nf6LYyh8fXfsGJOyTFkYaTvzrKY10SbnH9pPe5unBhvR+ x8u8A4oMLSaxbP+FdR5Kd+cbvjovl2mYsOJdFZ4rq08+FwYzUlVI9IW/wjoVt/yocMg+cX E+0kDF6Mb14rnQgI5XGnUxyq63JAJK2HEUqQpjsZWFCKTiM9Ivc9GvLgrV4hH0eqEaLbBZ TcHg7UxszGXKswILvLOMmNvueBBjBffqUfs+hDviGxdVo8tjWtDjJUPdJZ44/Q== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4QSJSH4tgrz10xk; Fri, 26 May 2023 08:46:39 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 34Q8kdw0077767; Fri, 26 May 2023 08:46:39 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 34Q8kdJp077766; Fri, 26 May 2023 08:46:39 GMT (envelope-from git) Date: Fri, 26 May 2023 08:46:39 GMT Message-Id: <202305260846.34Q8kdJp077766@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Emanuel Haupt Subject: git: c5e7ca8dcf01 - main - graphics/3d-ascii-viewer-c: Add new port List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: ehaupt X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: c5e7ca8dcf013e44a12fd6faa9a563d230efd4de Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by ehaupt: URL: https://cgit.FreeBSD.org/ports/commit/?id=c5e7ca8dcf013e44a12fd6faa9a563d230efd4de commit c5e7ca8dcf013e44a12fd6faa9a563d230efd4de Author: Emanuel Haupt AuthorDate: 2023-05-26 08:46:05 +0000 Commit: Emanuel Haupt CommitDate: 2023-05-26 08:46:05 +0000 graphics/3d-ascii-viewer-c: Add new port 3d-ascii-viewer-c is a program written in C that allows users to view 3D models in ASCII. It supports Wavefront .obj files and provides an example usage capture. The program can be executed by passing any of the models in the models folder as an argument. The available models include Fox and ShibaInu models, as well as Tree models. This program is inspired by the ASCII luminescence and offers an intuitive way of viewing 3D models in ASCII. --- graphics/3d-ascii-viewer-c/Makefile | 29 +++++++++++++++++++++++++ graphics/3d-ascii-viewer-c/distinfo | 3 +++ graphics/3d-ascii-viewer-c/files/patch-Makefile | 15 +++++++++++++ graphics/3d-ascii-viewer-c/pkg-descr | 12 ++++++++++ graphics/Makefile | 1 + 5 files changed, 60 insertions(+) diff --git a/graphics/3d-ascii-viewer-c/Makefile b/graphics/3d-ascii-viewer-c/Makefile new file mode 100644 index 000000000000..a660361ba02a --- /dev/null +++ b/graphics/3d-ascii-viewer-c/Makefile @@ -0,0 +1,29 @@ +PORTNAME= 3d-ascii-viewer-c +PORTVERSION= 1.1.0 +DISTVERSIONPREFIX= v +CATEGORIES= graphics + +MAINTAINER= ehaupt@FreeBSD.org +COMMENT= Viewer of 3D models in ASCII +WWW= https://github.com/autopawn/3d-ascii-viewer-c + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +USES= gmake +USE_GITHUB= yes +GH_ACCOUNT= autopawn + +ALL_TARGET= 3d-ascii-viewer + +PLIST_FILES= bin/3d-ascii-viewer +PORTEXAMPLES= * + +OPTIONS_DEFINE= EXAMPLES + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/3d-ascii-viewer ${STAGEDIR}${PREFIX}/bin + ${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/models + ${INSTALL_DATA} ${WRKSRC}/models/* ${STAGEDIR}${EXAMPLESDIR}/models/ + +.include diff --git a/graphics/3d-ascii-viewer-c/distinfo b/graphics/3d-ascii-viewer-c/distinfo new file mode 100644 index 000000000000..62ff3c087f39 --- /dev/null +++ b/graphics/3d-ascii-viewer-c/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1683962458 +SHA256 (autopawn-3d-ascii-viewer-c-v1.1.0_GH0.tar.gz) = 692100eaf4600033f8a8d07ca3e107a8b3a8ebdf59ac7f154149fda212cb7b12 +SIZE (autopawn-3d-ascii-viewer-c-v1.1.0_GH0.tar.gz) = 6864524 diff --git a/graphics/3d-ascii-viewer-c/files/patch-Makefile b/graphics/3d-ascii-viewer-c/files/patch-Makefile new file mode 100644 index 000000000000..98d7f0090fdd --- /dev/null +++ b/graphics/3d-ascii-viewer-c/files/patch-Makefile @@ -0,0 +1,15 @@ +--- Makefile.orig 2023-05-04 04:46:08 UTC ++++ Makefile +@@ -1,9 +1,9 @@ + TARGET_EXEC := 3d-ascii-viewer + TEMPDIR := tmp + +-CC := gcc +-CFLAGS := -Wall +-LDFLAGS := -lm -lncurses ++CC ?= gcc ++CFLAGS += -Wall ++LDFLAGS += -lm -lncurses + SRC_DIR := src + + SRCS := $(shell find $(SRC_DIR) -name '*.c') diff --git a/graphics/3d-ascii-viewer-c/pkg-descr b/graphics/3d-ascii-viewer-c/pkg-descr new file mode 100644 index 000000000000..b965c8c6f242 --- /dev/null +++ b/graphics/3d-ascii-viewer-c/pkg-descr @@ -0,0 +1,12 @@ +3d-ascii-viewer-c is a program written in C that allows users to view 3D +models in ASCII. It supports Wavefront .obj files and provides an +example usage capture. + +The program can be executed by passing any of the models in the models +folder as an argument. + +The available models include Fox and ShibaInu models, as well as Tree +models. + +This program is inspired by the ASCII luminescence and offers an +intuitive way of viewing 3D models in ASCII. diff --git a/graphics/Makefile b/graphics/Makefile index ff43fbdc9b85..557f61af875f 100644 --- a/graphics/Makefile +++ b/graphics/Makefile @@ -1,5 +1,6 @@ COMMENT = Graphics tools and libraries + SUBDIR += 3d-ascii-viewer-c SUBDIR += 4va SUBDIR += Coin SUBDIR += GraphicsMagick