blob: 227f7a0bb0021fac6189013d97173c237b0e6604 (
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# $Header: /var/cvsroot/gentoo-x86/media-libs/libpng/libpng-1.2.4.ebuild,v 1.2 2002/07/09 08:14:28 seemant Exp $
S=${WORKDIR}/${P}
DESCRIPTION="libpng"
SRC_URI="ftp://swrinde.nde.swri.edu/pub/png/src/${P}.tar.gz"
HOMEPAGE="http://www.libpng.org/"
SLOT="1.2"
LICENSE="as-is"
KEYWORDS="*"
DEPEND=">=sys-libs/zlib-1.1.4"
src_compile() {
sed -e "s:ZLIBLIB=../zlib:ZLIBLIB=/usr/lib:" \
-e "s:ZLIBINC=../zlib:ZLIBINC=/usr/include:" \
-e "s/-O3/${CFLAGS}/" \
-e "s:prefix=/usr/local:prefix=/usr:" \
scripts/makefile.linux > Makefile
emake || die
}
src_install() {
dodir /usr/{include,lib}
dodir /usr/share/man
make \
DESTDIR=${D} \
MANPATH=/usr/share/man \
install || die
# rm ${D}/usr/lib/libpng.so
# rm ${D}/usr/lib/libpng.a
# rm ${D}/usr/include/png.h
# rm ${D}/usr/include/pngconf.h
doman *.[35]
dodoc ANNOUNCE CHANGES KNOWNBUG LICENSE README TODO Y2KINFO
}
pkg_postinst() {
# the libpng authors really screwed around between 1.2.1 and 1.2.3
if [ -f /usr/lib/libpng.so.3.1.2.1 ]
then
rm /usr/lib/libpng.so.3.1.2.1
fi
}
|