From owner-svn-ports-head@freebsd.org Sat Jan 5 20:09:52 2019 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 977C7141FE20; Sat, 5 Jan 2019 20:09:52 +0000 (UTC) (envelope-from amdmi3@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) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 359886ACDD; Sat, 5 Jan 2019 20:09:52 +0000 (UTC) (envelope-from amdmi3@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id E56FE1D683; Sat, 5 Jan 2019 20:09:51 +0000 (UTC) (envelope-from amdmi3@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id x05K9pFu082233; Sat, 5 Jan 2019 20:09:51 GMT (envelope-from amdmi3@FreeBSD.org) Received: (from amdmi3@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id x05K9o2V082228; Sat, 5 Jan 2019 20:09:50 GMT (envelope-from amdmi3@FreeBSD.org) Message-Id: <201901052009.x05K9o2V082228@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: amdmi3 set sender to amdmi3@FreeBSD.org using -f From: Dmitry Marakasov Date: Sat, 5 Jan 2019 20:09:50 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r489376 - in head/graphics: . pnglite pnglite/files X-SVN-Group: ports-head X-SVN-Commit-Author: amdmi3 X-SVN-Commit-Paths: in head/graphics: . pnglite pnglite/files X-SVN-Commit-Revision: 489376 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 359886ACDD X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.96 / 15.00]; local_wl_from(0.00)[FreeBSD.org]; NEURAL_HAM_SHORT(-0.96)[-0.960,0]; ASN(0.00)[asn:11403, ipnet:2610:1c1:1::/48, country:US]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; NEURAL_HAM_LONG(-1.00)[-0.999,0] X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Jan 2019 20:09:52 -0000 Author: amdmi3 Date: Sat Jan 5 20:09:50 2019 New Revision: 489376 URL: https://svnweb.freebsd.org/changeset/ports/489376 Log: - Add graphics/pnglite Lightweight C library for loading PNG images. WWW: https://sourceforge.net/projects/pnglite/ Added: head/graphics/pnglite/ head/graphics/pnglite/Makefile (contents, props changed) head/graphics/pnglite/distinfo (contents, props changed) head/graphics/pnglite/files/ head/graphics/pnglite/files/patch-pnglite.c (contents, props changed) head/graphics/pnglite/pkg-descr (contents, props changed) Modified: head/graphics/Makefile Modified: head/graphics/Makefile ============================================================================== --- head/graphics/Makefile Sat Jan 5 20:04:29 2019 (r489375) +++ head/graphics/Makefile Sat Jan 5 20:09:50 2019 (r489376) @@ -776,6 +776,7 @@ SUBDIR += png2ico SUBDIR += pngcheck SUBDIR += pngcrush + SUBDIR += pnglite SUBDIR += pngnq SUBDIR += pngquant SUBDIR += pngrewrite Added: head/graphics/pnglite/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/graphics/pnglite/Makefile Sat Jan 5 20:09:50 2019 (r489376) @@ -0,0 +1,28 @@ +# Created by: Dmitry Marakasov +# $FreeBSD$ + +PORTNAME= pnglite +PORTVERSION= 0.1.17 +CATEGORIES= graphics +MASTER_SITES= SF + +MAINTAINER= amdmi3@FreeBSD.org +COMMENT= Lightweight PNG C library + +LICENSE= ZLIB + +USES= dos2unix zip +USE_LDCONFIG= yes + +NO_WRKSUBDIR= yes + +PLIST_FILES= include/pnglite.h lib/libpnglite.so + +do-build: + cd ${WRKSRC} && ${CC} -o libpnglite.so -shared ${CFLAGS} -fPIC ${LDFLAGS} -lz pnglite.c + +do-install: + ${INSTALL_LIB} ${WRKSRC}/libpnglite.so ${STAGEDIR}${PREFIX}/lib + ${INSTALL_DATA} ${WRKSRC}/pnglite.h ${STAGEDIR}${PREFIX}/include + +.include Added: head/graphics/pnglite/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/graphics/pnglite/distinfo Sat Jan 5 20:09:50 2019 (r489376) @@ -0,0 +1,3 @@ +TIMESTAMP = 1546709629 +SHA256 (pnglite-0.1.17.zip) = 6444b13b9ec5b6f9de8f72513a00870325779e3b05bfcf554edb1ab0c90f5962 +SIZE (pnglite-0.1.17.zip) = 6516 Added: head/graphics/pnglite/files/patch-pnglite.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/graphics/pnglite/files/patch-pnglite.c Sat Jan 5 20:09:50 2019 (r489376) @@ -0,0 +1,23 @@ +* Fix zlib include +* Fix buffer size (obtained from teeworlds) + * this buffer will contain compressed data + "IDAT" string + CRC32, but the latter two were not accounted +--- pnglite.c.orig 2019-01-05 19:00:10 UTC ++++ pnglite.c +@@ -5,7 +5,7 @@ + #define USE_ZLIB 1 + + #if USE_ZLIB +-#include "../zlib/zlib.h" ++#include + #else + #include "zlite.h" + #endif +@@ -492,7 +492,7 @@ static int png_write_idats(png_t* png, unsigned char* + (void)png_end_deflate; + (void)png_deflate; + +- chunk = png_alloc(size); ++ chunk = png_alloc(size + 8); + memcpy(chunk, "IDAT", 4); + + written = size; Added: head/graphics/pnglite/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/graphics/pnglite/pkg-descr Sat Jan 5 20:09:50 2019 (r489376) @@ -0,0 +1,3 @@ +Lightweight C library for loading PNG images. + +WWW: https://sourceforge.net/projects/pnglite/