parent
a299e6a565
commit
65d0a26ea1
@ -1 +1,2 @@
|
||||
DIST zathura-cb-0.1.0.tar.gz 5365 SHA256 6bba014382a4f5c37968fd4655cc2adcba3b780416edf9222dfbf996c125715b SHA512 a7cf2a69d8ccb00eebe42787bcbd6bfc0f5c5f2257a58ed5f9c64ba2a6772fc5d61c73be30564799ee8a11f24a3dbf6b3a8b4c1010b039a2c797c13cfa4c56b1 WHIRLPOOL 1f83f9fb3990c15eac39f525109dff51d73729b5dc00ca3c409af765e139ef181922db45327418edbea2ea5a9702ffc620d293e96e90ef8a94c286d1a4d56b28
|
||||
DIST zathura-cb-0.1.1.tar.gz 5773 SHA256 4ff55255b3265e3fbcad8a10918e540cf113a3f2c0884cda8b653fdcdb985cbe SHA512 dacb8d73d4b7d7eaa1939ee207952fdd8187e5966c025af1e9bbf0729555b90ff88b5382f8f87f977ed4d636551393994736e274cbcd71bbb5078b931ec874a5 WHIRLPOOL 99fa0e25ba023c1cca354f71d1403d8047916522de509b6f5829515ab80fc0ab9c2de12fd8b6be1c9a1d225c84da7dc0ab79d4efc904514959759583044ade90
|
||||
|
@ -0,0 +1,47 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-text/zathura-cb/zathura-cb-0.1.1.ebuild,v 1.2 2013/06/13 21:52:51 xmw Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit eutils toolchain-funcs
|
||||
|
||||
DESCRIPTION="Comic book plug-in for zathura with 7zip, rar, tar and zip support"
|
||||
HOMEPAGE="http://pwmt.org/projects/zathura/"
|
||||
SRC_URI="http://pwmt.org/projects/zathura/plugins/download/${P}.tar.gz"
|
||||
|
||||
LICENSE="ZLIB"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~x86"
|
||||
IUSE="cairo"
|
||||
|
||||
COMMON_DEPEND=">=app-text/zathura-0.2.0
|
||||
dev-libs/glib:2
|
||||
app-arch/libarchive:=
|
||||
cairo? ( x11-libs/cairo )"
|
||||
RDEPEND="${COMMON_DEPEND}
|
||||
app-arch/p7zip
|
||||
app-arch/tar
|
||||
app-arch/unrar
|
||||
app-arch/unzip"
|
||||
DEPEND="${COMMON_DEPEND}
|
||||
virtual/pkgconfig"
|
||||
|
||||
pkg_setup() {
|
||||
myzathuraconf=(
|
||||
WITH_CAIRO=$(usex cairo 1 0)
|
||||
CC="$(tc-getCC)"
|
||||
LD="$(tc-getLD)"
|
||||
VERBOSE=1
|
||||
DESTDIR="${D}"
|
||||
)
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake "${myzathuraconf[@]}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake "${myzathuraconf[@]}" install
|
||||
dodoc AUTHORS
|
||||
}
|
@ -1,2 +1,3 @@
|
||||
DIST zathura-djvu-0.2.1.tar.gz 10412 SHA256 d8bb3c9e30244a0733e49740ee2dd099ce39fa16f2c320af27a0c09d9a25bcc3 SHA512 b2e622885cf17e0eb1f45182f4db2a5fc6a86900d2f91620a02d80deb560f3939552fd07388694e6a329defae1d0e766668027348b80be59b01bebe0d14f7903 WHIRLPOOL cab84c69228ef16fbadc03b5bb5a63a4e130343606aafd71f50634608436d9e82b25b560f65a326409fd1c0e80f68c6a751c12c35242bd20896b3db45d2993f2
|
||||
DIST zathura-djvu-0.2.2.tar.gz 10473 SHA256 9c0accf68be79df63f16337b7cef66bfb199f4ff296ae5a1bc8de220f1af2691 SHA512 42f45413a78b98de5eb2070cb84458dcfbb62b2aa24286c369aca68a354ab4515fbcb9a932565ce5c386e33446ef4a239309eb1fc4ff40eb5d240dae29e10ea4 WHIRLPOOL bcded33e54b1de28fc12131b239f37f268080522b9290ee2cd401aab2845961b9446c523ce973136aec3b30cd29b747410bde01e90ddf132f40b9606bbefd1e7
|
||||
DIST zathura-djvu-0.2.3.tar.gz 11181 SHA256 c16e82d525012b788fd01c4189df93708fcffffb7dd34ca09db55005d644ed89 SHA512 6fd9c1d367d02402bc5eaedd853ed0d37aee61a682772c3c2dd543d98c03d85b32cd2b4af4b7f7a6390e97206aa881ebd6df9783e7abf4222352fb4d57de4850 WHIRLPOOL 447aee58bf3c0e9baed6d9d60505245777fd38be8bb2ae4c2f387a98afe334a01cd870995884f99d073904ba6812120c6660d88864bc3d38798d94e1c7d9cd76
|
||||
|
@ -0,0 +1,42 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-text/zathura-djvu/zathura-djvu-0.2.3.ebuild,v 1.1 2013/06/13 22:00:58 xmw Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit eutils toolchain-funcs
|
||||
|
||||
DESCRIPTION="DjVu plug-in for zathura"
|
||||
HOMEPAGE="http://pwmt.org/projects/zathura/"
|
||||
SRC_URI="http://pwmt.org/projects/zathura/plugins/download/${P}.tar.gz"
|
||||
|
||||
LICENSE="ZLIB"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~x86"
|
||||
IUSE="cairo"
|
||||
|
||||
RDEPEND=">=app-text/djvu-3.5.24-r1
|
||||
>=app-text/zathura-0.2.0
|
||||
dev-libs/glib:2
|
||||
cairo? ( x11-libs/cairo )"
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig"
|
||||
|
||||
pkg_setup() {
|
||||
myzathuraconf=(
|
||||
WITH_CAIRO=$(usex cairo 1 0)
|
||||
CC="$(tc-getCC)"
|
||||
LD="$(tc-getLD)"
|
||||
VERBOSE=1
|
||||
DESTDIR="${D}"
|
||||
)
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake "${myzathuraconf[@]}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake "${myzathuraconf[@]}" install
|
||||
dodoc AUTHORS
|
||||
}
|
@ -1,8 +1,29 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer>
|
||||
<email>xmw@gentoo.org</email>
|
||||
<name>Michael Weber</name>
|
||||
</maintainer>
|
||||
<maintainer>
|
||||
<email>wired@gentoo.org</email>
|
||||
<name>Alex Alexander</name>
|
||||
</maintainer>
|
||||
<maintainer>
|
||||
<email>ssuominen@gentoo.org</email>
|
||||
<name>Samuli Suominen</name>
|
||||
</maintainer>
|
||||
<maintainer>
|
||||
<email>xmw@gentoo.org</email>
|
||||
<name>Michael Weber</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<maintainer status="active">
|
||||
<email>mlq@pwmt.org</email>
|
||||
<name>Moritz Lipp</name>
|
||||
</maintainer>
|
||||
<maintainer status="active">
|
||||
<email>sebastian+dev@ramacher.at</email>
|
||||
<name>Sebastian Ramacher</name>
|
||||
</maintainer>
|
||||
<changelog>http://pwmt.org/projects/zathura/download/</changelog>
|
||||
<doc lang="en">http://pwmt.org/projects/zathura/</doc>
|
||||
<bugs-to>http://bugs.pwmt.org/</bugs-to>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
|
@ -1,2 +1,3 @@
|
||||
DIST zathura-pdf-poppler-0.2.1.tar.gz 8158 SHA256 1c162ea887e52f48d6dc80f8427a773768f2df2e37242dab7efddeb3d2e361cd SHA512 4bd8314b4c9bd38471c0656f43d6f05692b740139dfd964e70f7d5ceb973c3f15d5cccf74d5917dbb262b0eb81e9e77b27a999f6dc02de015f27e833be3d8953 WHIRLPOOL ebbfa52a8357bf0b2c2415d4e9624bc755a161db3493c6e065b47575f9fe551d9e3841216e9201323dff1dee9ac370f8d5fd8b77fd13b3f0ba4efcc32ae8daa9
|
||||
DIST zathura-pdf-poppler-0.2.2.tar.gz 8153 SHA256 87115a2535e2108911dbc900f5d0db879bc6d9f731b161454a6955bb804ba55f SHA512 6691cbfffa11712ef62f693001d2ccff6683053187b784288b08ae8c16d0b80181d61daf347db396687b145f548ea9e90a2f1452cf5005eda3490311805951f3 WHIRLPOOL 195ef25b368fe19c23de27bbf051982b6bd56499c60eff474f349e14c874fcddade1d8c75ad2a1608c6dcdbe2329d86b9be74934d162d6486c044d9fbbeae05f
|
||||
DIST zathura-pdf-poppler-0.2.3.tar.gz 9013 SHA256 e61aace394110efbd9b875a0d804983fbb97fa6cb3d904c96570c87625ffc861 SHA512 c8ae296e691b6c308460e5c6e295a6d07db27a8820b2622395fa137fbd2748df4517338535a6a7acb4706b88027ba981e3d263e3976f777e6ff5df7e40b5fb59 WHIRLPOOL 06708027c4f6c8327510cee5688c704bb0f826ab701d21781275ec9e00b59807917d123808501c8413367864aa235ff2be5c849f6aa90f2d5854b24228f830bd
|
||||
|
@ -0,0 +1,41 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-text/zathura-pdf-poppler/zathura-pdf-poppler-0.2.3.ebuild,v 1.1 2013/06/13 22:06:43 xmw Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit eutils toolchain-funcs
|
||||
|
||||
DESCRIPTION="PDF plug-in for zathura"
|
||||
HOMEPAGE="http://pwmt.org/projects/zathura/"
|
||||
SRC_URI="http://pwmt.org/projects/zathura/plugins/download/${P}.tar.gz"
|
||||
|
||||
LICENSE="ZLIB"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~x86"
|
||||
IUSE="cairo"
|
||||
|
||||
RDEPEND="app-text/poppler:=[cairo?]
|
||||
>=app-text/zathura-0.2.0
|
||||
cairo? ( x11-libs/cairo:= )"
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig"
|
||||
|
||||
pkg_setup() {
|
||||
myzathuraconf=(
|
||||
WITH_CAIRO=$(usex cairo 1 0)
|
||||
CC="$(tc-getCC)"
|
||||
LD="$(tc-getLD)"
|
||||
VERBOSE=1
|
||||
DESTDIR="${D}"
|
||||
)
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake "${myzathuraconf[@]}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake "${myzathuraconf[@]}" install
|
||||
dodoc AUTHORS
|
||||
}
|
@ -1,2 +1,3 @@
|
||||
DIST zathura-ps-0.2.0.tar.gz 5004 SHA256 717eda01213b162421b6b52f29d6b981edc302fddf351ccb2c093b6842751414 SHA512 b4a06bf1cdce7da056106f67924068598260d5fb5ffc93015c9e4c2c8ee16ecaf774702910eddf4724ac59b8d9340158d56f746e5a8a6597897887ff9f980dcf WHIRLPOOL ad40cfd9b44a283c68efce12d87d5ed1d6036257fd3cfbebe4b7f808e14d7923761d783d5e20ff55d61c8350ba81ab6fa0fe0992a8e60abbd3c6db705354f9f3
|
||||
DIST zathura-ps-0.2.1.tar.gz 5057 SHA256 01f6a8953d0a1b94b51ff46ac8955b54b1aa6789044e1e34f1d6dbccf94eaee5 SHA512 c039158819e22c0af5271002e12112146c49e7a312c3edfa43f5ef3b4db31b0987c642f06186b85ec5255a5237b5f607bda5c6750e0ae8d6ee39703836cd85d7 WHIRLPOOL 57d7e8b6a97e7745e2514cbf339c0d6df8eaec5f487955cfafbc40a1691654269ee55bba102dcfce031e74e27d65462180849b028e99fa295cc094dfa9114ea6
|
||||
DIST zathura-ps-0.2.2.tar.gz 5793 SHA256 e6546261db03b0b6b6499a8e109dc9ff3b8eb8b154ce45f5c6284c1e76d1d7a8 SHA512 4cedd614127b995ad834d5913dd5d9b3dff6172ac31cf42e8d43941815ac03a4872f41d7766c325f435feffa63364c9c377f760cd0540d2f36753e7df1c4c49e WHIRLPOOL 246f7cede9096474efab0c1b4f25bbd4b908eeb1a3a995d390939c02b79ca2adcce86582fd4129189b20e9028f6c0e9079c674cc1beebc59844b8b3d5597b76c
|
||||
|
@ -0,0 +1,42 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-text/zathura-ps/zathura-ps-0.2.2.ebuild,v 1.1 2013/06/13 21:54:15 xmw Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit eutils toolchain-funcs
|
||||
|
||||
DESCRIPTION="PostScript plug-in for zathura"
|
||||
HOMEPAGE="http://pwmt.org/projects/zathura/"
|
||||
SRC_URI="http://pwmt.org/projects/zathura/plugins/download/${P}.tar.gz"
|
||||
|
||||
LICENSE="ZLIB"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux"
|
||||
IUSE="cairo"
|
||||
|
||||
RDEPEND=">=app-text/libspectre-0.2.6
|
||||
>=app-text/zathura-0.2.0
|
||||
dev-libs/glib:2
|
||||
cairo? ( x11-libs/cairo )"
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig"
|
||||
|
||||
pkg_setup() {
|
||||
myzathuraconf=(
|
||||
WITH_CAIRO=$(usex cairo 1 0)
|
||||
CC="$(tc-getCC)"
|
||||
LD="$(tc-getLD)"
|
||||
VERBOSE=1
|
||||
DESTDIR="${D}"
|
||||
)
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake "${myzathuraconf[@]}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake "${myzathuraconf[@]}" install
|
||||
dodoc AUTHORS
|
||||
}
|
@ -1,2 +1,3 @@
|
||||
DIST zathura-0.2.1.tar.gz 95179 SHA256 075b9def201c77ca738dc9e15b252bc23c085b7c4671a1810d1d962e8d0bd790 SHA512 fec1185cbbabdbad266c81074d372a35ed41bc1f6f14adb55107f0bf6cca15a10736afda2ad827db8766ab15e884e15f64aeeb40e31defe29b34061623e4464d WHIRLPOOL 1c55315cd11a486a29a45cdd708c7df7cb01bed1a37f89777b78be15617b57053399efe0ea1297c1db07500744c4771f9dfb0db8b0be7a95f5909aefb67606c1
|
||||
DIST zathura-0.2.2.tar.gz 108240 SHA256 6506237ba76ce1611dc24ddd870853d753b5e70e5200d75d2a2257ff7c9242c9 SHA512 a777a57de249cb542190c3da62f89d7653aa324e28b9de17ab8e35307c99e505461f3a2acc0cacd3949757b906262a696b7c4a2e9c330f222ffa27785bd50774 WHIRLPOOL 04a3fc26eeb594de8181f61a7900514aa08562b200ff1797bdd6204c051e80bd2c7b483400736b1799ca7de79472f96710ec92380c9914032d72542b4c1b97fd
|
||||
DIST zathura-0.2.3.tar.gz 121465 SHA256 e0b3c851f422d13271dbe2cfd0097fbabeb0760b2b7742e2a43691df3ee4fd05 SHA512 a079d33625217d76d5fb83c45715a30f751f79d9842178093387f922820c4e6443d1bc5462698065e6aac43b147bb5811f642b6074eb534268a62d5ead52afa3 WHIRLPOOL 82d6f62993ed00070d6ad23aaf49593d6fecba0e60a0dfb810e4a8c60a75b69180899ce79acbf9c8180c29d69175e6d8a61bcf6019d72a0d166d99160d43f682
|
||||
|
@ -0,0 +1,61 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-text/zathura/zathura-0.2.3.ebuild,v 1.1 2013/06/13 22:24:38 xmw Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit eutils fdo-mime multilib toolchain-funcs virtualx
|
||||
|
||||
DESCRIPTION="A highly customizable and functional document viewer"
|
||||
HOMEPAGE="http://pwmt.org/projects/zathura/"
|
||||
SRC_URI="http://pwmt.org/projects/${PN}/download/${P}.tar.gz"
|
||||
|
||||
LICENSE="ZLIB"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux"
|
||||
IUSE="+doc sqlite test"
|
||||
|
||||
RDEPEND=">=dev-libs/girara-0.1.6:2
|
||||
dev-libs/glib:2
|
||||
x11-libs/cairo
|
||||
sqlite? ( dev-db/sqlite:3 )"
|
||||
DEPEND="${RDEPEND}
|
||||
sys-devel/gettext
|
||||
virtual/pkgconfig
|
||||
doc? ( dev-python/docutils )
|
||||
test? ( dev-libs/check )"
|
||||
|
||||
pkg_setup() {
|
||||
myzathuraconf=(
|
||||
ZATHURA_GTK_VERSION=2
|
||||
WITH_SQLITE=$(usex sqlite 1 0)
|
||||
PREFIX="${EPREFIX}"/usr
|
||||
LIBDIR='${PREFIX}'/$(get_libdir)
|
||||
RSTTOMAN="$(use doc && type -P rst2man.py)"
|
||||
CC="$(tc-getCC)"
|
||||
SFLAGS=""
|
||||
VERBOSE=1
|
||||
DESTDIR="${D}"
|
||||
)
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake "${myzathuraconf[@]}"
|
||||
}
|
||||
|
||||
src_test() {
|
||||
Xemake "${myzathuraconf[@]}" test
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake "${myzathuraconf[@]}" install
|
||||
dodoc AUTHORS
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
fdo-mime_desktop_database_update
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
fdo-mime_desktop_database_update
|
||||
}
|
@ -1 +1,2 @@
|
||||
DIST go1.1.1.src.tar.gz 9045336 SHA256 257f74b8d812bbdec695e842de587a1495e7728b4e63d280586a14786adbb5af SHA512 0e990eb8fcbbad29650e2773e483b72084a9846d6f0651c862efdea8168e8d36a6ba02cfacbb8793d0e2624718c65825edaa32dd7d0aec009f97c070d4c6ea02 WHIRLPOOL 937c1c7ab9c86e0e8ca1abe69a3454ac3660ac41e6ebbbab92334f5760424a6a13f5b5dbe902c5ebdcbbd1bc940ae4cef2c81c1032ca4093d0f5997bee7dcca7
|
||||
DIST go1.1.src.tar.gz 9041413 SHA256 bf1d057d8386e840f9cd3f787252e26d8ee196852e9232a6f9ce762337b19cb6 SHA512 5ae241f2893a39f872214a1b008d28a19d68ece81700422dc917160a69a8388b6fcb27442ea10b533a3c6f94ef09e24425727d2a315c3457ce076bbe42fd033a WHIRLPOOL b3cde4ab5ecb5697c195c33f4bbe11ede0428910f208ded11f4a7fc567697be7af62153fc16105a5f33dcbb84bfcdd182ec44ea1a0722a0bce74b2adc2328d03
|
||||
|
@ -0,0 +1,12 @@
|
||||
Disable -Werror.
|
||||
|
||||
--- a/src/cmd/dist/build.c
|
||||
+++ b/src/cmd/dist/build.c
|
||||
@@ -384,7 +384,6 @@ static char *proto_gccargs[] = {
|
||||
"-Wno-unknown-pragmas",
|
||||
"-Wno-switch",
|
||||
"-Wno-comment",
|
||||
- "-Werror",
|
||||
"-fno-common",
|
||||
"-ggdb",
|
||||
"-O2",
|
@ -0,0 +1,139 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-lang/go/go-1.1.1.ebuild,v 1.1 2013/06/14 01:10:58 williamh Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
export CTARGET=${CTARGET:-${CHOST}}
|
||||
|
||||
inherit bash-completion-r1 elisp-common eutils
|
||||
|
||||
if [[ ${PV} = 9999 ]]; then
|
||||
EHG_REPO_URI="https://go.googlecode.com/hg"
|
||||
inherit mercurial
|
||||
else
|
||||
SRC_URI="http://go.googlecode.com/files/go${PV}.src.tar.gz"
|
||||
# Upstream only supports go on amd64, arm and x86 architectures.
|
||||
KEYWORDS="-* ~amd64 ~arm ~x86"
|
||||
fi
|
||||
|
||||
DESCRIPTION="A concurrent garbage collected and typesafe programming language"
|
||||
HOMEPAGE="http://www.golang.org"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
IUSE="bash-completion emacs vim-syntax zsh-completion"
|
||||
|
||||
DEPEND="sys-apps/ed"
|
||||
RDEPEND="bash-completion? ( app-shells/bash-completion )
|
||||
emacs? ( virtual/emacs )
|
||||
vim-syntax? ( || ( app-editors/vim app-editors/gvim ) )
|
||||
zsh-completion? ( app-shells/zsh-completion )"
|
||||
|
||||
# The tools in /usr/lib/go should not cause the multilib-strict check to fail.
|
||||
QA_MULTILIB_PATHS="usr/lib/go/pkg/tool/linux.*/.*"
|
||||
|
||||
# The go language uses *.a files which are _NOT_ libraries and should not be
|
||||
# stripped.
|
||||
STRIP_MASK="/usr/lib/go/pkg/linux*/*.a"
|
||||
|
||||
if [[ ${PV} != 9999 ]]; then
|
||||
S="${WORKDIR}"/go
|
||||
fi
|
||||
|
||||
src_prepare()
|
||||
{
|
||||
if [[ ${PV} != 9999 ]]; then
|
||||
epatch "${FILESDIR}"/${P}-no-Werror.patch
|
||||
fi
|
||||
epatch_user
|
||||
}
|
||||
|
||||
src_compile()
|
||||
{
|
||||
export GOROOT_FINAL=/usr/lib/go
|
||||
export GOROOT="$(pwd)"
|
||||
export GOBIN="${GOROOT}/bin"
|
||||
if [[ $CTARGET = armv5* ]]
|
||||
then
|
||||
export GOARM=5
|
||||
fi
|
||||
|
||||
cd src
|
||||
./make.bash || die "build failed"
|
||||
cd ..
|
||||
|
||||
if use emacs; then
|
||||
elisp-compile misc/emacs/*.el
|
||||
fi
|
||||
}
|
||||
|
||||
src_test()
|
||||
{
|
||||
cd src
|
||||
PATH="${GOBIN}:${PATH}" \
|
||||
./run.bash --no-rebuild --banner || die "tests failed"
|
||||
}
|
||||
|
||||
src_install()
|
||||
{
|
||||
dobin bin/*
|
||||
dodoc AUTHORS CONTRIBUTORS PATENTS README
|
||||
|
||||
dodir /usr/lib/go
|
||||
insinto /usr/lib/go
|
||||
|
||||
# There is a known issue which requires the source tree to be installed [1].
|
||||
# Once this is fixed, we can consider using the doc use flag to control
|
||||
# installing the doc and src directories.
|
||||
# [1] http://code.google.com/p/go/issues/detail?id=2775
|
||||
doins -r doc include lib pkg src
|
||||
|
||||
if use bash-completion; then
|
||||
dobashcomp misc/bash/go
|
||||
fi
|
||||
|
||||
if use emacs; then
|
||||
elisp-install ${PN} misc/emacs/*.el misc/emacs/*.elc
|
||||
fi
|
||||
|
||||
if use vim-syntax; then
|
||||
insinto /usr/share/vim/vimfiles
|
||||
doins -r misc/vim/ftdetect
|
||||
doins -r misc/vim/ftplugin
|
||||
doins -r misc/vim/syntax
|
||||
doins -r misc/vim/plugin
|
||||
doins -r misc/vim/indent
|
||||
fi
|
||||
|
||||
if use zsh-completion; then
|
||||
insinto /usr/share/zsh/site-functions
|
||||
doins misc/zsh/go
|
||||
fi
|
||||
|
||||
fperms -R +x /usr/lib/go/pkg/tool
|
||||
}
|
||||
|
||||
pkg_postinst()
|
||||
{
|
||||
if use emacs; then
|
||||
elisp-site-regen
|
||||
fi
|
||||
|
||||
# If the go tool sees a package file timestamped older than a dependancy it
|
||||
# will rebuild that file. So, in order to stop go from rebuilding lots of
|
||||
# packages for every build we need to fix the timestamps. The compiler and
|
||||
# linker are also checked - so we need to fix them too.
|
||||
ebegin "fixing timestamps to avoid unnecessary rebuilds"
|
||||
tref="usr/lib/go/pkg/*/runtime.a"
|
||||
find "${ROOT}"usr/lib/go -type f \
|
||||
-exec touch -r "${ROOT}"${tref} {} \;
|
||||
eend $?
|
||||
}
|
||||
|
||||
pkg_postrm()
|
||||
{
|
||||
if use emacs; then
|
||||
elisp-site-regen
|
||||
fi
|
||||
}
|
@ -1,2 +1,3 @@
|
||||
DIST girara-0.1.4.tar.gz 73645 SHA256 831cf523b131bfa1c182efbf146d68fb642fe62d22ee199caf0cd71408a85739 SHA512 fef0cca93fcda4170dbdfbe821d939c0248188fa5e4965d008339230f36e6ff2feec055cc87f4da4f7d813ccb29afb4e58720cbf13868c32c6ec50a40a5e258f WHIRLPOOL 6b004a5c5dda64c1b5a41df9bf30447df854f3b3f6eed04d3b89d80a110a5b3f370698a53dc664d78c7cb4abce6fa97e3613f77e31afb43c3f4632a706eda50d
|
||||
DIST girara-0.1.5.tar.gz 73949 SHA256 8d2eeb6aa27286a298ef7b08017a3f702bcd84bfe61a382acebb79d4ab1cd1c1 SHA512 d170be2e5fe3388e2b6c2cca8a3a4d506625ff6c8d07e6f2e191042f924104756dc975310f0d8d9b7487204ac1f1a0b76a52ec9930aaeb242a029d1e03ccc54f WHIRLPOOL 3bd0261fc8ba4a7585496c8179c5613e02028423a07da47843943c0250ff1b733a29408d514756fe03ea3ec9234cc4ac1cba178f4b1c8c84ca86a851968ca58a
|
||||
DIST girara-0.1.6.tar.gz 79941 SHA256 db12e6bf1f84fbda3c327ca89490b8a87182cc121fdf60297fbd10646e392b28 SHA512 23865aef1e968a0995c3eabee4c354b11c6c3c9a7e37ea54a056d461254683f8b28b6eca544330a57b4063a1dede5572fdd86304517411d2f64eada849b37f4e WHIRLPOOL 3abc08af8465689f1672dac9cfbccd5fbd0a169876b04d004a663b7feaf83ef824eaf33b38ce5a44741bb2df0c9e18b10dd707ca639e11cb95304dd8a0bab48e
|
||||
|
@ -0,0 +1,55 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-libs/girara/girara-0.1.6-r200.ebuild,v 1.1 2013/06/13 22:32:52 xmw Exp $
|
||||
|
||||
EAPI=5
|
||||
inherit multilib toolchain-funcs
|
||||
|
||||
DESCRIPTION="A library that implements a user interface that focuses on simplicity and minimalism"
|
||||
HOMEPAGE="http://pwmt.org/projects/girara/"
|
||||
SRC_URI="http://pwmt.org/projects/${PN}/download/${P}.tar.gz"
|
||||
|
||||
LICENSE="ZLIB"
|
||||
SLOT="2"
|
||||
KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux"
|
||||
IUSE="static-libs"
|
||||
|
||||
# Pull in SLOT="3" for headers
|
||||
RDEPEND="${CATEGORY}/${PN}:3
|
||||
>=x11-libs/gtk+-2.18.6:2"
|
||||
DEPEND="${RDEPEND}
|
||||
sys-devel/gettext
|
||||
virtual/pkgconfig"
|
||||
|
||||
pkg_setup() {
|
||||
mygiraraconf=(
|
||||
PREFIX="${EPREFIX}"/usr
|
||||
LIBDIR='${PREFIX}'/$(get_libdir)
|
||||
GIRARA_GTK_VERSION=2
|
||||
CC="$(tc-getCC)"
|
||||
SFLAGS=""
|
||||
VERBOSE=1
|
||||
DESTDIR="${D}"
|
||||
)
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# Remove 'static' and 'install-static' targets
|
||||
if ! use static-libs; then
|
||||
sed -i \
|
||||
-e '/^${PROJECT}:/s:static::' \
|
||||
-e '/^install:/s:install-static::' \
|
||||
Makefile || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake "${mygiraraconf[@]}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake "${mygiraraconf[@]}" install
|
||||
dodoc AUTHORS
|
||||
|
||||
rm -rf "${ED}"/usr/include/${PN}
|
||||
}
|
@ -0,0 +1,52 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-libs/girara/girara-0.1.6-r300.ebuild,v 1.1 2013/06/13 22:32:52 xmw Exp $
|
||||
|
||||
EAPI=5
|
||||
inherit multilib toolchain-funcs
|
||||
|
||||
DESCRIPTION="A library that implements a user interface that focuses on simplicity and minimalism"
|
||||
HOMEPAGE="http://pwmt.org/projects/girara/"
|
||||
SRC_URI="http://pwmt.org/projects/${PN}/download/${P}.tar.gz"
|
||||
|
||||
LICENSE="ZLIB"
|
||||
SLOT="3"
|
||||
KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux"
|
||||
IUSE="static-libs"
|
||||
|
||||
RDEPEND=">=x11-libs/gtk+-3.0.11:3
|
||||
!<${CATEGORY}/${PN}-0.1.5-r200"
|
||||
DEPEND="${RDEPEND}
|
||||
sys-devel/gettext
|
||||
virtual/pkgconfig"
|
||||
|
||||
pkg_setup() {
|
||||
mygiraraconf=(
|
||||
PREFIX="${EPREFIX}"/usr
|
||||
LIBDIR='${PREFIX}'/$(get_libdir)
|
||||
GIRARA_GTK_VERSION=3
|
||||
CC="$(tc-getCC)"
|
||||
SFLAGS=""
|
||||
VERBOSE=1
|
||||
DESTDIR="${D}"
|
||||
)
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# Remove 'static' and 'install-static' targets
|
||||
if ! use static-libs; then
|
||||
sed -i \
|
||||
-e '/^${PROJECT}:/s:static::' \
|
||||
-e '/^install:/s:install-static::' \
|
||||
Makefile || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake "${mygiraraconf[@]}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake "${mygiraraconf[@]}" install
|
||||
dodoc AUTHORS
|
||||
}
|
@ -1 +1,2 @@
|
||||
DIST attica-0.4.1.tar.bz2 58742 SHA256 36d12562c11464e3111df8a36669adcd80c5f3c89ac6b08a708a1bbf8341cde6 SHA512 76d91e66c9661fcd03f61595e9ed4db9fb6972d90e187137ec2ed31e6e329d22a2da08cb23ad10a2385d1da2e60576fd3e743b8fb32c8ab87440f82bef4f99f9 WHIRLPOOL 11f2438e12a59677fbd48eb099e45f3c446949107be98198b04bcea5e3ea2c6534da7fbb7434daceb65627d8ce12ef51413bdc6455ef873523e9bc17dc48048d
|
||||
DIST attica-0.4.2.tar.bz2 57093 SHA256 3b9c53770862c0b21b7af7ea15951c35831126022bb8d052760d9cf8bd7ee4f8 SHA512 cef5d5c4bf01ed45ed8b59db354a4ac7949de435a45e4f753c847cadc15855e25997dedf1ff20c7bc4a2724d2cdba15139c54f0682df7d8cc8750de5be6f716e WHIRLPOOL b35c3a072a44031f61e7f048336f552a95a1d9f77838552fc19fbbcf22e66dfa297b9ffccd30cf434be7fe6485209bf6e4622cfa0637a519de6ee5318a947833
|
||||
|
@ -0,0 +1,64 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-libs/libattica/libattica-0.4.2.ebuild,v 1.1 2013/06/13 17:51:48 johu Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
MY_P="${P#lib}"
|
||||
MY_PN="${PN#lib}"
|
||||
|
||||
if [[ $PV = *9999* ]]; then
|
||||
EGIT_REPO_URI="git://anongit.kde.org/attica"
|
||||
KEYWORDS=""
|
||||
scm_eclass=git-2
|
||||
else
|
||||
SRC_URI="mirror://kde/stable/${MY_PN}/${MY_P}.tar.bz2"
|
||||
KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux"
|
||||
fi
|
||||
|
||||
inherit cmake-utils ${scm_eclass}
|
||||
|
||||
DESCRIPTION="A library providing access to Open Collaboration Services"
|
||||
HOMEPAGE="http://www.kde.org/"
|
||||
|
||||
LICENSE="GPL-2 LGPL-2"
|
||||
SLOT="0"
|
||||
IUSE="debug +qt4 qt5 test"
|
||||
|
||||
REQUIRED_USE="^^ ( qt4 qt5 )"
|
||||
|
||||
RDEPEND="
|
||||
qt4? ( dev-qt/qtcore:4 )
|
||||
qt5? (
|
||||
dev-qt/qtcore:5
|
||||
dev-qt/qtnetwork:5
|
||||
)
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
qt5? (
|
||||
dev-libs/extra-cmake-modules
|
||||
dev-qt/qtconcurrent:5
|
||||
)
|
||||
test? (
|
||||
qt4? (
|
||||
dev-qt/qtgui:4
|
||||
dev-qt/qttest:4
|
||||
)
|
||||
qt5? (
|
||||
dev-qt/qttest:5
|
||||
dev-qt/qtwidgets:5
|
||||
)
|
||||
)
|
||||
"
|
||||
|
||||
DOCS=( AUTHORS ChangeLog README )
|
||||
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
$(cmake-utils_use_find_package qt5 Qt5Core)
|
||||
$(cmake-utils_use test ATTICA_ENABLE_TESTS)
|
||||
)
|
||||
cmake-utils_src_configure
|
||||
}
|
@ -0,0 +1 @@
|
||||
DIST itsdangerous-0.21.tar.gz 8595 SHA256 c760381fc09dc120e4b459f5ba39ed55ea21fd77ac9f4d4101c0c237d8fc9d9e SHA512 5164dda9d38d0d1c880f7782db12fe74b7f305057fa5507d788d6af2d49068a870313280ece6e4b019d0e5ba01f945ae7a54b205f289efda2602bad12cd401cd WHIRLPOOL 1359b8625a7865a590fd2d3d8fd667f6ad0b74d5b4bb90b9afd4b38e41479ed0e1f56f92ff55d57c24edc486711dbca36a6ee778b70b766ea6ba32c22793eadc
|
@ -0,0 +1,20 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/itsdangerous/itsdangerous-0.21.ebuild,v 1.1 2013/06/14 03:17:21 rafaelmartins Exp $
|
||||
|
||||
EAPI="5"
|
||||
PYTHON_COMPAT=( python{2_6,2_7,3_3} pypy{1_9,2_0} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Various helpers to pass trusted data to untrusted environments and back."
|
||||
SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
|
||||
HOMEPAGE="http://pythonhosted.org/itsdangerous/ http://pypi.python.org/pypi/itsdangerous"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND=""
|
||||
DEPEND="${RDEPEND}"
|
@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<herd>python</herd>
|
||||
</pkgmetadata>
|
||||
|
@ -1,2 +1,3 @@
|
||||
DIST pyparted-3.10.tar.gz 189069 SHA256 bb8de71ba54983af84cf036002511cfb6d8fab4fc5e9a9be7236ecba6d24989f SHA512 5dec303fdfd901b39640c273c962a32b58ba48a9aafa37871baa75ed0a7260886c2dbbecaacfd64dca82260b64f41ead65af8e67acbc1e490784b4b0e3ddd7f6 WHIRLPOOL 72c23abdc6d37c3ff058daa6449176411776c17297b7367b126a7976b55cd5ffd732b20831bfe911a5932bfcb4b513d17b7a286f14d84e195067ffde0281cd71
|
||||
DIST pyparted-3.8.tar.gz 185726 SHA256 c9978380e18fe284dd5b74a5043d259ef8512323fa3c85d08c7a5f3bb9563326 SHA512 a1dc0d553f9ed45442227124613cd0846b43c02e6e4ce106a71b34b58f9304510b509d6613ed2e8ddb6ea2c14d708e5851885a0ccdb2bf9a62c093a07fd0eeef WHIRLPOOL 94bda288c766cc4465e5badd3b80d3125ff249d4d56c83167a559446d319d7aae24a67d66d3b53c17cb0161f690d8bbb821cb979221620afa34f402d40258460
|
||||
DIST pyparted-3.9.tar.gz 186136 SHA256 a56712e3d058ce3d859c158236dbbf45224018919efd3d880ea80f9e0d0bebbb SHA512 16ed2144524590e8b6b4ec8b47c3453fea0dfc89fc2c43189e50bff4db56d22bf5fe41f91225c8448b4b97bf963aa4e02b4dc1f91464dd446200af630148c308 WHIRLPOOL f4d33379193b32373b0a37d4d65b8f85e4ae7c0ae1594c8b48de3bda12fe407ea07ae1029a5f011647dd189c685a6189b0f00aeb0233bd6f165b0b1b792069a8
|
||||
|
@ -0,0 +1,32 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/pyparted/pyparted-3.10.ebuild,v 1.1 2013/06/13 16:01:56 jer Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python{2_7,3_1,3_2} )
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Python bindings for sys-block/parted"
|
||||
HOMEPAGE="https://fedorahosted.org/pyparted/"
|
||||
SRC_URI="https://fedorahosted.org/releases/p/y/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
|
||||
IUSE="test"
|
||||
|
||||
RDEPEND="
|
||||
>=sys-block/parted-3.1
|
||||
dev-python/decorator
|
||||
sys-libs/ncurses
|
||||
"
|
||||
DEPEND="
|
||||
${RDEPEND}
|
||||
"
|
||||
# test? ( dev-python/pychecker )
|
||||
|
||||
src_test() {
|
||||
ewarn "Test suite disabled until dev-python/pychecker"
|
||||
ewarn "is migrated to -r1.eclass"
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
patch for py2.5 failing over not being able to write to the system installed py2.5. 'build' sees it pass
|
||||
https://bitbucket.org/pypa/setuptools/issue/19/2-tests-fail-in-current-072
|
||||
diff -ur
|
||||
setuptools-0.7.2.orig/setuptools/tests/test_easy_install.py setuptools-0.7.2/setuptools/tests/test_easy_install.py
|
||||
--- setuptools/tests/test_easy_install.py 2013-06-09 23:59:08.000000000 +0800
|
||||
+++ setuptools/tests/test_easy_install.py 2013-06-13 22:48:54.036377152 +0800
|
||||
@@ -273,7 +273,7 @@
|
||||
sys.stderr = StringIO.StringIO()
|
||||
try:
|
||||
reset_setup_stop_context(
|
||||
- lambda: run_setup(test_setup_py, ['install'])
|
||||
+ lambda: run_setup(test_setup_py, ['build'])
|
||||
)
|
||||
except SandboxViolation:
|
||||
self.fail('Installation caused SandboxViolation')
|
@ -0,0 +1,39 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/setuptools/setuptools-0.7.2.ebuild,v 1.1 2013/06/14 03:34:47 idella4 Exp $
|
||||
|
||||
EAPI="5"
|
||||
PYTHON_COMPAT=( python{2_5,2_6,2_7,3_1,3_2,3_3} pypy{1_9,2_0} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="a collection of extensions to Distutils"
|
||||
HOMEPAGE="http://pypi.python.org/pypi/setuptools"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="PSF-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~arm-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE=""
|
||||
|
||||
# Force in-source build because build system modifies sources.
|
||||
DISTUTILS_IN_SOURCE_BUILD=1
|
||||
|
||||
DOCS=( README.txt docs/{easy_install.txt,pkg_resources.txt,setuptools.txt} )
|
||||
|
||||
python_prepare() {
|
||||
if [[ "${EPYTHON}" == 'python2.5' ]]; then
|
||||
epatch "${FILESDIR}"/${P}-test-easy.patch
|
||||
fi
|
||||
}
|
||||
|
||||
python_prepare_all() {
|
||||
# Disable tests requiring network connection.
|
||||
rm -f setuptools/tests/test_packageindex.py
|
||||
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
python_test() {
|
||||
esetup.py test
|
||||
}
|
@ -0,0 +1,264 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/media-tv/xbmc/xbmc-12.2-r1.ebuild,v 1.1 2013/06/13 22:47:47 aballier Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
# Does not work with py3 here
|
||||
# It might work with py:2.5 but I didn't test that
|
||||
PYTHON_COMPAT=( python{2_6,2_7} )
|
||||
PYTHON_REQ_USE="sqlite"
|
||||
|
||||
inherit eutils python-single-r1 multiprocessing autotools
|
||||
|
||||
BACKPORTS_VERSION=1
|
||||
|
||||
case ${PV} in
|
||||
9999)
|
||||
EGIT_REPO_URI="git://github.com/xbmc/xbmc.git"
|
||||
inherit git-2
|
||||
SRC_URI="!java? ( mirror://gentoo/${P}-20121224-generated-addons.tar.xz )"
|
||||
;;
|
||||
*_alpha*|*_beta*|*_rc*)
|
||||
MY_PV="Frodo_${PV#*_}"
|
||||
MY_P="${PN}-${MY_PV}"
|
||||
SRC_URI="https://github.com/xbmc/xbmc/archive/${MY_PV}.tar.gz -> ${P}.tar.gz
|
||||
!java? ( mirror://gentoo/${P}-generated-addons.tar.xz )"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
;;
|
||||
*)
|
||||
MY_P=${P/_/-*_}
|
||||
SRC_URI="http://mirrors.xbmc.org/releases/source/${MY_P}.tar.gz
|
||||
mirror://gentoo/${PN}_backports-12-${BACKPORTS_VERSION}.tar.bz2"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
;;
|
||||
esac
|
||||
|
||||
DESCRIPTION="XBMC is a free and open source media-player and entertainment hub"
|
||||
HOMEPAGE="http://xbmc.org/"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
IUSE="airplay alsa altivec avahi bluetooth bluray caps cec css debug gles goom java joystick midi mysql neon nfs +opengl profile +projectm pulseaudio pvr +rsxs rtmp +samba +sdl sse sse2 sftp udev upnp +usb vaapi vdpau webserver +X +xrandr"
|
||||
REQUIRED_USE="
|
||||
pvr? ( mysql )
|
||||
rsxs? ( X )
|
||||
X? ( sdl )
|
||||
xrandr? ( X )
|
||||
"
|
||||
|
||||
COMMON_DEPEND="${PYTHON_DEPS}
|
||||
app-arch/bzip2
|
||||
app-arch/unzip
|
||||
app-arch/zip
|
||||
app-i18n/enca
|
||||
airplay? ( app-pda/libplist )
|
||||
dev-libs/boost
|
||||
dev-libs/fribidi
|
||||
dev-libs/libcdio[-minimal]
|
||||
cec? ( >=dev-libs/libcec-2.1 )
|
||||
dev-libs/libpcre[cxx]
|
||||
>=dev-libs/lzo-2.04
|
||||
dev-libs/tinyxml[stl]
|
||||
dev-libs/yajl
|
||||
dev-python/simplejson[${PYTHON_USEDEP}]
|
||||
media-libs/alsa-lib
|
||||
media-libs/flac
|
||||
media-libs/fontconfig
|
||||
media-libs/freetype
|
||||
>=media-libs/glew-1.5.6
|
||||
media-libs/jasper
|
||||
media-libs/jbigkit
|
||||
>=media-libs/libass-0.9.7
|
||||
bluray? ( media-libs/libbluray )
|
||||
css? ( media-libs/libdvdcss )
|
||||
media-libs/libmad
|
||||
media-libs/libmodplug
|
||||
media-libs/libmpeg2
|
||||
media-libs/libogg
|
||||
media-libs/libpng
|
||||
projectm? ( media-libs/libprojectm )
|
||||
media-libs/libsamplerate
|
||||
sdl? ( media-libs/libsdl[audio,opengl,video,X] )
|
||||
alsa? ( media-libs/libsdl[alsa] )
|
||||
>=media-libs/taglib-1.8
|
||||
media-libs/libvorbis
|
||||
sdl? (
|
||||
media-libs/sdl-gfx
|
||||
>=media-libs/sdl-image-1.2.10[gif,jpeg,png]
|
||||
media-libs/sdl-mixer
|
||||
media-libs/sdl-sound
|
||||
)
|
||||
media-libs/tiff
|
||||
pulseaudio? ( media-sound/pulseaudio )
|
||||
media-sound/wavpack
|
||||
|| ( media-libs/libpostproc <media-video/libav-0.8.2-r1 media-video/ffmpeg )
|
||||
>=virtual/ffmpeg-0.6[encode]
|
||||
rtmp? ( media-video/rtmpdump )
|
||||
avahi? ( net-dns/avahi )
|
||||
nfs? ( net-fs/libnfs )
|
||||
webserver? ( net-libs/libmicrohttpd[messages] )
|
||||
sftp? ( net-libs/libssh )
|
||||
net-misc/curl
|
||||
samba? ( >=net-fs/samba-3.4.6[smbclient] )
|
||||
bluetooth? ( net-wireless/bluez )
|
||||
sys-apps/dbus
|
||||
caps? ( sys-libs/libcap )
|
||||
sys-libs/zlib
|
||||
virtual/jpeg
|
||||
usb? ( virtual/libusb )
|
||||
mysql? ( virtual/mysql )
|
||||
opengl? (
|
||||
virtual/glu
|
||||
virtual/opengl
|
||||
)
|
||||
gles? ( virtual/opengl )
|
||||
vaapi? ( x11-libs/libva[opengl] )
|
||||
vdpau? (
|
||||
|| ( x11-libs/libvdpau >=x11-drivers/nvidia-drivers-180.51 )
|
||||
virtual/ffmpeg[vdpau]
|
||||
)
|
||||
X? (
|
||||
x11-apps/xdpyinfo
|
||||
x11-apps/mesa-progs
|
||||
x11-libs/libXinerama
|
||||
xrandr? ( x11-libs/libXrandr )
|
||||
x11-libs/libXrender
|
||||
)"
|
||||
RDEPEND="${COMMON_DEPEND}
|
||||
udev? ( sys-fs/udisks:0 sys-power/upower )"
|
||||
DEPEND="${COMMON_DEPEND}
|
||||
app-arch/xz-utils
|
||||
dev-lang/swig
|
||||
dev-util/gperf
|
||||
X? ( x11-proto/xineramaproto )
|
||||
dev-util/cmake
|
||||
x86? ( dev-lang/nasm )
|
||||
java? ( virtual/jre )"
|
||||
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
pkg_setup() {
|
||||
python-single-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
[[ ${PV} == "9999" ]] && git-2_src_unpack || default
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/${PN}-9999-nomythtv.patch
|
||||
epatch "${FILESDIR}"/${PN}-9999-no-arm-flags.patch #400617
|
||||
epatch "${FILESDIR}"/${PN}-12.0-system-projectm.patch
|
||||
# Backported fixes
|
||||
EPATCH_MULTI_MSG="Applying patches backported from master..." \
|
||||
EPATCH_SUFFIX="patch" \
|
||||
epatch "${WORKDIR}/${PN}_backports"
|
||||
# The mythtv patch touches configure.ac, so force a regen
|
||||
rm -f configure
|
||||
|
||||
# some dirs ship generated autotools, some dont
|
||||
multijob_init
|
||||
local d
|
||||
for d in $(printf 'f:\n\t@echo $(BOOTSTRAP_TARGETS)\ninclude bootstrap.mk\n' | emake -f - f) ; do
|
||||
[[ -e ${d} ]] && continue
|
||||
pushd ${d/%configure/.} >/dev/null || die
|
||||
AT_NOELIBTOOLIZE="yes" AT_TOPLEVEL_EAUTORECONF="yes" \
|
||||
multijob_child_init eautoreconf
|
||||
popd >/dev/null
|
||||
done
|
||||
multijob_finish
|
||||
elibtoolize
|
||||
|
||||
# Disable internal func checks as our USE/DEPEND
|
||||
# stuff handles this just fine already #408395
|
||||
export ac_cv_lib_avcodec_ff_vdpau_vc1_decode_picture=yes
|
||||
|
||||
local squish #290564
|
||||
use altivec && squish="-DSQUISH_USE_ALTIVEC=1 -maltivec"
|
||||
use sse && squish="-DSQUISH_USE_SSE=1 -msse"
|
||||
use sse2 && squish="-DSQUISH_USE_SSE=2 -msse2"
|
||||
sed -i \
|
||||
-e '/^CXXFLAGS/{s:-D[^=]*=.::;s:-m[[:alnum:]]*::}' \
|
||||
-e "1iCXXFLAGS += ${squish}" \
|
||||
lib/libsquish/Makefile.in || die
|
||||
|
||||
# Fix XBMC's final version string showing as "exported"
|
||||
# instead of the SVN revision number.
|
||||
export HAVE_GIT=no GIT_REV=${EGIT_VERSION:-exported}
|
||||
|
||||
# avoid long delays when powerkit isn't running #348580
|
||||
sed -i \
|
||||
-e '/dbus_connection_send_with_reply_and_block/s:-1:3000:' \
|
||||
xbmc/linux/*.cpp || die
|
||||
|
||||
epatch_user #293109
|
||||
|
||||
# Tweak autotool timestamps to avoid regeneration
|
||||
find . -type f -print0 | xargs -0 touch -r configure
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# Disable documentation generation
|
||||
export ac_cv_path_LATEX=no
|
||||
# Avoid help2man
|
||||
export HELP2MAN=$(type -P help2man || echo true)
|
||||
# No configure flage for this #403561
|
||||
export ac_cv_lib_bluetooth_hci_devid=$(usex bluetooth)
|
||||
# Requiring java is asine #434662
|
||||
export ac_cv_path_JAVA_EXE=$(which $(usex java java true))
|
||||
|
||||
econf \
|
||||
--docdir=/usr/share/doc/${PF} \
|
||||
--disable-ccache \
|
||||
--disable-optimizations \
|
||||
--enable-external-libraries \
|
||||
--enable-gl \
|
||||
$(use_enable airplay) \
|
||||
$(use_enable avahi) \
|
||||
$(use_enable bluray libbluray) \
|
||||
$(use_enable caps libcap) \
|
||||
$(use_enable cec libcec) \
|
||||
$(use_enable css dvdcss) \
|
||||
$(use_enable debug) \
|
||||
$(use_enable gles) \
|
||||
$(use_enable goom) \
|
||||
--disable-hal \
|
||||
$(use_enable joystick) \
|
||||
$(use_enable midi mid) \
|
||||
$(use_enable mysql) \
|
||||
$(use_enable neon) \
|
||||
$(use_enable nfs) \
|
||||
$(use_enable opengl gl) \
|
||||
$(use_enable profile profiling) \
|
||||
$(use_enable projectm) \
|
||||
$(use_enable pulseaudio pulse) \
|
||||
$(use_enable pvr mythtv) \
|
||||
$(use_enable rsxs) \
|
||||
$(use_enable rtmp) \
|
||||
$(use_enable samba) \
|
||||
$(use_enable sdl) \
|
||||
$(use_enable sftp ssh) \
|
||||
$(use_enable usb libusb) \
|
||||
$(use_enable upnp) \
|
||||
$(use_enable vaapi) \
|
||||
$(use_enable vdpau) \
|
||||
$(use_enable webserver) \
|
||||
$(use_enable X x11) \
|
||||
$(use_enable xrandr)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
rm "${ED}"/usr/share/doc/*/{LICENSE.GPL,copying.txt}*
|
||||
|
||||
domenu tools/Linux/xbmc.desktop
|
||||
newicon tools/Linux/xbmc-48x48.png xbmc.png
|
||||
|
||||
python_domodule tools/EventClients/lib/python/xbmcclient.py
|
||||
python_newscript "tools/EventClients/Clients/XBMC Send/xbmc-send.py" xbmc-send
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog "Visit http://wiki.xbmc.org/?title=XBMC_Online_Manual"
|
||||
}
|
@ -0,0 +1,17 @@
|
||||
Index: MPlayer-1.1.1/libmpdemux/demux_lavf.c
|
||||
===================================================================
|
||||
--- MPlayer-1.1.1.orig/libmpdemux/demux_lavf.c
|
||||
+++ MPlayer-1.1.1/libmpdemux/demux_lavf.c
|
||||
@@ -423,7 +423,11 @@ static void handle_stream(demuxer_t *dem
|
||||
case AVMEDIA_TYPE_SUBTITLE:{
|
||||
sh_sub_t* sh_sub;
|
||||
char type;
|
||||
- if(codec->codec_id == AV_CODEC_ID_TEXT)
|
||||
+ if(codec->codec_id == AV_CODEC_ID_TEXT
|
||||
+#if LIBAVUTIL_VERSION_MICRO >= 100
|
||||
+ || codec->codec_id == AV_CODEC_ID_SUBRIP
|
||||
+#endif
|
||||
+ )
|
||||
type = 't';
|
||||
else if(codec->codec_id == AV_CODEC_ID_MOV_TEXT)
|
||||
type = 'm';
|
@ -0,0 +1,17 @@
|
||||
Index: MPlayer-1.1.1/libmpdemux/demux_lavf.c
|
||||
===================================================================
|
||||
--- MPlayer-1.1.1.orig/libmpdemux/demux_lavf.c
|
||||
+++ MPlayer-1.1.1/libmpdemux/demux_lavf.c
|
||||
@@ -423,7 +423,11 @@ static void handle_stream(demuxer_t *dem
|
||||
case AVMEDIA_TYPE_SUBTITLE:{
|
||||
sh_sub_t* sh_sub;
|
||||
char type;
|
||||
- if(codec->codec_id == CODEC_ID_TEXT)
|
||||
+ if(codec->codec_id == CODEC_ID_TEXT
|
||||
+#if LIBAVUTIL_VERSION_MICRO >= 100
|
||||
+ || codec->codec_id == AV_CODEC_ID_SUBRIP
|
||||
+#endif
|
||||
+ )
|
||||
type = 't';
|
||||
else if(codec->codec_id == CODEC_ID_MOV_TEXT)
|
||||
type = 'm';
|
@ -0,0 +1,653 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/media-video/mplayer/mplayer-1.1.1-r1.ebuild,v 1.1 2013/06/14 00:06:19 aballier Exp $
|
||||
|
||||
EAPI=4
|
||||
|
||||
EGIT_REPO_URI="git://git.videolan.org/ffmpeg.git"
|
||||
ESVN_REPO_URI="svn://svn.mplayerhq.hu/mplayer/trunk"
|
||||
[[ ${PV} = *9999* ]] && SVN_ECLASS="subversion git-2" || SVN_ECLASS=""
|
||||
|
||||
inherit toolchain-funcs eutils flag-o-matic multilib base ${SVN_ECLASS}
|
||||
|
||||
IUSE="3dnow 3dnowext +a52 aalib +alsa altivec aqua bidi bindist bl bluray
|
||||
bs2b cddb +cdio cdparanoia cpudetection debug dga
|
||||
directfb doc +dts +dv dvb +dvd +dvdnav dxr3 +enca +encode faac +faad fbcon
|
||||
ftp gif ggi gsm +iconv ipv6 jack joystick jpeg jpeg2k kernel_linux ladspa
|
||||
+libass libcaca libmpeg2 lirc +live lzo mad md5sum +mmx mmxext mng +mp3 nas
|
||||
+network nut openal +opengl +osdmenu oss png pnm pulseaudio pvr +quicktime
|
||||
radio +rar +rtc rtmp samba +shm sdl +speex sse sse2 ssse3
|
||||
tga +theora +tremor +truetype +toolame +twolame +unicode v4l vdpau vidix
|
||||
+vorbis +X +x264 xanim xinerama +xscreensaver +xv +xvid xvmc zoran"
|
||||
|
||||
VIDEO_CARDS="s3virge mga tdfx"
|
||||
for x in ${VIDEO_CARDS}; do
|
||||
IUSE+=" video_cards_${x}"
|
||||
done
|
||||
|
||||
FONT_URI="
|
||||
mirror://mplayer/releases/fonts/font-arial-iso-8859-1.tar.bz2
|
||||
mirror://mplayer/releases/fonts/font-arial-iso-8859-2.tar.bz2
|
||||
mirror://mplayer/releases/fonts/font-arial-cp1250.tar.bz2
|
||||
"
|
||||
if [[ ${PV} == *9999* ]]; then
|
||||
RELEASE_URI=""
|
||||
elif [ "${PV%_rc*}" = "${PV}" ]; then
|
||||
MY_P="MPlayer-${PV}"
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
RELEASE_URI="mirror://mplayer/releases/${MY_P}.tar.xz"
|
||||
else
|
||||
RELEASE_URI="mirror://gentoo/${P}.tar.xz"
|
||||
fi
|
||||
SRC_URI="${RELEASE_URI}
|
||||
!truetype? ( ${FONT_URI} )"
|
||||
|
||||
DESCRIPTION="Media Player for Linux"
|
||||
HOMEPAGE="http://www.mplayerhq.hu/"
|
||||
|
||||
FONT_RDEPS="
|
||||
virtual/ttf-fonts
|
||||
media-libs/fontconfig
|
||||
>=media-libs/freetype-2.2.1:2
|
||||
"
|
||||
X_RDEPS="
|
||||
x11-libs/libXext
|
||||
x11-libs/libXxf86vm
|
||||
"
|
||||
# Rar: althrought -gpl version is nice, it cant do most functions normal rars can
|
||||
# nemesi? ( net-libs/libnemesi )
|
||||
RDEPEND+="
|
||||
sys-libs/ncurses
|
||||
app-arch/bzip2
|
||||
sys-libs/zlib
|
||||
>=virtual/ffmpeg-0.10.3
|
||||
a52? ( media-libs/a52dec )
|
||||
aalib? ( media-libs/aalib )
|
||||
alsa? ( media-libs/alsa-lib )
|
||||
bidi? ( dev-libs/fribidi )
|
||||
bluray? ( >=media-libs/libbluray-0.2.1 )
|
||||
bs2b? ( media-libs/libbs2b )
|
||||
cdio? ( || ( dev-libs/libcdio-paranoia <dev-libs/libcdio-0.90[-minimal] ) )
|
||||
cdparanoia? ( !cdio? ( media-sound/cdparanoia ) )
|
||||
dga? ( x11-libs/libXxf86dga )
|
||||
directfb? ( dev-libs/DirectFB )
|
||||
dts? ( media-libs/libdca )
|
||||
dv? ( media-libs/libdv )
|
||||
dvb? ( virtual/linuxtv-dvb-headers )
|
||||
dvd? ( >=media-libs/libdvdread-4.1.3 )
|
||||
dvdnav? ( >=media-libs/libdvdnav-4.1.3 )
|
||||
encode? (
|
||||
!twolame? ( toolame? ( media-sound/toolame ) )
|
||||
twolame? ( media-sound/twolame )
|
||||
faac? ( media-libs/faac )
|
||||
mp3? ( media-sound/lame )
|
||||
x264? ( >=media-libs/x264-0.0.20100423 )
|
||||
xvid? ( media-libs/xvid )
|
||||
)
|
||||
enca? ( app-i18n/enca )
|
||||
faad? ( media-libs/faad2 )
|
||||
ggi? ( media-libs/libggi media-libs/libggiwmh )
|
||||
gif? ( media-libs/giflib )
|
||||
gsm? ( media-sound/gsm )
|
||||
iconv? ( virtual/libiconv )
|
||||
jack? ( media-sound/jack-audio-connection-kit )
|
||||
jpeg? ( virtual/jpeg )
|
||||
jpeg2k? ( media-libs/openjpeg:0 )
|
||||
ladspa? ( media-libs/ladspa-sdk )
|
||||
libass? ( >=media-libs/libass-0.9.10[enca?] )
|
||||
libcaca? ( media-libs/libcaca )
|
||||
libmpeg2? ( media-libs/libmpeg2 )
|
||||
lirc? ( app-misc/lirc )
|
||||
live? ( media-plugins/live )
|
||||
lzo? ( >=dev-libs/lzo-2 )
|
||||
mad? ( media-libs/libmad )
|
||||
mng? ( media-libs/libmng )
|
||||
mp3? ( media-sound/mpg123 )
|
||||
nas? ( media-libs/nas )
|
||||
nut? ( >=media-libs/libnut-661 )
|
||||
openal? ( media-libs/openal )
|
||||
opengl? ( virtual/opengl )
|
||||
png? ( media-libs/libpng )
|
||||
pnm? ( media-libs/netpbm )
|
||||
pulseaudio? ( media-sound/pulseaudio )
|
||||
rar? (
|
||||
|| (
|
||||
app-arch/unrar
|
||||
app-arch/rar
|
||||
)
|
||||
)
|
||||
rtmp? ( media-video/rtmpdump )
|
||||
samba? ( net-fs/samba )
|
||||
sdl? ( media-libs/libsdl )
|
||||
speex? ( media-libs/speex )
|
||||
theora? ( media-libs/libtheora[encode?] )
|
||||
truetype? ( ${FONT_RDEPS} )
|
||||
vdpau? ( x11-libs/libvdpau )
|
||||
vorbis? ( media-libs/libvorbis )
|
||||
X? ( ${X_RDEPS} )
|
||||
xanim? ( media-video/xanim )
|
||||
xinerama? ( x11-libs/libXinerama )
|
||||
xscreensaver? ( x11-libs/libXScrnSaver )
|
||||
xv? ( x11-libs/libXv )
|
||||
xvmc? ( x11-libs/libXvMC )
|
||||
"
|
||||
|
||||
X_DEPS="
|
||||
x11-proto/videoproto
|
||||
x11-proto/xf86vidmodeproto
|
||||
"
|
||||
ASM_DEP="dev-lang/yasm"
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig
|
||||
dga? ( x11-proto/xf86dgaproto )
|
||||
dxr3? ( media-video/em8300-libraries )
|
||||
X? ( ${X_DEPS} )
|
||||
xinerama? ( x11-proto/xineramaproto )
|
||||
xscreensaver? ( x11-proto/scrnsaverproto )
|
||||
amd64? ( ${ASM_DEP} )
|
||||
doc? (
|
||||
dev-libs/libxslt app-text/docbook-xml-dtd
|
||||
app-text/docbook-xsl-stylesheets
|
||||
)
|
||||
x86? ( ${ASM_DEP} )
|
||||
x86-fbsd? ( ${ASM_DEP} )
|
||||
"
|
||||
|
||||
SLOT="0"
|
||||
LICENSE="GPL-2"
|
||||
if [[ ${PV} != *9999* ]]; then
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris"
|
||||
else
|
||||
KEYWORDS=""
|
||||
fi
|
||||
|
||||
# faac codecs are nonfree, win32codecs are nonfree
|
||||
# libcdio support: prefer libcdio over cdparanoia and don't check for cddb w/cdio
|
||||
# dvd navigation requires dvd read support
|
||||
# ass and freetype font require iconv and ass requires freetype fonts
|
||||
# unicode transformations are usefull only with iconv
|
||||
# libvorbis require external tremor to work
|
||||
# radio requires oss or alsa backend
|
||||
# xvmc requires xvideo support
|
||||
REQUIRED_USE="bindist? ( !faac )
|
||||
dvdnav? ( dvd )
|
||||
libass? ( truetype )
|
||||
truetype? ( iconv )
|
||||
dxr3? ( X )
|
||||
ggi? ( X )
|
||||
xinerama? ( X )
|
||||
dga? ( X )
|
||||
opengl? ( || ( X aqua ) )
|
||||
osdmenu? ( || ( X aqua ) )
|
||||
vdpau? ( X )
|
||||
vidix? ( X )
|
||||
xscreensaver? ( X )
|
||||
xv? ( X )
|
||||
xvmc? ( xv )"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-1.0_rc4-pkg-config.patch"
|
||||
"${FILESDIR}/${PN}-1.1-ffmpeg.patch"
|
||||
"${FILESDIR}/${PN}-1.1-libav-0.8.patch"
|
||||
"${FILESDIR}/${PN}-1.1-codecid.patch"
|
||||
)
|
||||
|
||||
pkg_setup() {
|
||||
if [[ ${PV} == *9999* ]]; then
|
||||
elog
|
||||
elog "This is a live ebuild which installs the latest from upstream's"
|
||||
elog "subversion repository, and is unsupported by Gentoo."
|
||||
elog "Everything but bugs in the ebuild itself will be ignored."
|
||||
elog
|
||||
fi
|
||||
|
||||
if use cpudetection; then
|
||||
ewarn
|
||||
ewarn "You've enabled the cpudetection flag. This feature is"
|
||||
ewarn "included mainly for people who want to use the same"
|
||||
ewarn "binary on another system with a different CPU architecture."
|
||||
ewarn "MPlayer will already detect your CPU settings by default at"
|
||||
ewarn "buildtime; this flag is used for runtime detection."
|
||||
ewarn "You won't need this turned on if you are only building"
|
||||
ewarn "mplayer for this system. Also, if your compile fails, try"
|
||||
ewarn "disabling this use flag."
|
||||
fi
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
if [[ ${PV} = *9999* ]]; then
|
||||
subversion_src_unpack
|
||||
cd "${WORKDIR}"
|
||||
rm -rf "${WORKDIR}/${P}/ffmpeg/"
|
||||
( S="${WORKDIR}/${P}/ffmpeg/" git-2_src_unpack )
|
||||
else
|
||||
unpack ${A}
|
||||
fi
|
||||
|
||||
if [[ ${PV} = *9999* ]] || [[ "${PV%_rc*}" = "${PV}" ]]; then
|
||||
cd "${S}"
|
||||
cp "${FILESDIR}/dump_ffmpeg.sh" . || die
|
||||
chmod +x dump_ffmpeg.sh
|
||||
./dump_ffmpeg.sh || die
|
||||
fi
|
||||
|
||||
if ! use truetype; then
|
||||
unpack font-arial-iso-8859-1.tar.bz2 \
|
||||
font-arial-iso-8859-2.tar.bz2 \
|
||||
font-arial-cp1250.tar.bz2
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
local svf=snapshot_version
|
||||
if [[ ${PV} = *9999* ]]; then
|
||||
# Set SVN version manually
|
||||
subversion_wc_info
|
||||
printf "${ESVN_WC_REVISION}" > $svf
|
||||
fi
|
||||
if [ ! -f VERSION ] ; then
|
||||
[ -f "$svf" ] || die "Missing ${svf}. Did you generate your snapshot with prepare_mplayer.sh?"
|
||||
local sv=$(<$svf)
|
||||
printf "SVN-r${sv} (Gentoo)" > VERSION
|
||||
fi
|
||||
|
||||
# fix path to bash executable in configure scripts
|
||||
sed -i -e "1c\#!${EPREFIX}/bin/bash" configure version.sh || die
|
||||
|
||||
if has_version dev-libs/libcdio-paranoia; then
|
||||
sed -i \
|
||||
-e 's:cdio/cdda.h:cdio/paranoia/cdda.h:' \
|
||||
-e 's:cdio/paranoia.h:cdio/paranoia/paranoia.h:' \
|
||||
configure stream/stream_cdda.c || die
|
||||
fi
|
||||
|
||||
base_src_prepare
|
||||
if has_version '>=media-video/libav-9_rc' || has_version '>=media-video/ffmpeg-1.1' ; then
|
||||
epatch "${FILESDIR}/${PN}-1.1-libav-9.patch" \
|
||||
"${FILESDIR}/${PN}-1.1-planaraudio.patch" \
|
||||
"${FILESDIR}/${PN}-1.1-missingbreak.patch" \
|
||||
"${FILESDIR}/${PN}-1.1.1-avcodecidsubrip.patch"
|
||||
elif has_version '>=media-video/ffmpeg-1' ; then
|
||||
epatch "${FILESDIR}/${PN}-1.1.1-codecidsubrip.patch"
|
||||
fi
|
||||
|
||||
# Use sane default for >=virtual/udev-197
|
||||
sed -i -e '/default_dvd_device/s:/dev/dvd:/dev/cdrom:' configure || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myconf=""
|
||||
local uses i
|
||||
|
||||
# set LINGUAS
|
||||
[[ -n $LINGUAS ]] && LINGUAS="${LINGUAS/da/dk}"
|
||||
|
||||
# mplayer ebuild uses "use foo || --disable-foo" to forcibly disable
|
||||
# compilation in almost every situation. The reason for this is
|
||||
# because if --enable is used, it will force the build of that option,
|
||||
# regardless of whether the dependency is available or not.
|
||||
|
||||
###################
|
||||
#Optional features#
|
||||
###################
|
||||
# disable svga since we don't want it
|
||||
# disable arts since we don't have kde3
|
||||
# always disable internal ass
|
||||
myconf+="
|
||||
--disable-svga --disable-svgalib_helper
|
||||
--disable-ass-internal
|
||||
--disable-arts
|
||||
--disable-kai
|
||||
$(use_enable network networking)
|
||||
$(use_enable joystick)
|
||||
"
|
||||
uses="bl bluray enca ftp rtc" # nemesi <- not working with in-tree ebuild
|
||||
myconf+=" --disable-nemesi" # nemesi automagic disable
|
||||
for i in ${uses}; do
|
||||
use ${i} || myconf+=" --disable-${i}"
|
||||
done
|
||||
use bidi || myconf+=" --disable-fribidi"
|
||||
use ipv6 || myconf+=" --disable-inet6"
|
||||
use libass || myconf+=" --disable-ass"
|
||||
use nut || myconf+=" --disable-libnut"
|
||||
use rar || myconf+=" --disable-unrarexec"
|
||||
use samba || myconf+=" --disable-smb"
|
||||
use lirc || myconf+=" --disable-lirc --disable-lircc --disable-apple-ir"
|
||||
|
||||
# libcdio support: prefer libcdio over cdparanoia
|
||||
# don't check for cddb w/cdio
|
||||
if use cdio; then
|
||||
myconf+=" --disable-cdparanoia"
|
||||
else
|
||||
myconf+=" --disable-libcdio"
|
||||
use cdparanoia || myconf+=" --disable-cdparanoia"
|
||||
use cddb || myconf+=" --disable-cddb"
|
||||
fi
|
||||
|
||||
################################
|
||||
# DVD read, navigation support #
|
||||
################################
|
||||
#
|
||||
# dvdread - accessing a DVD
|
||||
# dvdnav - navigation of menus
|
||||
#
|
||||
# use external libdvdcss, dvdread and dvdnav
|
||||
myconf+=" --disable-dvdread-internal --disable-libdvdcss-internal"
|
||||
use dvd || myconf+=" --disable-dvdread"
|
||||
use dvdnav || myconf+=" --disable-dvdnav"
|
||||
|
||||
#############
|
||||
# Subtitles #
|
||||
#############
|
||||
#
|
||||
# SRT/ASS/SSA (subtitles) requires freetype support
|
||||
# freetype support requires iconv
|
||||
# iconv optionally can use unicode
|
||||
use truetype || myconf+=" --disable-freetype"
|
||||
use iconv || myconf+=" --disable-iconv --charset=noconv"
|
||||
use iconv && use unicode && myconf+=" --charset=UTF-8"
|
||||
|
||||
#####################################
|
||||
# DVB / Video4Linux / Radio support #
|
||||
#####################################
|
||||
myconf+=" --disable-tv-bsdbt848"
|
||||
# broken upstream, won't work with recent kernels
|
||||
myconf+=" --disable-ivtv"
|
||||
# gone since linux-headers-2.6.38
|
||||
myconf+=" --disable-tv-v4l1"
|
||||
if { use dvb || use v4l || use pvr || use radio; }; then
|
||||
use dvb || myconf+=" --disable-dvb"
|
||||
use pvr || myconf+=" --disable-pvr"
|
||||
use v4l || myconf+=" --disable-tv-v4l2"
|
||||
if use radio && { use dvb || use v4l; }; then
|
||||
myconf+="
|
||||
--enable-radio
|
||||
$(use_enable encode radio-capture)
|
||||
"
|
||||
else
|
||||
myconf+="
|
||||
--disable-radio-v4l2
|
||||
--disable-radio-bsdbt848
|
||||
"
|
||||
fi
|
||||
else
|
||||
myconf+="
|
||||
--disable-tv
|
||||
--disable-tv-v4l2
|
||||
--disable-radio
|
||||
--disable-radio-v4l2
|
||||
--disable-radio-bsdbt848
|
||||
--disable-dvb
|
||||
--disable-v4l2
|
||||
--disable-pvr"
|
||||
fi
|
||||
|
||||
##########
|
||||
# Codecs #
|
||||
##########
|
||||
myconf+=" --disable-musepack" # Use internal musepack codecs for SV7 and SV8 support
|
||||
myconf+=" --disable-libmpeg2-internal" # always use system media-libs/libmpeg2
|
||||
use dts || myconf+=" --disable-libdca"
|
||||
# Disable internal mp3lib, bug #384849
|
||||
# Samuli Suominen: Looks like MPlayer in Portage is using internal mp3lib by
|
||||
# default, where as mpg123 upstream has incorporated all the optimizations
|
||||
# from mplayer's mp3lib in libmpg123 and more.
|
||||
# It makes very little sense to use the internal copy as default anymore.
|
||||
myconf+=" --disable-mp3lib"
|
||||
if ! use mp3; then
|
||||
myconf+="
|
||||
--disable-mp3lame
|
||||
--disable-mpg123
|
||||
"
|
||||
fi
|
||||
uses="a52 bs2b dv gsm lzo rtmp"
|
||||
for i in ${uses}; do
|
||||
use ${i} || myconf+=" --disable-lib${i}"
|
||||
done
|
||||
|
||||
uses="faad gif jpeg libmpeg2 live mad mng png pnm speex tga theora xanim"
|
||||
for i in ${uses}; do
|
||||
use ${i} || myconf+=" --disable-${i}"
|
||||
done
|
||||
use jpeg2k || myconf+=" --disable-libopenjpeg"
|
||||
if use vorbis || use tremor; then
|
||||
use tremor || myconf+=" --disable-tremor-internal"
|
||||
use vorbis || myconf+=" --disable-libvorbis"
|
||||
else
|
||||
myconf+="
|
||||
--disable-tremor-internal
|
||||
--disable-tremor
|
||||
--disable-libvorbis
|
||||
"
|
||||
fi
|
||||
# Encoding
|
||||
uses="faac x264 xvid toolame twolame"
|
||||
if use encode; then
|
||||
for i in ${uses}; do
|
||||
use ${i} || myconf+=" --disable-${i}"
|
||||
done
|
||||
else
|
||||
myconf+=" --disable-mencoder"
|
||||
for i in ${uses}; do
|
||||
myconf+=" --disable-${i}"
|
||||
use ${i} && elog "Useflag \"${i}\" will only be useful for encoding, i.e., with \"encode\" useflag enabled."
|
||||
done
|
||||
fi
|
||||
|
||||
#################
|
||||
# Binary codecs #
|
||||
#################
|
||||
# bug 213836
|
||||
use quicktime || myconf+=" --disable-qtx"
|
||||
myconf+=" --disable-real --disable-win32dll"
|
||||
|
||||
################
|
||||
# Video Output #
|
||||
################
|
||||
uses="directfb md5sum sdl"
|
||||
for i in ${uses}; do
|
||||
use ${i} || myconf+=" --disable-${i}"
|
||||
done
|
||||
use aalib || myconf+=" --disable-aa"
|
||||
use fbcon || myconf+=" --disable-fbdev"
|
||||
use fbcon && use video_cards_s3virge && myconf+=" --enable-s3fb"
|
||||
use libcaca || myconf+=" --disable-caca"
|
||||
use zoran || myconf+=" --disable-zr"
|
||||
|
||||
if ! use kernel_linux || ! use video_cards_mga; then
|
||||
myconf+=" --disable-mga --disable-xmga"
|
||||
fi
|
||||
|
||||
if use video_cards_tdfx; then
|
||||
myconf+="
|
||||
$(use_enable video_cards_tdfx tdfxvid)
|
||||
$(use_enable fbcon tdfxfb)
|
||||
"
|
||||
else
|
||||
myconf+="
|
||||
--disable-3dfx
|
||||
--disable-tdfxvid
|
||||
--disable-tdfxfb
|
||||
"
|
||||
fi
|
||||
|
||||
# sun card, disable by default, see bug #258729
|
||||
myconf+=" --disable-xvr100"
|
||||
|
||||
################
|
||||
# Audio Output #
|
||||
################
|
||||
myconf+=" --disable-esd"
|
||||
uses="alsa jack ladspa nas openal"
|
||||
for i in ${uses}; do
|
||||
use ${i} || myconf+=" --disable-${i}"
|
||||
done
|
||||
use pulseaudio || myconf+=" --disable-pulse"
|
||||
if ! use radio; then
|
||||
use oss || myconf+=" --disable-ossaudio"
|
||||
fi
|
||||
|
||||
####################
|
||||
# Advanced Options #
|
||||
####################
|
||||
# Platform specific flags, hardcoded on amd64 (see below)
|
||||
use cpudetection && myconf+=" --enable-runtime-cpudetection"
|
||||
|
||||
uses="3dnow 3dnowext altivec mmx mmxext shm sse sse2 ssse3"
|
||||
for i in ${uses}; do
|
||||
myconf+=" $(use_enable ${i})"
|
||||
done
|
||||
|
||||
use debug && myconf+=" --enable-debug=3"
|
||||
|
||||
if use x86 && gcc-specs-pie; then
|
||||
filter-flags -fPIC -fPIE
|
||||
append-ldflags -nopie
|
||||
fi
|
||||
|
||||
###########################
|
||||
# X enabled configuration #
|
||||
###########################
|
||||
myconf+=" --disable-gui"
|
||||
myconf+=" --disable-vesa"
|
||||
uses="dxr3 ggi vdpau xinerama xv"
|
||||
for i in ${uses}; do
|
||||
use ${i} || myconf+=" --disable-${i}"
|
||||
done
|
||||
use dga || myconf+=" --disable-dga1 --disable-dga2"
|
||||
use opengl || myconf+=" --disable-gl"
|
||||
use osdmenu && myconf+=" --enable-menu"
|
||||
use vidix || myconf+=" --disable-vidix --disable-vidix-pcidb"
|
||||
use xscreensaver || myconf+=" --disable-xss"
|
||||
use X || myconf+=" --disable-x11"
|
||||
if use xvmc; then
|
||||
myconf+=" --enable-xvmc --with-xvmclib=XvMCW"
|
||||
else
|
||||
myconf+=" --disable-xvmc"
|
||||
fi
|
||||
|
||||
############################
|
||||
# OSX (aqua) configuration #
|
||||
############################
|
||||
if use aqua; then
|
||||
myconf+="
|
||||
--enable-macosx-finder
|
||||
--enable-macosx-bundle
|
||||
"
|
||||
fi
|
||||
|
||||
tc-export PKG_CONFIG
|
||||
./configure \
|
||||
--cc="$(tc-getCC)" \
|
||||
--host-cc="$(tc-getBUILD_CC)" \
|
||||
--prefix="${EPREFIX}/usr" \
|
||||
--bindir="${EPREFIX}/usr/bin" \
|
||||
--libdir="${EPREFIX}/usr/$(get_libdir)" \
|
||||
--confdir="${EPREFIX}/etc/mplayer" \
|
||||
--datadir="${EPREFIX}/usr/share/mplayer${namesuf}" \
|
||||
--mandir="${EPREFIX}/usr/share/man" \
|
||||
--disable-ffmpeg_a \
|
||||
${myconf} || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
base_src_compile
|
||||
# Build only user-requested docs if they're available.
|
||||
if use doc ; then
|
||||
# select available languages from $LINGUAS
|
||||
LINGUAS=${LINGUAS/zh/zh_CN}
|
||||
local ALLOWED_LINGUAS="cs de en es fr hu it pl ru zh_CN"
|
||||
local BUILT_DOCS=""
|
||||
for i in ${LINGUAS} ; do
|
||||
has ${i} ${ALLOWED_LINGUAS} && BUILT_DOCS+=" ${i}"
|
||||
done
|
||||
if [[ -z $BUILT_DOCS ]]; then
|
||||
emake -j1 html-chunked
|
||||
else
|
||||
for i in ${BUILT_DOCS}; do
|
||||
emake -j1 html-chunked-${i}
|
||||
done
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local i
|
||||
|
||||
emake \
|
||||
DESTDIR="${D}" \
|
||||
INSTALLSTRIP="" \
|
||||
install
|
||||
|
||||
dodoc AUTHORS Changelog Copyright README etc/codecs.conf
|
||||
|
||||
docinto tech/
|
||||
dodoc DOCS/tech/{*.txt,MAINTAINERS,mpsub.sub,playtree,TODO,wishlist}
|
||||
docinto TOOLS/
|
||||
dodoc -r TOOLS
|
||||
docinto tech/mirrors/
|
||||
dodoc DOCS/tech/mirrors/*
|
||||
|
||||
if use doc; then
|
||||
docinto html/
|
||||
dohtml -r "${S}"/DOCS/HTML/*
|
||||
fi
|
||||
|
||||
if ! use truetype; then
|
||||
dodir /usr/share/mplayer/fonts
|
||||
# Do this generic, as the mplayer people like to change the structure
|
||||
# of their zips ...
|
||||
for i in $(find "${WORKDIR}/" -type d -name 'font-arial-*'); do
|
||||
cp -pPR "${i}" "${ED}/usr/share/mplayer/fonts"
|
||||
done
|
||||
# Fix the font symlink ...
|
||||
rm -rf "${ED}/usr/share/mplayer/font"
|
||||
dosym fonts/font-arial-14-iso-8859-1 /usr/share/mplayer/font
|
||||
fi
|
||||
|
||||
insinto /etc/mplayer
|
||||
newins "${S}/etc/example.conf" mplayer.conf
|
||||
cat >> "${ED}/etc/mplayer/mplayer.conf" << _EOF_
|
||||
# Config options can be section specific, global
|
||||
# options should go in the default section
|
||||
[default]
|
||||
_EOF_
|
||||
doins "${S}/etc/input.conf"
|
||||
if use osdmenu; then
|
||||
doins "${S}/etc/menu.conf"
|
||||
fi
|
||||
|
||||
if use truetype; then
|
||||
cat >> "${ED}/etc/mplayer/mplayer.conf" << _EOF_
|
||||
fontconfig=1
|
||||
subfont-osd-scale=4
|
||||
subfont-text-scale=3
|
||||
_EOF_
|
||||
fi
|
||||
|
||||
# bug 256203
|
||||
if use rar; then
|
||||
cat >> "${ED}/etc/mplayer/mplayer.conf" << _EOF_
|
||||
unrarexec=${EPREFIX}/usr/bin/unrar
|
||||
_EOF_
|
||||
fi
|
||||
|
||||
dosym ../../../etc/mplayer/mplayer.conf /usr/share/mplayer/mplayer.conf
|
||||
newbin "${S}/TOOLS/midentify.sh" midentify
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
[[ -d ${EROOT}/usr/share/mplayer/Skin/default ]] && \
|
||||
rm -rf "${EROOT}/usr/share/mplayer/Skin/default"
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
# Cleanup stale symlinks
|
||||
[ -L "${EROOT}/usr/share/mplayer/font" -a \
|
||||
! -e "${EROOT}/usr/share/mplayer/font" ] && \
|
||||
rm -f "${EROOT}/usr/share/mplayer/font"
|
||||
|
||||
[ -L "${EROOT}/usr/share/mplayer/subfont.ttf" -a \
|
||||
! -e "${EROOT}/usr/share/mplayer/subfont.ttf" ] && \
|
||||
rm -f "${EROOT}/usr/share/mplayer/subfont.ttf"
|
||||
}
|
@ -1,9 +1,6 @@
|
||||
DIST font-arial-cp1250.tar.bz2 249705 SHA256 423a07e780bb130cd8e4730715545c5d919c248dda595aab7a0a01de3c83fd12 SHA512 4f77ff5ceb8ec6e5d9f8f34d8950a6a6276d1fd5a947772fcbdb6554988b1ea665c12b82f45164f91fb7bd08000cb4afc26fa35beb4c760464160e22b9b8c340 WHIRLPOOL d635f54be65b0ca1047d943b6f6da433cda9fce6ed74fcab993501cf7f6b443eb711e182cd7fff09e553d251b5fd1c60196aa22e8370cba99fa175ed5ecdb47f
|
||||
DIST font-arial-iso-8859-1.tar.bz2 234242 SHA256 9730f481764f367c9089d0166fb6ccf9148808ffbbfeca635cf0e6db75765d29 SHA512 a1d03b6f09c48f48b7733f3bc0402ceab239a9abf88b860d852ea9fe69b4da690208a79d6f29d30204f5b37becf10672e8e8c0bfef201846d80ec54df617d029 WHIRLPOOL 8050362b125d3ca98214526cee2fa685e31487d13a6483c765bfc844bdc5e07beeba2c1ba313458096d43a63edd6c5e80b8b388c2792fc0ec7421e4072d8ca25
|
||||
DIST font-arial-iso-8859-2.tar.bz2 222208 SHA256 71debfc960007c2f6242dfc91e8b1c005b30a99e129aeb00ab8c03f4371b41c1 SHA512 5671e628303fd816f64a51ad10e2f4dd9c3dc1b34c379a2ecf489b83931db7af668aaa4e00e96a00cacd63ed98daeae6b6a4d5925edfb06fc98d3a923f70257d WHIRLPOOL 08178087b4ea1dfb2250f4673785e31dd876b06af51c51b2bddc172b23e6e33cbc1b2c6b710a317e42dc05486974b26ed0ad3ca50a185567aa77d49bd1e72aee
|
||||
DIST mplayer2-2.0_p20120309.tar.xz 3328620 SHA256 8a46e0be27dd479c91bde64a35725c6ff668e5a74ab3a56ac3fe29d16f6a0a31 SHA512 c9b1eda3cfc6279a96864aad9a6096b36742460233f03d715b94437e8ffbb1086d006f379f8fb4d7e2b7598ce810e62b5f88151832b19d8459344079fa55fe67 WHIRLPOOL 15522e5bf9c2fdabc86c23122159b7f9ee855211eb4ae088f1ebff07bb8dcb4b763d61c49ba31ea18d3e3c237a60e685a23e4fac71bf94b1af80f84c638d9fd3
|
||||
DIST mplayer2-2.0_p20120828.tar.xz 1739048 SHA256 7a53079c52c73ce00df5c29e1e2c19f944365213c70107b4bf992cf32ca85093 SHA512 d8eebf9deb1f07f7178037c9e980bbd942f0c68937fb6f37aad9b4e25f6a4d2cc5b6f055537c7dca12adf198e6f2531197f2869fbd0ba301d5fc7f5294f82b97 WHIRLPOOL ca9055a631fc7d19329db3c45b297f497c44c5e82f621af5cc76e32b4fac8585690f8252156dd2fcd44bd150ad18778aaf2c2b5796ca53f32e4de81d85385135
|
||||
DIST mplayer2-2.0_p20121108.tar.xz 1549508 SHA256 7d0f18998b6b059e1e06d66d030e5c4979aff158f050d7354c3056e6aaf29c0d SHA512 b8e507aa7e928267f648f228c1fafc236c0af39836733c0029583250784462a87cd713ba86312329c8c4c6cb175dcae24e2064498ddc6d51b162da51c43a8646 WHIRLPOOL bc0fd93ee2a56095bdad81aef9997e48cb177569a47c5abd5bace58af2a8eb114c352abadea2306437b5650d85f549109ad2173491b833d211e5dc816c7f7dd0
|
||||
DIST mplayer2-2.0_p20121128.tar.xz 1932656 SHA256 17ec9fadb59c74dc4852df2d1c49d3d551a4d5b38eb50fc6c7c24b0e24d0df57 SHA512 8a7cedbdbfccc8f4777de8de3f1a6388495157b596bbf88982382278d073b7fcf80c8f27319e222d89323162f3522ac90e3a150f2922350b6138ca0a4ba7bfc8 WHIRLPOOL 238bab7b78f0852d283d57b048bcb737aec9ad215d5e3e4cee244ee2bfea5315c8b93925306ea8a7c62c02fe10689e9d6a5fe1d4f52e3e4f518e59f120a0ea83
|
||||
DIST mplayer2-2.0_p20130126.tar.xz 1914780 SHA256 ed68090e1ed2698132065ab4567e2920a6fb9f2f0868efc172f612d6848919f5 SHA512 b54780a0a45619ababf874fe40797a6c73c4adea26469178bbd5bf3396cd1977631622a8e150c02b650cf4a415d1e5d80943fda1e50935d921328022187b65dc WHIRLPOOL b1876eece2223d1b1281aeb1043c1f436c518363a2e720a2eb6be92853cac3ed0dce16b3c4300acffe4746925831ccfddcc24553d5fdcac4cce385701d5625bf
|
||||
DIST mplayer2-2.0_p20130428.tar.xz 1911464 SHA256 41e54e6c86761196e111250fd6db79161bfd08f2cccf7d624e9b25b038fdf6c0 SHA512 da0101736b76535d38b1063c3ec7054003c8013f24df949bac26d51deebb41fcb6116af35d3b49bd6d9c1cc76842ab58c8e049a42e70dc5694058e3e6ed44bd8 WHIRLPOOL f97620ec26483e498d21b75fb533d09e41542ca18bb6a5a535c40c33fad34f745966f10a001026766610b6e40754dcecab3dc6292c00532437d2a92cb8d21079
|
||||
|
@ -1,50 +0,0 @@
|
||||
diff -upr mplayer2-20121128.orig/stream/stream_cdda.c mplayer2-20121128/stream/stream_cdda.c
|
||||
--- mplayer2-20121128.orig/stream/stream_cdda.c 2013-01-10 19:37:31.000000000 +0200
|
||||
+++ mplayer2-20121128/stream/stream_cdda.c 2013-01-10 20:23:25.000000000 +0200
|
||||
@@ -17,8 +17,8 @@
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
-#include <cdio/cdda.h>
|
||||
-#include <cdio/paranoia.h>
|
||||
+#include <cdio/paranoia/cdda.h>
|
||||
+#include <cdio/paranoia/paranoia.h>
|
||||
#include <cdio/cdio.h>
|
||||
|
||||
#include <stdio.h>
|
||||
@@ -116,25 +116,25 @@ const m_option_t cdda_opts[] = {
|
||||
};
|
||||
|
||||
static const char *cdtext_name[] = {
|
||||
- [CDTEXT_ARRANGER] = "Arranger",
|
||||
- [CDTEXT_COMPOSER] = "Composer",
|
||||
- [CDTEXT_MESSAGE] = "Message",
|
||||
- [CDTEXT_ISRC] = "ISRC",
|
||||
- [CDTEXT_PERFORMER] = "Performer",
|
||||
- [CDTEXT_SONGWRITER] = "Songwriter",
|
||||
- [CDTEXT_TITLE] = "Title",
|
||||
- [CDTEXT_UPC_EAN] = "UPC_EAN",
|
||||
+ [CDTEXT_FIELD_ARRANGER] = "Arranger",
|
||||
+ [CDTEXT_FIELD_COMPOSER] = "Composer",
|
||||
+ [CDTEXT_FIELD_MESSAGE] = "Message",
|
||||
+ [CDTEXT_FIELD_ISRC] = "ISRC",
|
||||
+ [CDTEXT_FIELD_PERFORMER] = "Performer",
|
||||
+ [CDTEXT_FIELD_SONGWRITER] = "Songwriter",
|
||||
+ [CDTEXT_FIELD_TITLE] = "Title",
|
||||
+ [CDTEXT_FIELD_UPC_EAN] = "UPC_EAN",
|
||||
};
|
||||
|
||||
static bool print_cdtext(stream_t *s, int track)
|
||||
{
|
||||
cdda_priv* p = (cdda_priv*)s->priv;
|
||||
- cdtext_t *text = cdio_get_cdtext(p->cd->p_cdio, track);
|
||||
+ cdtext_t *text = cdio_get_cdtext(p->cd->p_cdio);
|
||||
if (text) {
|
||||
mp_msg(MSGT_SEEK, MSGL_INFO, "CD-Text (%s):\n", track ? "track" : "CD");
|
||||
for (int i = 0; i < sizeof(cdtext_name) / sizeof(cdtext_name[0]); i++) {
|
||||
const char *name = cdtext_name[i];
|
||||
- const char *value = cdtext_get_const(i, text);
|
||||
+ const char *value = cdtext_get_const(text, i, track);
|
||||
if (name && value)
|
||||
mp_msg(MSGT_SEEK, MSGL_INFO, " %s: '%s'\n", name, value);
|
||||
}
|
@ -1,600 +0,0 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/media-video/mplayer2/mplayer2-2.0_p20120309.ebuild,v 1.15 2013/05/16 19:14:38 ulm Exp $
|
||||
|
||||
EAPI=4
|
||||
|
||||
[[ ${PV} = *9999* ]] && VCS_ECLASS="git-2" || VCS_ECLASS=""
|
||||
|
||||
inherit toolchain-funcs eutils flag-o-matic multilib base ${VCS_ECLASS}
|
||||
|
||||
NAMESUF="${PN/mplayer/}"
|
||||
DESCRIPTION="Media Player for Linux"
|
||||
HOMEPAGE="http://www.mplayer2.org/"
|
||||
|
||||
if [[ ${PV} == *9999* ]]; then
|
||||
EGIT_REPO_URI="git://git.mplayer2.org/mplayer2.git"
|
||||
else
|
||||
RELEASE_URI="http://dev.gentooexperimental.org/~scarabeus/${P}.tar.xz"
|
||||
fi
|
||||
SRC_URI="${RELEASE_URI}
|
||||
!truetype? (
|
||||
mirror://mplayer/releases/fonts/font-arial-iso-8859-1.tar.bz2
|
||||
mirror://mplayer/releases/fonts/font-arial-iso-8859-2.tar.bz2
|
||||
mirror://mplayer/releases/fonts/font-arial-cp1250.tar.bz2
|
||||
)
|
||||
"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
if [[ ${PV} == *9999* ]]; then
|
||||
KEYWORDS=""
|
||||
else
|
||||
KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 sparc x86 ~amd64-linux"
|
||||
fi
|
||||
IUSE="3dnow 3dnowext +a52 aalib +alsa altivec aqua bidi bl
|
||||
bluray bs2b cddb +cdio cdparanoia cpudetection custom-cpuopts
|
||||
debug directfb doc +dts +dv dvb +dvd +dvdnav dxr3 +enca +faad fbcon ftp
|
||||
gif ggi +iconv ipv6 jack joystick jpeg kernel_linux ladspa +libass libcaca lirc
|
||||
mad md5sum +mmx mmxext mng +mp3 nas +network nut +opengl oss png pnm pulseaudio
|
||||
pvr +quicktime radio +rar +real +rtc samba +shm sdl +speex sse sse2 ssse3 tga
|
||||
+theora +truetype +unicode v4l vdpau +vorbis +X xanim xinerama
|
||||
+xscreensaver +xv xvid"
|
||||
IUSE+=" symlink"
|
||||
|
||||
VIDEO_CARDS="s3virge mga tdfx vesa"
|
||||
for x in ${VIDEO_CARDS}; do
|
||||
IUSE+=" video_cards_${x}"
|
||||
done
|
||||
|
||||
REQUIRED_USE="
|
||||
cdio? ( !cdparanoia )
|
||||
cddb? ( || ( cdio cdparanoia ) network )
|
||||
dvdnav? ( dvd )
|
||||
libass? ( truetype )
|
||||
truetype? ( iconv )
|
||||
radio? ( || ( dvb v4l ) )
|
||||
dxr3? ( X )
|
||||
ggi? ( X )
|
||||
opengl? ( X )
|
||||
vdpau? ( X )
|
||||
xinerama? ( X )
|
||||
xscreensaver? ( X )
|
||||
xv? ( X )
|
||||
"
|
||||
|
||||
FONT_RDEPS="
|
||||
virtual/ttf-fonts
|
||||
media-libs/fontconfig
|
||||
>=media-libs/freetype-2.2.1:2
|
||||
"
|
||||
# Rar: althrought -gpl version is nice, it cant do most functions normal rars can
|
||||
# nemesi? ( net-libs/libnemesi )
|
||||
RDEPEND+="
|
||||
sys-libs/ncurses
|
||||
sys-libs/zlib
|
||||
X? (
|
||||
x11-libs/libXext
|
||||
x11-libs/libXxf86vm
|
||||
ggi? (
|
||||
media-libs/libggi
|
||||
media-libs/libggiwmh
|
||||
)
|
||||
opengl? ( virtual/opengl )
|
||||
vdpau? ( x11-libs/libvdpau )
|
||||
xinerama? ( x11-libs/libXinerama )
|
||||
xscreensaver? ( x11-libs/libXScrnSaver )
|
||||
xv? (
|
||||
x11-libs/libXv
|
||||
)
|
||||
)
|
||||
a52? ( media-libs/a52dec )
|
||||
aalib? ( media-libs/aalib )
|
||||
alsa? ( media-libs/alsa-lib )
|
||||
bidi? ( dev-libs/fribidi )
|
||||
bluray? ( media-libs/libbluray )
|
||||
bs2b? ( media-libs/libbs2b )
|
||||
cdio? ( dev-libs/libcdio )
|
||||
cdparanoia? ( !cdio? ( media-sound/cdparanoia ) )
|
||||
directfb? ( dev-libs/DirectFB )
|
||||
dts? ( media-libs/libdca )
|
||||
dv? ( media-libs/libdv )
|
||||
dvb? ( virtual/linuxtv-dvb-headers )
|
||||
dvd? (
|
||||
>=media-libs/libdvdread-4.1.3
|
||||
dvdnav? ( >=media-libs/libdvdnav-4.1.3 )
|
||||
)
|
||||
enca? ( app-i18n/enca )
|
||||
faad? ( media-libs/faad2 )
|
||||
gif? ( media-libs/giflib )
|
||||
iconv? ( virtual/libiconv )
|
||||
jack? ( media-sound/jack-audio-connection-kit )
|
||||
jpeg? ( virtual/jpeg )
|
||||
ladspa? ( media-libs/ladspa-sdk )
|
||||
libass? ( >=media-libs/libass-0.9.10[enca?,fontconfig] )
|
||||
libcaca? ( media-libs/libcaca )
|
||||
lirc? ( app-misc/lirc )
|
||||
mad? ( media-libs/libmad )
|
||||
mng? ( media-libs/libmng )
|
||||
mp3? ( media-sound/mpg123 )
|
||||
nas? ( media-libs/nas )
|
||||
nut? ( >=media-libs/libnut-661 )
|
||||
png? ( media-libs/libpng )
|
||||
pnm? ( media-libs/netpbm )
|
||||
pulseaudio? ( media-sound/pulseaudio )
|
||||
rar? (
|
||||
|| (
|
||||
app-arch/unrar
|
||||
app-arch/rar
|
||||
)
|
||||
)
|
||||
samba? ( net-fs/samba )
|
||||
sdl? ( media-libs/libsdl )
|
||||
speex? ( media-libs/speex )
|
||||
theora? ( media-libs/libtheora )
|
||||
truetype? ( ${FONT_RDEPS} )
|
||||
vorbis? ( media-libs/libvorbis )
|
||||
xanim? ( media-video/xanim )
|
||||
xvid? ( media-libs/xvid )
|
||||
|| ( media-libs/libpostproc <media-video/libav-0.8.2-r1 media-video/ffmpeg )
|
||||
>=virtual/ffmpeg-0.10.2
|
||||
symlink? ( !media-video/mplayer )
|
||||
"
|
||||
ASM_DEP="dev-lang/yasm"
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig
|
||||
dev-lang/python
|
||||
sys-devel/gettext
|
||||
X? (
|
||||
x11-proto/videoproto
|
||||
x11-proto/xf86vidmodeproto
|
||||
dxr3? ( media-video/em8300-libraries )
|
||||
xinerama? ( x11-proto/xineramaproto )
|
||||
xscreensaver? ( x11-proto/scrnsaverproto )
|
||||
)
|
||||
amd64? ( ${ASM_DEP} )
|
||||
doc? (
|
||||
dev-libs/libxslt app-text/docbook-xml-dtd
|
||||
app-text/docbook-xsl-stylesheets
|
||||
)
|
||||
x86? ( ${ASM_DEP} )
|
||||
x86-fbsd? ( ${ASM_DEP} )
|
||||
"
|
||||
|
||||
pkg_setup() {
|
||||
if [[ ${PV} == *9999* ]]; then
|
||||
elog
|
||||
elog "This is a live ebuild which installs the latest from upstream's"
|
||||
elog "${VCS_ECLASS} repository, and is unsupported by Gentoo."
|
||||
elog "Everything but bugs in the ebuild itself will be ignored."
|
||||
elog
|
||||
fi
|
||||
|
||||
if use cpudetection; then
|
||||
ewarn
|
||||
ewarn "You've enabled the cpudetection flag. This feature is"
|
||||
ewarn "included mainly for people who want to use the same"
|
||||
ewarn "binary on another system with a different CPU architecture."
|
||||
ewarn "MPlayer will already detect your CPU settings by default at"
|
||||
ewarn "buildtime; this flag is used for runtime detection."
|
||||
ewarn "You won't need this turned on if you are only building"
|
||||
ewarn "mplayer for this system. Also, if your compile fails, try"
|
||||
ewarn "disabling this use flag."
|
||||
fi
|
||||
|
||||
if use custom-cpuopts; then
|
||||
ewarn
|
||||
ewarn "You are using the custom-cpuopts flag which will"
|
||||
ewarn "specifically allow you to enable / disable certain"
|
||||
ewarn "CPU optimizations."
|
||||
ewarn
|
||||
ewarn "Most desktop users won't need this functionality, but it"
|
||||
ewarn "is included for corner cases like cross-compiling and"
|
||||
ewarn "certain profiles. If unsure, disable this flag and MPlayer"
|
||||
ewarn "will automatically detect and use your available CPU"
|
||||
ewarn "optimizations."
|
||||
ewarn
|
||||
ewarn "Using this flag means your build is unsupported, so"
|
||||
ewarn "please make sure your CPU optimization use flags (3dnow"
|
||||
ewarn "3dnowext mmx mmxext sse sse2 ssse3) are properly set."
|
||||
fi
|
||||
|
||||
einfo "For various format support you need to enable the support on your ffmpeg package:"
|
||||
einfo " media-video/libav or media-video/ffmpeg"
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# fix path to bash executable in configure scripts
|
||||
local bash_scripts="configure version.sh"
|
||||
sed -i -e "1c\#!${EPREFIX}/bin/bash" \
|
||||
${bash_scripts} || die
|
||||
|
||||
if [[ -n ${NAMESUF} ]]; then
|
||||
sed -e "/elif linux ; then/a\ _exesuf=\"${NAMESUF}\"" \
|
||||
-i configure || die
|
||||
sed -e "\, -m 644 DOCS/man/en/mplayer,i\ mv DOCS/man/en/mplayer.1 DOCS/man/en/${PN}.1" \
|
||||
-e "\, -m 644 DOCS/man/\$(lang)/mplayer,i\ mv DOCS/man/\$(lang)/mplayer.1 DOCS/man/\$(lang)/${PN}.1" \
|
||||
-e "s/er.1/er${NAMESUF}.1/g" \
|
||||
-i Makefile || die
|
||||
sed -e "s/mplayer/${PN}/" \
|
||||
-i TOOLS/midentify.sh || die
|
||||
fi
|
||||
|
||||
base_src_prepare
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myconf=""
|
||||
local uses i
|
||||
|
||||
# set LINGUAS
|
||||
[[ -n $LINGUAS ]] && LINGUAS="${LINGUAS/da/dk}"
|
||||
|
||||
# mplayer ebuild uses "use foo || --disable-foo" to forcibly disable
|
||||
# compilation in almost every situation. The reason for this is
|
||||
# because if --enable is used, it will force the build of that option,
|
||||
# regardless of whether the dependency is available or not.
|
||||
|
||||
###################
|
||||
#Optional features#
|
||||
###################
|
||||
# disable svga since we don't want it
|
||||
# disable arts since we don't have kde3
|
||||
# disable tremor, it needs libvorbisidec and is for FPU-less systems only
|
||||
myconf+="
|
||||
--disable-svga
|
||||
--disable-arts
|
||||
--disable-kai
|
||||
--disable-tremor
|
||||
$(use_enable network networking)
|
||||
$(use_enable joystick)
|
||||
"
|
||||
uses="bl bluray enca ftp libass rtc" # nemesi <- not working with in-tree ebuild
|
||||
myconf+=" --disable-nemesi" # nemesi automagic disable
|
||||
for i in ${uses}; do
|
||||
use ${i} || myconf+=" --disable-${i}"
|
||||
done
|
||||
use bidi || myconf+=" --disable-fribidi"
|
||||
use ipv6 || myconf+=" --disable-inet6"
|
||||
use nut || myconf+=" --disable-libnut"
|
||||
use rar || myconf+=" --disable-unrarexec"
|
||||
use samba || myconf+=" --disable-smb"
|
||||
if ! use lirc; then
|
||||
myconf+="
|
||||
--disable-lirc
|
||||
--disable-lircc
|
||||
--disable-apple-ir
|
||||
"
|
||||
fi
|
||||
|
||||
########
|
||||
# CDDA #
|
||||
########
|
||||
use cddb || myconf+=" --disable-cddb"
|
||||
use cdio || myconf+=" --disable-libcdio"
|
||||
use cdparanoia || myconf+=" --disable-cdparanoia"
|
||||
|
||||
################################
|
||||
# DVD read, navigation support #
|
||||
################################
|
||||
#
|
||||
# dvdread - accessing a DVD
|
||||
# dvdnav - navigation of menus
|
||||
#
|
||||
# use external libdvdcss, dvdread and dvdnav
|
||||
myconf+=" --disable-dvdread-internal --disable-libdvdcss-internal"
|
||||
if use dvd; then
|
||||
use dvdnav || myconf+=" --disable-dvdnav"
|
||||
else
|
||||
myconf+="
|
||||
--disable-dvdnav
|
||||
--disable-dvdread
|
||||
"
|
||||
fi
|
||||
|
||||
#############
|
||||
# Subtitles #
|
||||
#############
|
||||
# SRT/ASS/SSA (subtitles) requires freetype support
|
||||
# freetype support requires iconv
|
||||
# iconv optionally can use unicode
|
||||
if ! use truetype; then
|
||||
myconf+=" --disable-freetype"
|
||||
if ! use iconv; then
|
||||
myconf+="
|
||||
--disable-iconv
|
||||
--charset=noconv
|
||||
"
|
||||
fi
|
||||
fi
|
||||
use iconv && use unicode && myconf+=" --charset=UTF-8"
|
||||
|
||||
#####################################
|
||||
# DVB / Video4Linux / Radio support #
|
||||
#####################################
|
||||
myconf+=" --disable-tv-bsdbt848"
|
||||
# broken upstream, won't work with recent kernels
|
||||
myconf+=" --disable-ivtv"
|
||||
# v4l1 is gone since linux-headers-2.6.38
|
||||
myconf+=" --disable-tv-v4l1"
|
||||
if { use dvb || use v4l || use pvr || use radio; }; then
|
||||
use dvb || myconf+=" --disable-dvb"
|
||||
use pvr || myconf+=" --disable-pvr"
|
||||
use v4l || myconf+=" --disable-tv-v4l2"
|
||||
if use radio && { use dvb || use v4l; }; then
|
||||
myconf+="
|
||||
--enable-radio
|
||||
--disable-radio-capture
|
||||
"
|
||||
else
|
||||
myconf+="
|
||||
--disable-radio-v4l2
|
||||
--disable-radio-bsdbt848
|
||||
"
|
||||
fi
|
||||
else
|
||||
myconf+="
|
||||
--disable-tv
|
||||
--disable-tv-v4l2
|
||||
--disable-radio
|
||||
--disable-radio-v4l2
|
||||
--disable-radio-bsdbt848
|
||||
--disable-dvb
|
||||
--disable-v4l2
|
||||
--disable-pvr"
|
||||
fi
|
||||
|
||||
##########
|
||||
# Codecs #
|
||||
##########
|
||||
myconf+=" --disable-musepack" # deprecated, libavcodec Musepack decoder is preferred
|
||||
use dts || myconf+=" --disable-libdca"
|
||||
use mp3 || myconf+=" --disable-mpg123"
|
||||
uses="a52 bs2b dv vorbis"
|
||||
for i in ${uses}; do
|
||||
use ${i} || myconf+=" --disable-lib${i}"
|
||||
done
|
||||
uses="faad gif jpeg mad mng png pnm speex tga theora xanim xvid"
|
||||
for i in ${uses}; do
|
||||
use ${i} || myconf+=" --disable-${i}"
|
||||
done
|
||||
myconf+=" --disable-live" # >=live-2012 are broken
|
||||
|
||||
#################
|
||||
# Binary codecs #
|
||||
#################
|
||||
# bug 213836
|
||||
use quicktime || myconf+=" --disable-qtx"
|
||||
|
||||
######################
|
||||
# RealPlayer support #
|
||||
######################
|
||||
# Realplayer support shows up in four places:
|
||||
# - libavcodec (internal)
|
||||
# - win32codecs
|
||||
# - realcodecs (win32codecs libs)
|
||||
# - realcodecs (realplayer libs)
|
||||
|
||||
# internal
|
||||
use real || myconf+=" --disable-real"
|
||||
|
||||
# Real binary codec support only available on x86, amd64
|
||||
if use real; then
|
||||
use x86 && myconf+=" --codecsdir=/opt/RealPlayer/codecs"
|
||||
use amd64 && myconf+=" --codecsdir=/usr/$(get_libdir)/codecs"
|
||||
fi
|
||||
myconf+=" --disable-win32dll"
|
||||
|
||||
################
|
||||
# Video Output #
|
||||
################
|
||||
uses="directfb md5sum sdl"
|
||||
for i in ${uses}; do
|
||||
use ${i} || myconf+=" --disable-${i}"
|
||||
done
|
||||
use aalib || myconf+=" --disable-aa"
|
||||
use fbcon || myconf+=" --disable-fbdev"
|
||||
use fbcon && use video_cards_s3virge && myconf+=" --enable-s3fb"
|
||||
use libcaca || myconf+=" --disable-caca"
|
||||
|
||||
if ! use kernel_linux || ! use video_cards_mga; then
|
||||
myconf+=" --disable-mga --disable-xmga"
|
||||
fi
|
||||
|
||||
if use video_cards_tdfx; then
|
||||
myconf+="
|
||||
$(use_enable video_cards_tdfx tdfxvid)
|
||||
$(use_enable fbcon tdfxfb)
|
||||
"
|
||||
else
|
||||
myconf+="
|
||||
--disable-3dfx
|
||||
--disable-tdfxvid
|
||||
--disable-tdfxfb
|
||||
"
|
||||
fi
|
||||
|
||||
# sun card, disable by default, see bug #258729
|
||||
myconf+=" --disable-xvr100"
|
||||
|
||||
################
|
||||
# Audio Output #
|
||||
################
|
||||
myconf+=" --disable-rsound" # media-sound/rsound is in pro-audio overlay only
|
||||
myconf+=" --disable-esd"
|
||||
uses="alsa jack ladspa nas"
|
||||
for i in ${uses}; do
|
||||
use ${i} || myconf+=" --disable-${i}"
|
||||
done
|
||||
#use openal && myconf+=" --enable-openal" # build fails
|
||||
use pulseaudio || myconf+=" --disable-pulse"
|
||||
if ! use radio; then
|
||||
use oss || myconf+=" --disable-ossaudio"
|
||||
fi
|
||||
|
||||
####################
|
||||
# Advanced Options #
|
||||
####################
|
||||
# Platform specific flags, hardcoded on amd64 (see below)
|
||||
use cpudetection && myconf+=" --enable-runtime-cpudetection"
|
||||
|
||||
# Turning off CPU optimizations usually will break the build.
|
||||
# However, this use flag, if enabled, will allow users to completely
|
||||
# specify which ones to use. If disabled, mplayer will automatically
|
||||
# enable all CPU optimizations that the host build supports.
|
||||
if use custom-cpuopts; then
|
||||
uses="3dnow 3dnowext altivec mmx mmxext shm sse sse2 ssse3"
|
||||
for i in ${uses}; do
|
||||
myconf+=" $(use_enable ${i})"
|
||||
done
|
||||
fi
|
||||
|
||||
use debug && myconf+=" --enable-debug=3"
|
||||
|
||||
if use x86 && gcc-specs-pie; then
|
||||
filter-flags -fPIC -fPIE
|
||||
append-ldflags -nopie
|
||||
fi
|
||||
|
||||
is-flag -O? || append-flags -O2
|
||||
|
||||
# workaround bug, x86 just has too few registers, see c.f.
|
||||
# http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=402950#44
|
||||
# and 32-bits OSX, bug 329861
|
||||
if [[ ${CHOST} == i?86-* ]] ; then
|
||||
use debug || append-flags -fomit-frame-pointer
|
||||
fi
|
||||
|
||||
###########################
|
||||
# X enabled configuration #
|
||||
###########################
|
||||
myconf+=" --disable-dga1 --disable-dga2"
|
||||
if use X; then
|
||||
uses="dxr3 ggi xinerama xv"
|
||||
for i in ${uses}; do
|
||||
use ${i} || myconf+=" --disable-${i}"
|
||||
done
|
||||
use opengl || myconf+=" --disable-gl"
|
||||
use vdpau || myconf+=" --disable-vdpau"
|
||||
use video_cards_vesa || myconf+=" --disable-vesa"
|
||||
use xscreensaver || myconf+=" --disable-xss"
|
||||
else
|
||||
myconf+="
|
||||
--disable-dxr3
|
||||
--disable-ggi
|
||||
--disable-gl
|
||||
--disable-vdpau
|
||||
--disable-xinerama
|
||||
--disable-xss
|
||||
--disable-xv
|
||||
--disable-x11
|
||||
"
|
||||
fi
|
||||
|
||||
############################
|
||||
# OSX (aqua) configuration #
|
||||
############################
|
||||
if use aqua; then
|
||||
myconf+="
|
||||
--enable-macosx-finder
|
||||
--enable-macosx-bundle
|
||||
"
|
||||
fi
|
||||
|
||||
./configure \
|
||||
--cc="$(tc-getCC)" \
|
||||
--host-cc="$(tc-getBUILD_CC)" \
|
||||
--pkg-config="$(tc-getPKG_CONFIG)" \
|
||||
--prefix="${EPREFIX}"/usr \
|
||||
--bindir="${EPREFIX}"/usr/bin \
|
||||
--libdir="${EPREFIX}"/usr/$(get_libdir) \
|
||||
--confdir="${EPREFIX}"/etc/${PN} \
|
||||
--datadir="${EPREFIX}"/usr/share/${PN} \
|
||||
--mandir="${EPREFIX}"/usr/share/man \
|
||||
--localedir="${EPREFIX}"/usr/share/locale \
|
||||
--enable-translation \
|
||||
${myconf} || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# enable verbose build, bug #448196
|
||||
base_src_compile V=1
|
||||
# Build only user-requested docs if they're available.
|
||||
if use doc ; then
|
||||
# select available languages from $LINGUAS
|
||||
LINGUAS=${LINGUAS/zh/zh_CN}
|
||||
local ALLOWED_LINGUAS="cs de en es fr hu it pl ru zh_CN"
|
||||
local BUILT_DOCS=""
|
||||
for i in ${LINGUAS} ; do
|
||||
has ${i} ${ALLOWED_LINGUAS} && BUILT_DOCS+=" ${i}"
|
||||
done
|
||||
if [[ -z $BUILT_DOCS ]]; then
|
||||
emake -j1 -C DOCS/xml html-chunked
|
||||
else
|
||||
for i in ${BUILT_DOCS}; do
|
||||
emake -j1 -C DOCS/xml html-chunked-${i}
|
||||
done
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local i
|
||||
|
||||
emake \
|
||||
DESTDIR="${D}" \
|
||||
INSTALLSTRIP="" \
|
||||
install
|
||||
|
||||
dodoc AUTHORS Copyright README etc/codecs.conf
|
||||
|
||||
docinto tech/
|
||||
dodoc DOCS/tech/{*.txt,mpsub.sub,playtree}
|
||||
docinto TOOLS/
|
||||
dodoc -r TOOLS
|
||||
if use real; then
|
||||
docinto tech/realcodecs/
|
||||
dodoc DOCS/tech/realcodecs/*
|
||||
fi
|
||||
|
||||
if use doc; then
|
||||
docinto html/
|
||||
dohtml -r "${S}"/DOCS/HTML/*
|
||||
fi
|
||||
|
||||
if ! use truetype; then
|
||||
dodir /usr/share/${PN}/fonts
|
||||
# Do this generic, as the mplayer people like to change the structure
|
||||
# of their zips ...
|
||||
for i in $(find "${WORKDIR}/" -type d -name 'font-arial-*'); do
|
||||
cp -pPR "${i}" "${ED}/usr/share/${PN}/fonts"
|
||||
done
|
||||
# Fix the font symlink ...
|
||||
rm -rf "${ED}/usr/share/${PN}/font"
|
||||
dosym fonts/font-arial-14-iso-8859-1 /usr/share/${PN}/font
|
||||
fi
|
||||
|
||||
insinto /etc/${PN}
|
||||
newins "${S}/etc/example.conf" mplayer.conf
|
||||
cat >> "${ED}/etc/${PN}/mplayer.conf" << _EOF_
|
||||
# Config options can be section specific, global
|
||||
# options should go in the default section
|
||||
[default]
|
||||
_EOF_
|
||||
doins "${S}/etc/input.conf"
|
||||
|
||||
# set unrar path when required
|
||||
if use rar; then
|
||||
cat >> "${ED}/etc/${PN}/mplayer.conf" << _EOF_
|
||||
unrarexec=${EPREFIX}/usr/bin/unrar
|
||||
_EOF_
|
||||
fi
|
||||
dosym ../../../etc/${PN}/mplayer.conf /usr/share/${PN}/mplayer.conf
|
||||
|
||||
newbin "${S}/TOOLS/midentify.sh" midentify${NAMESUF}
|
||||
|
||||
if [[ -n ${NAMESUF} ]] && use symlink; then
|
||||
dosym "${PN}" /usr/bin/mplayer
|
||||
dosym "midentify${NAMESUF}" /usr/bin/midentify
|
||||
fi
|
||||
}
|
@ -1,469 +0,0 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/media-video/mplayer2/mplayer2-2.0_p20121108.ebuild,v 1.5 2013/05/16 19:14:38 ulm Exp $
|
||||
|
||||
EAPI=4
|
||||
|
||||
[[ ${PV} = *9999* ]] && VCS_ECLASS="git-2" || VCS_ECLASS=""
|
||||
|
||||
inherit python toolchain-funcs eutils flag-o-matic multilib base ${VCS_ECLASS}
|
||||
|
||||
NAMESUF="${PN/mplayer/}"
|
||||
DESCRIPTION="Media Player for Linux"
|
||||
HOMEPAGE="http://www.mplayer2.org/"
|
||||
|
||||
if [[ ${PV} == *9999* ]]; then
|
||||
EGIT_REPO_URI="git://git.mplayer2.org/mplayer2.git"
|
||||
else
|
||||
SRC_URI="http://rion-overlay.googlecode.com/files/${P}.tar.xz"
|
||||
fi
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
if [[ ${PV} == *9999* ]]; then
|
||||
KEYWORDS=""
|
||||
else
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux"
|
||||
fi
|
||||
IUSE="+a52 +alsa aqua bluray bs2b cddb +cdio cpudetection debug
|
||||
directfb doc +dts +dv dvb +dvd +dvdnav +enca +faad fbcon ftp gif +iconv
|
||||
ipv6 jack joystick jpeg kernel_linux ladspa lcms +libass libcaca lirc mad
|
||||
md5sum mng +mp3 +network nut +opengl oss png pnm portaudio +postproc
|
||||
pulseaudio pvr +quicktime quvi radio +rar +real +rtc samba sdl +speex tga
|
||||
+theora +unicode v4l vcd vdpau +vorbis +X xanim xinerama
|
||||
+xscreensaver +xv xvid yuv4mpeg
|
||||
"
|
||||
IUSE+=" symlink"
|
||||
|
||||
CPU_FEATURES="3dnow 3dnowext altivec +mmx mmxext +shm sse sse2 ssse3"
|
||||
for x in ${CPU_FEATURES}; do
|
||||
IUSE+=" ${x}"
|
||||
done
|
||||
|
||||
REQUIRED_USE="
|
||||
cddb? ( cdio network )
|
||||
dvdnav? ( dvd )
|
||||
lcms? ( opengl )
|
||||
libass? ( iconv )
|
||||
opengl? ( || ( aqua X ) )
|
||||
radio? ( || ( dvb v4l ) )
|
||||
vdpau? ( X )
|
||||
xinerama? ( X )
|
||||
xscreensaver? ( X )
|
||||
xv? ( X )
|
||||
"
|
||||
|
||||
# Rar: althrought -gpl version is nice, it cant do most functions normal rars can
|
||||
RDEPEND+="
|
||||
sys-libs/ncurses
|
||||
sys-libs/zlib
|
||||
X? (
|
||||
x11-libs/libXext
|
||||
x11-libs/libXxf86vm
|
||||
opengl? ( virtual/opengl )
|
||||
lcms? ( media-libs/lcms:2 )
|
||||
vdpau? ( x11-libs/libvdpau )
|
||||
xinerama? ( x11-libs/libXinerama )
|
||||
xscreensaver? ( x11-libs/libXScrnSaver )
|
||||
xv? (
|
||||
x11-libs/libXv
|
||||
)
|
||||
)
|
||||
a52? ( media-libs/a52dec )
|
||||
alsa? ( media-libs/alsa-lib )
|
||||
bluray? ( media-libs/libbluray )
|
||||
bs2b? ( media-libs/libbs2b )
|
||||
cdio? ( dev-libs/libcdio )
|
||||
directfb? ( dev-libs/DirectFB )
|
||||
dts? ( media-libs/libdca )
|
||||
dv? ( media-libs/libdv )
|
||||
dvb? ( virtual/linuxtv-dvb-headers )
|
||||
dvd? (
|
||||
>=media-libs/libdvdread-4.1.3
|
||||
dvdnav? ( >=media-libs/libdvdnav-4.1.3 )
|
||||
)
|
||||
enca? ( app-i18n/enca )
|
||||
faad? ( media-libs/faad2 )
|
||||
gif? ( media-libs/giflib )
|
||||
iconv? ( virtual/libiconv )
|
||||
jack? ( media-sound/jack-audio-connection-kit )
|
||||
jpeg? ( virtual/jpeg )
|
||||
ladspa? ( media-libs/ladspa-sdk )
|
||||
libass? ( >=media-libs/libass-0.9.10[enca?,fontconfig] virtual/ttf-fonts )
|
||||
libcaca? ( media-libs/libcaca )
|
||||
lirc? ( app-misc/lirc )
|
||||
mad? ( media-libs/libmad )
|
||||
mng? ( media-libs/libmng )
|
||||
mp3? ( media-sound/mpg123 )
|
||||
nut? ( >=media-libs/libnut-661 )
|
||||
png? ( media-libs/libpng )
|
||||
pnm? ( media-libs/netpbm )
|
||||
portaudio? ( >=media-libs/portaudio-19_pre20111121 )
|
||||
postproc? ( || ( media-libs/libpostproc <media-video/libav-0.8.2-r1 media-video/ffmpeg ) )
|
||||
pulseaudio? ( media-sound/pulseaudio )
|
||||
quvi? ( >=media-libs/libquvi-0.4.1 )
|
||||
rar? (
|
||||
|| (
|
||||
app-arch/unrar
|
||||
app-arch/rar
|
||||
)
|
||||
)
|
||||
samba? ( net-fs/samba )
|
||||
sdl? ( media-libs/libsdl )
|
||||
speex? ( media-libs/speex )
|
||||
theora? ( media-libs/libtheora )
|
||||
vorbis? ( media-libs/libvorbis )
|
||||
xanim? ( media-video/xanim )
|
||||
xvid? ( media-libs/xvid )
|
||||
>=virtual/ffmpeg-0.10.2
|
||||
symlink? ( !media-video/mplayer )
|
||||
"
|
||||
ASM_DEP="dev-lang/yasm"
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig
|
||||
>=dev-lang/python-2.7
|
||||
dev-python/docutils
|
||||
sys-devel/gettext
|
||||
X? (
|
||||
x11-proto/videoproto
|
||||
x11-proto/xf86vidmodeproto
|
||||
xinerama? ( x11-proto/xineramaproto )
|
||||
xscreensaver? ( x11-proto/scrnsaverproto )
|
||||
)
|
||||
amd64? ( ${ASM_DEP} )
|
||||
doc? (
|
||||
dev-libs/libxslt app-text/docbook-xml-dtd
|
||||
app-text/docbook-xsl-stylesheets
|
||||
)
|
||||
x86? ( ${ASM_DEP} )
|
||||
x86-fbsd? ( ${ASM_DEP} )
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-py2compat.patch"
|
||||
)
|
||||
|
||||
pkg_setup() {
|
||||
if [[ ${PV} == *9999* ]]; then
|
||||
elog
|
||||
elog "This is a live ebuild which installs the latest from upstream's"
|
||||
elog "${VCS_ECLASS} repository, and is unsupported by Gentoo."
|
||||
elog "Everything but bugs in the ebuild itself will be ignored."
|
||||
elog
|
||||
fi
|
||||
|
||||
if use cpudetection; then
|
||||
ewarn
|
||||
ewarn "You've enabled the cpudetection flag. This feature is"
|
||||
ewarn "included mainly for people who want to use the same"
|
||||
ewarn "binary on another system with a different CPU architecture."
|
||||
ewarn "MPlayer will already detect your CPU settings by default at"
|
||||
ewarn "buildtime; this flag is used for runtime detection."
|
||||
ewarn "You won't need this turned on if you are only building"
|
||||
ewarn "mplayer for this system. Also, if your compile fails, try"
|
||||
ewarn "disabling this use flag."
|
||||
fi
|
||||
|
||||
if use !libass; then
|
||||
ewarn
|
||||
ewarn "You've disabled the libass flag. No OSD or subtitles will be displayed."
|
||||
fi
|
||||
|
||||
einfo "For various format support you need to enable the support on your ffmpeg package:"
|
||||
einfo " media-video/libav or media-video/ffmpeg"
|
||||
|
||||
# https://bugs.gentoo.org/show_bug.cgi?id=434356#c4
|
||||
python_pkg_setup
|
||||
major=$(python_get_version --major)
|
||||
minor=$(python_get_version --minor)
|
||||
[[ ( ${major} -eq 2 && ${minor} -ge 7 ) || ${major} -ge 3 ]] \
|
||||
|| die "Please eselect Python 2.7 or later"
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# fix path to bash executable in configure scripts
|
||||
local bash_scripts="configure version.sh"
|
||||
sed -i -e "1c\#!${EPREFIX}/bin/bash" \
|
||||
${bash_scripts} || die
|
||||
|
||||
sed -e 's/rst2man /rst2man.py /g' -i Makefile || die
|
||||
|
||||
if [[ -n ${NAMESUF} ]]; then
|
||||
sed -e "/^EXESUF/s,= \$_exesuf$,= ${NAMESUF}\$_exesuf," \
|
||||
-i configure || die
|
||||
sed -e "s/mplayer/${PN}/" \
|
||||
-i TOOLS/midentify.sh || die
|
||||
fi
|
||||
|
||||
base_src_prepare
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myconf=""
|
||||
local uses i
|
||||
|
||||
# mplayer ebuild uses "use foo || --disable-foo" to forcibly disable
|
||||
# compilation in almost every situation. The reason for this is
|
||||
# because if --enable is used, it will force the build of that option,
|
||||
# regardless of whether the dependency is available or not.
|
||||
|
||||
###################
|
||||
#Optional features#
|
||||
###################
|
||||
# disable tremor, it needs libvorbisidec and is for FPU-less systems only
|
||||
myconf+="
|
||||
--disable-tremor
|
||||
$(use_enable network networking)
|
||||
$(use_enable joystick)
|
||||
"
|
||||
uses="bluray enca ftp libass rtc vcd"
|
||||
for i in ${uses}; do
|
||||
use ${i} || myconf+=" --disable-${i}"
|
||||
done
|
||||
use ipv6 || myconf+=" --disable-inet6"
|
||||
use nut || myconf+=" --disable-libnut"
|
||||
use quvi || myconf+=" --disable-libquvi"
|
||||
use rar || myconf+=" --disable-unrarexec"
|
||||
use samba || myconf+=" --disable-smb"
|
||||
if ! use lirc; then
|
||||
myconf+="
|
||||
--disable-lirc
|
||||
--disable-lircc
|
||||
--disable-apple-ir
|
||||
"
|
||||
fi
|
||||
|
||||
########
|
||||
# CDDA #
|
||||
########
|
||||
use cddb || myconf+=" --disable-cddb"
|
||||
use cdio || myconf+=" --disable-libcdio"
|
||||
|
||||
################################
|
||||
# DVD read, navigation support #
|
||||
################################
|
||||
#
|
||||
# dvdread - accessing a DVD
|
||||
# dvdnav - navigation of menus
|
||||
#
|
||||
# use external libdvdcss, dvdread and dvdnav
|
||||
myconf+=" --disable-dvdread-internal --disable-libdvdcss-internal"
|
||||
use dvd || myconf+=" --disable-dvdread"
|
||||
use dvdnav || myconf+=" --disable-dvdnav"
|
||||
|
||||
#############
|
||||
# Subtitles #
|
||||
#############
|
||||
#
|
||||
# iconv optionally can use unicode
|
||||
use iconv || myconf+=" --disable-iconv --charset=noconv"
|
||||
use iconv && use unicode && myconf+=" --charset=UTF-8"
|
||||
|
||||
#####################################
|
||||
# DVB / Video4Linux / Radio support #
|
||||
#####################################
|
||||
myconf+=" --disable-tv-bsdbt848"
|
||||
# v4l1 is gone since linux-headers-2.6.38
|
||||
myconf+=" --disable-tv-v4l1"
|
||||
if { use dvb || use v4l || use pvr || use radio; }; then
|
||||
use dvb || myconf+=" --disable-dvb"
|
||||
use pvr || myconf+=" --disable-pvr"
|
||||
use v4l || myconf+=" --disable-tv-v4l2"
|
||||
if use radio && { use dvb || use v4l; }; then
|
||||
myconf+="
|
||||
--enable-radio
|
||||
--disable-radio-capture
|
||||
"
|
||||
else
|
||||
myconf+="
|
||||
--disable-radio-v4l2
|
||||
--disable-radio-bsdbt848
|
||||
"
|
||||
fi
|
||||
else
|
||||
myconf+="
|
||||
--disable-tv
|
||||
--disable-tv-v4l2
|
||||
--disable-radio
|
||||
--disable-radio-v4l2
|
||||
--disable-radio-bsdbt848
|
||||
--disable-dvb
|
||||
--disable-v4l2
|
||||
--disable-pvr"
|
||||
fi
|
||||
|
||||
##########
|
||||
# Codecs #
|
||||
##########
|
||||
myconf+=" --disable-musepack" # deprecated, libavcodec Musepack decoder is preferred
|
||||
use dts || myconf+=" --disable-libdca"
|
||||
use mp3 || myconf+=" --disable-mpg123"
|
||||
uses="a52 bs2b dv vorbis"
|
||||
for i in ${uses}; do
|
||||
use ${i} || myconf+=" --disable-lib${i}"
|
||||
done
|
||||
uses="faad gif jpeg mad mng png pnm speex tga theora xanim xvid"
|
||||
for i in ${uses}; do
|
||||
use ${i} || myconf+=" --disable-${i}"
|
||||
done
|
||||
|
||||
#################
|
||||
# Binary codecs #
|
||||
#################
|
||||
# bug 213836
|
||||
use quicktime || myconf+=" --disable-qtx"
|
||||
|
||||
######################
|
||||
# RealPlayer support #
|
||||
######################
|
||||
# Realplayer support shows up in four places:
|
||||
# - libavcodec (internal)
|
||||
# - win32codecs
|
||||
# - realcodecs (win32codecs libs)
|
||||
# - realcodecs (realplayer libs)
|
||||
|
||||
# internal
|
||||
use real || myconf+=" --disable-real"
|
||||
|
||||
# Real binary codec support only available on x86, amd64
|
||||
if use real; then
|
||||
use x86 && myconf+=" --codecsdir=/opt/RealPlayer/codecs"
|
||||
use amd64 && myconf+=" --codecsdir=/usr/$(get_libdir)/codecs"
|
||||
fi
|
||||
myconf+=" --disable-win32dll"
|
||||
|
||||
################
|
||||
# Video Output #
|
||||
################
|
||||
uses="directfb md5sum sdl yuv4mpeg"
|
||||
for i in ${uses}; do
|
||||
use ${i} || myconf+=" --disable-${i}"
|
||||
done
|
||||
use libcaca || myconf+=" --disable-caca"
|
||||
use postproc || myconf+=" --disable-libpostproc"
|
||||
|
||||
################
|
||||
# Audio Output #
|
||||
################
|
||||
myconf+=" --disable-rsound" # media-sound/rsound is in pro-audio overlay only
|
||||
uses="alsa jack ladspa portaudio"
|
||||
for i in ${uses}; do
|
||||
use ${i} || myconf+=" --disable-${i}"
|
||||
done
|
||||
#use openal && myconf+=" --enable-openal" # build fails
|
||||
use pulseaudio || myconf+=" --disable-pulse"
|
||||
if ! use radio; then
|
||||
use oss || myconf+=" --disable-ossaudio"
|
||||
fi
|
||||
|
||||
####################
|
||||
# Advanced Options #
|
||||
####################
|
||||
# Platform specific flags, hardcoded on amd64 (see below)
|
||||
use cpudetection && myconf+=" --enable-runtime-cpudetection"
|
||||
|
||||
for i in ${CPU_FEATURES//+/}; do
|
||||
myconf+=" $(use_enable ${i})"
|
||||
done
|
||||
|
||||
use debug && myconf+=" --enable-debug=3"
|
||||
|
||||
if use x86 && gcc-specs-pie; then
|
||||
filter-flags -fPIC -fPIE
|
||||
append-ldflags -nopie
|
||||
fi
|
||||
|
||||
###########################
|
||||
# X enabled configuration #
|
||||
###########################
|
||||
use X || myconf+=" --disable-x11"
|
||||
uses="vdpau xinerama xv"
|
||||
for i in ${uses}; do
|
||||
use ${i} || myconf+=" --disable-${i}"
|
||||
done
|
||||
use opengl || myconf+=" --disable-gl"
|
||||
use lcms || myconf+=" --disable-lcms2"
|
||||
use xscreensaver || myconf+=" --disable-xss"
|
||||
|
||||
############################
|
||||
# OSX (aqua) configuration #
|
||||
############################
|
||||
if use aqua; then
|
||||
myconf+="
|
||||
--enable-macosx-finder
|
||||
--enable-macosx-bundle
|
||||
"
|
||||
fi
|
||||
|
||||
./configure \
|
||||
--cc="$(tc-getCC)" \
|
||||
--pkg-config="$(tc-getPKG_CONFIG)" \
|
||||
--prefix="${EPREFIX}"/usr \
|
||||
--bindir="${EPREFIX}"/usr/bin \
|
||||
--libdir="${EPREFIX}"/usr/$(get_libdir) \
|
||||
--confdir="${EPREFIX}"/etc/${PN} \
|
||||
--datadir="${EPREFIX}"/usr/share/${PN} \
|
||||
--mandir="${EPREFIX}"/usr/share/man \
|
||||
--localedir="${EPREFIX}"/usr/share/locale \
|
||||
--enable-translation \
|
||||
${myconf} || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# enable verbose build, bug #448196
|
||||
base_src_compile V=1
|
||||
use doc && emake -C DOCS/xml html-chunked
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local i
|
||||
|
||||
emake \
|
||||
DESTDIR="${D}" \
|
||||
INSTALLSTRIP="" \
|
||||
install
|
||||
|
||||
dodoc AUTHORS Copyright README etc/codecs.conf
|
||||
|
||||
docinto tech/
|
||||
dodoc DOCS/tech/{*.txt,mpsub.sub,playtree}
|
||||
docinto TOOLS/
|
||||
dodoc -r TOOLS
|
||||
if use real; then
|
||||
docinto tech/realcodecs/
|
||||
dodoc DOCS/tech/realcodecs/*
|
||||
fi
|
||||
|
||||
if use doc; then
|
||||
docinto html/
|
||||
dohtml -r "${S}"/DOCS/HTML/*
|
||||
fi
|
||||
|
||||
insinto /etc/${PN}
|
||||
newins "${S}/etc/example.conf" mplayer.conf
|
||||
cat >> "${ED}/etc/${PN}/mplayer.conf" << _EOF_
|
||||
# Config options can be section specific, global
|
||||
# options should go in the default section
|
||||
[default]
|
||||
_EOF_
|
||||
doins "${S}/etc/input.conf"
|
||||
|
||||
# set unrar path when required
|
||||
if use rar; then
|
||||
cat >> "${ED}/etc/${PN}/mplayer.conf" << _EOF_
|
||||
unrarexec=${EPREFIX}/usr/bin/unrar
|
||||
_EOF_
|
||||
fi
|
||||
dosym ../../../etc/${PN}/mplayer.conf /usr/share/${PN}/mplayer.conf
|
||||
|
||||
newbin "${S}/TOOLS/midentify.sh" midentify${NAMESUF}
|
||||
|
||||
if [[ -n ${NAMESUF} ]]; then
|
||||
mv "${ED}/usr/share/man/man1/mplayer.1" "${ED}/usr/share/man/man1/mplayer${NAMESUF}.1" || die
|
||||
|
||||
if use symlink; then
|
||||
dosym "${PN}" /usr/bin/mplayer
|
||||
dosym "midentify${NAMESUF}" /usr/bin/midentify
|
||||
fi
|
||||
fi
|
||||
}
|
@ -1,471 +0,0 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/media-video/mplayer2/mplayer2-2.0_p20121128.ebuild,v 1.4 2013/05/16 19:14:38 ulm Exp $
|
||||
|
||||
EAPI=4
|
||||
|
||||
[[ ${PV} = *9999* ]] && VCS_ECLASS="git-2" || VCS_ECLASS=""
|
||||
|
||||
inherit python toolchain-funcs eutils flag-o-matic multilib base ${VCS_ECLASS}
|
||||
|
||||
NAMESUF="${PN/mplayer/}"
|
||||
DESCRIPTION="Media Player for Linux"
|
||||
HOMEPAGE="http://www.mplayer2.org/"
|
||||
|
||||
if [[ ${PV} == *9999* ]]; then
|
||||
EGIT_REPO_URI="git://git.mplayer2.org/mplayer2.git"
|
||||
else
|
||||
SRC_URI="http://rion-overlay.googlecode.com/files/${P}.tar.xz"
|
||||
fi
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
if [[ ${PV} == *9999* ]]; then
|
||||
KEYWORDS=""
|
||||
else
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux"
|
||||
fi
|
||||
IUSE="+a52 +alsa aqua bluray bs2b cddb +cdio cpudetection debug
|
||||
directfb doc +dts +dv dvb +dvd +dvdnav +enca +faad fbcon ftp gif +iconv
|
||||
ipv6 jack joystick jpeg kernel_linux ladspa lcms +libass libcaca lirc mad
|
||||
md5sum mng +mp3 +network nut +opengl oss png pnm portaudio +postproc
|
||||
pulseaudio pvr +quicktime quvi radio +rar +real +rtc samba sdl +speex tga
|
||||
+theora +unicode v4l vcd vdpau +vorbis +X xanim xinerama
|
||||
+xscreensaver +xv xvid yuv4mpeg
|
||||
"
|
||||
IUSE+=" symlink"
|
||||
|
||||
CPU_FEATURES="3dnow 3dnowext altivec +mmx mmxext +shm sse sse2 ssse3"
|
||||
for x in ${CPU_FEATURES}; do
|
||||
IUSE+=" ${x}"
|
||||
done
|
||||
|
||||
REQUIRED_USE="
|
||||
cddb? ( cdio network )
|
||||
dvdnav? ( dvd )
|
||||
lcms? ( opengl )
|
||||
libass? ( iconv )
|
||||
opengl? ( || ( aqua X ) )
|
||||
radio? ( || ( dvb v4l ) )
|
||||
vdpau? ( X )
|
||||
xinerama? ( X )
|
||||
xscreensaver? ( X )
|
||||
xv? ( X )
|
||||
"
|
||||
|
||||
# Rar: althrought -gpl version is nice, it cant do most functions normal rars can
|
||||
RDEPEND+="
|
||||
sys-libs/ncurses
|
||||
sys-libs/zlib
|
||||
X? (
|
||||
x11-libs/libXext
|
||||
x11-libs/libXxf86vm
|
||||
opengl? ( virtual/opengl )
|
||||
lcms? ( media-libs/lcms:2 )
|
||||
vdpau? ( x11-libs/libvdpau )
|
||||
xinerama? ( x11-libs/libXinerama )
|
||||
xscreensaver? ( x11-libs/libXScrnSaver )
|
||||
xv? (
|
||||
x11-libs/libXv
|
||||
)
|
||||
)
|
||||
a52? ( media-libs/a52dec )
|
||||
alsa? ( media-libs/alsa-lib )
|
||||
bluray? ( media-libs/libbluray )
|
||||
bs2b? ( media-libs/libbs2b )
|
||||
cdio? (
|
||||
>=dev-libs/libcdio-0.90
|
||||
>=dev-libs/libcdio-paranoia-0.90
|
||||
)
|
||||
directfb? ( dev-libs/DirectFB )
|
||||
dts? ( media-libs/libdca )
|
||||
dv? ( media-libs/libdv )
|
||||
dvb? ( virtual/linuxtv-dvb-headers )
|
||||
dvd? (
|
||||
>=media-libs/libdvdread-4.1.3
|
||||
dvdnav? ( >=media-libs/libdvdnav-4.1.3 )
|
||||
)
|
||||
enca? ( app-i18n/enca )
|
||||
faad? ( media-libs/faad2 )
|
||||
gif? ( media-libs/giflib )
|
||||
iconv? ( virtual/libiconv )
|
||||
jack? ( media-sound/jack-audio-connection-kit )
|
||||
jpeg? ( virtual/jpeg )
|
||||
ladspa? ( media-libs/ladspa-sdk )
|
||||
libass? ( >=media-libs/libass-0.9.10[enca?,fontconfig] virtual/ttf-fonts )
|
||||
libcaca? ( media-libs/libcaca )
|
||||
lirc? ( app-misc/lirc )
|
||||
mad? ( media-libs/libmad )
|
||||
mng? ( media-libs/libmng )
|
||||
mp3? ( media-sound/mpg123 )
|
||||
nut? ( >=media-libs/libnut-661 )
|
||||
png? ( media-libs/libpng )
|
||||
pnm? ( media-libs/netpbm )
|
||||
portaudio? ( >=media-libs/portaudio-19_pre20111121 )
|
||||
postproc? ( || ( media-libs/libpostproc <media-video/libav-0.8.2-r1 media-video/ffmpeg ) )
|
||||
pulseaudio? ( media-sound/pulseaudio )
|
||||
quvi? ( >=media-libs/libquvi-0.4.1 )
|
||||
rar? (
|
||||
|| (
|
||||
app-arch/unrar
|
||||
app-arch/rar
|
||||
)
|
||||
)
|
||||
samba? ( net-fs/samba )
|
||||
sdl? ( media-libs/libsdl )
|
||||
speex? ( media-libs/speex )
|
||||
theora? ( media-libs/libtheora )
|
||||
vorbis? ( media-libs/libvorbis )
|
||||
xanim? ( media-video/xanim )
|
||||
xvid? ( media-libs/xvid )
|
||||
>=virtual/ffmpeg-0.10.2
|
||||
symlink? ( !media-video/mplayer )
|
||||
"
|
||||
ASM_DEP="dev-lang/yasm"
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig
|
||||
>=dev-lang/python-2.7
|
||||
dev-python/docutils
|
||||
sys-devel/gettext
|
||||
X? (
|
||||
x11-proto/videoproto
|
||||
x11-proto/xf86vidmodeproto
|
||||
xinerama? ( x11-proto/xineramaproto )
|
||||
xscreensaver? ( x11-proto/scrnsaverproto )
|
||||
)
|
||||
amd64? ( ${ASM_DEP} )
|
||||
doc? (
|
||||
dev-libs/libxslt app-text/docbook-xml-dtd
|
||||
app-text/docbook-xsl-stylesheets
|
||||
)
|
||||
x86? ( ${ASM_DEP} )
|
||||
x86-fbsd? ( ${ASM_DEP} )
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-py2compat.patch"
|
||||
"${FILESDIR}/${P}-cdio-api-fixes.patch"
|
||||
)
|
||||
|
||||
pkg_setup() {
|
||||
if [[ ${PV} == *9999* ]]; then
|
||||
elog
|
||||
elog "This is a live ebuild which installs the latest from upstream's"
|
||||
elog "${VCS_ECLASS} repository, and is unsupported by Gentoo."
|
||||
elog "Everything but bugs in the ebuild itself will be ignored."
|
||||
elog
|
||||
fi
|
||||
|
||||
if use cpudetection; then
|
||||
ewarn
|
||||
ewarn "You've enabled the cpudetection flag. This feature is"
|
||||
ewarn "included mainly for people who want to use the same"
|
||||
ewarn "binary on another system with a different CPU architecture."
|
||||
ewarn "MPlayer will already detect your CPU settings by default at"
|
||||
ewarn "buildtime; this flag is used for runtime detection."
|
||||
ewarn "You won't need this turned on if you are only building"
|
||||
ewarn "mplayer for this system. Also, if your compile fails, try"
|
||||
ewarn "disabling this use flag."
|
||||
fi
|
||||
|
||||
if use !libass; then
|
||||
ewarn
|
||||
ewarn "You've disabled the libass flag. No OSD or subtitles will be displayed."
|
||||
fi
|
||||
|
||||
einfo "For various format support you need to enable the support on your ffmpeg package:"
|
||||
einfo " media-video/libav or media-video/ffmpeg"
|
||||
|
||||
# https://bugs.gentoo.org/show_bug.cgi?id=434356#c4
|
||||
python_pkg_setup
|
||||
major=$(python_get_version --major)
|
||||
minor=$(python_get_version --minor)
|
||||
[[ ( ${major} -eq 2 && ${minor} -ge 7 ) || ${major} -ge 3 ]] \
|
||||
|| die "Please eselect Python 2.7 or later"
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# fix path to bash executable in configure scripts
|
||||
local bash_scripts="configure version.sh"
|
||||
sed -i -e "1c\#!${EPREFIX}/bin/bash" \
|
||||
${bash_scripts} || die
|
||||
|
||||
if [[ -n ${NAMESUF} ]]; then
|
||||
sed -e "/^EXESUF/s,= \$_exesuf$,= ${NAMESUF}\$_exesuf," \
|
||||
-i configure || die
|
||||
sed -e "s/mplayer/${PN}/" \
|
||||
-i TOOLS/midentify.sh || die
|
||||
fi
|
||||
|
||||
base_src_prepare
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myconf=""
|
||||
local uses i
|
||||
|
||||
# mplayer ebuild uses "use foo || --disable-foo" to forcibly disable
|
||||
# compilation in almost every situation. The reason for this is
|
||||
# because if --enable is used, it will force the build of that option,
|
||||
# regardless of whether the dependency is available or not.
|
||||
|
||||
###################
|
||||
#Optional features#
|
||||
###################
|
||||
# disable tremor, it needs libvorbisidec and is for FPU-less systems only
|
||||
myconf+="
|
||||
--disable-tremor
|
||||
$(use_enable network networking)
|
||||
$(use_enable joystick)
|
||||
"
|
||||
uses="bluray enca ftp libass rtc vcd"
|
||||
for i in ${uses}; do
|
||||
use ${i} || myconf+=" --disable-${i}"
|
||||
done
|
||||
use ipv6 || myconf+=" --disable-inet6"
|
||||
use nut || myconf+=" --disable-libnut"
|
||||
use quvi || myconf+=" --disable-libquvi"
|
||||
use rar || myconf+=" --disable-unrarexec"
|
||||
use samba || myconf+=" --disable-smb"
|
||||
if ! use lirc; then
|
||||
myconf+="
|
||||
--disable-lirc
|
||||
--disable-lircc
|
||||
--disable-apple-ir
|
||||
"
|
||||
fi
|
||||
|
||||
########
|
||||
# CDDA #
|
||||
########
|
||||
use cddb || myconf+=" --disable-cddb"
|
||||
use cdio || myconf+=" --disable-libcdio"
|
||||
|
||||
################################
|
||||
# DVD read, navigation support #
|
||||
################################
|
||||
#
|
||||
# dvdread - accessing a DVD
|
||||
# dvdnav - navigation of menus
|
||||
#
|
||||
# use external libdvdcss, dvdread and dvdnav
|
||||
myconf+=" --disable-dvdread-internal --disable-libdvdcss-internal"
|
||||
use dvd || myconf+=" --disable-dvdread"
|
||||
use dvdnav || myconf+=" --disable-dvdnav"
|
||||
|
||||
#############
|
||||
# Subtitles #
|
||||
#############
|
||||
#
|
||||
# iconv optionally can use unicode
|
||||
use iconv || myconf+=" --disable-iconv --charset=noconv"
|
||||
use iconv && use unicode && myconf+=" --charset=UTF-8"
|
||||
|
||||
#####################################
|
||||
# DVB / Video4Linux / Radio support #
|
||||
#####################################
|
||||
myconf+=" --disable-tv-bsdbt848"
|
||||
# v4l1 is gone since linux-headers-2.6.38
|
||||
myconf+=" --disable-tv-v4l1"
|
||||
if { use dvb || use v4l || use pvr || use radio; }; then
|
||||
use dvb || myconf+=" --disable-dvb"
|
||||
use pvr || myconf+=" --disable-pvr"
|
||||
use v4l || myconf+=" --disable-tv-v4l2"
|
||||
if use radio && { use dvb || use v4l; }; then
|
||||
myconf+="
|
||||
--enable-radio
|
||||
--disable-radio-capture
|
||||
"
|
||||
else
|
||||
myconf+="
|
||||
--disable-radio-v4l2
|
||||
--disable-radio-bsdbt848
|
||||
"
|
||||
fi
|
||||
else
|
||||
myconf+="
|
||||
--disable-tv
|
||||
--disable-tv-v4l2
|
||||
--disable-radio
|
||||
--disable-radio-v4l2
|
||||
--disable-radio-bsdbt848
|
||||
--disable-dvb
|
||||
--disable-v4l2
|
||||
--disable-pvr"
|
||||
fi
|
||||
|
||||
##########
|
||||
# Codecs #
|
||||
##########
|
||||
myconf+=" --disable-musepack" # deprecated, libavcodec Musepack decoder is preferred
|
||||
use dts || myconf+=" --disable-libdca"
|
||||
use mp3 || myconf+=" --disable-mpg123"
|
||||
uses="a52 bs2b dv vorbis"
|
||||
for i in ${uses}; do
|
||||
use ${i} || myconf+=" --disable-lib${i}"
|
||||
done
|
||||
uses="faad gif jpeg mad mng png pnm speex tga theora xanim xvid"
|
||||
for i in ${uses}; do
|
||||
use ${i} || myconf+=" --disable-${i}"
|
||||
done
|
||||
|
||||
#################
|
||||
# Binary codecs #
|
||||
#################
|
||||
# bug 213836
|
||||
use quicktime || myconf+=" --disable-qtx"
|
||||
|
||||
######################
|
||||
# RealPlayer support #
|
||||
######################
|
||||
# Realplayer support shows up in four places:
|
||||
# - libavcodec (internal)
|
||||
# - win32codecs
|
||||
# - realcodecs (win32codecs libs)
|
||||
# - realcodecs (realplayer libs)
|
||||
|
||||
# internal
|
||||
use real || myconf+=" --disable-real"
|
||||
|
||||
# Real binary codec support only available on x86, amd64
|
||||
if use real; then
|
||||
use x86 && myconf+=" --codecsdir=/opt/RealPlayer/codecs"
|
||||
use amd64 && myconf+=" --codecsdir=/usr/$(get_libdir)/codecs"
|
||||
fi
|
||||
myconf+=" --disable-win32dll"
|
||||
|
||||
################
|
||||
# Video Output #
|
||||
################
|
||||
uses="directfb md5sum sdl yuv4mpeg"
|
||||
for i in ${uses}; do
|
||||
use ${i} || myconf+=" --disable-${i}"
|
||||
done
|
||||
use libcaca || myconf+=" --disable-caca"
|
||||
use postproc || myconf+=" --disable-libpostproc"
|
||||
|
||||
################
|
||||
# Audio Output #
|
||||
################
|
||||
myconf+=" --disable-rsound" # media-sound/rsound is in pro-audio overlay only
|
||||
uses="alsa jack ladspa portaudio"
|
||||
for i in ${uses}; do
|
||||
use ${i} || myconf+=" --disable-${i}"
|
||||
done
|
||||
#use openal && myconf+=" --enable-openal" # build fails
|
||||
use pulseaudio || myconf+=" --disable-pulse"
|
||||
if ! use radio; then
|
||||
use oss || myconf+=" --disable-ossaudio"
|
||||
fi
|
||||
|
||||
####################
|
||||
# Advanced Options #
|
||||
####################
|
||||
# Platform specific flags, hardcoded on amd64 (see below)
|
||||
use cpudetection && myconf+=" --enable-runtime-cpudetection"
|
||||
|
||||
for i in ${CPU_FEATURES//+/}; do
|
||||
myconf+=" $(use_enable ${i})"
|
||||
done
|
||||
|
||||
use debug && myconf+=" --enable-debug=3"
|
||||
|
||||
if use x86 && gcc-specs-pie; then
|
||||
filter-flags -fPIC -fPIE
|
||||
append-ldflags -nopie
|
||||
fi
|
||||
|
||||
###########################
|
||||
# X enabled configuration #
|
||||
###########################
|
||||
use X || myconf+=" --disable-x11"
|
||||
uses="vdpau xinerama xv"
|
||||
for i in ${uses}; do
|
||||
use ${i} || myconf+=" --disable-${i}"
|
||||
done
|
||||
use opengl || myconf+=" --disable-gl"
|
||||
use lcms || myconf+=" --disable-lcms2"
|
||||
use xscreensaver || myconf+=" --disable-xss"
|
||||
|
||||
############################
|
||||
# OSX (aqua) configuration #
|
||||
############################
|
||||
if use aqua; then
|
||||
myconf+="
|
||||
--enable-macosx-finder
|
||||
--enable-macosx-bundle
|
||||
"
|
||||
fi
|
||||
|
||||
./configure \
|
||||
--cc="$(tc-getCC)" \
|
||||
--pkg-config="$(tc-getPKG_CONFIG)" \
|
||||
--prefix="${EPREFIX}"/usr \
|
||||
--bindir="${EPREFIX}"/usr/bin \
|
||||
--libdir="${EPREFIX}"/usr/$(get_libdir) \
|
||||
--confdir="${EPREFIX}"/etc/${PN} \
|
||||
--datadir="${EPREFIX}"/usr/share/${PN} \
|
||||
--mandir="${EPREFIX}"/usr/share/man \
|
||||
--localedir="${EPREFIX}"/usr/share/locale \
|
||||
--enable-translation \
|
||||
${myconf} || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# enable verbose build, bug #448196
|
||||
base_src_compile V=1
|
||||
use doc && emake -C DOCS/xml html-chunked
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local i
|
||||
|
||||
emake \
|
||||
DESTDIR="${D}" \
|
||||
INSTALLSTRIP="" \
|
||||
install
|
||||
|
||||
dodoc AUTHORS Copyright README etc/codecs.conf
|
||||
|
||||
docinto tech/
|
||||
dodoc DOCS/tech/{*.txt,mpsub.sub,playtree}
|
||||
docinto TOOLS/
|
||||
dodoc -r TOOLS
|
||||
if use real; then
|
||||
docinto tech/realcodecs/
|
||||
dodoc DOCS/tech/realcodecs/*
|
||||
fi
|
||||
|
||||
if use doc; then
|
||||
docinto html/
|
||||
dohtml -r "${S}"/DOCS/HTML/*
|
||||
fi
|
||||
|
||||
insinto /etc/${PN}
|
||||
newins "${S}/etc/example.conf" mplayer.conf
|
||||
cat >> "${ED}/etc/${PN}/mplayer.conf" << _EOF_
|
||||
# Config options can be section specific, global
|
||||
# options should go in the default section
|
||||
[default]
|
||||
_EOF_
|
||||
doins "${S}/etc/input.conf"
|
||||
|
||||
# set unrar path when required
|
||||
if use rar; then
|
||||
cat >> "${ED}/etc/${PN}/mplayer.conf" << _EOF_
|
||||
unrarexec=${EPREFIX}/usr/bin/unrar
|
||||
_EOF_
|
||||
fi
|
||||
dosym ../../../etc/${PN}/mplayer.conf /usr/share/${PN}/mplayer.conf
|
||||
|
||||
newbin "${S}/TOOLS/midentify.sh" midentify${NAMESUF}
|
||||
|
||||
if [[ -n ${NAMESUF} ]]; then
|
||||
mv "${ED}/usr/share/man/man1/mplayer.1" "${ED}/usr/share/man/man1/mplayer${NAMESUF}.1" || die
|
||||
|
||||
if use symlink; then
|
||||
dosym "${PN}" /usr/bin/mplayer
|
||||
dosym "midentify${NAMESUF}" /usr/bin/midentify
|
||||
fi
|
||||
fi
|
||||
}
|
@ -1 +1 @@
|
||||
Thu, 13 Jun 2013 16:06:59 +0000
|
||||
Fri, 14 Jun 2013 04:07:01 +0000
|
||||
|
@ -1 +1 @@
|
||||
Thu, 13 Jun 2013 16:07:00 +0000
|
||||
Fri, 14 Jun 2013 04:07:01 +0000
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue