summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'media-libs/devil/devil-1.8.0.ebuild')
-rw-r--r--media-libs/devil/devil-1.8.0.ebuild60
1 files changed, 26 insertions, 34 deletions
diff --git a/media-libs/devil/devil-1.8.0.ebuild b/media-libs/devil/devil-1.8.0.ebuild
index d87703d..9a4b036 100644
--- a/media-libs/devil/devil-1.8.0.ebuild
+++ b/media-libs/devil/devil-1.8.0.ebuild
@@ -3,7 +3,7 @@
EAPI=7
-inherit eutils cmake
+inherit cmake
S=${WORKDIR}/DevIL-${PV}/DevIL/
@@ -14,15 +14,17 @@ SRC_URI="https://github.com/DentonW/DevIL/archive/v${PV}.tar.gz"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~mips ~ppc ~ppc64 ~x86"
-IUSE="allegro cpu_flags_x86_sse cpu_flags_x86_sse2 cpu_flags_x86_sse3 gif glut jpeg mng nvtt openexr opengl png sdl static-libs tiff X xpm"
+IUSE="lcms jpeg mng openexr opengl png sdl test tiff X xpm"
+
+PATCHES=(
+ "${FILESDIR}/${P}-cmake-install-paths.patch"
+)
+
+RESTRICT="!test? ( test )"
RDEPEND="
- allegro? ( media-libs/allegro:0 )
- gif? ( media-libs/giflib:= )
- glut? ( media-libs/freeglut )
- jpeg? ( virtual/jpeg:0 )
+ jpeg? ( virtual/jpeg )
mng? ( media-libs/libmng:= )
- nvtt? ( media-gfx/nvidia-texture-tools )
openexr? ( media-libs/openexr:= )
opengl? ( virtual/opengl
virtual/glu )
@@ -39,38 +41,28 @@ DEPEND="${RDEPEND}
src_configure() {
local mycmakeargs=(
- -DENABLE_static="$(usex static-libs)"
- --disable-lcms
- --enable-ILU
- --enable-ILUT
- -DENABLE_sse="$(usex cpu_flags_x86_sse)"
- -DENABLE_sse2="$(usex cpu_flags_x86_sse2)"
- -DENABLE_sse3="$(usex cpu_flags_x86_sse3)"
- -DENABLE_exr="$(usex openexr)"
- -DENABLE_gif="$(usex gif)"
- -DENABLE_jpeg="$(usex jpeg)"
- --enable-jp2
- -DENABLE_mng="$(usex mng)"
- -DENABLE_png="$(usex png)"
- -DENABLE_tiff="$(usex tiff)"
- -DENABLE_xpm="$(usex xpm)"
- -DENABLE_allegro="$(usex allegro)"
- --disable-directx8
- --disable-directx9
- -DENABLE_opengl="$(usex opengl)"
- -DENABLE_sdl="$(usex sdl)"
- -DENABLE_x11="$(usex X)"
- -DENABLE_shm="$(usex X)"
- -DENABLE_render="$(usex X)"
- -DENABLE_glut="$(usex glut)"
- -DWITH_x="$(usex X)"
- -DWITH_nvtt="$(usex nvtt)"
+ -DIL_MNG_LIB="$(usex mng)"
+ -DIL_NO_JPG="$(usex jpeg)"
+ -DIL_NO_LCMS="$(usex lcms)"
+ -DIL_NO_PNG="$(usex png)"
+ -DIL_NO_TIF="$(usex tiff)"
+ -DIL_USE_DXTC_SQUISH="false"
+ -DIL_TESTS="$(usex test)"
+ #-DIL_JASPER_LIB="$(usex jasper)"
+ #-DIL_JPEG_LIB="$(usex jpeg)"
+ #-DIL_LCMS2_LIB="$(usex lcms2)"
+ #-DIL_NVTT_LIB="$(usex nvtt)"
+ #-DIL_OPENEXR_LIB="$(usex openexr)"
+ #-DIL_PNG_LIB="$(usex png)"
+ #-DIL_SQUISH_LIB="false"
+ #-DIL_TIFF_LIB="$(usex tiff)"
+ -DLCMS_NODIRINCLUDE="true"
)
cmake_src_configure
}
src_install() {
- default
+ cmake_src_install
# package provides .pc files
find "${D}" -name '*.la' -delete || die