blob: 8b5fd4fa6b52c4dd1b94bf3b7c5f7b3ce81846fb (
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
|
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-gfx/optipng/optipng-0.5.5.ebuild,v 1.2 2008/01/31 18:07:45 nyhm Exp $
DESCRIPTION="Compress PNG files without affecting image quality"
HOMEPAGE="http://optipng.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
LICENSE="ZLIB"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~ppc ~x86"
IUSE=""
src_unpack() {
unpack ${A}
cd "${S}"
sed -i \
-e "s:-O2:${CFLAGS}:" \
-e "s:-s:${LDFLAGS}:" \
src/scripts/gcc.mak \
lib/libpng/scripts/makefile.gcc \
lib/pngxtern/scripts/gcc.mak \
|| die "sed failed"
}
src_compile() {
emake -C src -f scripts/gcc.mak || die "emake failed"
}
src_install() {
dobin src/optipng || die "dobin failed"
dodoc README.txt doc/*.txt
dohtml doc/*.html
doman man/optipng.1
}
|