You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
73 lines
1.5 KiB
73 lines
1.5 KiB
3 years ago
|
# Copyright 1999-2021 Gentoo Authors
|
||
8 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
3 years ago
|
EAPI=7
|
||
|
inherit autotools flag-o-matic toolchain-funcs
|
||
8 years ago
|
|
||
|
DESCRIPTION="Render images of the earth into the X root window"
|
||
|
HOMEPAGE="http://xplanet.sourceforge.net/"
|
||
|
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
|
||
|
|
||
|
LICENSE="GPL-2"
|
||
|
SLOT="0"
|
||
8 years ago
|
KEYWORDS="~alpha amd64 ~hppa ppc ppc64 ~sparc x86"
|
||
8 years ago
|
IUSE="gif jpeg png tiff truetype X"
|
||
|
|
||
|
RDEPEND="
|
||
|
gif? ( media-libs/giflib:= )
|
||
|
jpeg? ( virtual/jpeg:0 )
|
||
|
png? (
|
||
|
media-libs/libpng:0=
|
||
|
media-libs/netpbm
|
||
|
)
|
||
|
tiff? ( media-libs/tiff:0 )
|
||
|
truetype? (
|
||
|
media-libs/freetype:2
|
||
|
x11-libs/pango
|
||
|
)
|
||
|
X? (
|
||
|
x11-libs/libX11
|
||
|
x11-libs/libXScrnSaver
|
||
|
x11-libs/libXext
|
||
|
x11-libs/libXt
|
||
|
)
|
||
|
"
|
||
3 years ago
|
DEPEND="${RDEPEND}"
|
||
|
BDEPEND="
|
||
8 years ago
|
truetype? ( virtual/pkgconfig )
|
||
6 years ago
|
X? ( x11-base/xorg-proto )
|
||
8 years ago
|
"
|
||
|
|
||
|
PATCHES=(
|
||
|
"${FILESDIR}"/${P}-giflib.patch
|
||
|
"${FILESDIR}"/${P}-remove-null-comparison.patch
|
||
3 years ago
|
"${FILESDIR}"/${P}-freetype_pkgconfig.patch #788136
|
||
8 years ago
|
)
|
||
|
|
||
3 years ago
|
src_prepare() {
|
||
|
default
|
||
|
eautoreconf #788136
|
||
|
}
|
||
|
|
||
8 years ago
|
src_configure() {
|
||
|
# econf says 'checking pnm.h presence... no'
|
||
|
use png && append-cppflags -I"${EPREFIX}"/usr/include/netpbm
|
||
|
|
||
3 years ago
|
local myconf=(
|
||
|
--with-freetype$(usex truetype '' '=no')
|
||
|
--with-gif$(usex gif '' '=no')
|
||
|
--with-jpeg$(usex jpeg '' '=no')
|
||
|
--with-pango$(usex truetype '' '=no')
|
||
|
--with-png$(usex png '' '=no')
|
||
|
--with-pnm$(usex png '' '=no')
|
||
|
--with-tiff$(usex tiff '' '=no')
|
||
|
--with-x$(usex X '' '=no')
|
||
|
--with-xscreensaver$(usex X '' '=no')
|
||
|
)
|
||
|
econf --with-cspice=no "${myconf[@]}"
|
||
|
}
|
||
8 years ago
|
|
||
3 years ago
|
src_compile() {
|
||
|
emake AR=$(tc-getAR)
|
||
8 years ago
|
}
|