From: James Le Cuirot Date: Thu, 12 Sep 2019 22:19:19 +0000 (+0100) Subject: media-libs/libjpeg-turbo: Use CMake for extra tools instead of Make X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=fba16f2050f6ed044b644cba2ce6381ba0e686ae;p=gentoo.git media-libs/libjpeg-turbo: Use CMake for extra tools instead of Make Debian's Makefile doesn't allow for executables with file extensions like .exe on Windows. Being their Makefile for their OS, I suspect they don't care about supporting Gentoo, let alone Windows. This has been done in a generic way in case more tools are added. Package-Manager: Portage-2.3.76, Repoman-2.3.17 Signed-off-by: James Le Cuirot --- diff --git a/media-libs/libjpeg-turbo/libjpeg-turbo-2.0.4.ebuild b/media-libs/libjpeg-turbo/libjpeg-turbo-2.0.4.ebuild index 0a16a62f0f58..35f5d3a2c6b2 100644 --- a/media-libs/libjpeg-turbo/libjpeg-turbo-2.0.4.ebuild +++ b/media-libs/libjpeg-turbo/libjpeg-turbo-2.0.4.ebuild @@ -36,6 +36,29 @@ DEPEND="${COMMON_DEPEND} MULTILIB_WRAPPED_HEADERS=( /usr/include/jconfig.h ) src_prepare() { + local FILE + ln -snf ../debian/extra/*.c . || die + + for FILE in ../debian/extra/*.c; do + FILE=${FILE##*/} + cat >> CMakeLists.txt <> CMakeLists.txt <> CMakeLists.txt </dev/null || die - emake CC="$(tc-getCC)" CFLAGS="${LDFLAGS} ${CFLAGS}" - popd &>/dev/null || die - fi -} - multilib_src_install() { cmake_src_install - if multilib_is_native_abi ; then - pushd "${WORKDIR}/debian/extra" &>/dev/null || die - emake \ - DESTDIR="${D}" prefix="${EPREFIX}"/usr \ - INSTALL="install -m755" INSTALLDIR="install -d -m755" \ - install - - popd || die - if use java ; then - rm -rf "${ED}"/usr/classes || die - java-pkg_dojar java/turbojpeg.jar - fi + if multilib_is_native_abi && use java ; then + rm -rf "${ED}"/usr/classes || die + java-pkg_dojar java/turbojpeg.jar fi }