# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils MY_PV="${PV/_*/}" DESCRIPTION="This library offers read (decompress) and write (compress) for both the ECW and the ISO JPEG 2000 image file formats" SRC_URI="${PN}-${MY_PV}-RC2.zip" HOMEPAGE="http://www.ermapper.com/ecw/" LICENSE="libecwj2" RESTRICT="fetch" SLOT="0" KEYWORDS="~x86" IUSE="doc" DEPEND="virtual/libc" S="${WORKDIR}/${PN}-${MY_PV}" pkg_nofetch() { einfo "Download ${SRC_URI} from ${HOMEPAGE} and put it in" einfo "${DISTDIR}" } src_compile() { econf || die "econf failed" emake || die "emake failed" } src_test() { cd ${S} make check || die "Trying make check without success." } src_install() { into /usr mkdir -p ${D}usr/include # hack to enable install of include files make DESTDIR=${D} install || die "make install failed" if use doc; then dodoc SDK.pdf fi }