From nobody Wed Apr 05 17:33:11 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 4PsBYM6xqRz43nwn; Wed, 5 Apr 2023 17:33:11 +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 4PsBYM5b7zz46hM; Wed, 5 Apr 2023 17:33:11 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1680715991; 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=W6JpkdShmVjAnqDHt7UMH/gUj8T73nQjFUrnAZ0czp4=; b=kv1suZBhhqbG7+7fMjJ3hhG+d6AUKLuc9GrUAbXf3xOW58gds/JEl9cuz9aVOp8I4NJa6k KncQzPnvcPLaT6B8BloJYaaQ9c3SY501IMBMvzaR7Ny0iWybDnWPjtxklEQYGavmmBng9E mz/CNDRJKWv4A2NOPh6rfZWZh4YIM8ROMjR8dPwVoFNIA0nLHBoNNYcGsKmNpccfCrakk2 M9Ic0pGFk/cwTs/dk+vLQrzI1kB5I8kFuFqd2KB2uPjd8h4+/4N4YbIqOtap1/shOJ5syr 1pZ9X31yWpKYPewPcvqNE+8SOtkvo4sulHcu4ghMzmNPrU2mDzHtk8zBtCbssA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1680715991; 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=W6JpkdShmVjAnqDHt7UMH/gUj8T73nQjFUrnAZ0czp4=; b=MkgmRvRQftnMRH9YXUFey1GzJ6FR6ScOSMIXxPM78uukkNgVcjCP4fCCF7gUwxHq3OR8ko Kxi5bFy/gQyxqN9KmdNR4ZjLjnaSu3rcJ0kEXH3cNyeJhNYaBT49acH75xgrid49MEYbcy gzcUGEkhrmJVg+L5RIN3X+2JbGQdOZ6uR3394XhAdqb8cUXLeyfw+HsNx6paYelAmmPFHh Z2x6+NF6qoCA5sglmSET+/xkWdCikiL/waueHJl35+hNXxGPj/cSNT0zDtxUP44ewcu+h4 j1EjTO/iaMewbq/jp1Kj/iZ/zrF+OlFQ2p8/QeVt7Og7egwHBYZqSbwBzJ0+9w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1680715991; a=rsa-sha256; cv=none; b=FZJo8x11JfmRiI8njYLx/1uNP9xXOs4pxyGayrJBMSl+GqKn8DE3BnpSjfT3BoLaEo1nvd IopkZj/AH+dTmB/CLnzmF1Aec8qM/qPeBm+UFHrG7ijDGbizpmHhxg3INjE+qfmKyhMADi dqupvsiwtNbYxkHORDJJQB7vm0I+t3JClQRvCX2M+wzIghUMvNxOVDp2oLucrO2iTVIkOn 1BLgNgW+l2jF4oU8T2bCNfTKL0CNaNlGBTHv1tqYKZ25ar7hzGb63DlIZPOEb87gZ3KjXY KGyKh7v07xzjMkBPQja3czn7wZIv/b4SZA24jr+Cf/yUdq0sljMbuOPW2DvRXA== 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 4PsBYM4YWjzWps; Wed, 5 Apr 2023 17:33:11 +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 335HXBeG083158; Wed, 5 Apr 2023 17:33:11 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 335HXBwT083157; Wed, 5 Apr 2023 17:33:11 GMT (envelope-from git) Date: Wed, 5 Apr 2023 17:33:11 GMT Message-Id: <202304051733.335HXBwT083157@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Po-Chuan Hsieh Subject: git: af6dcf2661a8 - main - graphics/cgif: Add cgif 0.3.0 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: sunpoet X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: af6dcf2661a846a9156ac0b35840923c62be7041 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=af6dcf2661a846a9156ac0b35840923c62be7041 commit af6dcf2661a846a9156ac0b35840923c62be7041 Author: Po-Chuan Hsieh AuthorDate: 2023-04-05 17:07:20 +0000 Commit: Po-Chuan Hsieh CommitDate: 2023-04-05 17:29:37 +0000 graphics/cgif: Add cgif 0.3.0 CGIF is a fast and lightweight GIF encoder that can create GIF animations and images. Summary of the main features: - user-defined global or local color-palette with up to 256 colors (limit of the GIF format) - size-optimizations for GIF animations: - option to set a pixel to transparent if it has identical color in the previous frame (transparency optimization) - do encoding just for the rectangular area that differs from the previous frame (width/height optimization) - fast: a GIF with 256 colors and 1024x1024 pixels can be created in below 50 ms even on a minimalistic system - MIT license (permissive) - different options for GIF animations: static image, N repetitions, infinite repetitions - additional source-code for verifying the encoder after making changes - user-defined delay time from one frame to the next (can be set independently for each frame) - source-code conforms to the C99 standard --- graphics/Makefile | 1 + graphics/cgif/Makefile | 22 ++++++++++++++++++++++ graphics/cgif/distinfo | 3 +++ graphics/cgif/pkg-descr | 18 ++++++++++++++++++ graphics/cgif/pkg-plist | 6 ++++++ 5 files changed, 50 insertions(+) diff --git a/graphics/Makefile b/graphics/Makefile index 0fcd0037c0fa..a8cd9d248fe2 100644 --- a/graphics/Makefile +++ b/graphics/Makefile @@ -100,6 +100,7 @@ SUBDIR += cegui SUBDIR += cenon SUBDIR += cfdg + SUBDIR += cgif SUBDIR += chafa SUBDIR += charls SUBDIR += cimg diff --git a/graphics/cgif/Makefile b/graphics/cgif/Makefile new file mode 100644 index 000000000000..55eb95f806e4 --- /dev/null +++ b/graphics/cgif/Makefile @@ -0,0 +1,22 @@ +PORTNAME= cgif +PORTVERSION= 0.3.0 +DISTVERSIONPREFIX= V +CATEGORIES= graphics + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= GIF encoder written in C +WWW= https://github.com/dloebl/cgif + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +USES= meson + +MESON_ARGS= --default-library=both -Dtests=true + +PLIST_SUB= PORTVERSION=${PORTVERSION} + +USE_GITHUB= yes +GH_ACCOUNT= dloebl + +.include diff --git a/graphics/cgif/distinfo b/graphics/cgif/distinfo new file mode 100644 index 000000000000..bbd2eded108b --- /dev/null +++ b/graphics/cgif/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1679498482 +SHA256 (dloebl-cgif-V0.3.0_GH0.tar.gz) = c4f70bbae4c6afee3a524e65be31ae495201fd26687cb8429d7aded8be96306a +SIZE (dloebl-cgif-V0.3.0_GH0.tar.gz) = 29189 diff --git a/graphics/cgif/pkg-descr b/graphics/cgif/pkg-descr new file mode 100644 index 000000000000..23de4ef300f8 --- /dev/null +++ b/graphics/cgif/pkg-descr @@ -0,0 +1,18 @@ +CGIF is a fast and lightweight GIF encoder that can create GIF animations and +images. Summary of the main features: +- user-defined global or local color-palette with up to 256 colors (limit of the + GIF format) +- size-optimizations for GIF animations: + - option to set a pixel to transparent if it has identical color in the + previous frame (transparency optimization) + - do encoding just for the rectangular area that differs from the previous + frame (width/height optimization) +- fast: a GIF with 256 colors and 1024x1024 pixels can be created in below 50 ms + even on a minimalistic system +- MIT license (permissive) +- different options for GIF animations: static image, N repetitions, infinite + repetitions +- additional source-code for verifying the encoder after making changes +- user-defined delay time from one frame to the next (can be set independently + for each frame) +- source-code conforms to the C99 standard diff --git a/graphics/cgif/pkg-plist b/graphics/cgif/pkg-plist new file mode 100644 index 000000000000..e60664c1e417 --- /dev/null +++ b/graphics/cgif/pkg-plist @@ -0,0 +1,6 @@ +include/cgif.h +lib/libcgif.a +lib/libcgif.so +lib/libcgif.so.0 +lib/libcgif.so.%%PORTVERSION%% +libdata/pkgconfig/cgif.pc