From nobody Sat Jan 14 05:44:28 2023 X-Original-To: dev-commits-ports-main@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 4Nv6g02gGFz2p48F; Sat, 14 Jan 2023 05:44:28 +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 4Nv6g025cGz3rN7; Sat, 14 Jan 2023 05:44:28 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1673675068; 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=wbQX82Wvam/0TvqPViso0dUCetQcOd43IAIIWVdozBI=; b=XLQ609GojwOWYCiKmP7kqeOQvvJL6W7Fav3AHrqC/sq07PqPFWIiJquUV+BiNrDG39vL6x z3hveiNeLsGuI8AwSlFwpTz6+szOoYxRhLvkeJUdCI7cs8NA4N1nhV4biOjpt00a5WaYZW U4JdfpEeLTyKi6O2B3yVbfd5bD3boIvO6cxmRVAX1Fz3WTCS1hV3jyrbNdS7zN3/I0EZmX EqOZQOwaLvKxLpjjDc+9uiwausI9TwdKebhIEO+vSWXiW1oWGZszpghPsJ4Kcw6DFKMzid APEzebfDFITTurAavQGRXglX3737mfFToqCDgyUMg1XyfIvLlDVudrfPuz6Wdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1673675068; 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=wbQX82Wvam/0TvqPViso0dUCetQcOd43IAIIWVdozBI=; b=sTp9PsdPx3gAdVDnsCyBchn643CMrxtoyJOgpYes5d1LiV/7fKfDB1xSQmfaaD3LdErgw4 RFiJitciKIibLP1z96j8WSJptATq+leyZtU1mQ+sqr8HsZJ7HaR0i1B3PJ8u5GeIGv6eGE uzY3PGNq6s2+PFj7czYqmFxlJBMk7qagyGKpQhWGkM0F7N/8WmWClWCoJngiN3u0bixHCN AQtt2CpiPGZnjCXweR+ndkSg+Oq0+Jx0yHDdBPeziBeLOYxMd9lzdhtDVlgg9ijtBbX47m nhUI8l1micAqfUhFW2cO/Cot/f7GqvsWdurO7VUMiov2zgUt+hKrnZC2Webxww== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1673675068; a=rsa-sha256; cv=none; b=Bn0wlhnM5kOYKrVvdfPckuQgoNjwOTaw2nhp0vOHY/ZcAgpCmt6NDXazv1mq3H5qW0bAgl 3XbGSxQbP6gUyQJ3cqZbKcRMhL4kEC6s3SQp/MKWmGxFqe4dOHjG7OYIfknk++dhSjOiP1 CAVzCITkhg4Q+hOzKW9+zlbFLeXChhLgbQn3JnEg8M6VvjK4Q5w2bKPjL314yf0C2HrK7d 1kFnghqIzH7PcwD0b/W2sovxvowRk/AHYA4sN+S+cNyYZBe59B1u4TBjXpJ7w1MIQ3gETW AVDf15UhErGdLyK3S75xvw5t6W6tIXerPgosyabgIlY/Ybs4XQ1TqITgsk2V0A== 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 4Nv6g017MPzcT0; Sat, 14 Jan 2023 05:44:28 +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 30E5iSFm056073; Sat, 14 Jan 2023 05:44:28 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 30E5iS0s056072; Sat, 14 Jan 2023 05:44:28 GMT (envelope-from git) Date: Sat, 14 Jan 2023 05:44:28 GMT Message-Id: <202301140544.30E5iS0s056072@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Alex Kozlov Subject: git: a722f5607582 - main - graphics/pngquant: enable openmp, unbundle libimagequant List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: ak X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: a722f5607582b5065442d3eefeed9538d359b144 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by ak: URL: https://cgit.FreeBSD.org/ports/commit/?id=a722f5607582b5065442d3eefeed9538d359b144 commit a722f5607582b5065442d3eefeed9538d359b144 Author: Jan Beich AuthorDate: 2023-01-14 05:42:58 +0000 Commit: Alex Kozlov CommitDate: 2023-01-14 05:42:58 +0000 graphics/pngquant: enable openmp, unbundle libimagequant - Use graphics/libimagequant instead of bundled version [1] - Re-add OPENMP option, enable it by default [2] PR: 268931 [1] PR: 268932 [2] --- graphics/pngquant/Makefile | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/graphics/pngquant/Makefile b/graphics/pngquant/Makefile index 1a7b280a249f..9158e45509f4 100644 --- a/graphics/pngquant/Makefile +++ b/graphics/pngquant/Makefile @@ -1,6 +1,7 @@ PORTNAME= pngquant PORTVERSION= 2.17.0 DISTVERSIONSUFFIX= -src +PORTREVISION= 1 CATEGORIES= graphics MASTER_SITES= https://pngquant.org/ @@ -11,22 +12,25 @@ WWW= https://pngquant.org/ LICENSE= GPLv3 LICENSE_FILE= ${WRKSRC}/COPYRIGHT -LIB_DEPENDS= libpng.so:graphics/png +LIB_DEPENDS= libimagequant.so:graphics/libimagequant \ + libpng.so:graphics/png WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} USES= cpe gmake pkgconfig HAS_CONFIGURE= yes +CONFIGURE_ARGS= --with-libimagequant PORTDOCS= CHANGELOG README.md PLIST_FILES= bin/pngquant \ man/man1/pngquant.1.gz -OPTIONS_DEFINE= OPTIMIZED_FLAGS LCMS2 DEBUG DOCS +OPTIONS_DEFINE= OPTIMIZED_FLAGS OPENMP LCMS2 DEBUG DOCS OPTIONS_DEFINE_i386= SSE OPTIONS_DEFINE_amd64= SSE LCMS2_DESC= Support for ICC profiles via LCMS library OPTIMIZED_FLAGS_DESC= ${OPTIMIZED_CFLAGS_DESC} +OPTIONS_DEFAULT= OPENMP OPTIONS_DEFAULT_amd64= SSE DEBUG_CONFIGURE_ON= --enable-debug @@ -34,6 +38,11 @@ DEBUG_CONFIGURE_ON= --enable-debug LCMS2_CONFIGURE_WITH= lcms2 LCMS2_LIB_DEPENDS= liblcms2.so:graphics/lcms2 +OPENMP_CONFIGURE_WITH= openmp +.if !exists(/usr/include/omp.h) +OPENMP_USES= compiler:gcc-c++11-lib +.endif + OPTIMIZED_FLAGS_CFLAGS= -O3 -fstrict-aliasing \ -ffast-math -funroll-loops -fomit-frame-pointer \ -fexpensive-optimizations -ffinite-math-only \