blob: 1a5d88cf62a8a69a1336b0378d8a9aa4b23ef7d7 (
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
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-libs/loadpng/loadpng-1.4.ebuild,v 1.2 2005/11/28 15:28:39 herbs Exp $
inherit toolchain-funcs multilib
DESCRIPTION="load and save PNG files in Allegro programs"
HOMEPAGE="http://tjaden.strangesoft.net/loadpng/"
SRC_URI="http://tjaden.strangesoft.net/loadpng/${P}.tar.gz"
LICENSE="as-is"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
DEPEND=">=media-libs/allegro-4.0.0
>=media-libs/libpng-1.2.4
>=sys-libs/zlib-1.1.4"
src_unpack() {
unpack ${A}
# avoid hardcoded CC/CFLAGS
sed -i -e "s:gcc:$(tc-getCC):g" "${S}"/Makefile
sed -i -e "s:-W -Wall -O3:${CFLAGS}:g" "${S}"/Makefile
}
src_install() {
dodir /usr/$(get_libdir)
dodir /usr/include
make \
prefix="${D}"/usr \
libdir="${D}"/usr/$(get_libdir) \
install || die
}
|