From nobody Sat Feb 19 21:27:14 2022 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 B547319CE3D6; Sat, 19 Feb 2022 21:27:14 +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 4K1M8f4k9Mz4TC5; Sat, 19 Feb 2022 21:27:14 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1645306034; 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=baPrEoIKzSJK7nIBBa48LB6JOq3TtaLWP+RjUKRiWqc=; b=jbCY9YxrtnGYgklFhv3ewMTqK7OevlpiUjzJsWEkyvij2n1MuqusrosFbUv6O1Y9E1VqAi IykDvpqNeQw/efdksk0wMzQiUVD7H/oKnP0iAg9mRJ3Hq1yk3mrkjwCOHTJbk2CVSE3LES zQDFWQkMGL8xeZNMzvmEboJmAW4aMN2bMpnDoex9BAoA7jGnskDYrChpSB6GVeOpdHPowd n1lMPHjAfy+RTqcd1moGdA7jAs0NaKHy610YZEYkCHBzSb9sZqLmU8Ovmhaud+co7X3R8J 5tejiffh8wex4CiEZVDUGFFNL9zg2BzZuzhrehDbT9pgna6LgHlJMjzr76onOQ== 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 81FE17DF6; Sat, 19 Feb 2022 21:27:14 +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 21JLRESe035193; Sat, 19 Feb 2022 21:27:14 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 21JLRE8i035192; Sat, 19 Feb 2022 21:27:14 GMT (envelope-from git) Date: Sat, 19 Feb 2022 21:27:14 GMT Message-Id: <202202192127.21JLRE8i035192@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Jan Beich Subject: git: e69f027f3fee - main - graphics/imlib2-jxl: add new port 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: jbeich X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: e69f027f3fee012fecaacbb7986e75f532c5dbef Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1645306034; 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=baPrEoIKzSJK7nIBBa48LB6JOq3TtaLWP+RjUKRiWqc=; b=NPMzu3+OgIO8vEZ/ArtZBimRrwwXJh6byjkN6DjCULcw3UFyHDQpCujTMJAK9vIgb1CfgV FFyrG5+Yzixpclkcyfwz4X5S01JmIQM4xWnMqpwA+BJuACnKJAzlXjA6GxCnesxmHfbUly IcBoyVjT/EWxsSK9rWMbPL7wxBg4gkf2I0qKlajYNb5QiYpAUL4/3qBPObj8v5Q6OxvXBV QJgEQg3UkJsdn99P3z6XyErDywdvf6TAB38bHQcDJrDgh7LWIYigEZlfH7Ceni0lCe0m3Y FuwsoO5emEjz4dJrYs4WvP8IBWSzsgIUqye+OaDUgs6Lkz8oXLs/6HQSBrQREQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1645306034; a=rsa-sha256; cv=none; b=ySBsU1pM1JJDP92mWA+ba/14yziL70wRmUuNRpRXyTeahhXc2DCVZ6dkKUAUDx7gqaoqBQ iryUqnuRnocddvXfC1QSIb4tf5KCwPiPwHOGpcJV0JPzAeIBOYxvi4Bn6z9cs954mtwWGT 9nB8VKw0G8I2Ut3IHPvo5EdXPQY+fk/IS8eSoafBsHFLVCXLVjA358XtF5Mvt3OwGd+iPm TMrVUZQQTYQvA5dgD7EYQ6LTyYcax7MiM1TKO+NN9lS1gozZAumETqMdvRfpskOND50TJF mPA/r3+GGY8PnhypK+MKenusoPuq/ecZdlCFVXa9/7EevT1Q+OEeY8limQQ9yA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by jbeich: URL: https://cgit.FreeBSD.org/ports/commit/?id=e69f027f3fee012fecaacbb7986e75f532c5dbef commit e69f027f3fee012fecaacbb7986e75f532c5dbef Author: Jan Beich AuthorDate: 2022-01-20 21:53:36 +0000 Commit: Jan Beich CommitDate: 2022-02-19 21:26:39 +0000 graphics/imlib2-jxl: add new port This is a loader for imlib2 that adds support for reading and writing JPEG XL files. This lets you view them using feh, for example. It relies on libjxl for encoding and decoding the images. All JPEG XL files are supported, with the following limitations: * All images are internally converted to ARGB with 8 bits per sample, in an sRGB colorspace - this is a limitation of imlib2. * For animated JXLs, only the first frame is decoded. https://github.com/alistair7/imlib2-jxl --- graphics/Makefile | 1 + graphics/imlib2-jxl/Makefile | 37 +++++++++++++++++++++++++++++++++++++ graphics/imlib2-jxl/distinfo | 3 +++ graphics/imlib2-jxl/pkg-descr | 10 ++++++++++ 4 files changed, 51 insertions(+) diff --git a/graphics/Makefile b/graphics/Makefile index 21a7454b8c7e..b5761def4acf 100644 --- a/graphics/Makefile +++ b/graphics/Makefile @@ -363,6 +363,7 @@ SUBDIR += imageworsener SUBDIR += imc SUBDIR += imlib2 + SUBDIR += imlib2-jxl SUBDIR += imlib2-webp SUBDIR += imlib2_loaders SUBDIR += impressive diff --git a/graphics/imlib2-jxl/Makefile b/graphics/imlib2-jxl/Makefile new file mode 100644 index 000000000000..f3a054521aca --- /dev/null +++ b/graphics/imlib2-jxl/Makefile @@ -0,0 +1,37 @@ +PORTNAME= imlib2-jxl +DISTVERSIONPREFIX= v +DISTVERSION= 0.1.1 +CATEGORIES= graphics + +MAINTAINER= jbeich@FreeBSD.org +COMMENT= JPEG XL loader for imlib2 + +LICENSE= BSD3CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE-BSD-ab + +LIB_DEPENDS= libImlib2.so:graphics/imlib2 \ + libjxl.so:graphics/libjxl + +USES= gmake pkgconfig +USE_GITHUB= yes +GH_ACCOUNT= alistair7 +MAKE_ENV= RELEASE_CFLAGS="${CFLAGS}" +ALL_TARGET= # empty +PLIST_FILES= lib/imlib2/loaders/jxl.so + +OPTIONS_DEFINE= LCMS2 +OPTIONS_DEFAULT=LCMS2 + +LCMS2_LIB_DEPENDS= liblcms2.so:graphics/lcms2 + +post-patch-LCMS2-off: + @${REINPLACE_CMD} -e '/-DIMLIB2JXL_USE_LCMS/d' \ + -e 's/`pkg-config[^`]*lcms[^`]*`//' \ + ${WRKSRC}/Makefile + +do-install: + ${MKDIR} ${STAGEDIR}${PREFIX}/${PLIST_FILES:M*.so:H} + ${INSTALL_LIB} ${WRKSRC}/${PLIST_FILES:M*.so:T} \ + ${STAGEDIR}${PREFIX}/${PLIST_FILES:M*.so:H} + +.include diff --git a/graphics/imlib2-jxl/distinfo b/graphics/imlib2-jxl/distinfo new file mode 100644 index 000000000000..64e175fc75f6 --- /dev/null +++ b/graphics/imlib2-jxl/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1642715616 +SHA256 (alistair7-imlib2-jxl-v0.1.1_GH0.tar.gz) = 25d220e4638948174d5e76c66e2f0441ee41e0758fa63f065cdfd51bb76c1465 +SIZE (alistair7-imlib2-jxl-v0.1.1_GH0.tar.gz) = 24731 diff --git a/graphics/imlib2-jxl/pkg-descr b/graphics/imlib2-jxl/pkg-descr new file mode 100644 index 000000000000..fae72e9cc89a --- /dev/null +++ b/graphics/imlib2-jxl/pkg-descr @@ -0,0 +1,10 @@ +This is a loader for imlib2 that adds support for reading and writing +JPEG XL files. This lets you view them using feh, for example. It +relies on libjxl for encoding and decoding the images. + +All JPEG XL files are supported, with the following limitations: +* All images are internally converted to ARGB with 8 bits per sample, + in an sRGB colorspace - this is a limitation of imlib2. +* For animated JXLs, only the first frame is decoded. + +WWW: https://github.com/alistair7/imlib2-jxl