Skip to content

Commit

Permalink
dev-util/maxcso: build with app-arch/libdeflate
Browse files Browse the repository at this point in the history
Upstream now supports an external libdeflate.

Upstream-PR: unknownbrackets/maxcso#83
Upstream-Commit: unknownbrackets/maxcso@4949344
Signed-off-by: orbea <[email protected]>
  • Loading branch information
orbea committed Jan 27, 2024
1 parent ddd244a commit 3f2ac3e
Showing 1 changed file with 16 additions and 7 deletions.
23 changes: 16 additions & 7 deletions dev-util/maxcso/maxcso-9999.ebuild
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2021-2022 Gentoo Authors
# Copyright 2021-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8
Expand All @@ -15,22 +15,31 @@ else
KEYWORDS="~amd64 ~x86"
fi

LICENSE="ISC MIT LGPL-2.1+ Apache-2.0"
LICENSE="ISC LGPL-2.1+ Apache-2.0"
SLOT="0"

DEPEND="
app-arch/lz4
dev-libs/libuv
sys-libs/zlib
app-arch/libdeflate:=[zlib]
app-arch/lz4:=
dev-libs/libuv:=
sys-libs/zlib:=
"
RDEPEND="${DEPEND}"
BDEPEND="virtual/pkgconfig"

src_compile() {
emake CC="$(tc-getCC)" CXX="$(tc-getCXX)" PKG_CONFIG="$(tc-getPKG_CONFIG)"
emake \
CC="$(tc-getCC)" \
CXX="$(tc-getCXX)" \
PKG_CONFIG="$(tc-getPKG_CONFIG)" \
USE_EXTERNAL_LIBDEFLATE=1
}

src_install() {
emake DESTDIR="${D}" PREFIX="${EPREFIX}"/usr install
emake install \
DESTDIR="${D}" \
PREFIX="${EPREFIX}"/usr \
USE_EXTERNAL_LIBDEFLATE=1

dodoc README.md README_CSO.md README_ZSO.md
}

0 comments on commit 3f2ac3e

Please sign in to comment.