public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Lucio Sauer" <watermanpaint@posteo.net>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:dev commit in: media-libs/libbpg/
Date: Sun, 17 Sep 2023 22:40:26 +0000 (UTC)	[thread overview]
Message-ID: <1694990355.989921567507d9b8a7c2f949ee8ca980b40f162b.watermanpaint@gentoo> (raw)

commit:     989921567507d9b8a7c2f949ee8ca980b40f162b
Author:     Lucio Sauer <watermanpaint <AT> posteo <DOT> net>
AuthorDate: Sun Sep 17 20:20:59 2023 +0000
Commit:     Lucio Sauer <watermanpaint <AT> posteo <DOT> net>
CommitDate: Sun Sep 17 22:39:15 2023 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=98992156

media-libs/libbpg: update dependencies

Signed-off-by: Lucio Sauer <watermanpaint <AT> posteo.net>

 media-libs/libbpg/libbpg-0.9.8-r1.ebuild | 85 ++++++++++++++++++++++++++++++++
 1 file changed, 85 insertions(+)

diff --git a/media-libs/libbpg/libbpg-0.9.8-r1.ebuild b/media-libs/libbpg/libbpg-0.9.8-r1.ebuild
new file mode 100644
index 0000000000..14cf564803
--- /dev/null
+++ b/media-libs/libbpg/libbpg-0.9.8-r1.ebuild
@@ -0,0 +1,85 @@
+# Copyright 2021-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit toolchain-funcs
+
+DESCRIPTION="Better Portable Graphics reference implementation"
+HOMEPAGE="https://bellard.org/bpg/"
+SRC_URI="https://bellard.org/bpg/${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="+x265 bpgview jctvc emcc static-libs"
+
+PATCHES=(
+	"${FILESDIR}"/${P}-remove-forced-options.patch
+	"${FILESDIR}"/${P}-dont-strip-bins.patch
+	"${FILESDIR}"/${P}-add-chost.patch
+	"${FILESDIR}"/${P}-add-fpic.patch
+)
+DEPEND="
+	media-libs/libjpeg-turbo:=
+	media-libs/libpng:=
+	x265? ( sys-process/numactl )
+	bpgview? (
+				media-libs/sdl-image
+				media-libs/libsdl
+			 )
+"
+RDEPEND="${DEPEND}"
+BDEPEND="
+	x265? (
+			dev-lang/yasm
+			dev-util/cmake
+		  )
+"
+
+src_prepare() {
+	default
+
+	cat <<EOF > ${PN}.pc
+prefix="${EPREFIX}/usr"
+libdir="\${prefix}/$(get_libdir)"
+includedir="\${prefix}/include"
+
+Name: ${PN}
+Description: ${DESCRIPTION}
+URL: ${HOMEPAGE}
+Version: ${PV}
+Libs: "-L\${libdir}" -lbpg
+Cflags: "-I\${includedir}"
+EOF
+
+	sed -Ei 's/^(X265_LIBS:=.+\.a)$/\1 -lnuma/' Makefile || die
+}
+
+src_compile() {
+	emake \
+		$(usex x265 USE_X265=y '') \
+		$(usex bpgview USE_BPGVIEW=y '') \
+		$(usex jctvc USE_JCTVC=y '') \
+		$(usex emcc USE_EMCC=y '') \
+		CXX="$(tc-getCXX)" \
+		CC="$(tc-getCC)"
+}
+
+src_install() {
+	mkdir -p "${D}"/usr/bin
+	emake prefix="${D}"/usr install
+
+	if use bpgview; then
+		dobin bpgview
+	fi
+
+	if use static-libs; then
+		dolib.a libbpg.a
+		doheader libbpg.h
+		doheader bpgenc.h
+
+		insinto /usr/$(get_libdir)/pkgconfig
+		doins ${PN}.pc
+	fi
+}


             reply	other threads:[~2023-09-17 22:40 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-17 22:40 Lucio Sauer [this message]
  -- strict thread matches above, loose matches on Subject: below --
2023-09-17 22:40 [gentoo-commits] repo/proj/guru:dev commit in: media-libs/libbpg/ Lucio Sauer
2023-09-17 22:40 Lucio Sauer
2023-09-17 22:40 Lucio Sauer
2023-09-17 22:40 Lucio Sauer
2023-09-17 22:40 Lucio Sauer
2023-09-17 22:40 Lucio Sauer
2022-05-09 18:40 Andrew Ammerlaan
2021-04-30 21:24 Ronny Gutbrod
2021-04-30 20:56 Ronny Gutbrod
2021-04-30 20:01 Ronny Gutbrod
2021-03-28 10:17 Andrew Ammerlaan
2021-03-16 11:15 Mathieu Tortuyaux
2021-03-16  9:48 Mathieu Tortuyaux

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1694990355.989921567507d9b8a7c2f949ee8ca980b40f162b.watermanpaint@gentoo \
    --to=watermanpaint@posteo.net \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox