blob: b81b9da729e0a0180ce92a304e625b7d3a5baab1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-libs/szip/szip-1.1-r1.ebuild,v 1.7 2006/10/27 18:18:25 gustavoz Exp $
inherit eutils
MY_P="${P/-}"
DESCRIPTION="Szip is an implementation of the extended-Rice lossless compression algorithm"
HOMEPAGE="http://hdf.ncsa.uiuc.edu/HDF5/doc_resource/SZIP/"
SRC_URI="ftp://ftp.ncsa.uiuc.edu/HDF/szip/src/${MY_P}.tar.gz"
LICENSE="szip"
SLOT="0"
KEYWORDS="amd64 ppc ppc64 sparc x86"
IUSE=""
DEPEND=""
S=${WORKDIR}/${MY_P}
src_unpack() {
unpack ${A} ; cd ${S}
epatch ${FILESDIR}/${P}-fPIC.patch
}
src_compile() {
./configure -s --prefix="/usr" || die
emake CFLAGS="${CFLAGS} -DHAVE_UNISTD_H -DUSE_MMAP" || die
}
src_install() {
dodir /usr/include
dodir /usr/lib
make prefix=${D}/usr install || die
}
|