# Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ IUSE="tiff gif png jpeg" S=${WORKDIR}/WindowMaker-${PV} DESCRIPTION="The background setter from the fast and light GNUstep window manager" SRC_URI="ftp://ftp.windowmaker.org/pub/source/release/WindowMaker-${PV}.tar.gz" HOMEPAGE="http://www.windowmaker.org/" DEPEND="virtual/x11 tiff? >=media-libs/tiff-3.5.5 gif? ( >=media-libs/giflib-4.1.0-r3 >=media-libs/libungif-4.1.0 ) png? ( >=media-libs/libpng-1.2.1 ) jpeg? ( >=media-libs/jpeg-6b-r2 )" SLOT="0" LICENSE="GPL-2" #KEYWORDS="x86 ppc sparc alpha" KEYWORDS="~x86" src_compile() { local myconf use gif \ || myconf="${myconf} --disable-gif" use jpeg \ || myconf="${myconf} --disable-jpeg" use png \ || myconf="${myconf} --disable-png" use tiff \ || myconf="${myconf} --disable-tiff" econf \ --sysconfdir=/etc/X11 \ --with-x \ --with-appspath=/usr/share/GNUstep \ --with-pixmapdir=/usr/share/pixmaps \ ${myconf} || die cd ${S} cd WINGs make libWINGs.a || die cd ../wrlib make libwraster.la || die cd ../util make wmsetbg || die } src_install() { cd ${S}/doc doman wmsetbg.1x cd ${S}/wrlib/.libs dolib.so libwraster.so cd ${S}/util/.libs exeinto /usr/bin doexe wmsetbg }