# Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ DESCRIPTION="php_imlib is a faster, higher quality image rendering php extension - replaces libGD usage." HOMEPAGE="http://pp.siedziba.pl/en/pc_ln.php" SRC_URI="http://pp.siedziba.pl/PLD/php-imlib-0.4pre2.tar.bz2" LICENSE="PHP" SLOT="0" KEYWORDS="~x86" IUSE="" EXT_DIR=`php-config --extension-dir` EXT_FILTERS_DIR="${EXT_DIR}/php_imlib_filters" DEPEND=">=x11-base/xfree-4.1.0 >=dev-db/edb-1.0.2 >=media-libs/jpeg-6b >=media-libs/libpng-1.0.12 >=media-libs/freetype-1.3.1 >=media-libs/imlib2-1.0.6" S=${WORKDIR}/php-imlib-0.4pre2 src_compile() { phpize # ./configure --prefix=${D}/usr econf || die emake || die } src_install() { # create the initial target directories dodir ${EXT_FILTERS_DIR} # copy imlib.so into the appropriate place insinto ${EXT_DIR} doins ${S}/modules/imlib.so # copy all the filters to the appropriate places too insinto ${EXT_FILTERS_DIR} doins ${S}/filters/.libs/*.so }