# Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit toolchain-funcs DESCRIPTION="Creates transparent GIF images." HOMEPAGE="http://www.abdn.ac.uk/tools/ibmpc/giftrans/index.hti" SRC_URI="ftp://ftp.rz.uni-karlsruhe.de/pub/net/www/tools/giftrans.c" LICENSE="GPL-2" SLOT="0" KEYWORDS="x86" IUSE="" S=${WORKDIR} DEPEND="" RDEPEND="" # probably a better way to do this RGBTXT="/usr/share/X11/rgb.txt" DEF="-D RGBTXT=\"${RGBTXT}\"" src_unpack() { cp ${DISTDIR}/${A} ${WORKDIR}/ } src_compile() { $(tc-getCC ) ${CFLAGS} ${DEF} -o ${PN} ${PN}.c \ || die "compile failed" } src_install() { dobin ${WORKDIR}/${PN} }