Skip to content

Commit

Permalink
media-libs/jasper: Update live ebuild
Browse files Browse the repository at this point in the history
Package-Manager: portage-2.3.3
  • Loading branch information
SoapGentoo committed Dec 7, 2016
1 parent d0457e7 commit 4483a7e
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions media-libs/jasper/jasper-9999.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

EAPI=6

inherit autotools multilib-minimal
inherit cmake-multilib

DESCRIPTION="Implementation of the codec specified in the JPEG-2000 Part-1 standard"
HOMEPAGE="http://www.ece.uvic.ca/~mdadams/jasper/"
Expand All @@ -24,36 +24,36 @@ fi
: ${JASPER_MEM_LIMIT:=134217728}

LICENSE="JasPer2.0"
SLOT="0/1"
IUSE="jpeg opengl static-libs"
SLOT="0"
IUSE="doc jpeg opengl"

RDEPEND="
jpeg? ( >=virtual/jpeg-0-r2:0[${MULTILIB_USEDEP}] )
opengl? (
>=virtual/opengl-7.0-r1:0[${MULTILIB_USEDEP}]
>=media-libs/freeglut-2.8.1:0[${MULTILIB_USEDEP}]
virtual/glu
virtual/glu[${MULTILIB_USEDEP}]
x11-libs/libXi[${MULTILIB_USEDEP}]
x11-libs/libXmu[${MULTILIB_USEDEP}]
)"
DEPEND="${RDEPEND}
app-arch/unzip"

src_prepare() {
default
eautoreconf
}
doc? ( app-doc/doxygen )"

multilib_src_configure() {
ECONF_SOURCE="${S}" econf \
$(use_enable jpeg libjpeg) \
$(use_enable opengl) \
$(use_enable static-libs static) \
--enable-memory-limit="${JASPER_MEM_LIMIT}"
}

multilib_src_install_all() {
einstalldocs
dodoc -r doc/.

# package provides .pc files
find "${D}" -name '*.la' -delete || die
local mycmakeargs=(
-DJAS_ENABLE_AUTOMATIC_DEPENDENCIES=OFF
-DALLOW_IN_SOURCE_BUILD=OFF
-DBASH_PROGRAM="${EPREFIX}"/bin/bash
-DJAS_ENABLE_ASAN=OFF
-DJAS_ENABLE_LIBJPEG=$(usex jpeg)
-DJAS_ENABLE_LSAN=OFF
-DJAS_ENABLE_MSAN=OFF
-DJAS_ENABLE_OPENGL=$(usex opengl)
-DJAS_ENABLE_SHARED=ON
-DJAS_ENABLE_STRICT=ON
-DJAS_ENABLE_USAN=OFF
-DCMAKE_INSTALL_DOCDIR="${EPREFIX}"/usr/share/doc/${PF}
-DCMAKE_DISABLE_FIND_PACKAGE_Doxygen=$(multilib_native_usex doc OFF ON)
)
cmake-utils_src_configure
}

0 comments on commit 4483a7e

Please sign in to comment.