parent
3d9e3e47f1
commit
9221b9bc3a
@ -1,23 +1,23 @@
|
||||
-----BEGIN PGP SIGNED MESSAGE-----
|
||||
Hash: SHA512
|
||||
|
||||
MANIFEST Manifest.files.gz 29300 BLAKE2B 77d02b1773e5e0916e350c73beb8cc762c4dd5cd92bfb8f34194ac93b531d39cbcb0b6a1bec9b619529c5312dff0dc62d1bfb29b27d2ff637ef079462fa6c6b0 SHA512 b5c7a23f2eaa984f0fdaf0bb96d167d9c3c5466cd97df2b9f0e5f8638846f86a7b5418abfdfcd4e99b5116948d394038d438974a4d1c1ec4b9b1ca4859689294
|
||||
TIMESTAMP 2019-03-13T20:08:47Z
|
||||
MANIFEST Manifest.files.gz 29314 BLAKE2B a8ed084f31c8fb9c9239738eee595f4fe0de9e8f8783606a4eb9b2314f9a228a7cf884ae5302950d0d22f2282371149d9cad900ac578c5ad9cd299cd38f39219 SHA512 8e27bbde2cf050c3e4f2745ae463256ed12859b9d7b06914fa517bcd6d7c10983686bf8bd886144f4c326a220f9219ab494e11e35923635ccdbc4919893c1d58
|
||||
TIMESTAMP 2019-03-14T05:08:50Z
|
||||
-----BEGIN PGP SIGNATURE-----
|
||||
|
||||
iQKTBAEBCgB9FiEE4dartjv8+0ugL98c7FkO6skYklAFAlyJY09fFIAAAAAALgAo
|
||||
iQKTBAEBCgB9FiEE4dartjv8+0ugL98c7FkO6skYklAFAlyJ4eJfFIAAAAAALgAo
|
||||
aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEUx
|
||||
RDZBQkI2M0JGQ0ZCNEJBMDJGREYxQ0VDNTkwRUVBQzkxODkyNTAACgkQ7FkO6skY
|
||||
klB5fA//V+EF4nO0WfjzeWYbvKwL9tVtHfTxyC0NXkRjH8TF2aE0GVH2+kZnRcMi
|
||||
qMIE00+8gpeE5vrefIBbaAc3tJEw+26fr8HvHxYFZ30adk33nIkyGrgio4cCpiZR
|
||||
c1oDdCZ5q4hX+XnCPt4jXrAm1HtL28w4d5RYzQj4CCOdQTZhkFpivqd377a+qR+b
|
||||
32ulLa3MeegcZhYwugL2lDwUNjSPguWDdG+5dbFC/eJca85/2ECmop9/cNBXbzWc
|
||||
zhTjFlukxv/FOPmeQW3810qndSQo/aZnyOIi9s/E6eyCTUKcUFjUg7SqjmKIi5zm
|
||||
yNH1Zq5zMgqTHhsjukia2BAfzeC+13H/9fxDolDiO/hpyNpgdsleHcyppjsyAstw
|
||||
l3zot0HoRKoWxaWiv+g1kbmw4Q1zzgLaUZUpT1i6q/mUiQp2Qf4sYCzWUBWNgz1D
|
||||
v4NfkmWa6FWJ393C6d8YlxTb7VQNAYB6LEGG20vmJ2WC4jfIafdYUdGJwiJ05eSX
|
||||
Jyq7NS1ftlOTmCN+zIL66JfMa+yIs2Wsg29bVz2yZHZ0zn93COVq2+uAqJ1YO59v
|
||||
x6Pt5WTogLwRbiyXwFGfa/Xpj2AL5g+G782G4X2r9qo74H6JUwXa6aI2EeIvbTUI
|
||||
14t2wO5h6KwKS8B4Zo7vKLIgbR7/+Os2HkF7+s2SysJHBEw2W0A=
|
||||
=jlLu
|
||||
klDKgQ//RWCascoDRNA9aDs5nhgS1BuMJ/3tIQ6xwdSaK8MvdiwREnJ107SJrRa3
|
||||
/4HrxEtOq0E27FVJ8Nrylp7IC2FXnNdhrfQ9pKIj8no3PJMDU/zIyIFNymtw7pf8
|
||||
qrQApVJbJxd9nmAWOCJ1GwMFgGZtoD6CcwPjM5bYt2U0bmQ8HHV/8mSNarHQI8hM
|
||||
M8i7lyicWAGQZeyQziPP4Kcr3CzrjuDqZSFiamfACs/ww72fpqgO/eD6StnyXYN3
|
||||
TNQcuPd/WPx0ouyTE1OGcuC8NrtEpmyP02ad2JucD+jkmmTiyjtvN/UpwWJIiaZF
|
||||
5mmoCkOfVYvxBQ6RNB4enp0RHq8WdfNN3V7Mcc1d4sN4DCgZ093CxBG7G/yzIvPV
|
||||
/9Frsh+z414ZkvxMP3zElKuHzTgiUlpRN2MCqRwLYETM9+Kh94HvYSugrFu7e/vm
|
||||
DfOYGgN0bqdbILQLzv+yHQqrdwiwF35k3SGpXj/r5c9qtI+G3NXBn6fpS41GAuaf
|
||||
nLT/KrHQqiTpBRJTp7en7i99bjr9cdoCSaaMrTOzdbwTOLjzGjnD5TUXvKMl6Ij/
|
||||
qQ1wSrDHB5/u8Rk411uZNrfWpHRCw6xB2xVBsOI5UncLss8SblpjXCv38y33w+jN
|
||||
smCq7mDnRgaPwN5nyOEPE2tBjoEtInYOaykFRCd+m78OmHE6nnY=
|
||||
=XxqX
|
||||
-----END PGP SIGNATURE-----
|
||||
|
Binary file not shown.
Binary file not shown.
@ -1,5 +1,5 @@
|
||||
AUX yaala-0.7.3-r1-correct-paths.patch 1095 BLAKE2B 5c7a232836bd19ffa678db3c2d522f9d831535e3dc086e014fc45fe233ae9e20aa1a69359ccc2e913b1b2cd66ba29e053957ed32aabdb38948a57e55b485796e SHA512 c44bad33bf23ed089a4ddc2497cc5507c3c1927053c09ed64e39dad95400b0f0d1170da499c504240919262391f6424c5a830298e7c5a49542dd3424fabed8a7
|
||||
DIST yaala-0.7.3.tar.bz2 41528 BLAKE2B 527f691730cd50f60137bce014958423bea4bf007891ac0a6fa0888099da7678661612369d29b41683de81a25bc92163f0d9f413e5a11e9f86c273e0e866ca8e SHA512 30ad37c2c612f47472a840ea40aa924ffa59828455e7268dc29eb3d0276aab835b54396a29eabce88ef0e357523086b182ca1ec366b50851ecb8d2530f4eac01
|
||||
EBUILD yaala-0.7.3-r1.ebuild 1681 BLAKE2B 50fa29f2619f3b16d47d162ad2cd4ff89d035af12f5a58fe326855cff408ff4d2ac79dc1d400ef3dfccffe80ef71c588181655debc9f45cc49c87a13d290475c SHA512 babadaca079b88ab4a0f8c97b7dbacd36f716c3978fb81fdd8da3f0c441ed5bd05e03602d71f9dc4da2e4b7a4bdc2a3d397acd089d869627a9e6f44138841118
|
||||
EBUILD yaala-0.7.3-r2.ebuild 1624 BLAKE2B b57cb945dac02bbf0996e564ff02152e4dba219aca285240e5e37ecd872702c5ec26fcc0fd30ec854c870b4c966386ce1f64d430b69ffa3c64cecda12be1ef67 SHA512 1b637fdaa0b0bdc030e7153dc1c258ad881e81bcc9485e01313449381d999066274c9a1083c1188c686a8a4c99c6f51851921830ca1936fa118613ec7995cccf
|
||||
EBUILD yaala-0.7.3-r2.ebuild 1623 BLAKE2B 606c3b8b9e69c8b4e4d2887ebcc38ed3523bafd6e87bbe2d7ea52523fd02fecafc0da548dd7a8f0b62fa102e3d6e3d38f5f5cf2b3316fad6290ffbead848658a SHA512 63ccbeedf296fbbea7423dddf5ae04b38855dadb341b8483aae17df9932489fe0b940680c3a43861e8843e296e155817bfc46dd9837fa1317b240a6fd80a7eec
|
||||
MISC metadata.xml 337 BLAKE2B b1435fe71f760cc4fd4b6bceee0d4675b7f7e7b89986544003cfb7bbf59851b02025a8b0839d446efbde8c8240bcbba782d8f88c9e0db59b227de91dc885043a SHA512 a24db5faa68733175428ecdfc9c333e5209cfdbaee9e40a23af29d188068d5400d14d60c7239d890d7e66f640c4a2023cabf9b6d131d2abe58f0e90b221119c6
|
||||
|
Binary file not shown.
Binary file not shown.
@ -1,13 +1,5 @@
|
||||
DIST rarlinux-5.6.1_p20180930.tar.gz 552418 BLAKE2B 7a162a9e63336296e67064fe64d5bdefa4f0027bc23f27a419f14e5302fed7ed45bb78541ff7f3a417ed9f6e88700f4306d4ab3dbfb160a27dbf612df67f0c44 SHA512 b566d8d05068557987b69aa3b9610597c7226f7ff96ab935be33f3437b78d02dd539366b3a8499dc4c1d953a640a8a27f21b3f979969b71c6e3bde51a1118b00
|
||||
DIST rarlinux-5.7.0_beta2_p20190221.tar.gz 558880 BLAKE2B 91de934e542e8dfa347f42ca501b1b8b6f20ac1f00464dd43350abc791edd85bb6c10e5e1446500876b00a89375ab621a77ee582a9055cc6eb87f9c5821ec785 SHA512 f0f0c91ca60635649284051970179b584d206bb7427b41c379b4fbac4079a0d79a3821af79f8ec0deb12ae42c56a357445b64b6c24d15455a6bf2e36f1904b1c
|
||||
DIST rarlinux-5.7.0_p20190224.tar.gz 558744 BLAKE2B 3c7b9337767ce8045069b3a851878661e6cae950c69b09bc8c15b86c0fbf4d0b02ce55d198d1ce65ca9e5f227ab1188817f6bdfbce76ef1f8468caa4addfa733 SHA512 ed13c8191888c78dbd2f838f9f17d200bec827ac74024063f3c679fb2051b8e9b5e861d8ab4c9c7d0c8a14017c41386647b0bfd880d0d4855e8da06c17d9d270
|
||||
DIST rarlinux-x64-5.6.1_p20180930.tar.gz 541765 BLAKE2B c3c115fe168df801ce81fbb31de810893539c2f3bcfb176e65ab0db9994fba0d2e3aa848cf073068651e301c1b36cf3d885d80841e6cf63ddb22d3210c14ab64 SHA512 b873397cc44ffe722248638f0315a445e7f8b39ce310d45b79e27d8c2662bf7bc8a095a3e7c4a8fa92e24551328530955f6f18a8553a1612ea00bec8ccaf2e37
|
||||
DIST rarlinux-x64-5.7.0_beta2_p20190221.tar.gz 546553 BLAKE2B 740e60b9a83d9d8335ca573a9659e90e14e70f81c0c0c3b4a6fb235a316e1cb2e368494c980d80fb4799a32aea5ba4f80c2b28f3c3ae98ad6e1afb43ff9c0d0a SHA512 2027dd824d6c989eaeb2a2588100e40122a65f45c6682b00269b84aec43da3db4b7aa350ba58bab8ab68cb77fdad1b2d5854ae44b7629aa8db57b9046976d96d
|
||||
DIST rarlinux-x64-5.7.0_p20190224.tar.gz 546390 BLAKE2B cdf251bbf834c1826d138d811fcf9009a97f45876366192421e601b3075bcad87f760ed5740b00b1620cdd7c569800dd589ddf3fda80db1da30cb223edb0e43a SHA512 48a4aefca44250795687e9f435c13c0c730b86c1abd0c229a1e3234372f13b38c310956525b81e4a5fe9074b39ce7438baaa2c243e4b53259e46d22c53989e3e
|
||||
DIST winrar-x64-5.6.1_p20180930.exe 3190008 BLAKE2B c1411bd15b62ce63a5adc078ef2f7b2941ead91c683b8ade713b1e0a76075281f3c188d46de7d9f1da1caf37c4a4989bf9b35009401f8efa172fa0a4fddefdca SHA512 38c057b765a9a0ed51229018c9ececf94b8b6360a820e73db1af96412b6437614357f885c4c81ce89bc261bb3221d19cfb20284f16881eada0c46debe84f11b1
|
||||
DIST winrar-x64-5.7.0_beta2_p20190221.exe 3141680 BLAKE2B 6e74c9ad2c2f978d33a9f815a320fd1ede49e1e45c118e47cdb221a211cc27c6b4f59ff7b9856435923a80ee2bfc5785533f43d314669274efc2e4d15148fef4 SHA512 428489d587ea380c1eb6e4d8ef918c29e0562da85a01cdb70dafe1fb211e2ee159f5854331e3227b1c8176c89d8ef3c84fa071be33e2ae73be557a2394ba4401
|
||||
DIST winrar-x64-5.7.0_p20190224.exe 3142272 BLAKE2B 89b4adfc7317eb8def65f4e9f0ad7e23a9eb039dd451a97afd34a229b5fe0d19bf62cfbd507ade6a0cb32e1985d6dbd83ee61076673bfeda0d061fd1e7f22469 SHA512 a4853bcd410800818c3fcabf7d0e926612447604fbabfad2bc90c67717a50ca1c293882ff5ed3614b044d8bb1c1d9afe5dff90b836bb9c62efc994b52430c9e1
|
||||
EBUILD rar-5.6.1_p20180930.ebuild 2274 BLAKE2B 5e31f7f6facc378c08aeb73459ca7ec2c5159849a8c7aecc93d0fcf042ac79e685d48f0667ac0584cc78b49c50b4c2a08f0e5fdcdf7ed35c12bd85bccc26960a SHA512 cf018d79b31479a649e25279d89c13daa24b00fe9202806bde8ee20f4e076e68fcccc74f9c8ba5c488b594e8c9dc11223571a28f3888946a096c65ffcd525909
|
||||
EBUILD rar-5.7.0_beta2_p20190221.ebuild 2276 BLAKE2B 916ee9f43bff6d0c06d8e287d99a74b83d69d48721fa47241595bd62be1f7eeedb2d4903d54c6774e3a1be4d84f9375cf7c4e35caf094b54662b55a030932261 SHA512 9b0195e4c83872d0d4550220637fdfb710094d29273c33ce2f737aab04fc821a1f92cca2d115650b0dd4d3b8b3d0432b7f78449b9630bf45bc78116926d58701
|
||||
EBUILD rar-5.7.0_p20190224.ebuild 2276 BLAKE2B 916ee9f43bff6d0c06d8e287d99a74b83d69d48721fa47241595bd62be1f7eeedb2d4903d54c6774e3a1be4d84f9375cf7c4e35caf094b54662b55a030932261 SHA512 9b0195e4c83872d0d4550220637fdfb710094d29273c33ce2f737aab04fc821a1f92cca2d115650b0dd4d3b8b3d0432b7f78449b9630bf45bc78116926d58701
|
||||
EBUILD rar-5.7.0_p20190224.ebuild 2274 BLAKE2B 5e31f7f6facc378c08aeb73459ca7ec2c5159849a8c7aecc93d0fcf042ac79e685d48f0667ac0584cc78b49c50b4c2a08f0e5fdcdf7ed35c12bd85bccc26960a SHA512 cf018d79b31479a649e25279d89c13daa24b00fe9202806bde8ee20f4e076e68fcccc74f9c8ba5c488b594e8c9dc11223571a28f3888946a096c65ffcd525909
|
||||
MISC metadata.xml 436 BLAKE2B 772b97d33730af0ec24c126f46634735b661470d99fe1c2fc90d36653d0143014cf45f84686f3621b3b276c70b859f6551ffe764089d0fb646f99cd04b7d0def SHA512 9748890b95ef59d0fc815cc71757c10e77914ea73d254770a8669d8b766d95c65a90eb941a360b361d4e0c28f1abde6ba15a84a77609820aea7eaa25d2e913a1
|
||||
|
@ -1,109 +0,0 @@
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="6"
|
||||
|
||||
DESCRIPTION="RAR compressor/uncompressor"
|
||||
HOMEPAGE="https://rarlab.com/"
|
||||
URI_x86="https://mirror.whissi.de/distfiles/rar/rarlinux-${PV}.tar.gz"
|
||||
URI_amd64="https://mirror.whissi.de/distfiles/rar/rarlinux-x64-${PV}.tar.gz"
|
||||
URI_w64="https://mirror.whissi.de/distfiles/rar/winrar-x64-${PV}.exe"
|
||||
SRC_URI="x86? ( ${URI_x86} )
|
||||
amd64? ( ${URI_amd64} )
|
||||
all_sfx? (
|
||||
${URI_x86}
|
||||
${URI_amd64}
|
||||
${URI_w64}
|
||||
)"
|
||||
|
||||
LICENSE="RAR BSD BSD-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="-* amd64 x86"
|
||||
IUSE="all_sfx"
|
||||
RESTRICT="mirror bindist"
|
||||
|
||||
DEPEND="all_sfx? ( app-arch/unrar )"
|
||||
RDEPEND="sys-libs/glibc"
|
||||
|
||||
S="${WORKDIR}/${PN}"
|
||||
|
||||
QA_FLAGS_IGNORED="opt/rar/default.sfx
|
||||
opt/rar/default-elf32.sfx
|
||||
opt/rar/default-elf64.sfx
|
||||
opt/rar/default-win32.sfx
|
||||
opt/rar/default-win64.sfx
|
||||
opt/rar/WinCon.SFX
|
||||
opt/rar/WinCon64.SFX
|
||||
opt/rar/Zip.SFX
|
||||
opt/rar/Zip64.SFX
|
||||
opt/rar/unrar
|
||||
opt/rar/rar"
|
||||
QA_PRESTRIPPED=${QA_FLAGS_IGNORED}
|
||||
|
||||
src_unpack() {
|
||||
local _file
|
||||
|
||||
for _file in ${A}; do
|
||||
if [[ "${_file}" == rarli* ]]; then
|
||||
if [[ "${_file}" =~ x64 ]]; then
|
||||
if ! use amd64; then
|
||||
continue
|
||||
fi
|
||||
|
||||
unpack "${_file}"
|
||||
elif [[ ! "${_file}" =~ x64 ]]; then
|
||||
if ! use x86; then
|
||||
continue
|
||||
fi
|
||||
|
||||
unpack "${_file}"
|
||||
else
|
||||
die "Unknown SRC file '${_file}'!"
|
||||
fi
|
||||
fi
|
||||
done
|
||||
|
||||
rm -f "${S}"/license.txt
|
||||
|
||||
if use all_sfx ; then
|
||||
mkdir sfx
|
||||
cd sfx
|
||||
for _file in ${A}; do
|
||||
if [[ "${_file}" == rarli* ]]; then
|
||||
unpack "${_file}"
|
||||
if [[ "${_file}" =~ x64 ]]; then
|
||||
mv rar/default.sfx default-elf64.sfx || die
|
||||
else
|
||||
mv rar/default.sfx default-elf32.sfx || die
|
||||
fi
|
||||
elif [[ "${_file}" == winrar* ]]; then
|
||||
ln -s "${DISTDIR}"/${_file} w64.rar || die
|
||||
unpack ./w64.rar
|
||||
mv Default.SFX default-win32.sfx || die
|
||||
mv Default64.SFX default-win64.sfx || die
|
||||
else
|
||||
die "Unknown SFX file '${_file}'!"
|
||||
fi
|
||||
done
|
||||
fi
|
||||
}
|
||||
|
||||
src_compile() { :; }
|
||||
|
||||
src_install() {
|
||||
exeinto /opt/rar
|
||||
doexe rar unrar || die
|
||||
|
||||
dodir /opt/bin
|
||||
dosym ../rar/rar /opt/bin/rar || die
|
||||
dosym ../rar/unrar /opt/bin/unrar || die
|
||||
|
||||
insinto /opt/rar
|
||||
if use all_sfx ; then
|
||||
doins "${WORKDIR}"/sfx/*.{sfx,SFX} || die
|
||||
else
|
||||
doins default.sfx || die
|
||||
fi
|
||||
doins rarfiles.lst || die
|
||||
dodoc *.txt
|
||||
}
|
@ -1,109 +0,0 @@
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="6"
|
||||
|
||||
DESCRIPTION="RAR compressor/uncompressor"
|
||||
HOMEPAGE="https://rarlab.com/"
|
||||
URI_x86="https://mirror.whissi.de/distfiles/rar/rarlinux-${PV}.tar.gz"
|
||||
URI_amd64="https://mirror.whissi.de/distfiles/rar/rarlinux-x64-${PV}.tar.gz"
|
||||
URI_w64="https://mirror.whissi.de/distfiles/rar/winrar-x64-${PV}.exe"
|
||||
SRC_URI="x86? ( ${URI_x86} )
|
||||
amd64? ( ${URI_amd64} )
|
||||
all_sfx? (
|
||||
${URI_x86}
|
||||
${URI_amd64}
|
||||
${URI_w64}
|
||||
)"
|
||||
|
||||
LICENSE="RAR BSD BSD-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="-* ~amd64 ~x86"
|
||||
IUSE="all_sfx"
|
||||
RESTRICT="mirror bindist"
|
||||
|
||||
DEPEND="all_sfx? ( app-arch/unrar )"
|
||||
RDEPEND="sys-libs/glibc"
|
||||
|
||||
S="${WORKDIR}/${PN}"
|
||||
|
||||
QA_FLAGS_IGNORED="opt/rar/default.sfx
|
||||
opt/rar/default-elf32.sfx
|
||||
opt/rar/default-elf64.sfx
|
||||
opt/rar/default-win32.sfx
|
||||
opt/rar/default-win64.sfx
|
||||
opt/rar/WinCon.SFX
|
||||
opt/rar/WinCon64.SFX
|
||||
opt/rar/Zip.SFX
|
||||
opt/rar/Zip64.SFX
|
||||
opt/rar/unrar
|
||||
opt/rar/rar"
|
||||
QA_PRESTRIPPED=${QA_FLAGS_IGNORED}
|
||||
|
||||
src_unpack() {
|
||||
local _file
|
||||
|
||||
for _file in ${A}; do
|
||||
if [[ "${_file}" == rarli* ]]; then
|
||||
if [[ "${_file}" =~ x64 ]]; then
|
||||
if ! use amd64; then
|
||||
continue
|
||||
fi
|
||||
|
||||
unpack "${_file}"
|
||||
elif [[ ! "${_file}" =~ x64 ]]; then
|
||||
if ! use x86; then
|
||||
continue
|
||||
fi
|
||||
|
||||
unpack "${_file}"
|
||||
else
|
||||
die "Unknown SRC file '${_file}'!"
|
||||
fi
|
||||
fi
|
||||
done
|
||||
|
||||
rm -f "${S}"/license.txt
|
||||
|
||||
if use all_sfx ; then
|
||||
mkdir sfx
|
||||
cd sfx
|
||||
for _file in ${A}; do
|
||||
if [[ "${_file}" == rarli* ]]; then
|
||||
unpack "${_file}"
|
||||
if [[ "${_file}" =~ x64 ]]; then
|
||||
mv rar/default.sfx default-elf64.sfx || die
|
||||
else
|
||||
mv rar/default.sfx default-elf32.sfx || die
|
||||
fi
|
||||
elif [[ "${_file}" == winrar* ]]; then
|
||||
ln -s "${DISTDIR}"/${_file} w64.rar || die
|
||||
unpack ./w64.rar
|
||||
mv Default.SFX default-win32.sfx || die
|
||||
mv Default64.SFX default-win64.sfx || die
|
||||
else
|
||||
die "Unknown SFX file '${_file}'!"
|
||||
fi
|
||||
done
|
||||
fi
|
||||
}
|
||||
|
||||
src_compile() { :; }
|
||||
|
||||
src_install() {
|
||||
exeinto /opt/rar
|
||||
doexe rar unrar || die
|
||||
|
||||
dodir /opt/bin
|
||||
dosym ../rar/rar /opt/bin/rar || die
|
||||
dosym ../rar/unrar /opt/bin/unrar || die
|
||||
|
||||
insinto /opt/rar
|
||||
if use all_sfx ; then
|
||||
doins "${WORKDIR}"/sfx/*.{sfx,SFX} || die
|
||||
else
|
||||
doins default.sfx || die
|
||||
fi
|
||||
doins rarfiles.lst || die
|
||||
dodoc *.txt
|
||||
}
|
Binary file not shown.
@ -1,3 +1,5 @@
|
||||
DIST seahorse-3.20.0.tar.xz 1556556 BLAKE2B e0742996045b50acb2d60f548f321e1ff0121c166209e2230d5839cc971f8560f316c91c3a88a30c302c5339ba0251e7faf64ae805c4f80e853cc67a6952d350 SHA512 a02d3da7af95256941ef065ac024bd5bfb53a026767b951fa2e26446fb0eed23707e69f72f6e8ebfa7d538823fa41411709fa2bebad4fbd662af1e81bc15ab82
|
||||
DIST seahorse-3.30.1.1.tar.xz 1428904 BLAKE2B 54760362fc452b2ff3f7a0d72b25540568703cb91cd46321fb8cd60c9b51f84c3f48575ae9f6c72080cbe0b29e8a38f5e6afdb6c3120b2783a8a04688bd219c9 SHA512 971b8bea484f456d2942f1d1b407ca5b11c1d431f2ee524e58348a421a235dd9d2fa463e73487c6137bde116b34a5d1c0291b479d8562d4ce03766081e0dc469
|
||||
EBUILD seahorse-3.20.0.ebuild 1628 BLAKE2B 72e5b4170c9a9e57f8742b025bb9bb7a816e67dfacbf08e80f715178e06f9cbec10654366c0f74899a816f1f0cbc6d988fb17d258e31873e43eac7f337cb7e51 SHA512 d53d488ab47a2681e075df1894288e81e7c32d05c28b027a091fb91d903da3275e235774e3d0f0caf18dca51d077afce63c2ed40ad5af9a319682956521b593e
|
||||
MISC metadata.xml 871 BLAKE2B 5497bf54b134fb991034614308c76230b647a95ed4609d2271c83af737c5ff86325ca3e56ff3682752585d16cf9389e17bca47e3a673e386ca201aba78a006e6 SHA512 3e4844cf29c6343c93ee51a9d5643464256f7ad884e6af946166c251004d3cbbf6d1aaa6771faf27b1a531939a8401413b52aa84a6bee8a2a4365775b09e8514
|
||||
EBUILD seahorse-3.30.1.1.ebuild 1518 BLAKE2B 19c662f77c0647768bf65e79aad317702112513b5bcae39720ed5ee31663316766514f8e32d2789675196412981700058aa75557216c191bd17832281c5d57fd SHA512 0e0ccc4736866010bc7562738edcd62e36a4a60460dba0c7517659d5f4788454b6abaea8f78b88996f233a36720031ac8e0fc239a5de2c74e0b5136eb50875b7
|
||||
MISC metadata.xml 742 BLAKE2B 11cc6cebe3f395ccd9f2570a419e812951287d7a9af2bd88720a66c7349305c108c451b67a33f9a6da0c82d7b0731ca74980dd7515db3d167993008633973a6f SHA512 cf7cceeaedb1fdb503def974d945a7a5d38a95105dda77f7e917abcec8ce823b461bf3cd1ab5f1a458de859e48a4d58abde71a5a4599685772936eb3525ae3af
|
||||
|
@ -0,0 +1,66 @@
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
inherit gnome.org gnome2-utils meson xdg vala
|
||||
|
||||
DESCRIPTION="Manage your passwords and encryption keys"
|
||||
HOMEPAGE="https://wiki.gnome.org/Apps/Seahorse"
|
||||
|
||||
LICENSE="GPL-2+ FDL-1.1+"
|
||||
SLOT="0"
|
||||
IUSE="ldap zeroconf"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-libs/glib-2.44:2
|
||||
>=app-crypt/gcr-3.11.91:=
|
||||
>=app-crypt/gpgme-1.7.0
|
||||
>=x11-libs/gtk+-3.22.0:3
|
||||
>=app-crypt/gnupg-2.0.12
|
||||
>=app-crypt/libsecret-0.16
|
||||
net-misc/openssh
|
||||
ldap? ( net-nds/openldap:= )
|
||||
>=net-libs/libsoup-2.33.92:2.4
|
||||
zeroconf? ( >=net-dns/avahi-0.6:= )
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
$(vala_depend)
|
||||
dev-libs/appstream-glib
|
||||
dev-libs/libxml2:2
|
||||
dev-util/gdbus-codegen
|
||||
dev-util/glib-utils
|
||||
dev-util/itstool
|
||||
>=sys-devel/gettext-0.19.8
|
||||
virtual/pkgconfig
|
||||
app-crypt/gcr[vala]
|
||||
"
|
||||
|
||||
src_prepare() {
|
||||
xdg_src_prepare
|
||||
vala_src_prepare
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local emesonargs=(
|
||||
-Dhelp=true
|
||||
-Dpgp-support=true
|
||||
#-Dcheck-compatible-gpg=false # TODO: https://gitlab.gnome.org/GNOME/seahorse/issues/217 # assuming gpg 2.3 and newer will be fine for us too; keep lowest version listed as compatible as min dep for gnupg RDEPEND
|
||||
-Dpkcs11-support=true
|
||||
-Dkeyservers-support=true
|
||||
-Dhkp-support=true
|
||||
$(meson_use ldap ldap-support)
|
||||
$(meson_use zeroconf key-sharing)
|
||||
)
|
||||
meson_src_configure
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
xdg_pkg_postinst
|
||||
gnome2_schemas_update
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
xdg_pkg_postrm
|
||||
gnome2_schemas_update
|
||||
}
|
Binary file not shown.
@ -1,3 +1,5 @@
|
||||
DIST gedit-plugins-3.28.1.tar.xz 1350468 BLAKE2B 4fd50ad7358581f5e27f0c3a7e127d4e2c0e7189c039daee1d8d7ddf7062846e1aebb634b3edd998c9a7c11840c71f56fe4eeca78ea2e91ae18db814e4fd79e5 SHA512 6258c627cd3fa2948375c30e87061375c0d09ce2c70301c2d10a403e6075d1df09e928a2d95b72f6d7950a31a720af645fff2f7f59a281d2999948beb56c1dc9
|
||||
DIST gedit-plugins-3.30.1.tar.xz 1354644 BLAKE2B ee42fb2fe47c9219442e0bbdaf21a14a834b8bc38558713ccf0ad384814812fd71f4d318624b4d2c149b26d304203a2b954ef49c3299877f4d067ae181bfe1d5 SHA512 0e777779288b51015d7ab539bf896a00d5226560f2cc2211daf777da87824eed858255318c421524933a540135e4bfdcc294ba7ed89f680a35aa48f7279cbc94
|
||||
EBUILD gedit-plugins-3.28.1.ebuild 2291 BLAKE2B 760bdfb31112d8fa8c620022cdaa5d879fb5ee9ec64fade4c5cf91a85d2b22caff4aaa2a86e0cd612bae6de049ce8b0b2de5c4c4b0b3fe6a6a2229e4f2df5951 SHA512 2cb1b9213a8d00ddd96ada96dae546f48856daec2b6811494b9addec47bc5f9279d494da32872f81eb9d68268ebead14c6f175155e7a93da82a81863a1ddbd53
|
||||
EBUILD gedit-plugins-3.30.1.ebuild 2345 BLAKE2B a510912fc6a7c3b03ea568a33611081341565fea303e08b69afe3724bbe454dc0dd047843b0e247c1a86a16f1b34ff78ef947e8796dd82bdcf4c92173be44514 SHA512 8fe30e05058fcce8536dadf96a2d0011f8a0e88870f6f6372a4a1e95dedb2d7f91b95c003cdfe28c960d90d049314f04d1dc3a7c9e4f197405be977af3acef79
|
||||
MISC metadata.xml 542 BLAKE2B 1336fdd161ef76bb2e1445dd074aed82e04be00c9c47885eb5005122c850193dd2bec1aed69dd1da74527c8ee82d7c75d57b73d020cc692e41f6762ba43d8f08 SHA512 1eba6ba724a313d8dd04e838c448cb8de2f3411b891daaacdea615f0d8187d3bbe1f650c9b2ab5457d519ed98dee600d8830e7eea848c872ccb9c52ba58f231a
|
||||
|
@ -0,0 +1,94 @@
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="6"
|
||||
GNOME2_LA_PUNT="yes" # plugins are dlopened
|
||||
PYTHON_COMPAT=( python3_{4,5,6} )
|
||||
PYTHON_REQ_USE="xml"
|
||||
VALA_MIN_API_VERSION="0.28"
|
||||
|
||||
inherit eutils gnome2 multilib python-single-r1 vala
|
||||
|
||||
DESCRIPTION="Official plugins for gedit"
|
||||
HOMEPAGE="https://wiki.gnome.org/Apps/Gedit/ShippedPlugins"
|
||||
|
||||
LICENSE="GPL-2+"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
SLOT="0"
|
||||
|
||||
IUSE_plugins="charmap git terminal vala"
|
||||
IUSE="+python ${IUSE_plugins}"
|
||||
# python-single-r1 would request disabling PYTHON_TARGETS on libpeas
|
||||
REQUIRED_USE="
|
||||
charmap? ( python )
|
||||
git? ( python )
|
||||
python? ( ${PYTHON_REQUIRED_USE} )
|
||||
terminal? ( python )
|
||||
"
|
||||
|
||||
RDEPEND="
|
||||
>=app-editors/gedit-3.16
|
||||
>=dev-libs/glib-2.32:2
|
||||
>=dev-libs/libpeas-1.7.0[gtk]
|
||||
>=x11-libs/gtk+-3.9:3
|
||||
>=x11-libs/gtksourceview-3.21.3:3.0
|
||||
python? (
|
||||
${PYTHON_DEPS}
|
||||
>=app-editors/gedit-3.16[introspection,python,${PYTHON_USEDEP}]
|
||||
dev-libs/libpeas[python,${PYTHON_USEDEP}]
|
||||
>=dev-python/dbus-python-0.82[${PYTHON_USEDEP}]
|
||||
dev-python/pycairo[${PYTHON_USEDEP}]
|
||||
dev-python/pygobject:3[cairo,${PYTHON_USEDEP}]
|
||||
>=x11-libs/gtk+-3.9:3[introspection]
|
||||
>=x11-libs/gtksourceview-3.14:3.0[introspection]
|
||||
x11-libs/pango[introspection]
|
||||
x11-libs/gdk-pixbuf:2[introspection]
|
||||
)
|
||||
charmap? ( >=gnome-extra/gucharmap-3:2.90[introspection] )
|
||||
git? ( >=dev-libs/libgit2-glib-0.0.6 )
|
||||
terminal? ( >=x11-libs/vte-0.52:2.91[introspection] )
|
||||
vala? ( $(vala_depend) )
|
||||
" # vte-0.52+ for feed_child API compatibility
|
||||
DEPEND="${RDEPEND}
|
||||
>=dev-util/intltool-0.50.2
|
||||
dev-util/itstool
|
||||
>=sys-devel/gettext-0.17
|
||||
virtual/pkgconfig
|
||||
"
|
||||
|
||||
pkg_setup() {
|
||||
use python && [[ ${MERGE_TYPE} != binary ]] && python-single-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
use vala && vala_src_prepare
|
||||
gnome2_src_prepare
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
gnome2_src_configure \
|
||||
$(use_enable python) \
|
||||
$(use_enable vala)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
gnome2_src_install
|
||||
|
||||
# FIXME: crazy !!!
|
||||
if use python; then
|
||||
find "${ED}"/usr/share/gedit -name "*.py*" -delete || die
|
||||
find "${ED}"/usr/share/gedit -type d -empty -delete || die
|
||||
fi
|
||||
|
||||
# FIXME: upstream made this automagic...
|
||||
clean_plugin charmap
|
||||
clean_plugin git
|
||||
clean_plugin terminal
|
||||
}
|
||||
|
||||
clean_plugin() {
|
||||
if use !${1} ; then
|
||||
rm -rf "${ED}"/usr/share/gedit/plugins/${1}*
|
||||
rm -rf "${ED}"/usr/$(get_libdir)/gedit/plugins/${1}*
|
||||
fi
|
||||
}
|
@ -1,3 +1,5 @@
|
||||
DIST gedit-3.28.1.tar.xz 3149684 BLAKE2B 6afedcc5de0bd249af3d0fd02339acc2d993aae083dcbfda9212745ab810b81cdb9da655273cb7ccc556644c29d69429d3587fcc9e1faf7aa1c2cee57af09a4b SHA512 f5931ac562cb5005a83eec43048b718ef431e6006b72470fea54ad0e94bd64940ebdec160ee0459ceb5adb235ab111711a2f9fbdc74104d2edd8f287d7474815
|
||||
DIST gedit-3.30.2.tar.xz 3155628 BLAKE2B 96736adbce987af89b37a712448f42b2a2eeed72d52aa16377d961c9e929fa4e75205eac5987bfc067cc2fecb35aec720d85483c4e2e824a6e8248cc652d2fbe SHA512 58ae7a4c27aeabad670718e39e1860df112d0be00ea622cc8adc185cb5d0e16ac4af65cb3aa45423c7b1b94c88d04d081fe05f3647b054a3e3291abc73c41f6f
|
||||
EBUILD gedit-3.28.1.ebuild 2325 BLAKE2B d95165b8d5e6744af99595359a22e3070ae327afcd995b211c609cf92c99bc4f6687c3b88ad0f64d4ae8f4caeb519aa6fd1a34e4913c7e18163d2b920e37b2dc SHA512 45a5bc9a8869ab1ee8393796c75664a51b03ffa2e335fdb4645145099440232af1bbbef982c7c8a25d4280eb3a2bac857440014c792731e4b711c9f76ea9581a
|
||||
EBUILD gedit-3.30.2.ebuild 2327 BLAKE2B c10617646c5f36329e6d63c63b742e283b05b904f0ebb9ac14f7a414f64d284455dd485fb68963f972e38b483b54a1832e7f84abef9d856ad38a8d5c492da948 SHA512 ce97f674541798350e06d3778b077062481ced91674da6041222e1749cc8b6fc0caba20d3ee97147249c44042b694f4edc956b1649f2ddedf0f5beb97f04a170
|
||||
MISC metadata.xml 249 BLAKE2B e71e1b95fee768c696704acbf7e3cf0e599ed2bc8de92bae0141d1194ef9e842bdc292798904487a9b90ddfda9b0e84abd3b76b1518576c1d288240e4e46f110 SHA512 c40662134899a5c9f0369a1017806f35adf3280a0b3c91726f7a8ca6012a073a8b471583f5bfb6fe95faac1dcf607e8e2e43f8c91d48ec46f4a8824e2f551506
|
||||
|
@ -0,0 +1,92 @@
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="6"
|
||||
GNOME2_LA_PUNT="yes" # plugins are dlopened
|
||||
PYTHON_COMPAT=( python3_{4,5,6} )
|
||||
VALA_MIN_API_VERSION="0.26"
|
||||
VALA_USE_DEPEND="vapigen"
|
||||
|
||||
inherit eutils gnome2 multilib python-single-r1 vala virtualx
|
||||
|
||||
DESCRIPTION="A text editor for the GNOME desktop"
|
||||
HOMEPAGE="https://wiki.gnome.org/Apps/Gedit"
|
||||
|
||||
LICENSE="GPL-2+ CC-BY-SA-3.0"
|
||||
SLOT="0"
|
||||
|
||||
IUSE="+introspection +python spell vala"
|
||||
REQUIRED_USE="python? ( introspection ${PYTHON_REQUIRED_USE} )"
|
||||
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux"
|
||||
|
||||
# X libs are not needed for OSX (aqua)
|
||||
COMMON_DEPEND="
|
||||
>=dev-libs/libxml2-2.5.0:2
|
||||
>=dev-libs/glib-2.44:2[dbus]
|
||||
>=x11-libs/gtk+-3.22.0:3[introspection?]
|
||||
>=x11-libs/gtksourceview-3.22.0:3.0[introspection?]
|
||||
>=dev-libs/libpeas-1.14.1[gtk]
|
||||
|
||||
gnome-base/gsettings-desktop-schemas
|
||||
gnome-base/gvfs
|
||||
|
||||
x11-libs/libX11
|
||||
|
||||
introspection? ( >=dev-libs/gobject-introspection-0.9.3:= )
|
||||
python? (
|
||||
${PYTHON_DEPS}
|
||||
dev-python/pycairo[${PYTHON_USEDEP}]
|
||||
>=dev-python/pygobject-3:3[cairo,${PYTHON_USEDEP}]
|
||||
dev-libs/libpeas[python,${PYTHON_USEDEP}] )
|
||||
spell? ( >=app-text/gspell-0.2.5:0= )
|
||||
"
|
||||
RDEPEND="${COMMON_DEPEND}
|
||||
x11-themes/adwaita-icon-theme
|
||||
"
|
||||
DEPEND="${COMMON_DEPEND}
|
||||
${vala_depend}
|
||||
app-text/docbook-xml-dtd:4.1.2
|
||||
dev-util/glib-utils
|
||||
>=dev-util/gtk-doc-am-1
|
||||
>=dev-util/intltool-0.50.1
|
||||
dev-util/itstool
|
||||
>=sys-devel/gettext-0.18
|
||||
virtual/pkgconfig
|
||||
"
|
||||
# yelp-tools, gnome-common needed to eautoreconf
|
||||
|
||||
pkg_setup() {
|
||||
use python && python-single-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
vala_src_prepare
|
||||
gnome2_src_prepare
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
DOCS="AUTHORS ChangeLog MAINTAINERS NEWS README"
|
||||
|
||||
gnome2_src_configure \
|
||||
--disable-deprecations \
|
||||
--disable-updater \
|
||||
--enable-gvfs-metadata \
|
||||
$(use_enable introspection) \
|
||||
$(use_enable spell) \
|
||||
$(use_enable python) \
|
||||
$(use_enable vala)
|
||||
}
|
||||
|
||||
src_test() {
|
||||
"${EROOT}${GLIB_COMPILE_SCHEMAS}" --allow-any-name "${S}/data" || die
|
||||
GSETTINGS_SCHEMA_DIR="${S}/data" virtx emake check
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local args=()
|
||||
# manually set pyoverridesdir due to bug #524018 and AM_PATH_PYTHON limitations
|
||||
use python && args+=( pyoverridesdir="$(python_get_sitedir)/gi/overrides" )
|
||||
|
||||
gnome2_src_install "${args[@]}"
|
||||
}
|
Binary file not shown.
Binary file not shown.
@ -1,5 +1,5 @@
|
||||
DIST glibmm-2.56.0.tar.xz 6859520 BLAKE2B 8d7f0120de211002d587e6ec0d3750dcdce60abae6506395b318be876d5ed680b1451920063f06d6d9655137d50482a9ba936caa0f6da127bb3855e43b4d877f SHA512 65e577009019e30e340ae5fe6e4c854e5a75551b2eb83ad85403d73eb4e77879783162d4c3c354bc37be0be842f0ddffc1977021a5e0c32985fb596d86929c08
|
||||
DIST glibmm-2.56.1.tar.xz 6841240 BLAKE2B db0e1402f322fd31138cf4db2fc2fabb6fb9896f226f98bd524fe005f0e3412f6973774571b7ec79a9e3c79f6622b0969a55dc91631cc996906dd1e558ad4fe8 SHA512 fd5ad19c5dcba484573520e1d00b5bbb600ee805ab8cd9c0d985880cc1bcbe67ad31fa9f2b5789b5892eddd6be345e3f308593e5ef021e1cfda132e4235fb735
|
||||
EBUILD glibmm-2.56.0.ebuild 1633 BLAKE2B 18f75726ccc969a8985bc2b04ef257277fb4eb7bde203030e09f3eba1f1a25d96a5d2a4318346c176b9a54c62a00ffadf4f045987f89f4d8cc448677c56311a2 SHA512 0827bac28286463c413d8bce0f25420e467c47f49771ca414fa5f12c357daf420a49c763ad2265ba14ba66a051387990d5f06d9fe6e9c757a1c9325f84c6c496
|
||||
EBUILD glibmm-2.56.1.ebuild 1638 BLAKE2B 04379bd537267f58094b03d65fea2713dc83689e5c6cd542f39f06431f08c74828f03116973377282c07da43b0bbc230de6444eab7c2b4b41ffdd846686067ca SHA512 dd20f650dcde5d158bb2aa1068820fae6f4e72a0709ddf1112b236d2db78c2974a7e1fb18bb1db5746e21499f2613eed971f2e680592ac4804f39a87e27c03c6
|
||||
EBUILD glibmm-2.56.1.ebuild 1636 BLAKE2B e1b45990cd3dfb1b941f3c4d0f3405339a8880568f4ef7ca0a8c158e24651b423cf26eeca3440586606e61bd2466c0f6b92c81ccbbb84b0c59f8045b3519d5c1 SHA512 39496736a9969841e94512c153aba2222330b660edeec4f0cf446d4c69ab900c8a381a14d36597f4e38da71ec65eec1a77b622c2ef847eabc1863cd149a98883
|
||||
MISC metadata.xml 249 BLAKE2B e71e1b95fee768c696704acbf7e3cf0e599ed2bc8de92bae0141d1194ef9e842bdc292798904487a9b90ddfda9b0e84abd3b76b1518576c1d288240e4e46f110 SHA512 c40662134899a5c9f0369a1017806f35adf3280a0b3c91726f7a8ca6012a073a8b471583f5bfb6fe95faac1dcf607e8e2e43f8c91d48ec46f4a8824e2f551506
|
||||
|
Binary file not shown.
@ -1,6 +1,8 @@
|
||||
AUX librelp-1.3.0-dummyclient.py-Py3-compatibility.patch 857 BLAKE2B 7729a27955c40dccf7f86c426e8bcb28ff00b65dd35c0be6100c48c42308e6948d3f9cc2d52915d462829abb42a7df60c88d29cca978904c3743f93951a91cc8 SHA512 a7d855f97c271ea324a10f3dae5251d1c74d91c9685e5dbb1b55a4895b260151326dcc42400d63949a3fc4e14e82dbdf43a9b4efefe18afaba4415964c45e72b
|
||||
DIST librelp-1.2.18.tar.gz 506766 BLAKE2B 939bd2279e03a6431fbdfb787aa3d62b3f622ec3248dfc7c0a0a141294c27319081092a624c328374cdba0cbd51659301a77ad41bed27ba13f47601f7a607944 SHA512 7193438238b7019e7a4944d6d900a1fa5a369ff8a6b97a6dca7e82b6637c0f391ec3554eeeaa285881457cb2abe72fa1a893244ec9a36cc9d2e2592d58c5462a
|
||||
DIST librelp-1.3.0.tar.gz 514470 BLAKE2B 3e8d844d3cccd4c148036191f376ba49b3851a2c7e95361bb31a1a172ca0813caa96eb3753b2285a2547c85e073de3237a749bc64fc0fead69ab170656dcb200 SHA512 6e60398c68a78f4b4202a697e144f1516ff3bbb32192f745b52c77d107954febf8cb31d2e166efa96c00122f6807860ecd01084f1d3d4005336f2cb75e6461c9
|
||||
DIST librelp-1.4.0.tar.gz 519235 BLAKE2B 9c1e52cc9f666e75f261db65f45e3d954afa033cac59f93394c30ba99ed772d71b2882bdbb9bed696e57ed99805d47e57fd5e331cc3bc3850c5f15041a0d70d0 SHA512 92d01a51b4ee3c66d1f65d2e26f214646d72b41a8411ab700fe5f9f30f805ef98dec962526ef95c8d8428bf7398d38f656c919f95a3e49382adc745ef9eb4239
|
||||
EBUILD librelp-1.2.18.ebuild 1445 BLAKE2B ac565231d635024c869cf9d2f8ea43b6ffed96a94d0fa1445167c6b8c60facc8987193ccb5a0ac76ae34a019866b84d7bbc4dbf6264f47acb7a3d7d01a35ed4a SHA512 8f6275b915b3c228465d38badb43c2fcbf1928100d7cc3f46e33c0cd17df34d5136315257b28ef8cfff2ee3f1f52168085cce7b9cd4b062d18acf8dbf866ec81
|
||||
EBUILD librelp-1.3.0.ebuild 1691 BLAKE2B 04e0943bc0a3e6629df788a4da76bfaf39ab97d3372bf1af13734660fe6d34d7cf234915500bb47eae97d0eee00c63ebdd7061bd9dc4a1ca3e1917a639745b9f SHA512 d6a40ca3e37e155efd1200758738b0290ce8b290fe2fd4d0c909783832e27b8f443a118f7bab5b21868a8539441c70fc75505f6137840d5e1ce53b9124ed35a6
|
||||
EBUILD librelp-1.4.0.ebuild 1623 BLAKE2B 73236746ff032ad2108762a9d7f61e102c35d7d95f5efdecb7f474e0847a6f9a78a8e39a18602dda3c43d1cacca41e5c2f6a733b026bdef36656e15ae4c92699 SHA512 76bd6fe1912bef5356fbbd39f0f0f18d2a1443c1743b9e0d57a40cf2189c4d91ebfe22408e12cdd73e95548a5ad09cd19069d57012e04b76347e8a7fb8d3cd6d
|
||||
MISC metadata.xml 503 BLAKE2B 987b40e4f9b5e33e1f293023237b7d0cb614ea36113d6d5becb780fddc729a2a2a033cab8e41b64a0465d0f14e220c96787e30b7b133979e36ad86a1273ad0a8 SHA512 31f5e4ece41aab561a70c7b9af6119bce8c3cb7fb6720be754dd925ee656faa75ee953cd3d296d1b8bb5f48368d015ec5d2768d217b349f1689e767424786e3a
|
||||
|
@ -0,0 +1,83 @@
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="7"
|
||||
PYTHON_COMPAT=( python2_7 python3_{4,5,6,7} )
|
||||
|
||||
inherit autotools python-any-r1
|
||||
|
||||
DESCRIPTION="An easy to use library for the RELP protocol"
|
||||
HOMEPAGE="http://www.librelp.com/"
|
||||
SRC_URI="http://download.rsyslog.com/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-3+ doc? ( FDL-1.3 )"
|
||||
|
||||
# subslot = soname version
|
||||
SLOT="0/0.5.0"
|
||||
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~sparc ~x86"
|
||||
IUSE="debug doc +ssl +gnutls libressl openssl static-libs test"
|
||||
REQUIRED_USE="ssl? ( ^^ ( gnutls openssl ) )
|
||||
gnutls? ( ssl )
|
||||
openssl? ( ssl )
|
||||
libressl? ( openssl )"
|
||||
|
||||
RDEPEND="ssl? (
|
||||
gnutls? ( >=net-libs/gnutls-3.3.17.1:0= )
|
||||
openssl? (
|
||||
!libressl? ( dev-libs/openssl:0= )
|
||||
libressl? ( dev-libs/libressl:0= )
|
||||
)
|
||||
)"
|
||||
|
||||
DEPEND="ssl? (
|
||||
gnutls? ( >=net-libs/gnutls-3.3.17.1:0= )
|
||||
openssl? (
|
||||
!libressl? ( dev-libs/openssl:0= )
|
||||
libressl? ( dev-libs/libressl:0= )
|
||||
)
|
||||
)
|
||||
test? ( ${PYTHON_DEPS} )
|
||||
virtual/pkgconfig"
|
||||
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
pkg_setup() {
|
||||
use test && python-any-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
sed -i \
|
||||
-e 's/ -g"/"/g' \
|
||||
configure.ac || die "sed failed"
|
||||
|
||||
default
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myeconfargs=(
|
||||
--disable-valgrind
|
||||
$(use_enable debug)
|
||||
$(use_enable gnutls tls)
|
||||
$(use_enable openssl tls-openssl)
|
||||
$(use_enable static-libs static)
|
||||
)
|
||||
|
||||
econf "${myeconfargs[@]}"
|
||||
}
|
||||
|
||||
src_test() {
|
||||
emake -j1 check
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local DOCS=( ChangeLog )
|
||||
use doc && local HTML_DOCS=( doc/relp.html )
|
||||
default
|
||||
|
||||
if ! use static-libs; then
|
||||
find "${ED%/}"/usr/lib* -name '*.la' -delete || die
|
||||
fi
|
||||
}
|
@ -1,3 +1,3 @@
|
||||
DIST Data-Validate-IP-0.27.tar.gz 38139 BLAKE2B 5fd260fafc3a283bb14bee0b51aad9f829682353e4802cb570fd9f7ecdbfdfaaf2a7bc77ff704dc64c9866c93e054aac4252ed86fff57135c04849b817b06f52 SHA512 5a93f730d53e7adcac4fe5e227b69a44e58cdc94b0081d79978547263095e97c3690c8c6fc6664fc8e4b230ab4c360beda22e6600a3c7abe5e61129ee70553b8
|
||||
EBUILD Data-Validate-IP-0.270.0.ebuild 584 BLAKE2B 8d2c11f7b1ccfa61e9203a52735b04a926f1722d6dd319931e50a70070a34bb19324188e69b565882fbcded8dd3b26ebbec1d20528deabb6830b7872a1cf0814 SHA512 2f5654e5e9fd36629dc52ce04b75772a986678a1edccde1339a7a807775e8e99ff8217213742254a5edff173575ffe348f040d3075bc7f2328f7c9c3b7d94e21
|
||||
EBUILD Data-Validate-IP-0.270.0.ebuild 583 BLAKE2B cf2b3354116c3804d84a08392c5f5644df53756068edd5da00e280749ff97c24fc962ae423035edc14c58fba1d7ccc7f51d42c475700323633253b3dbe219cb5 SHA512 8dd5716dc336886f100ca7ed0f7a5af43966a329431ffeb43ba53ce3d836c0a6d968835fd9305f2a0e55031f8ea00c5be5eb22597f75b969641c06f2618b9afe
|
||||
MISC metadata.xml 405 BLAKE2B c3bfd8adc080f8b9326035f8596138e5fb7b6c2f22c33ca87c555d768d820e266e405a1c7853086258409bbf33dfeb149b59acb06b700f06988ec49287ca258c SHA512 5d39792f857258ebf9a8ea82ea7407b0ea4b05de767d562d026f5cfefddd940cd3d413f142b2e861981a3806b0a8559dc94d8db3ed43f4e5e9df79fba0ff6c31
|
||||
|
Binary file not shown.
Binary file not shown.
@ -1,6 +1,6 @@
|
||||
AUX trace-cmd-2.7-makefile.patch 1164 BLAKE2B f3bd1f27d473d9f71eb81cb5d635a798b520a21e25f1bc47f9b78c35c056b74c3644812ee06fb5c49b6cb84d442f2b8a68f230f60da955b1f631e0a2200621cf SHA512 fb96207c85f32d72a28466c9c7c145dea76d39b91fb024cf1d6b8a9dec4f07832d17f1e1d454628ab9535d376ad055fbc5bb00666dcc355aad64fc259a7d2ab2
|
||||
AUX trace-cmd-2.7-soname.patch 339 BLAKE2B b89d513caa361cfcab00d821e09ae47ce84527add57ce94199262f660f8df5ff436b8ca1d47707d5939c7df760cdfda71c6163d8c4e71ad983328aee5b6f2a20 SHA512 a64a8f6ec1745a1221380b35e779b22d9044df007798eaed5617ea81a391ed0e1baba1f74af9bed280805f748c829b7ca3cc0f7fb773adf791c33373dde3c662
|
||||
DIST trace-cmd-v2.7.tar.gz 1865571 BLAKE2B e0df57c78c6505c856381f17cfdecdaa7a4441eee4cfc57af4fff79a0157ca7aa7c76a81428ddf8d9d00d6bb0a5391b99d4bb5f92fadc7e4062a0181facb2cc9 SHA512 e507eb6609f1fd3dddec541e9f69c466f4f3f66c28f0a7f4292615e3984cebaaf42725f3d82b8c625e5c60977d1f9b5e96cce7664b951eb5f99b955cc440efe4
|
||||
EBUILD trace-cmd-2.7-r1.ebuild 1879 BLAKE2B 5af3225ef63c92f9b11d9daa377229f5ae75a4e82b3eb7ca26a82af059988deb29084544c5d513aadf3d515b234920f7adfa268c1b11ac5cc94fc212b78fc02f SHA512 4e3b6b971a6f20a78da2d6a41669b121bf23f67d4e29d857d582a5d315cc8ecd05eef7428779e0a56d0454ac4de959dcbe346fcd59a658f82102165b01e94aa6
|
||||
EBUILD trace-cmd-9999.ebuild 1883 BLAKE2B 29b99f530593fbab361d6842cc3ad701a4925b306007ec4dd6386001ffea16dd796ba676e3a5f482ed22c6a95c7591f1d30a406e8d0a37ae8aeae70352f631d1 SHA512 8f18e0293eab742005c1cdfc3eb5b0d24e18f08476a8cb12cc0e700624cebdd3a8ae94d6a96da30435033f45ac4f64175a7f0c205471c85a4658c44b2ef51b42
|
||||
EBUILD trace-cmd-2.7-r2.ebuild 1712 BLAKE2B 03502141565b64c9c589e46ac8fa436d6734c120ea5ad15427ee16095d2a84242428aeb81ccf9546a4fe057da06641dc8058327e67283db926c3c1ad6f970397 SHA512 cc968b5d8347869e3503ea3fe696432df1fbd52c77841ea29634ddc447ab7cc74afe908f262d6b27a7f07e4b347bc2cef802de9d2e08082c2bfef88b10207165
|
||||
EBUILD trace-cmd-9999.ebuild 1712 BLAKE2B 03502141565b64c9c589e46ac8fa436d6734c120ea5ad15427ee16095d2a84242428aeb81ccf9546a4fe057da06641dc8058327e67283db926c3c1ad6f970397 SHA512 cc968b5d8347869e3503ea3fe696432df1fbd52c77841ea29634ddc447ab7cc74afe908f262d6b27a7f07e4b347bc2cef802de9d2e08082c2bfef88b10207165
|
||||
MISC metadata.xml 349 BLAKE2B 1e1c9812f4cfe7bb90e2637dcf21947f2702244cabc78ac2283112af7a51064d5a4732db71aaa360e6f111f5e6e5b8492e04252e84379cd21424113d2779ea71 SHA512 0a6322fba3de56559284a0f1e4abc83791cf089a74cb369d167b30dadaa019353c8eef0e09e91ad84b130f0660c1dfa665e4252987903884029f4d08fe80c552
|
||||
|
Binary file not shown.
@ -1,3 +1,4 @@
|
||||
DIST cockatrice-20170505.tar.gz 7340644 BLAKE2B da3503f5ac02d0a03d59c719af82926e693fc3f2028d096c2b1d8d5145c62439f68e88379281e224d812405b39520e34476a6fd1df75f8202adc463f6ea8b3f8 SHA512 7cf319af46e4e2bd59428cf6635eeefebe70695adb445b24a727050abbc64124c17654ac058429b88a99f09f77639c15f8100d107ee8f54cad2bf0dec7051aa5
|
||||
EBUILD cockatrice-20170505-r1.ebuild 1364 BLAKE2B a14d7b957b1807523b66ead35be6a247d726d00929331f6c138f7f2db9d3b5a73b819cbeaba9c5563e2419204e4296ab439cea63333a08252df4e5547af2a86c SHA512 f0fb06c256be1f57c1074b7080219cd99745635fcb9bb190d669d2fd8e9ee1c42ad6a58bee40fbaeee568d0b4c8fac6bce0e7f0a512ff40f8b57e770b4239db0
|
||||
AUX use-ccache.patch 950 BLAKE2B e514c416c7c8821f79a195f968ae9804b83cd9a4a23be3391967a758cca12443e9acf5ee1d568f2b5b1536a9f351df4393a5dc91a08d865d3e038608989df916 SHA512 1140d2dc007474cf192a0a1fa2f9388c8cbd68214a31bc8c5d02f6ced0fd440400f0632a3b76ce1e172ed4ffd481c76b8e3d6a28c8aefa7816b3292c78182a1c
|
||||
DIST cockatrice-20190304.tar.gz 8464830 BLAKE2B 6e6b41593d7eddc8599fa894eed63f993fb69888c57fdfc4a45d71e6e7990d7d716663b69902139f5fd7ead455acdba76ac1d649977e26dceb2948293c34b74e SHA512 6a76e5de2aa7a4d2c9943bee9225ebf01aca7679bcd2542450b7e8b919e401992019f5bfb69597e8845bb2d8db568d7a6549600b85b576f9fb29be712bbfc9e5
|
||||
EBUILD cockatrice-20190304.ebuild 1564 BLAKE2B 839f73b1637788b1b89222f7a6c0db33857371fa54a9bee2c58e711538de7c59d0c1e8f721f2c4ddf94f23194b93df62c7e827e8c966305453dfc5770b1192ea SHA512 f949aac42a897d58db256794f55e371c70e935ea8af1f372b397802d51f98430aad1eca1711adce9b90be4db0e27748d951157694cfef607b28de7dc4f12ed41
|
||||
MISC metadata.xml 1187 BLAKE2B b04809289e20d3d8e98c474cf7673c4620ee337edaf7a61b94fdb0e56a1957b459350032a725a25bce4fd262768bb1f09937320450902966698d6140978a9656 SHA512 cc3711f5230ae38cdeca3da9d1ed9f23a71f4790567433fc1a60e5035412c2259633fb3a5200d248b0247bc282903fa0f2e8d741900bde1b990ef0ce56f38b0b
|
||||
|
@ -0,0 +1,33 @@
|
||||
From 494501bbc88d30d9f1ceb6fb3fbd428eeb58ddee Mon Sep 17 00:00:00 2001
|
||||
From: James Le Cuirot <chewi@gentoo.org>
|
||||
Date: Wed, 13 Mar 2019 22:18:45 +0000
|
||||
Subject: [PATCH] Add USE_CCACHE option to CMake so that ccache can be forcibly
|
||||
disabled
|
||||
|
||||
---
|
||||
CMakeLists.txt | 15 +++++++++------
|
||||
1 file changed, 9 insertions(+), 6 deletions(-)
|
||||
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index cc39e77..59eec3d 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -25,12 +25,15 @@ ELSE()
|
||||
ENDIF()
|
||||
|
||||
# Early detect ccache
|
||||
+OPTION(USE_CCACHE "Cache the build results with ccache" ON)
|
||||
+if(USE_CCACHE)
|
||||
find_program(CCACHE_PROGRAM ccache)
|
||||
if(CCACHE_PROGRAM)
|
||||
# Support Unix Makefiles and Ninja
|
||||
set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE "${CCACHE_PROGRAM}")
|
||||
MESSAGE(STATUS "Found CCache ${CCACHE_PROGRAM}")
|
||||
endif()
|
||||
+endif()
|
||||
|
||||
# A project name is needed for CPack
|
||||
# Version can be overriden by git tags, see cmake/getversion.cmake
|
||||
--
|
||||
2.20.1
|
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,4 +1,4 @@
|
||||
DIST mplus_bitmap_fonts-2.2.4.tar.gz 382574 BLAKE2B 76f1da0dcf9ac25425ace63efb751c5c193f717e76a51750e359216057469cc74cf84572c8162302ac4fb9682ddcd5396325b5ee570a5639f06f338c1ce4d86f SHA512 77aa46d651dbfbbfd6e254619ec917fd861fc44bc7847c2f9e7c4d5ebe0f90bafd8a543eceac394bd3482f868dc6a54440dda384b8be0c24e0c4093735f017e8
|
||||
EBUILD mplus-fonts-2.2.4-r1.ebuild 673 BLAKE2B fe38910f8257dfe1d04bee51463b06e3e7e508d7d2972a55f240e548c5b6c3fc161a109835989c1dd217eff392a9119fe1c9bbd1b9125a9946a1a8dacf8c33c1 SHA512 321e537963009f635041fe81a92ce3b317ce3800e958aa4b2aad01f40c95cfd993da77347882b2e588d3fcbba7ef11cc8595c6a684d78f74f48290a89d9664a7
|
||||
EBUILD mplus-fonts-2.2.4-r1.ebuild 672 BLAKE2B 10ad9cc4a2e28f5571f90572567276f9b53673449a54adb700adebeb6bf6b389845cd51140d0c4c25ccffb666aa9627b89f989573cb8d3565e3c948d9ed4c925 SHA512 36c047b163327c2c226fa63d6b636f79d807c29a03ce83b03374e40a667f45de2c9ce176d2ab3150e6b5470757b04a01b7ad6af76cce3e958b5dc80fdc700be6
|
||||
EBUILD mplus-fonts-2.2.4.ebuild 683 BLAKE2B 9c70a1454795fcc382757c3562e416bc1ea4b9c56f7c56c6f96e6ee5083989c7549b264cc48881f4a57d8f17e4be8ea79c309403c2042be3085200c90ce1df71 SHA512 563d65f5caf0fa2f60e8bc7681fab65092b29f9b02638240110991972628ec97c8711e219fa116f0426894bd9e3dc558f2507c1060458b621c3d4e0fef45d874
|
||||
MISC metadata.xml 417 BLAKE2B afd3ff35d1939503c1e6638acf5dec0ec8545cdca271d8c40f67f7386c6d9328292a1d6f15645f913615ab01a6ae4c3ca5b32551256e4e4a530958a447caa5a4 SHA512 a7b75bfcec2be8a238c1079dff5ada5b5ae6e5e4ba4fb634dcd83baee4558ca10a958c3fd0fc7880d7fde815dd56cccdbea8639b16ba713f6517796f19227f49
|
||||
|
Binary file not shown.
@ -0,0 +1,248 @@
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="6"
|
||||
|
||||
inherit eapi7-ver eutils flag-o-matic libtool perl-functions toolchain-funcs multilib
|
||||
|
||||
MY_PV="$(ver_rs 3 '-')"
|
||||
MY_P="ImageMagick-${MY_PV}"
|
||||
|
||||
DESCRIPTION="A collection of tools and libraries for many image formats"
|
||||
HOMEPAGE="https://www.imagemagick.org/"
|
||||
SRC_URI="mirror://${PN}/${MY_P}.tar.xz"
|
||||
|
||||
LICENSE="imagemagick"
|
||||
SLOT="0/${PV}"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE="bzip2 corefonts cxx djvu fftw fontconfig fpx graphviz hdri heif jbig jpeg jpeg2k lcms lqr lzma opencl openexr openmp pango perl png postscript q32 q8 raw static-libs svg test tiff truetype webp wmf X xml zlib"
|
||||
|
||||
RESTRICT="perl? ( userpriv )"
|
||||
|
||||
RDEPEND="
|
||||
dev-libs/libltdl:0
|
||||
bzip2? ( app-arch/bzip2 )
|
||||
corefonts? ( media-fonts/corefonts )
|
||||
djvu? ( app-text/djvu )
|
||||
fftw? ( sci-libs/fftw:3.0 )
|
||||
fontconfig? ( media-libs/fontconfig )
|
||||
fpx? ( >=media-libs/libfpx-1.3.0-r1 )
|
||||
graphviz? ( media-gfx/graphviz )
|
||||
heif? ( media-libs/libheif:= )
|
||||
jbig? ( >=media-libs/jbigkit-2:= )
|
||||
jpeg? ( virtual/jpeg:0 )
|
||||
jpeg2k? ( >=media-libs/openjpeg-2.1.0:2 )
|
||||
lcms? ( media-libs/lcms:2= )
|
||||
lqr? ( media-libs/liblqr )
|
||||
opencl? ( virtual/opencl )
|
||||
openexr? ( media-libs/openexr:0= )
|
||||
pango? ( x11-libs/pango )
|
||||
perl? ( >=dev-lang/perl-5.8.8:0= )
|
||||
png? ( media-libs/libpng:0= )
|
||||
postscript? ( app-text/ghostscript-gpl )
|
||||
raw? ( media-libs/libraw:= )
|
||||
svg? ( gnome-base/librsvg )
|
||||
tiff? ( media-libs/tiff:0= )
|
||||
truetype? (
|
||||
media-fonts/urw-fonts
|
||||
>=media-libs/freetype-2
|
||||
)
|
||||
webp? ( media-libs/libwebp:0= )
|
||||
wmf? ( media-libs/libwmf )
|
||||
X? (
|
||||
x11-libs/libICE
|
||||
x11-libs/libSM
|
||||
x11-libs/libXext
|
||||
x11-libs/libXt
|
||||
)
|
||||
xml? ( dev-libs/libxml2:= )
|
||||
lzma? ( app-arch/xz-utils )
|
||||
zlib? ( sys-libs/zlib:= )"
|
||||
DEPEND="${RDEPEND}
|
||||
!media-gfx/graphicsmagick[imagemagick]
|
||||
virtual/pkgconfig
|
||||
X? ( x11-base/xorg-proto )"
|
||||
|
||||
REQUIRED_USE="corefonts? ( truetype )
|
||||
test? ( corefonts )"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# Apply hardening #664236
|
||||
cp "${FILESDIR}"/policy-hardening.snippet "${S}" || die
|
||||
sed -i -e '/^<policymap>$/ {
|
||||
r policy-hardening.snippet
|
||||
d
|
||||
}' \
|
||||
config/policy.xml || \
|
||||
die "Failed to apply hardening of policy.xml"
|
||||
einfo "policy.xml hardened"
|
||||
|
||||
elibtoolize # for Darwin modules
|
||||
|
||||
# For testsuite, see https://bugs.gentoo.org/show_bug.cgi?id=500580#c3
|
||||
local mesa_cards ati_cards nvidia_cards render_cards
|
||||
shopt -s nullglob
|
||||
ati_cards=$(echo -n /dev/ati/card* | sed 's/ /:/g')
|
||||
if test -n "${ati_cards}"; then
|
||||
addpredict "${ati_cards}"
|
||||
fi
|
||||
mesa_cards=$(echo -n /dev/dri/card* | sed 's/ /:/g')
|
||||
if test -n "${mesa_cards}"; then
|
||||
addpredict "${mesa_cards}"
|
||||
fi
|
||||
nvidia_cards=$(echo -n /dev/nvidia** | sed 's/ /:/g')
|
||||
if test -n "${nvidia_cards}"; then
|
||||
addpredict "${nvidia_cards}"
|
||||
fi
|
||||
render_cards=$(echo -n /dev/dri/renderD128* | sed 's/ /:/g')
|
||||
if test -n "${render_cards}"; then
|
||||
addpredict "${render_cards}"
|
||||
fi
|
||||
shopt -u nullglob
|
||||
addpredict /dev/nvidiactl
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local depth=16
|
||||
use q8 && depth=8
|
||||
use q32 && depth=32
|
||||
|
||||
local openmp=disable
|
||||
use openmp && { tc-has-openmp && openmp=enable; }
|
||||
|
||||
use perl && perl_check_env
|
||||
|
||||
[[ ${CHOST} == *-solaris* ]] && append-ldflags -lnsl -lsocket
|
||||
|
||||
local myeconfargs=(
|
||||
$(use_enable static-libs static)
|
||||
$(use_enable hdri)
|
||||
$(use_enable opencl)
|
||||
--with-threads
|
||||
--with-modules
|
||||
--with-quantum-depth=${depth}
|
||||
$(use_with cxx magick-plus-plus)
|
||||
$(use_with perl)
|
||||
--with-perl-options='INSTALLDIRS=vendor'
|
||||
--with-gs-font-dir="${EPREFIX}"/usr/share/fonts/urw-fonts
|
||||
$(use_with bzip2 bzlib)
|
||||
$(use_with X x)
|
||||
$(use_with zlib)
|
||||
--without-autotrace
|
||||
$(use_with postscript dps)
|
||||
$(use_with djvu)
|
||||
--with-dejavu-font-dir="${EPREFIX}"/usr/share/fonts/dejavu
|
||||
$(use_with fftw)
|
||||
$(use_with fpx)
|
||||
$(use_with fontconfig)
|
||||
$(use_with truetype freetype)
|
||||
$(use_with postscript gslib)
|
||||
$(use_with graphviz gvc)
|
||||
$(use_with heif heic)
|
||||
$(use_with jbig)
|
||||
$(use_with jpeg)
|
||||
$(use_with jpeg2k openjp2)
|
||||
$(use_with lcms)
|
||||
$(use_with lqr)
|
||||
$(use_with lzma)
|
||||
$(use_with openexr)
|
||||
$(use_with pango)
|
||||
$(use_with png)
|
||||
$(use_with raw)
|
||||
$(use_with svg rsvg)
|
||||
$(use_with tiff)
|
||||
$(use_with webp)
|
||||
$(use_with corefonts windows-font-dir "${EPREFIX}"/usr/share/fonts/corefonts)
|
||||
$(use_with wmf)
|
||||
$(use_with xml)
|
||||
--${openmp}-openmp
|
||||
--with-gcc-arch=no-automagic
|
||||
)
|
||||
CONFIG_SHELL=$(type -P bash) econf "${myeconfargs[@]}"
|
||||
}
|
||||
|
||||
src_test() {
|
||||
# Install default (unrestricted) policy in $HOME for test suite #664238
|
||||
local _im_local_config_home="${HOME}/.config/ImageMagick"
|
||||
mkdir -p "${_im_local_config_home}" || \
|
||||
die "Failed to create IM config dir in '${_im_local_config_home}'"
|
||||
cp "${FILESDIR}"/policy.test.xml "${_im_local_config_home}/policy.xml" || \
|
||||
die "Failed to install default blank policy.xml in '${_im_local_config_home}'"
|
||||
|
||||
local im_command= IM_COMMANDS=()
|
||||
IM_COMMANDS+=( "identify -version | grep -q -- \"${MY_PV}\"" ) # Verify that we are using version we just built
|
||||
IM_COMMANDS+=( "identify -list policy" ) # Verify that policy.xml is used
|
||||
IM_COMMANDS+=( "emake check" ) # Run tests
|
||||
|
||||
for im_command in "${IM_COMMANDS[@]}"; do
|
||||
eval "${S}"/magick.sh \
|
||||
${im_command} || \
|
||||
die "Failed to run \"${im_command}\""
|
||||
done
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# Ensure documentation installation files and paths with each release!
|
||||
emake \
|
||||
DESTDIR="${D}" \
|
||||
DOCUMENTATION_PATH="${EPREFIX}"/usr/share/doc/${PF}/html \
|
||||
install
|
||||
|
||||
rm -f "${ED%/}"/usr/share/doc/${PF}/html/{ChangeLog,LICENSE,NEWS.txt}
|
||||
dodoc {AUTHORS,README}.txt ChangeLog
|
||||
|
||||
if use perl; then
|
||||
find "${ED}" -type f -name perllocal.pod -exec rm -f {} +
|
||||
find "${ED}" -depth -mindepth 1 -type d -empty -exec rm -rf {} +
|
||||
fi
|
||||
|
||||
find "${ED}" -name '*.la' -exec sed -i -e "/^dependency_libs/s:=.*:='':" {} +
|
||||
|
||||
if use opencl; then
|
||||
cat <<-EOF > "${T}"/99${PN}
|
||||
SANDBOX_PREDICT="/dev/nvidiactl:/dev/nvidia-uvm:/dev/ati/card:/dev/dri/card:/dev/dri/renderD128"
|
||||
EOF
|
||||
|
||||
insinto /etc/sandbox.d
|
||||
doins "${T}"/99${PN} #472766
|
||||
fi
|
||||
|
||||
insinto /usr/share/${PN}
|
||||
doins config/*icm
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
local _show_policy_xml_notice=
|
||||
|
||||
if [[ -z "${REPLACING_VERSIONS}" ]]; then
|
||||
# This is a new installation
|
||||
_show_policy_xml_notice=yes
|
||||
else
|
||||
local v
|
||||
for v in ${REPLACING_VERSIONS}; do
|
||||
if ! ver_test "${v}" -gt "6.9.10.10-r2"; then
|
||||
# This is an upgrade
|
||||
_show_policy_xml_notice=yes
|
||||
|
||||
# Show this elog only once
|
||||
break
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
||||
if [[ -n "${_show_policy_xml_notice}" ]]; then
|
||||
elog "For security reasons, a policy.xml file was installed in /etc/ImageMagick-6"
|
||||
elog "which will prevent the usage of the following coders by default:"
|
||||
elog ""
|
||||
elog " - PS"
|
||||
elog " - PS2"
|
||||
elog " - PS3"
|
||||
elog " - EPS"
|
||||
elog " - PDF"
|
||||
elog " - XPS"
|
||||
fi
|
||||
}
|
@ -0,0 +1,256 @@
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="6"
|
||||
|
||||
inherit eapi7-ver eutils flag-o-matic libtool perl-functions toolchain-funcs multilib
|
||||
|
||||
if [[ ${PV} == "9999" ]] ; then
|
||||
EGIT_REPO_URI="https://github.com/ImageMagick/ImageMagick.git"
|
||||
inherit git-r3
|
||||
MY_P="imagemagick-9999"
|
||||
else
|
||||
MY_PV="$(ver_rs 3 '-')"
|
||||
MY_P="ImageMagick-${MY_PV}"
|
||||
SRC_URI="mirror://${PN}/${MY_P}.tar.xz"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
|
||||
fi
|
||||
|
||||
DESCRIPTION="A collection of tools and libraries for many image formats"
|
||||
HOMEPAGE="https://www.imagemagick.org/"
|
||||
|
||||
LICENSE="imagemagick"
|
||||
SLOT="0/${PV}"
|
||||
IUSE="bzip2 corefonts cxx djvu fftw fontconfig fpx graphviz hdri heif jbig jpeg jpeg2k lcms lqr lzma opencl openexr openmp pango perl png postscript q32 q8 raw static-libs svg test tiff truetype webp wmf X xml zlib"
|
||||
|
||||
RDEPEND="
|
||||
dev-libs/libltdl:0
|
||||
bzip2? ( app-arch/bzip2 )
|
||||
corefonts? ( media-fonts/corefonts )
|
||||
djvu? ( app-text/djvu )
|
||||
fftw? ( sci-libs/fftw:3.0 )
|
||||
fontconfig? ( media-libs/fontconfig )
|
||||
fpx? ( >=media-libs/libfpx-1.3.0-r1 )
|
||||
graphviz? ( media-gfx/graphviz )
|
||||
heif? ( media-libs/libheif:= )
|
||||
jbig? ( >=media-libs/jbigkit-2:= )
|
||||
jpeg? ( virtual/jpeg:0 )
|
||||
jpeg2k? ( >=media-libs/openjpeg-2.1.0:2 )
|
||||
lcms? ( media-libs/lcms:2= )
|
||||
lqr? ( media-libs/liblqr )
|
||||
opencl? ( virtual/opencl )
|
||||
openexr? ( media-libs/openexr:0= )
|
||||
pango? ( x11-libs/pango )
|
||||
perl? ( >=dev-lang/perl-5.8.8:0= )
|
||||
png? ( media-libs/libpng:0= )
|
||||
postscript? ( app-text/ghostscript-gpl )
|
||||
raw? ( media-libs/libraw:= )
|
||||
svg? ( gnome-base/librsvg )
|
||||
tiff? ( media-libs/tiff:0= )
|
||||
truetype? (
|
||||
media-fonts/urw-fonts
|
||||
>=media-libs/freetype-2
|
||||
)
|
||||
webp? ( media-libs/libwebp:0= )
|
||||
wmf? ( media-libs/libwmf )
|
||||
X? (
|
||||
x11-libs/libICE
|
||||
x11-libs/libSM
|
||||
x11-libs/libXext
|
||||
x11-libs/libXt
|
||||
)
|
||||
xml? ( dev-libs/libxml2:= )
|
||||
lzma? ( app-arch/xz-utils )
|
||||
zlib? ( sys-libs/zlib:= )"
|
||||
DEPEND="${RDEPEND}
|
||||
!media-gfx/graphicsmagick[imagemagick]
|
||||
virtual/pkgconfig
|
||||
X? ( x11-base/xorg-proto )"
|
||||
|
||||
REQUIRED_USE="corefonts? ( truetype )
|
||||
test? ( corefonts )"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# Apply hardening #664236
|
||||
cp "${FILESDIR}"/policy-hardening.snippet "${S}" || die
|
||||
sed -i -e '/^<policymap>$/ {
|
||||
r policy-hardening.snippet
|
||||
d
|
||||
}' \
|
||||
config/policy.xml || \
|
||||
die "Failed to apply hardening of policy.xml"
|
||||
einfo "policy.xml hardened"
|
||||
|
||||
elibtoolize # for Darwin modules
|
||||
|
||||
# For testsuite, see https://bugs.gentoo.org/show_bug.cgi?id=500580#c3
|
||||
local ati_cards mesa_cards nvidia_cards render_cards
|
||||
shopt -s nullglob
|
||||
ati_cards=$(echo -n /dev/ati/card* | sed 's/ /:/g')
|
||||
if test -n "${ati_cards}"; then
|
||||
addpredict "${ati_cards}"
|
||||
fi
|
||||
mesa_cards=$(echo -n /dev/dri/card* | sed 's/ /:/g')
|
||||
if test -n "${mesa_cards}"; then
|
||||
addpredict "${mesa_cards}"
|
||||
fi
|
||||
nvidia_cards=$(echo -n /dev/nvidia* | sed 's/ /:/g')
|
||||
if test -n "${nvidia_cards}"; then
|
||||
addpredict "${nvidia_cards}"
|
||||
fi
|
||||
render_cards=$(echo -n /dev/dri/renderD128* | sed 's/ /:/g')
|
||||
if test -n "${render_cards}"; then
|
||||
addpredict "${render_cards}"
|
||||
fi
|
||||
shopt -u nullglob
|
||||
addpredict /dev/nvidiactl
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local depth=16
|
||||
use q8 && depth=8
|
||||
use q32 && depth=32
|
||||
|
||||
local openmp=disable
|
||||
use openmp && { tc-has-openmp && openmp=enable; }
|
||||
|
||||
use perl && perl_check_env
|
||||
|
||||
[[ ${CHOST} == *-solaris* ]] && append-ldflags -lnsl -lsocket
|
||||
|
||||
local myeconfargs=(
|
||||
$(use_enable static-libs static)
|
||||
$(use_enable hdri)
|
||||
$(use_enable opencl)
|
||||
--with-threads
|
||||
--with-modules
|
||||
--with-quantum-depth=${depth}
|
||||
$(use_with cxx magick-plus-plus)
|
||||
$(use_with perl)
|
||||
--with-perl-options='INSTALLDIRS=vendor'
|
||||
--with-gs-font-dir="${EPREFIX}"/usr/share/fonts/urw-fonts
|
||||
$(use_with bzip2 bzlib)
|
||||
$(use_with X x)
|
||||
$(use_with zlib)
|
||||
--without-autotrace
|
||||
$(use_with postscript dps)
|
||||
$(use_with djvu)
|
||||
--with-dejavu-font-dir="${EPREFIX}"/usr/share/fonts/dejavu
|
||||
$(use_with fftw)
|
||||
$(use_with fpx)
|
||||
$(use_with fontconfig)
|
||||
$(use_with truetype freetype)
|
||||
$(use_with postscript gslib)
|
||||
$(use_with graphviz gvc)
|
||||
$(use_with heif heic)
|
||||
$(use_with jbig)
|
||||
$(use_with jpeg)
|
||||
$(use_with jpeg2k openjp2)
|
||||
$(use_with lcms)
|
||||
$(use_with lqr)
|
||||
$(use_with lzma)
|
||||
$(use_with openexr)
|
||||
$(use_with pango)
|
||||
$(use_with png)
|
||||
$(use_with raw)
|
||||
$(use_with svg rsvg)
|
||||
$(use_with tiff)
|
||||
$(use_with webp)
|
||||
$(use_with corefonts windows-font-dir "${EPREFIX}"/usr/share/fonts/corefonts)
|
||||
$(use_with wmf)
|
||||
$(use_with xml)
|
||||
--${openmp}-openmp
|
||||
--with-gcc-arch=no-automagic
|
||||
)
|
||||
CONFIG_SHELL=$(type -P bash) econf "${myeconfargs[@]}"
|
||||
}
|
||||
|
||||
src_test() {
|
||||
# Install default (unrestricted) policy in $HOME for test suite #664238
|
||||
local _im_local_config_home="${HOME}/.config/ImageMagick"
|
||||
mkdir -p "${_im_local_config_home}" || \
|
||||
die "Failed to create IM config dir in '${_im_local_config_home}'"
|
||||
cp "${FILESDIR}"/policy.test.xml "${_im_local_config_home}/policy.xml" || \
|
||||
die "Failed to install default blank policy.xml in '${_im_local_config_home}'"
|
||||
|
||||
local im_command= IM_COMMANDS=()
|
||||
if [[ ${PV} == "9999" ]] ; then
|
||||
IM_COMMANDS+=( "magick -version" ) # Show version we are using -- cannot verify because of live ebuild
|
||||
else
|
||||
IM_COMMANDS+=( "magick -version | grep -q -- \"${MY_PV}\"" ) # Verify that we are using version we just built
|
||||
fi
|
||||
IM_COMMANDS+=( "magick -list policy" ) # Verify that policy.xml is used
|
||||
IM_COMMANDS+=( "emake check" ) # Run tests
|
||||
|
||||
for im_command in "${IM_COMMANDS[@]}"; do
|
||||
eval "${S}"/magick.sh \
|
||||
${im_command} || \
|
||||
die "Failed to run \"${im_command}\""
|
||||
done
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# Ensure documentation installation files and paths with each release!
|
||||
emake \
|
||||
DESTDIR="${D}" \
|
||||
DOCUMENTATION_PATH="${EPREFIX}"/usr/share/doc/${PF}/html \
|
||||
install
|
||||
|
||||
rm -f "${ED%/}"/usr/share/doc/${PF}/html/{ChangeLog,LICENSE,NEWS.txt}
|
||||
dodoc {AUTHORS,README}.txt ChangeLog
|
||||
|
||||
if use perl; then
|
||||
find "${ED}" -type f -name perllocal.pod -exec rm -f {} +
|
||||
find "${ED}" -depth -mindepth 1 -type d -empty -exec rm -rf {} +
|
||||
fi
|
||||
|
||||
find "${ED}" -name '*.la' -exec sed -i -e "/^dependency_libs/s:=.*:='':" {} +
|
||||
|
||||
if use opencl; then
|
||||
cat <<-EOF > "${T}"/99${PN}
|
||||
SANDBOX_PREDICT="/dev/nvidiactl:/dev/nvidia-uvm:/dev/ati/card:/dev/dri/card:/dev/dri/renderD128"
|
||||
EOF
|
||||
|
||||
insinto /etc/sandbox.d
|
||||
doins "${T}"/99${PN} #472766
|
||||
fi
|
||||
|
||||
insinto /usr/share/${PN}
|
||||
doins config/*icm
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
local _show_policy_xml_notice=
|
||||
|
||||
if [[ -z "${REPLACING_VERSIONS}" ]]; then
|
||||
# This is a new installation
|
||||
_show_policy_xml_notice=yes
|
||||
else
|
||||
local v
|
||||
for v in ${REPLACING_VERSIONS}; do
|
||||
if ! ver_test "${v}" -gt "7.0.8.10-r2"; then
|
||||
# This is an upgrade
|
||||
_show_policy_xml_notice=yes
|
||||
|
||||
# Show this elog only once
|
||||
break
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
||||
if [[ -n "${_show_policy_xml_notice}" ]]; then
|
||||
elog "For security reasons, a policy.xml file was installed in /etc/ImageMagick-7"
|
||||
elog "which will prevent the usage of the following coders by default:"
|
||||
elog ""
|
||||
elog " - PS"
|
||||
elog " - PS2"
|
||||
elog " - PS3"
|
||||
elog " - EPS"
|
||||
elog " - PDF"
|
||||
elog " - XPS"
|
||||
fi
|
||||
}
|
Binary file not shown.
@ -1,24 +1,8 @@
|
||||
DIST mesa-18.2.8.tar.xz 11385224 BLAKE2B c6fbf71e2ab6837f91dfa996cf7e89e9cae22e219cac56bd4201f7a62c787ddd2f65e7d162a329971018f0b1a796ee1a5b252ee6b43bb3b27a233d67b6cdf615 SHA512 04d5ada9ba3acea853def3ebcbb53ee76936a4cd4229ae753d2ce1b5cf543bea1e5764f2ef2b19735d47d041ba6b0582841bc89e2c9331fdfbd89386f599a1f7
|
||||
DIST mesa-18.3.2.tar.xz 11868440 BLAKE2B 49612671fd4187e71441bc88094f2cde2057b8b45ad2546357be715a7c69dd38f5ef03b837369e302509e0b9882ba209e7901b172dc3f7d797804fa4ab383c91 SHA512 34b66520728d720b1f3d3d63f8ba5c255d57b9e8fe427264419e4163b474df662ff6db9ca8b81283866da415e34346a4c39fc37bebe2a0929be14480faf4db45
|
||||
DIST mesa-18.3.3.tar.xz 11874468 BLAKE2B 406ec67c998934d5334eaf3c34df3012efdaede1850878c9f003a0f06d9247da733f5efa8b27b47b4cdc29d1e2d677e8345aa67b50c508ff8719e0e90a6a3d2d SHA512 cd6214b8bbeb3e3d187139ae1e949684f32f90152e1d7ba8d81222bd088770e28cff7ff165f2ccc41c068950561fe952420c6e54472f7204532a8d8700ff18bb
|
||||
DIST mesa-18.3.4.tar.xz 11875224 BLAKE2B 81d34349c644cc93b3ca525046cdd63a5aa2a16d8f6b841830a138c8e9e375fb0f75a17bd80b4c48ed573f4976dd6612b0773305a3bec982540914365c9925ff SHA512 e4ead944ba053aa05425e9e199d633f576dfa424976253fc32438e8db6da5e8d381122e4c4b7fb18f94177421f208bab5567cfec8d2692d104e266483ca02a99
|
||||
DIST mesa-19.0.0-rc1.tar.xz 11917372 BLAKE2B af8003babd9cc5bf8166e4efd4054690a4cbddb43912b7fddbfea6ca3bba0bcc077bcfa05053b53d4ca3c12d112b0a5d4c6176eda245e5cecd2810c8bac7a6a0 SHA512 23d21d6c4f03a1d9073ecb1f43dc251d581cdeb6b7cc24a19c299571070b4184ad4f22b0ca170ca42e58c62bb46eca0dadc334a952bbb7e0379961a30a6ca856
|
||||
DIST mesa-19.0.0-rc2.tar.xz 11921808 BLAKE2B 279552393209ee263dd24a5bfdfa1caf2014d3a14249fc738704593aae92de5094d6aafd1099df3136b0efd7c49923d98243e94492d2cd3d065e649b630c2256 SHA512 208f1f40c2724b34447f70cb97bd8e7072ac27f6de030205aeeb754480ffca0101edf536af3e3a8e7cc2f990ef53f485fe4ad44a495b3c27e5a33e091381a087
|
||||
DIST mesa-19.0.0-rc3.tar.xz 11919960 BLAKE2B 24b2b6304cc8332dc5edc8db05e5b09e50c87a935057a46c3e9417ff71e1d6bf6150076be0da024d5e972cf3368856108a6730008dd9cf31842d4247f02ae816 SHA512 adcb4cdcda0ef5c43e2257368a674328cb7533c484e631db6ff80d4a6d15ffba4f3f18a063cb63102a7ae89a5954f5e2f45ac8fe295064513f2656198a12307f
|
||||
DIST mesa-19.0.0-rc4.tar.xz 11928252 BLAKE2B 8cf4c2671e3de11e4ed65f0a451dae78bb40bfa32753306060be0d1523ed9f15d0ea479b628b592fcc43927e5c82ea8c68ef02494bb17be58b01ddcd2ea4dc3a SHA512 e17bfc29084a8efa259fcca16374f2f33aa1b62e034a8637fe0c9985410b1722fe68092b6f393fbf23f0db6ec3e1d6a191541d37cee650e42909ec7e0232f5a6
|
||||
DIST mesa-19.0.0-rc5.tar.xz 11927936 BLAKE2B 9fe64733df91f1788b6fba7ab64637f332854671bc0b5c647c962e12985c993eb185b95bdbe4baa98ca408c3d68818c925a653b5b12d5e02ca64812d80c05133 SHA512 f73bafa6d63576720a0aa6254b6fc97ba4e6e1ecf8b62bc62dd83967d5624fc83caed150707f1e5bfda87aff0bc3ebcd4872f8020ba5c23d3f6b42ab4523a91f
|
||||
DIST mesa-19.0.0-rc6.tar.xz 11928968 BLAKE2B c077973c07485fd8ebf42f1da6f8b8d7d2417dd1051bf1488c5244793e0ad32b01ab73e9f65d9dc61fb9d16716ad4be94c62ac73e521c11cf2ab35daaef8c5bf SHA512 88b3b6877acee4ede515dc986a1ca84a341f59b7283318848ea8eb5fd2892ed37d9ad960baf3f92ea10042d51b4e5e101b9f781af0669e0192503e8a79fc2b5f
|
||||
DIST mesa-19.0.0-rc7.tar.xz 11929088 BLAKE2B e0695b3d82612c53986857190eff7749afee23af42a4e3daef08888b6910e7f00cc16007f86c51d6fa952a0fa66f89268498223cb157455ba6b2e0524eb2fc1c SHA512 f86d13ffef4c567614ffe74220139cad319b4cfec06005b97eb1487b146bd7fc16521ba71136f16503c96eb9bf95e1dcb6a3f50214d1f4529887415f1abddfdf
|
||||
DIST mesa-19.0.0.tar.xz 11959360 BLAKE2B e58144bb22f296175d7feb59d2c7940ca795dd417b0b014735d8842a29292cf07a6197184942febfdc85ad062267a55059e0ebd1532a886610dabf888cc68b8f SHA512 5759b85275bcd145513cf14a9ef7505595766fb33b82c53738f74ede462e5850580d48ab4af326b41209e7f4b05aab75539f2bfebf67c3098a4680ea95c37591
|
||||
EBUILD mesa-18.2.8.ebuild 13593 BLAKE2B c2038cc507c1b9447f654a1f3b8f6444993393932a48e347fca854738acf1972a867c313a0c86f9c9b6f484bb1d4d817db548694b998dacd169da773bb672a11 SHA512 5807dd6b4a9685409d6dfd6be5cc468f42a979a1baa3684296032edd13a71660efa9ddf910c6d0adeda6bec956e4a5fb44b6d78ab73c1686e82827f41dd3832c
|
||||
EBUILD mesa-18.3.2.ebuild 13716 BLAKE2B ca7196dad29a0b79e4233d54d6a8706d09eac7e282af23f0dc54709ae6c3985ca128775ddd1ee56f96fe455dbe23c3ead519a2b74118128d4f19de222573ecf2 SHA512 22f390c6bfdab7314134a70fb204e4b7fdde72487fd5dc23db85bc9e26a2061092e2f34a0e1a7f5dcbea2744582c2720c8a5419b2245457034685fc282bd98d3
|
||||
EBUILD mesa-18.3.3.ebuild 13716 BLAKE2B ca7196dad29a0b79e4233d54d6a8706d09eac7e282af23f0dc54709ae6c3985ca128775ddd1ee56f96fe455dbe23c3ead519a2b74118128d4f19de222573ecf2 SHA512 22f390c6bfdab7314134a70fb204e4b7fdde72487fd5dc23db85bc9e26a2061092e2f34a0e1a7f5dcbea2744582c2720c8a5419b2245457034685fc282bd98d3
|
||||
EBUILD mesa-18.3.4.ebuild 13716 BLAKE2B ca7196dad29a0b79e4233d54d6a8706d09eac7e282af23f0dc54709ae6c3985ca128775ddd1ee56f96fe455dbe23c3ead519a2b74118128d4f19de222573ecf2 SHA512 22f390c6bfdab7314134a70fb204e4b7fdde72487fd5dc23db85bc9e26a2061092e2f34a0e1a7f5dcbea2744582c2720c8a5419b2245457034685fc282bd98d3
|
||||
EBUILD mesa-19.0.0_rc1.ebuild 13552 BLAKE2B 4c6020ad05d098a3ac8c737d51a39e08c99f74da7e686bb439511e33fbe83fdff96c73e0a6b3d2d56ed14b8ff5a416b8700c2adb330dfe0500f295bce8f32561 SHA512 e3372984e141bfd53559fc85ff6ba99b87f78e444643fac7c5c1e4c4c20a7351dca60df9c5000bbbc8d2ae3d3f19c4f26aa589b1a1eb133338903c563336b5ed
|
||||
EBUILD mesa-19.0.0_rc2.ebuild 13552 BLAKE2B 4c6020ad05d098a3ac8c737d51a39e08c99f74da7e686bb439511e33fbe83fdff96c73e0a6b3d2d56ed14b8ff5a416b8700c2adb330dfe0500f295bce8f32561 SHA512 e3372984e141bfd53559fc85ff6ba99b87f78e444643fac7c5c1e4c4c20a7351dca60df9c5000bbbc8d2ae3d3f19c4f26aa589b1a1eb133338903c563336b5ed
|
||||
EBUILD mesa-19.0.0_rc3.ebuild 13552 BLAKE2B 4c6020ad05d098a3ac8c737d51a39e08c99f74da7e686bb439511e33fbe83fdff96c73e0a6b3d2d56ed14b8ff5a416b8700c2adb330dfe0500f295bce8f32561 SHA512 e3372984e141bfd53559fc85ff6ba99b87f78e444643fac7c5c1e4c4c20a7351dca60df9c5000bbbc8d2ae3d3f19c4f26aa589b1a1eb133338903c563336b5ed
|
||||
EBUILD mesa-19.0.0_rc4.ebuild 13552 BLAKE2B 4c6020ad05d098a3ac8c737d51a39e08c99f74da7e686bb439511e33fbe83fdff96c73e0a6b3d2d56ed14b8ff5a416b8700c2adb330dfe0500f295bce8f32561 SHA512 e3372984e141bfd53559fc85ff6ba99b87f78e444643fac7c5c1e4c4c20a7351dca60df9c5000bbbc8d2ae3d3f19c4f26aa589b1a1eb133338903c563336b5ed
|
||||
EBUILD mesa-19.0.0_rc5.ebuild 13552 BLAKE2B 4c6020ad05d098a3ac8c737d51a39e08c99f74da7e686bb439511e33fbe83fdff96c73e0a6b3d2d56ed14b8ff5a416b8700c2adb330dfe0500f295bce8f32561 SHA512 e3372984e141bfd53559fc85ff6ba99b87f78e444643fac7c5c1e4c4c20a7351dca60df9c5000bbbc8d2ae3d3f19c4f26aa589b1a1eb133338903c563336b5ed
|
||||
EBUILD mesa-19.0.0_rc6.ebuild 13748 BLAKE2B db64d2b917b9edc10ce302719734bbaeda6f87f7847e720fd866c224ab0bfc275da164b784f367ac0967a7e538eeb5dbc9f17b6bc8c10f2121d8010c66cb044e SHA512 eaa356344697c4b31406e6c93148b49556780c9121c367449b755d11008c60dddf5b7a15161104f4e765cd3c463b3f432f0bcd12e008d3c1231d1d92c2b3fe31
|
||||
EBUILD mesa-19.0.0_rc7.ebuild 13748 BLAKE2B db64d2b917b9edc10ce302719734bbaeda6f87f7847e720fd866c224ab0bfc275da164b784f367ac0967a7e538eeb5dbc9f17b6bc8c10f2121d8010c66cb044e SHA512 eaa356344697c4b31406e6c93148b49556780c9121c367449b755d11008c60dddf5b7a15161104f4e765cd3c463b3f432f0bcd12e008d3c1231d1d92c2b3fe31
|
||||
EBUILD mesa-19.0.0.ebuild 13787 BLAKE2B 9ad539340d5c7656de97718f9799c7b5b7eca2e724ebee486a7cd0cf7a19555bc3ff676f21e227eba5560bd7236500a49b1e7ce2eaa5ef56d2ffbdd48843bfdc SHA512 ce0144de98e213064b4c83e05ce24c54826cbdfb53ac5d3950f2d1a1322472e2766e2d36dd21d312c7c85d1f7ca8bf8403d0894de295f46c4caa6cae2d427e7b
|
||||
EBUILD mesa-9999.ebuild 14054 BLAKE2B 3a3f367cf4d21713fce5056323d5fae901fb6db21aab3fabed21b0e38a7cfbab7b75feb8efa297ef35dbffdfa6645d684df1efc4a7a70bebd1ca1b3d20413e60 SHA512 e3b0744b7a71f2c421bf0e717a7204909391823ea84127fe2101a163c0236d94afb070069bf7312c1adbbcec0e747760dd9aa347316d34e358bc77c779adf655
|
||||
MISC metadata.xml 2041 BLAKE2B dd7f78a57123408674d7ca6a8e7a455e84ac668bf9e6552502cf62dc2464f1a62765db5c22c0d4dab82e59a5325ad10d69b436aab96b5a4d5c789f0a7b671469 SHA512 f07128004b03ddfc6d235de15a95c0bd6338133b13daa31907bd2897d65eaa9c8ad1164ec5e21fb7fa6417927a8109cbf86b24bc62b09cfa29d0bb18fcd3c4b1
|
||||
|
@ -1,519 +0,0 @@
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=( python3_4 python3_5 python3_6 python3_7 )
|
||||
|
||||
inherit llvm meson multilib-minimal pax-utils python-any-r1
|
||||
|
||||
OPENGL_DIR="xorg-x11"
|
||||
|
||||
MY_P="${P/_/-}"
|
||||
|
||||
DESCRIPTION="OpenGL-like graphic library for Linux"
|
||||
HOMEPAGE="https://www.mesa3d.org/ https://mesa.freedesktop.org/"
|
||||
|
||||
if [[ ${PV} == 9999 ]]; then
|
||||
EGIT_REPO_URI="https://gitlab.freedesktop.org/mesa/mesa.git"
|
||||
EXPERIMENTAL="true"
|
||||
inherit git-r3
|
||||
else
|
||||
SRC_URI="https://mesa.freedesktop.org/archive/${MY_P}.tar.xz"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~sparc-solaris ~x64-solaris ~x86-solaris"
|
||||
fi
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
RESTRICT="
|
||||
!test? ( test )
|
||||
"
|
||||
|
||||
RADEON_CARDS="r100 r200 r300 r600 radeon radeonsi"
|
||||
VIDEO_CARDS="${RADEON_CARDS} freedreno i915 i965 imx intel nouveau vc4 virgl vivante vmware"
|
||||
for card in ${VIDEO_CARDS}; do
|
||||
IUSE_VIDEO_CARDS+=" video_cards_${card}"
|
||||
done
|
||||
|
||||
IUSE="${IUSE_VIDEO_CARDS}
|
||||
+classic d3d9 debug +dri3 +egl +gallium +gbm gles1 gles2 +llvm lm_sensors
|
||||
opencl osmesa pax_kernel pic selinux test unwind vaapi valgrind vdpau
|
||||
vulkan wayland xa xvmc"
|
||||
|
||||
REQUIRED_USE="
|
||||
d3d9? ( dri3 || ( video_cards_r300 video_cards_r600 video_cards_radeonsi video_cards_nouveau video_cards_vmware ) )
|
||||
gles1? ( egl )
|
||||
gles2? ( egl )
|
||||
vulkan? ( dri3
|
||||
|| ( video_cards_i965 video_cards_radeonsi )
|
||||
video_cards_radeonsi? ( llvm ) )
|
||||
wayland? ( egl gbm )
|
||||
video_cards_freedreno? ( gallium )
|
||||
video_cards_intel? ( classic )
|
||||
video_cards_i915? ( || ( classic gallium ) )
|
||||
video_cards_i965? ( classic )
|
||||
video_cards_imx? ( gallium video_cards_vivante )
|
||||
video_cards_nouveau? ( || ( classic gallium ) )
|
||||
video_cards_radeon? ( || ( classic gallium )
|
||||
gallium? ( x86? ( llvm ) amd64? ( llvm ) ) )
|
||||
video_cards_r100? ( classic )
|
||||
video_cards_r200? ( classic )
|
||||
video_cards_r300? ( gallium x86? ( llvm ) amd64? ( llvm ) )
|
||||
video_cards_r600? ( gallium )
|
||||
video_cards_radeonsi? ( gallium llvm )
|
||||
video_cards_vc4? ( gallium )
|
||||
video_cards_virgl? ( gallium )
|
||||
video_cards_vivante? ( gallium gbm )
|
||||
video_cards_vmware? ( gallium )
|
||||
"
|
||||
|
||||
LIBDRM_DEPSTRING=">=x11-libs/libdrm-2.4.96"
|
||||
RDEPEND="
|
||||
!app-eselect/eselect-mesa
|
||||
>=app-eselect/eselect-opengl-1.3.0
|
||||
>=dev-libs/expat-2.1.0-r3:=[${MULTILIB_USEDEP}]
|
||||
>=sys-libs/zlib-1.2.8[${MULTILIB_USEDEP}]
|
||||
>=x11-libs/libX11-1.6.2:=[${MULTILIB_USEDEP}]
|
||||
>=x11-libs/libxshmfence-1.1:=[${MULTILIB_USEDEP}]
|
||||
>=x11-libs/libXdamage-1.1.4-r1:=[${MULTILIB_USEDEP}]
|
||||
>=x11-libs/libXext-1.3.2:=[${MULTILIB_USEDEP}]
|
||||
>=x11-libs/libXxf86vm-1.1.3:=[${MULTILIB_USEDEP}]
|
||||
>=x11-libs/libxcb-1.13:=[${MULTILIB_USEDEP}]
|
||||
x11-libs/libXfixes:=[${MULTILIB_USEDEP}]
|
||||
gallium? (
|
||||
unwind? ( sys-libs/libunwind[${MULTILIB_USEDEP}] )
|
||||
llvm? (
|
||||
video_cards_radeonsi? (
|
||||
virtual/libelf:0=[${MULTILIB_USEDEP}]
|
||||
)
|
||||
video_cards_r600? (
|
||||
virtual/libelf:0=[${MULTILIB_USEDEP}]
|
||||
)
|
||||
video_cards_radeon? (
|
||||
virtual/libelf:0=[${MULTILIB_USEDEP}]
|
||||
)
|
||||
)
|
||||
lm_sensors? ( sys-apps/lm_sensors:=[${MULTILIB_USEDEP}] )
|
||||
opencl? (
|
||||
dev-libs/ocl-icd[khronos-headers,${MULTILIB_USEDEP}]
|
||||
dev-libs/libclc
|
||||
virtual/libelf:0=[${MULTILIB_USEDEP}]
|
||||
)
|
||||
vaapi? (
|
||||
>=x11-libs/libva-1.7.3:=[${MULTILIB_USEDEP}]
|
||||
video_cards_nouveau? ( !<=x11-libs/libva-vdpau-driver-0.7.4-r3 )
|
||||
)
|
||||
vdpau? ( >=x11-libs/libvdpau-1.1:=[${MULTILIB_USEDEP}] )
|
||||
xvmc? ( >=x11-libs/libXvMC-1.0.8:=[${MULTILIB_USEDEP}] )
|
||||
)
|
||||
wayland? (
|
||||
>=dev-libs/wayland-1.15.0:=[${MULTILIB_USEDEP}]
|
||||
>=dev-libs/wayland-protocols-1.8
|
||||
)
|
||||
${LIBDRM_DEPSTRING}[video_cards_freedreno?,video_cards_nouveau?,video_cards_vc4?,video_cards_vivante?,video_cards_vmware?,${MULTILIB_USEDEP}]
|
||||
|
||||
video_cards_intel? (
|
||||
!video_cards_i965? ( ${LIBDRM_DEPSTRING}[video_cards_intel] )
|
||||
)
|
||||
video_cards_i915? ( ${LIBDRM_DEPSTRING}[video_cards_intel] )
|
||||
"
|
||||
for card in ${RADEON_CARDS}; do
|
||||
RDEPEND="${RDEPEND}
|
||||
video_cards_${card}? ( ${LIBDRM_DEPSTRING}[video_cards_radeon] )
|
||||
"
|
||||
done
|
||||
RDEPEND="${RDEPEND}
|
||||
video_cards_radeonsi? ( ${LIBDRM_DEPSTRING}[video_cards_amdgpu] )
|
||||
"
|
||||
|
||||
# Please keep the LLVM dependency block separate. Since LLVM is slotted,
|
||||
# we need to *really* make sure we're not pulling one than more slot
|
||||
# simultaneously.
|
||||
#
|
||||
# How to use it:
|
||||
# 1. List all the working slots (with min versions) in ||, newest first.
|
||||
# 2. Update the := to specify *max* version, e.g. < 7.
|
||||
# 3. Specify LLVM_MAX_SLOT, e.g. 6.
|
||||
LLVM_MAX_SLOT="7"
|
||||
LLVM_DEPSTR="
|
||||
|| (
|
||||
sys-devel/llvm:7[${MULTILIB_USEDEP}]
|
||||
sys-devel/llvm:6[${MULTILIB_USEDEP}]
|
||||
sys-devel/llvm:5[${MULTILIB_USEDEP}]
|
||||
sys-devel/llvm:4[${MULTILIB_USEDEP}]
|
||||
>=sys-devel/llvm-3.9.0:0[${MULTILIB_USEDEP}]
|
||||
)
|
||||
sys-devel/llvm:=[${MULTILIB_USEDEP}]
|
||||
"
|
||||
LLVM_DEPSTR_AMDGPU=${LLVM_DEPSTR//]/,llvm_targets_AMDGPU(-)]}
|
||||
CLANG_DEPSTR=${LLVM_DEPSTR//llvm/clang}
|
||||
CLANG_DEPSTR_AMDGPU=${CLANG_DEPSTR//]/,llvm_targets_AMDGPU(-)]}
|
||||
RDEPEND="${RDEPEND}
|
||||
llvm? (
|
||||
opencl? (
|
||||
video_cards_r600? (
|
||||
${CLANG_DEPSTR_AMDGPU}
|
||||
)
|
||||
!video_cards_r600? (
|
||||
video_cards_radeonsi? (
|
||||
${CLANG_DEPSTR_AMDGPU}
|
||||
)
|
||||
)
|
||||
!video_cards_r600? (
|
||||
!video_cards_radeonsi? (
|
||||
video_cards_radeon? (
|
||||
${CLANG_DEPSTR_AMDGPU}
|
||||
)
|
||||
)
|
||||
)
|
||||
!video_cards_r600? (
|
||||
!video_cards_radeon? (
|
||||
!video_cards_radeonsi? (
|
||||
${CLANG_DEPSTR}
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
!opencl? (
|
||||
video_cards_r600? (
|
||||
${LLVM_DEPSTR_AMDGPU}
|
||||
)
|
||||
!video_cards_r600? (
|
||||
video_cards_radeonsi? (
|
||||
${LLVM_DEPSTR_AMDGPU}
|
||||
)
|
||||
)
|
||||
!video_cards_r600? (
|
||||
!video_cards_radeonsi? (
|
||||
video_cards_radeon? (
|
||||
${LLVM_DEPSTR_AMDGPU}
|
||||
)
|
||||
)
|
||||
)
|
||||
!video_cards_r600? (
|
||||
!video_cards_radeon? (
|
||||
!video_cards_radeonsi? (
|
||||
${LLVM_DEPSTR}
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
"
|
||||
unset {LLVM,CLANG}_DEPSTR{,_AMDGPU}
|
||||
|
||||
DEPEND="${RDEPEND}
|
||||
${PYTHON_DEPS}
|
||||
opencl? (
|
||||
>=sys-devel/gcc-4.6
|
||||
)
|
||||
sys-devel/bison
|
||||
sys-devel/flex
|
||||
sys-devel/gettext
|
||||
virtual/pkgconfig
|
||||
valgrind? ( dev-util/valgrind )
|
||||
x11-base/xorg-proto
|
||||
x11-libs/libXrandr[${MULTILIB_USEDEP}]
|
||||
$(python_gen_any_dep ">=dev-python/mako-0.8.0[\${PYTHON_USEDEP}]")
|
||||
"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
EGIT_CHECKOUT_DIR=${S}
|
||||
|
||||
QA_WX_LOAD="
|
||||
x86? (
|
||||
!pic? (
|
||||
usr/lib*/libglapi.so.0.0.0
|
||||
usr/lib*/libGLESv1_CM.so.1.0.0
|
||||
usr/lib*/libGLESv2.so.2.0.0
|
||||
usr/lib*/libGL.so.1.2.0
|
||||
usr/lib*/libOSMesa.so.8.0.0
|
||||
)
|
||||
)"
|
||||
|
||||
llvm_check_deps() {
|
||||
local flags=${MULTILIB_USEDEP}
|
||||
if use video_cards_r600 || use video_cards_radeon || use video_cards_radeonsi
|
||||
then
|
||||
flags+=",llvm_targets_AMDGPU(-)"
|
||||
fi
|
||||
|
||||
if use opencl; then
|
||||
has_version "sys-devel/clang[${flags}]" || return 1
|
||||
fi
|
||||
has_version "sys-devel/llvm[${flags}]"
|
||||
}
|
||||
|
||||
pkg_pretend() {
|
||||
if use opencl; then
|
||||
if ! use video_cards_r600 &&
|
||||
! use video_cards_radeonsi; then
|
||||
ewarn "Ignoring USE=opencl since VIDEO_CARDS does not contain r600 or radeonsi"
|
||||
fi
|
||||
fi
|
||||
|
||||
if use vaapi; then
|
||||
if ! use video_cards_r600 &&
|
||||
! use video_cards_radeonsi &&
|
||||
! use video_cards_nouveau; then
|
||||
ewarn "Ignoring USE=vaapi since VIDEO_CARDS does not contain r600, radeonsi, or nouveau"
|
||||
fi
|
||||
fi
|
||||
|
||||
if use vdpau; then
|
||||
if ! use video_cards_r300 &&
|
||||
! use video_cards_r600 &&
|
||||
! use video_cards_radeonsi &&
|
||||
! use video_cards_nouveau; then
|
||||
ewarn "Ignoring USE=vdpau since VIDEO_CARDS does not contain r300, r600, radeonsi, or nouveau"
|
||||
fi
|
||||
fi
|
||||
|
||||
if use xa; then
|
||||
if ! use video_cards_freedreno &&
|
||||
! use video_cards_nouveau &&
|
||||
! use video_cards_vmware; then
|
||||
ewarn "Ignoring USE=xa since VIDEO_CARDS does not contain freedreno, nouveau, or vmware"
|
||||
fi
|
||||
fi
|
||||
|
||||
if use xvmc; then
|
||||
if ! use video_cards_r600 &&
|
||||
! use video_cards_nouveau; then
|
||||
ewarn "Ignoring USE=xvmc since VIDEO_CARDS does not contain r600 or nouveau"
|
||||
fi
|
||||
fi
|
||||
|
||||
if ! use gallium; then
|
||||
use lm_sensors && ewarn "Ignoring USE=lm_sensors since USE does not contain gallium"
|
||||
use llvm && ewarn "Ignoring USE=llvm since USE does not contain gallium"
|
||||
use opencl && ewarn "Ignoring USE=opencl since USE does not contain gallium"
|
||||
use vaapi && ewarn "Ignoring USE=vaapi since USE does not contain gallium"
|
||||
use vdpau && ewarn "Ignoring USE=vdpau since USE does not contain gallium"
|
||||
use unwind && ewarn "Ignoring USE=unwind since USE does not contain gallium"
|
||||
use xa && ewarn "Ignoring USE=xa since USE does not contain gallium"
|
||||
use xvmc && ewarn "Ignoring USE=xvmc since USE does not contain gallium"
|
||||
fi
|
||||
|
||||
if ! use llvm; then
|
||||
use opencl && ewarn "Ignoring USE=opencl since USE does not contain llvm"
|
||||
fi
|
||||
}
|
||||
|
||||
python_check_deps() {
|
||||
has_version ">=dev-python/mako-0.8.0[${PYTHON_USEDEP}]"
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
# warning message for bug 459306
|
||||
if use llvm && has_version sys-devel/llvm[!debug=]; then
|
||||
ewarn "Mismatch between debug USE flags in media-libs/mesa and sys-devel/llvm"
|
||||
ewarn "detected! This can cause problems. For details, see bug 459306."
|
||||
fi
|
||||
|
||||
if use llvm; then
|
||||
llvm_pkg_setup
|
||||
fi
|
||||
python-any-r1_pkg_setup
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
local emesonargs=()
|
||||
|
||||
if use classic; then
|
||||
# Intel code
|
||||
dri_driver_enable video_cards_i915 i915
|
||||
dri_driver_enable video_cards_i965 i965
|
||||
if ! use video_cards_i915 && \
|
||||
! use video_cards_i965; then
|
||||
dri_driver_enable video_cards_intel i915 i965
|
||||
fi
|
||||
|
||||
# Nouveau code
|
||||
dri_driver_enable video_cards_nouveau nouveau
|
||||
|
||||
# ATI code
|
||||
dri_driver_enable video_cards_r100 r100
|
||||
dri_driver_enable video_cards_r200 r200
|
||||
if ! use video_cards_r100 && \
|
||||
! use video_cards_r200; then
|
||||
dri_driver_enable video_cards_radeon r100 r200
|
||||
fi
|
||||
fi
|
||||
|
||||
emesonargs+=( -Dplatforms=x11,surfaceless$(use wayland && echo ",wayland")$(use gbm && echo ",drm") )
|
||||
|
||||
if use gallium; then
|
||||
emesonargs+=(
|
||||
$(meson_use llvm)
|
||||
$(meson_use lm_sensors lmsensors)
|
||||
$(meson_use unwind libunwind)
|
||||
)
|
||||
|
||||
if use video_cards_r300 ||
|
||||
use video_cards_r600 ||
|
||||
use video_cards_radeonsi ||
|
||||
use video_cards_nouveau ||
|
||||
use video_cards_vmware; then
|
||||
emesonargs+=($(meson_use d3d9 gallium-nine))
|
||||
else
|
||||
emesonargs+=(-Dgallium-nine=false)
|
||||
fi
|
||||
|
||||
if use video_cards_r600 ||
|
||||
use video_cards_radeonsi ||
|
||||
use video_cards_nouveau; then
|
||||
emesonargs+=($(meson_use vaapi gallium-va))
|
||||
use vaapi && emesonargs+=( -Dva-libs-path="${EPREFIX}"/usr/$(get_libdir)/va/drivers )
|
||||
else
|
||||
emesonargs+=(-Dgallium-va=false)
|
||||
fi
|
||||
|
||||
if use video_cards_r300 ||
|
||||
use video_cards_r600 ||
|
||||
use video_cards_radeonsi ||
|
||||
use video_cards_nouveau; then
|
||||
emesonargs+=($(meson_use vdpau gallium-vdpau))
|
||||
else
|
||||
emesonargs+=(-Dgallium-vdpau=false)
|
||||
fi
|
||||
|
||||
if use video_cards_freedreno ||
|
||||
use video_cards_nouveau ||
|
||||
use video_cards_vmware; then
|
||||
emesonargs+=($(meson_use xa gallium-xa))
|
||||
else
|
||||
emesonargs+=(-Dgallium-xa=false)
|
||||
fi
|
||||
|
||||
if use video_cards_r600 ||
|
||||
use video_cards_nouveau; then
|
||||
emesonargs+=($(meson_use xvmc gallium-xvmc))
|
||||
else
|
||||
emesonargs+=(-Dgallium-xvmc=false)
|
||||
fi
|
||||
|
||||
gallium_enable video_cards_vc4 vc4
|
||||
gallium_enable video_cards_vivante etnaviv
|
||||
gallium_enable video_cards_vmware svga
|
||||
gallium_enable video_cards_nouveau nouveau
|
||||
gallium_enable video_cards_imx imx
|
||||
|
||||
# Only one i915 driver (classic vs gallium). Default to classic.
|
||||
if ! use classic; then
|
||||
gallium_enable video_cards_i915 i915
|
||||
if ! use video_cards_i915 && \
|
||||
! use video_cards_i965; then
|
||||
gallium_enable video_cards_intel i915
|
||||
fi
|
||||
fi
|
||||
|
||||
gallium_enable video_cards_r300 r300
|
||||
gallium_enable video_cards_r600 r600
|
||||
gallium_enable video_cards_radeonsi radeonsi
|
||||
if ! use video_cards_r300 && \
|
||||
! use video_cards_r600; then
|
||||
gallium_enable video_cards_radeon r300 r600
|
||||
fi
|
||||
|
||||
gallium_enable video_cards_freedreno freedreno
|
||||
gallium_enable video_cards_virgl virgl
|
||||
|
||||
# opencl stuff
|
||||
emesonargs+=(
|
||||
-Dgallium-opencl="$(usex opencl icd disabled)"
|
||||
)
|
||||
fi
|
||||
|
||||
if use vulkan; then
|
||||
vulkan_enable video_cards_i965 intel
|
||||
vulkan_enable video_cards_radeonsi amd
|
||||
fi
|
||||
|
||||
# x86 hardened pax_kernel needs glx-rts, bug 240956
|
||||
if [[ ${ABI} == x86 ]]; then
|
||||
emesonargs+=( $(meson_use pax_kernel glx-read-only-text) )
|
||||
fi
|
||||
|
||||
# on abi_x86_32 hardened we need to have asm disable
|
||||
if [[ ${ABI} == x86* ]] && use pic; then
|
||||
emesonargs+=( -Dasm=false )
|
||||
fi
|
||||
|
||||
if use gallium; then
|
||||
gallium_enable -- swrast
|
||||
emesonargs+=( -Dosmesa=$(usex osmesa gallium none) )
|
||||
else
|
||||
dri_driver_enable -- swrast
|
||||
emesonargs+=( -Dosmesa=$(usex osmesa classic none) )
|
||||
fi
|
||||
|
||||
driver_list() {
|
||||
local drivers="$(sort -u <<< "${1// /$'\n'}")"
|
||||
echo "${drivers//$'\n'/,}"
|
||||
}
|
||||
|
||||
emesonargs+=(
|
||||
$(meson_use test build-tests)
|
||||
-Dglx=dri
|
||||
-Dshared-glapi=true
|
||||
$(meson_use dri3)
|
||||
$(meson_use egl)
|
||||
$(meson_use gbm)
|
||||
$(meson_use gles1)
|
||||
$(meson_use gles2)
|
||||
$(meson_use selinux)
|
||||
-Dvalgrind=$(usex valgrind auto false)
|
||||
-Ddri-drivers=$(driver_list "${DRI_DRIVERS[*]}")
|
||||
-Dgallium-drivers=$(driver_list "${GALLIUM_DRIVERS[*]}")
|
||||
-Dvulkan-drivers=$(driver_list "${VULKAN_DRIVERS[*]}")
|
||||
--buildtype $(usex debug debug plain)
|
||||
-Db_ndebug=$(usex debug false true)
|
||||
)
|
||||
meson_src_configure
|
||||
}
|
||||
|
||||
multilib_src_compile() {
|
||||
meson_src_compile
|
||||
}
|
||||
|
||||
multilib_src_install() {
|
||||
meson_src_install
|
||||
}
|
||||
|
||||
multilib_src_install_all() {
|
||||
einstalldocs
|
||||
}
|
||||
|
||||
multilib_src_test() {
|
||||
meson_src_test
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
# Switch to the xorg implementation.
|
||||
echo
|
||||
eselect opengl set --use-old ${OPENGL_DIR}
|
||||
}
|
||||
|
||||
# $1 - VIDEO_CARDS flag (check skipped for "--")
|
||||
# other args - names of DRI drivers to enable
|
||||
dri_driver_enable() {
|
||||
if [[ $1 == -- ]] || use $1; then
|
||||
shift
|
||||
DRI_DRIVERS+=("$@")
|
||||
fi
|
||||
}
|
||||
|
||||
gallium_enable() {
|
||||
if [[ $1 == -- ]] || use $1; then
|
||||
shift
|
||||
GALLIUM_DRIVERS+=("$@")
|
||||
fi
|
||||
}
|
||||
|
||||
vulkan_enable() {
|
||||
if [[ $1 == -- ]] || use $1; then
|
||||
shift
|
||||
VULKAN_DRIVERS+=("$@")
|
||||
fi
|
||||
}
|
@ -1,519 +0,0 @@
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=( python3_4 python3_5 python3_6 python3_7 )
|
||||
|
||||
inherit llvm meson multilib-minimal pax-utils python-any-r1
|
||||
|
||||
OPENGL_DIR="xorg-x11"
|
||||
|
||||
MY_P="${P/_/-}"
|
||||
|
||||
DESCRIPTION="OpenGL-like graphic library for Linux"
|
||||
HOMEPAGE="https://www.mesa3d.org/ https://mesa.freedesktop.org/"
|
||||
|
||||
if [[ ${PV} == 9999 ]]; then
|
||||
EGIT_REPO_URI="https://gitlab.freedesktop.org/mesa/mesa.git"
|
||||
EXPERIMENTAL="true"
|
||||
inherit git-r3
|
||||
else
|
||||
SRC_URI="https://mesa.freedesktop.org/archive/${MY_P}.tar.xz"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~sparc-solaris ~x64-solaris ~x86-solaris"
|
||||
fi
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
RESTRICT="
|
||||
!test? ( test )
|
||||
"
|
||||
|
||||
RADEON_CARDS="r100 r200 r300 r600 radeon radeonsi"
|
||||
VIDEO_CARDS="${RADEON_CARDS} freedreno i915 i965 imx intel nouveau vc4 virgl vivante vmware"
|
||||
for card in ${VIDEO_CARDS}; do
|
||||
IUSE_VIDEO_CARDS+=" video_cards_${card}"
|
||||
done
|
||||
|
||||
IUSE="${IUSE_VIDEO_CARDS}
|
||||
+classic d3d9 debug +dri3 +egl +gallium +gbm gles1 gles2 +llvm lm_sensors
|
||||
opencl osmesa pax_kernel pic selinux test unwind vaapi valgrind vdpau
|
||||
vulkan wayland xa xvmc"
|
||||
|
||||
REQUIRED_USE="
|
||||
d3d9? ( dri3 || ( video_cards_r300 video_cards_r600 video_cards_radeonsi video_cards_nouveau video_cards_vmware ) )
|
||||
gles1? ( egl )
|
||||
gles2? ( egl )
|
||||
vulkan? ( dri3
|
||||
|| ( video_cards_i965 video_cards_radeonsi )
|
||||
video_cards_radeonsi? ( llvm ) )
|
||||
wayland? ( egl gbm )
|
||||
video_cards_freedreno? ( gallium )
|
||||
video_cards_intel? ( classic )
|
||||
video_cards_i915? ( || ( classic gallium ) )
|
||||
video_cards_i965? ( classic )
|
||||
video_cards_imx? ( gallium video_cards_vivante )
|
||||
video_cards_nouveau? ( || ( classic gallium ) )
|
||||
video_cards_radeon? ( || ( classic gallium )
|
||||
gallium? ( x86? ( llvm ) amd64? ( llvm ) ) )
|
||||
video_cards_r100? ( classic )
|
||||
video_cards_r200? ( classic )
|
||||
video_cards_r300? ( gallium x86? ( llvm ) amd64? ( llvm ) )
|
||||
video_cards_r600? ( gallium )
|
||||
video_cards_radeonsi? ( gallium llvm )
|
||||
video_cards_vc4? ( gallium )
|
||||
video_cards_virgl? ( gallium )
|
||||
video_cards_vivante? ( gallium gbm )
|
||||
video_cards_vmware? ( gallium )
|
||||
"
|
||||
|
||||
LIBDRM_DEPSTRING=">=x11-libs/libdrm-2.4.96"
|
||||
RDEPEND="
|
||||
!app-eselect/eselect-mesa
|
||||
>=app-eselect/eselect-opengl-1.3.0
|
||||
>=dev-libs/expat-2.1.0-r3:=[${MULTILIB_USEDEP}]
|
||||
>=sys-libs/zlib-1.2.8[${MULTILIB_USEDEP}]
|
||||
>=x11-libs/libX11-1.6.2:=[${MULTILIB_USEDEP}]
|
||||
>=x11-libs/libxshmfence-1.1:=[${MULTILIB_USEDEP}]
|
||||
>=x11-libs/libXdamage-1.1.4-r1:=[${MULTILIB_USEDEP}]
|
||||
>=x11-libs/libXext-1.3.2:=[${MULTILIB_USEDEP}]
|
||||
>=x11-libs/libXxf86vm-1.1.3:=[${MULTILIB_USEDEP}]
|
||||
>=x11-libs/libxcb-1.13:=[${MULTILIB_USEDEP}]
|
||||
x11-libs/libXfixes:=[${MULTILIB_USEDEP}]
|
||||
gallium? (
|
||||
unwind? ( sys-libs/libunwind[${MULTILIB_USEDEP}] )
|
||||
llvm? (
|
||||
video_cards_radeonsi? (
|
||||
virtual/libelf:0=[${MULTILIB_USEDEP}]
|
||||
)
|
||||
video_cards_r600? (
|
||||
virtual/libelf:0=[${MULTILIB_USEDEP}]
|
||||
)
|
||||
video_cards_radeon? (
|
||||
virtual/libelf:0=[${MULTILIB_USEDEP}]
|
||||
)
|
||||
)
|
||||
lm_sensors? ( sys-apps/lm_sensors:=[${MULTILIB_USEDEP}] )
|
||||
opencl? (
|
||||
dev-libs/ocl-icd[khronos-headers,${MULTILIB_USEDEP}]
|
||||
dev-libs/libclc
|
||||
virtual/libelf:0=[${MULTILIB_USEDEP}]
|
||||
)
|
||||
vaapi? (
|
||||
>=x11-libs/libva-1.7.3:=[${MULTILIB_USEDEP}]
|
||||
video_cards_nouveau? ( !<=x11-libs/libva-vdpau-driver-0.7.4-r3 )
|
||||
)
|
||||
vdpau? ( >=x11-libs/libvdpau-1.1:=[${MULTILIB_USEDEP}] )
|
||||
xvmc? ( >=x11-libs/libXvMC-1.0.8:=[${MULTILIB_USEDEP}] )
|
||||
)
|
||||
wayland? (
|
||||
>=dev-libs/wayland-1.15.0:=[${MULTILIB_USEDEP}]
|
||||
>=dev-libs/wayland-protocols-1.8
|
||||
)
|
||||
${LIBDRM_DEPSTRING}[video_cards_freedreno?,video_cards_nouveau?,video_cards_vc4?,video_cards_vivante?,video_cards_vmware?,${MULTILIB_USEDEP}]
|
||||
|
||||
video_cards_intel? (
|
||||
!video_cards_i965? ( ${LIBDRM_DEPSTRING}[video_cards_intel] )
|
||||
)
|
||||
video_cards_i915? ( ${LIBDRM_DEPSTRING}[video_cards_intel] )
|
||||
"
|
||||
for card in ${RADEON_CARDS}; do
|
||||
RDEPEND="${RDEPEND}
|
||||
video_cards_${card}? ( ${LIBDRM_DEPSTRING}[video_cards_radeon] )
|
||||
"
|
||||
done
|
||||
RDEPEND="${RDEPEND}
|
||||
video_cards_radeonsi? ( ${LIBDRM_DEPSTRING}[video_cards_amdgpu] )
|
||||
"
|
||||
|
||||
# Please keep the LLVM dependency block separate. Since LLVM is slotted,
|
||||
# we need to *really* make sure we're not pulling one than more slot
|
||||
# simultaneously.
|
||||
#
|
||||
# How to use it:
|
||||
# 1. List all the working slots (with min versions) in ||, newest first.
|
||||
# 2. Update the := to specify *max* version, e.g. < 7.
|
||||
# 3. Specify LLVM_MAX_SLOT, e.g. 6.
|
||||
LLVM_MAX_SLOT="7"
|
||||
LLVM_DEPSTR="
|
||||
|| (
|
||||
sys-devel/llvm:7[${MULTILIB_USEDEP}]
|
||||
sys-devel/llvm:6[${MULTILIB_USEDEP}]
|
||||
sys-devel/llvm:5[${MULTILIB_USEDEP}]
|
||||
sys-devel/llvm:4[${MULTILIB_USEDEP}]
|
||||
>=sys-devel/llvm-3.9.0:0[${MULTILIB_USEDEP}]
|
||||
)
|
||||
sys-devel/llvm:=[${MULTILIB_USEDEP}]
|
||||
"
|
||||
LLVM_DEPSTR_AMDGPU=${LLVM_DEPSTR//]/,llvm_targets_AMDGPU(-)]}
|
||||
CLANG_DEPSTR=${LLVM_DEPSTR//llvm/clang}
|
||||
CLANG_DEPSTR_AMDGPU=${CLANG_DEPSTR//]/,llvm_targets_AMDGPU(-)]}
|
||||
RDEPEND="${RDEPEND}
|
||||
llvm? (
|
||||
opencl? (
|
||||
video_cards_r600? (
|
||||
${CLANG_DEPSTR_AMDGPU}
|
||||
)
|
||||
!video_cards_r600? (
|
||||
video_cards_radeonsi? (
|
||||
${CLANG_DEPSTR_AMDGPU}
|
||||
)
|
||||
)
|
||||
!video_cards_r600? (
|
||||
!video_cards_radeonsi? (
|
||||
video_cards_radeon? (
|
||||
${CLANG_DEPSTR_AMDGPU}
|
||||
)
|
||||
)
|
||||
)
|
||||
!video_cards_r600? (
|
||||
!video_cards_radeon? (
|
||||
!video_cards_radeonsi? (
|
||||
${CLANG_DEPSTR}
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
!opencl? (
|
||||
video_cards_r600? (
|
||||
${LLVM_DEPSTR_AMDGPU}
|
||||
)
|
||||
!video_cards_r600? (
|
||||
video_cards_radeonsi? (
|
||||
${LLVM_DEPSTR_AMDGPU}
|
||||
)
|
||||
)
|
||||
!video_cards_r600? (
|
||||
!video_cards_radeonsi? (
|
||||
video_cards_radeon? (
|
||||
${LLVM_DEPSTR_AMDGPU}
|
||||
)
|
||||
)
|
||||
)
|
||||
!video_cards_r600? (
|
||||
!video_cards_radeon? (
|
||||
!video_cards_radeonsi? (
|
||||
${LLVM_DEPSTR}
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
"
|
||||
unset {LLVM,CLANG}_DEPSTR{,_AMDGPU}
|
||||
|
||||
DEPEND="${RDEPEND}
|
||||
${PYTHON_DEPS}
|
||||
opencl? (
|
||||
>=sys-devel/gcc-4.6
|
||||
)
|
||||
sys-devel/bison
|
||||
sys-devel/flex
|
||||
sys-devel/gettext
|
||||
virtual/pkgconfig
|
||||
valgrind? ( dev-util/valgrind )
|
||||
x11-base/xorg-proto
|
||||
x11-libs/libXrandr[${MULTILIB_USEDEP}]
|
||||
$(python_gen_any_dep ">=dev-python/mako-0.8.0[\${PYTHON_USEDEP}]")
|
||||
"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
EGIT_CHECKOUT_DIR=${S}
|
||||
|
||||
QA_WX_LOAD="
|
||||
x86? (
|
||||
!pic? (
|
||||
usr/lib*/libglapi.so.0.0.0
|
||||
usr/lib*/libGLESv1_CM.so.1.0.0
|
||||
usr/lib*/libGLESv2.so.2.0.0
|
||||
usr/lib*/libGL.so.1.2.0
|
||||
usr/lib*/libOSMesa.so.8.0.0
|
||||
)
|
||||
)"
|
||||
|
||||
llvm_check_deps() {
|
||||
local flags=${MULTILIB_USEDEP}
|
||||
if use video_cards_r600 || use video_cards_radeon || use video_cards_radeonsi
|
||||
then
|
||||
flags+=",llvm_targets_AMDGPU(-)"
|
||||
fi
|
||||
|
||||
if use opencl; then
|
||||
has_version "sys-devel/clang[${flags}]" || return 1
|
||||
fi
|
||||
has_version "sys-devel/llvm[${flags}]"
|
||||
}
|
||||
|
||||
pkg_pretend() {
|
||||
if use opencl; then
|
||||
if ! use video_cards_r600 &&
|
||||
! use video_cards_radeonsi; then
|
||||
ewarn "Ignoring USE=opencl since VIDEO_CARDS does not contain r600 or radeonsi"
|
||||
fi
|
||||
fi
|
||||
|
||||
if use vaapi; then
|
||||
if ! use video_cards_r600 &&
|
||||
! use video_cards_radeonsi &&
|
||||
! use video_cards_nouveau; then
|
||||
ewarn "Ignoring USE=vaapi since VIDEO_CARDS does not contain r600, radeonsi, or nouveau"
|
||||
fi
|
||||
fi
|
||||
|
||||
if use vdpau; then
|
||||
if ! use video_cards_r300 &&
|
||||
! use video_cards_r600 &&
|
||||
! use video_cards_radeonsi &&
|
||||
! use video_cards_nouveau; then
|
||||
ewarn "Ignoring USE=vdpau since VIDEO_CARDS does not contain r300, r600, radeonsi, or nouveau"
|
||||
fi
|
||||
fi
|
||||
|
||||
if use xa; then
|
||||
if ! use video_cards_freedreno &&
|
||||
! use video_cards_nouveau &&
|
||||
! use video_cards_vmware; then
|
||||
ewarn "Ignoring USE=xa since VIDEO_CARDS does not contain freedreno, nouveau, or vmware"
|
||||
fi
|
||||
fi
|
||||
|
||||
if use xvmc; then
|
||||
if ! use video_cards_r600 &&
|
||||
! use video_cards_nouveau; then
|
||||
ewarn "Ignoring USE=xvmc since VIDEO_CARDS does not contain r600 or nouveau"
|
||||
fi
|
||||
fi
|
||||
|
||||
if ! use gallium; then
|
||||
use lm_sensors && ewarn "Ignoring USE=lm_sensors since USE does not contain gallium"
|
||||
use llvm && ewarn "Ignoring USE=llvm since USE does not contain gallium"
|
||||
use opencl && ewarn "Ignoring USE=opencl since USE does not contain gallium"
|
||||
use vaapi && ewarn "Ignoring USE=vaapi since USE does not contain gallium"
|
||||
use vdpau && ewarn "Ignoring USE=vdpau since USE does not contain gallium"
|
||||
use unwind && ewarn "Ignoring USE=unwind since USE does not contain gallium"
|
||||
use xa && ewarn "Ignoring USE=xa since USE does not contain gallium"
|
||||
use xvmc && ewarn "Ignoring USE=xvmc since USE does not contain gallium"
|
||||
fi
|
||||
|
||||
if ! use llvm; then
|
||||
use opencl && ewarn "Ignoring USE=opencl since USE does not contain llvm"
|
||||
fi
|
||||
}
|
||||
|
||||
python_check_deps() {
|
||||
has_version ">=dev-python/mako-0.8.0[${PYTHON_USEDEP}]"
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
# warning message for bug 459306
|
||||
if use llvm && has_version sys-devel/llvm[!debug=]; then
|
||||
ewarn "Mismatch between debug USE flags in media-libs/mesa and sys-devel/llvm"
|
||||
ewarn "detected! This can cause problems. For details, see bug 459306."
|
||||
fi
|
||||
|
||||
if use llvm; then
|
||||
llvm_pkg_setup
|
||||
fi
|
||||
python-any-r1_pkg_setup
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
local emesonargs=()
|
||||
|
||||
if use classic; then
|
||||
# Intel code
|
||||
dri_driver_enable video_cards_i915 i915
|
||||
dri_driver_enable video_cards_i965 i965
|
||||
if ! use video_cards_i915 && \
|
||||
! use video_cards_i965; then
|
||||
dri_driver_enable video_cards_intel i915 i965
|
||||
fi
|
||||
|
||||
# Nouveau code
|
||||
dri_driver_enable video_cards_nouveau nouveau
|
||||
|
||||
# ATI code
|
||||
dri_driver_enable video_cards_r100 r100
|
||||
dri_driver_enable video_cards_r200 r200
|
||||
if ! use video_cards_r100 && \
|
||||
! use video_cards_r200; then
|
||||
dri_driver_enable video_cards_radeon r100 r200
|
||||
fi
|
||||
fi
|
||||
|
||||
emesonargs+=( -Dplatforms=x11,surfaceless$(use wayland && echo ",wayland")$(use gbm && echo ",drm") )
|
||||
|
||||
if use gallium; then
|
||||
emesonargs+=(
|
||||
$(meson_use llvm)
|
||||
$(meson_use lm_sensors lmsensors)
|
||||
$(meson_use unwind libunwind)
|
||||
)
|
||||
|
||||
if use video_cards_r300 ||
|
||||
use video_cards_r600 ||
|
||||
use video_cards_radeonsi ||
|
||||
use video_cards_nouveau ||
|
||||
use video_cards_vmware; then
|
||||
emesonargs+=($(meson_use d3d9 gallium-nine))
|
||||
else
|
||||
emesonargs+=(-Dgallium-nine=false)
|
||||
fi
|
||||
|
||||
if use video_cards_r600 ||
|
||||
use video_cards_radeonsi ||
|
||||
use video_cards_nouveau; then
|
||||
emesonargs+=($(meson_use vaapi gallium-va))
|
||||
use vaapi && emesonargs+=( -Dva-libs-path="${EPREFIX}"/usr/$(get_libdir)/va/drivers )
|
||||
else
|
||||
emesonargs+=(-Dgallium-va=false)
|
||||
fi
|
||||
|
||||
if use video_cards_r300 ||
|
||||
use video_cards_r600 ||
|
||||
use video_cards_radeonsi ||
|
||||
use video_cards_nouveau; then
|
||||
emesonargs+=($(meson_use vdpau gallium-vdpau))
|
||||
else
|
||||
emesonargs+=(-Dgallium-vdpau=false)
|
||||
fi
|
||||
|
||||
if use video_cards_freedreno ||
|
||||
use video_cards_nouveau ||
|
||||
use video_cards_vmware; then
|
||||
emesonargs+=($(meson_use xa gallium-xa))
|
||||
else
|
||||
emesonargs+=(-Dgallium-xa=false)
|
||||
fi
|
||||
|
||||
if use video_cards_r600 ||
|
||||
use video_cards_nouveau; then
|
||||
emesonargs+=($(meson_use xvmc gallium-xvmc))
|
||||
else
|
||||
emesonargs+=(-Dgallium-xvmc=false)
|
||||
fi
|
||||
|
||||
gallium_enable video_cards_vc4 vc4
|
||||
gallium_enable video_cards_vivante etnaviv
|
||||
gallium_enable video_cards_vmware svga
|
||||
gallium_enable video_cards_nouveau nouveau
|
||||
gallium_enable video_cards_imx imx
|
||||
|
||||
# Only one i915 driver (classic vs gallium). Default to classic.
|
||||
if ! use classic; then
|
||||
gallium_enable video_cards_i915 i915
|
||||
if ! use video_cards_i915 && \
|
||||
! use video_cards_i965; then
|
||||
gallium_enable video_cards_intel i915
|
||||
fi
|
||||
fi
|
||||
|
||||
gallium_enable video_cards_r300 r300
|
||||
gallium_enable video_cards_r600 r600
|
||||
gallium_enable video_cards_radeonsi radeonsi
|
||||
if ! use video_cards_r300 && \
|
||||
! use video_cards_r600; then
|
||||
gallium_enable video_cards_radeon r300 r600
|
||||
fi
|
||||
|
||||
gallium_enable video_cards_freedreno freedreno
|
||||
gallium_enable video_cards_virgl virgl
|
||||
|
||||
# opencl stuff
|
||||
emesonargs+=(
|
||||
-Dgallium-opencl="$(usex opencl icd disabled)"
|
||||
)
|
||||
fi
|
||||
|
||||
if use vulkan; then
|
||||
vulkan_enable video_cards_i965 intel
|
||||
vulkan_enable video_cards_radeonsi amd
|
||||
fi
|
||||
|
||||
# x86 hardened pax_kernel needs glx-rts, bug 240956
|
||||
if [[ ${ABI} == x86 ]]; then
|
||||
emesonargs+=( $(meson_use pax_kernel glx-read-only-text) )
|
||||
fi
|
||||
|
||||
# on abi_x86_32 hardened we need to have asm disable
|
||||
if [[ ${ABI} == x86* ]] && use pic; then
|
||||
emesonargs+=( -Dasm=false )
|
||||
fi
|
||||
|
||||
if use gallium; then
|
||||
gallium_enable -- swrast
|
||||
emesonargs+=( -Dosmesa=$(usex osmesa gallium none) )
|
||||
else
|
||||
dri_driver_enable -- swrast
|
||||
emesonargs+=( -Dosmesa=$(usex osmesa classic none) )
|
||||
fi
|
||||
|
||||
driver_list() {
|
||||
local drivers="$(sort -u <<< "${1// /$'\n'}")"
|
||||
echo "${drivers//$'\n'/,}"
|
||||
}
|
||||
|
||||
emesonargs+=(
|
||||
$(meson_use test build-tests)
|
||||
-Dglx=dri
|
||||
-Dshared-glapi=true
|
||||
$(meson_use dri3)
|
||||
$(meson_use egl)
|
||||
$(meson_use gbm)
|
||||
$(meson_use gles1)
|
||||
$(meson_use gles2)
|
||||
$(meson_use selinux)
|
||||
-Dvalgrind=$(usex valgrind auto false)
|
||||
-Ddri-drivers=$(driver_list "${DRI_DRIVERS[*]}")
|
||||
-Dgallium-drivers=$(driver_list "${GALLIUM_DRIVERS[*]}")
|
||||
-Dvulkan-drivers=$(driver_list "${VULKAN_DRIVERS[*]}")
|
||||
--buildtype $(usex debug debug plain)
|
||||
-Db_ndebug=$(usex debug false true)
|
||||
)
|
||||
meson_src_configure
|
||||
}
|
||||
|
||||
multilib_src_compile() {
|
||||
meson_src_compile
|
||||
}
|
||||
|
||||
multilib_src_install() {
|
||||
meson_src_install
|
||||
}
|
||||
|
||||
multilib_src_install_all() {
|
||||
einstalldocs
|
||||
}
|
||||
|
||||
multilib_src_test() {
|
||||
meson_src_test
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
# Switch to the xorg implementation.
|
||||
echo
|
||||
eselect opengl set --use-old ${OPENGL_DIR}
|
||||
}
|
||||
|
||||
# $1 - VIDEO_CARDS flag (check skipped for "--")
|
||||
# other args - names of DRI drivers to enable
|
||||
dri_driver_enable() {
|
||||
if [[ $1 == -- ]] || use $1; then
|
||||
shift
|
||||
DRI_DRIVERS+=("$@")
|
||||
fi
|
||||
}
|
||||
|
||||
gallium_enable() {
|
||||
if [[ $1 == -- ]] || use $1; then
|
||||
shift
|
||||
GALLIUM_DRIVERS+=("$@")
|
||||
fi
|
||||
}
|
||||
|
||||
vulkan_enable() {
|
||||
if [[ $1 == -- ]] || use $1; then
|
||||
shift
|
||||
VULKAN_DRIVERS+=("$@")
|
||||
fi
|
||||
}
|
@ -1,515 +0,0 @@
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=( python3_4 python3_5 python3_6 python3_7 )
|
||||
|
||||
inherit llvm meson multilib-minimal pax-utils python-any-r1
|
||||
|
||||
OPENGL_DIR="xorg-x11"
|
||||
|
||||
MY_P="${P/_/-}"
|
||||
|
||||
DESCRIPTION="OpenGL-like graphic library for Linux"
|
||||
HOMEPAGE="https://www.mesa3d.org/ https://mesa.freedesktop.org/"
|
||||
|
||||
if [[ ${PV} == 9999 ]]; then
|
||||
EGIT_REPO_URI="https://gitlab.freedesktop.org/mesa/mesa.git"
|
||||
EXPERIMENTAL="true"
|
||||
inherit git-r3
|
||||
else
|
||||
SRC_URI="https://mesa.freedesktop.org/archive/${MY_P}.tar.xz"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~sparc-solaris ~x64-solaris ~x86-solaris"
|
||||
fi
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
RESTRICT="
|
||||
!test? ( test )
|
||||
"
|
||||
|
||||
RADEON_CARDS="r100 r200 r300 r600 radeon radeonsi"
|
||||
VIDEO_CARDS="${RADEON_CARDS} freedreno i915 i965 imx intel nouveau vc4 virgl vivante vmware"
|
||||
for card in ${VIDEO_CARDS}; do
|
||||
IUSE_VIDEO_CARDS+=" video_cards_${card}"
|
||||
done
|
||||
|
||||
IUSE="${IUSE_VIDEO_CARDS}
|
||||
+classic d3d9 debug +dri3 +egl +gallium +gbm gles1 gles2 +llvm lm_sensors
|
||||
opencl osmesa pax_kernel pic selinux test unwind vaapi valgrind vdpau
|
||||
vulkan wayland xa xvmc"
|
||||
|
||||
REQUIRED_USE="
|
||||
d3d9? ( dri3 || ( video_cards_r300 video_cards_r600 video_cards_radeonsi video_cards_nouveau video_cards_vmware ) )
|
||||
gles1? ( egl )
|
||||
gles2? ( egl )
|
||||
vulkan? ( dri3
|
||||
|| ( video_cards_i965 video_cards_radeonsi )
|
||||
video_cards_radeonsi? ( llvm ) )
|
||||
wayland? ( egl gbm )
|
||||
video_cards_freedreno? ( gallium )
|
||||
video_cards_intel? ( classic )
|
||||
video_cards_i915? ( || ( classic gallium ) )
|
||||
video_cards_i965? ( classic )
|
||||
video_cards_imx? ( gallium video_cards_vivante )
|
||||
video_cards_nouveau? ( || ( classic gallium ) )
|
||||
video_cards_radeon? ( || ( classic gallium )
|
||||
gallium? ( x86? ( llvm ) amd64? ( llvm ) ) )
|
||||
video_cards_r100? ( classic )
|
||||
video_cards_r200? ( classic )
|
||||
video_cards_r300? ( gallium x86? ( llvm ) amd64? ( llvm ) )
|
||||
video_cards_r600? ( gallium )
|
||||
video_cards_radeonsi? ( gallium llvm )
|
||||
video_cards_vc4? ( gallium )
|
||||
video_cards_virgl? ( gallium )
|
||||
video_cards_vivante? ( gallium gbm )
|
||||
video_cards_vmware? ( gallium )
|
||||
"
|
||||
|
||||
LIBDRM_DEPSTRING=">=x11-libs/libdrm-2.4.97"
|
||||
RDEPEND="
|
||||
!app-eselect/eselect-mesa
|
||||
>=app-eselect/eselect-opengl-1.3.0
|
||||
>=dev-libs/expat-2.1.0-r3:=[${MULTILIB_USEDEP}]
|
||||
>=sys-libs/zlib-1.2.8[${MULTILIB_USEDEP}]
|
||||
>=x11-libs/libX11-1.6.2:=[${MULTILIB_USEDEP}]
|
||||
>=x11-libs/libxshmfence-1.1:=[${MULTILIB_USEDEP}]
|
||||
>=x11-libs/libXdamage-1.1.4-r1:=[${MULTILIB_USEDEP}]
|
||||
>=x11-libs/libXext-1.3.2:=[${MULTILIB_USEDEP}]
|
||||
>=x11-libs/libXxf86vm-1.1.3:=[${MULTILIB_USEDEP}]
|
||||
>=x11-libs/libxcb-1.13:=[${MULTILIB_USEDEP}]
|
||||
x11-libs/libXfixes:=[${MULTILIB_USEDEP}]
|
||||
gallium? (
|
||||
unwind? ( sys-libs/libunwind[${MULTILIB_USEDEP}] )
|
||||
llvm? (
|
||||
video_cards_radeonsi? (
|
||||
virtual/libelf:0=[${MULTILIB_USEDEP}]
|
||||
)
|
||||
video_cards_r600? (
|
||||
virtual/libelf:0=[${MULTILIB_USEDEP}]
|
||||
)
|
||||
video_cards_radeon? (
|
||||
virtual/libelf:0=[${MULTILIB_USEDEP}]
|
||||
)
|
||||
)
|
||||
lm_sensors? ( sys-apps/lm_sensors:=[${MULTILIB_USEDEP}] )
|
||||
opencl? (
|
||||
dev-libs/ocl-icd[khronos-headers,${MULTILIB_USEDEP}]
|
||||
dev-libs/libclc
|
||||
virtual/libelf:0=[${MULTILIB_USEDEP}]
|
||||
)
|
||||
vaapi? (
|
||||
>=x11-libs/libva-1.7.3:=[${MULTILIB_USEDEP}]
|
||||
video_cards_nouveau? ( !<=x11-libs/libva-vdpau-driver-0.7.4-r3 )
|
||||
)
|
||||
vdpau? ( >=x11-libs/libvdpau-1.1:=[${MULTILIB_USEDEP}] )
|
||||
xvmc? ( >=x11-libs/libXvMC-1.0.8:=[${MULTILIB_USEDEP}] )
|
||||
)
|
||||
wayland? (
|
||||
>=dev-libs/wayland-1.15.0:=[${MULTILIB_USEDEP}]
|
||||
>=dev-libs/wayland-protocols-1.8
|
||||
)
|
||||
${LIBDRM_DEPSTRING}[video_cards_freedreno?,video_cards_nouveau?,video_cards_vc4?,video_cards_vivante?,video_cards_vmware?,${MULTILIB_USEDEP}]
|
||||
|
||||
video_cards_intel? (
|
||||
!video_cards_i965? ( ${LIBDRM_DEPSTRING}[video_cards_intel] )
|
||||
)
|
||||
video_cards_i915? ( ${LIBDRM_DEPSTRING}[video_cards_intel] )
|
||||
"
|
||||
for card in ${RADEON_CARDS}; do
|
||||
RDEPEND="${RDEPEND}
|
||||
video_cards_${card}? ( ${LIBDRM_DEPSTRING}[video_cards_radeon] )
|
||||
"
|
||||
done
|
||||
RDEPEND="${RDEPEND}
|
||||
video_cards_radeonsi? ( ${LIBDRM_DEPSTRING}[video_cards_amdgpu] )
|
||||
"
|
||||
|
||||
# Please keep the LLVM dependency block separate. Since LLVM is slotted,
|
||||
# we need to *really* make sure we're not pulling one than more slot
|
||||
# simultaneously.
|
||||
#
|
||||
# How to use it:
|
||||
# 1. List all the working slots (with min versions) in ||, newest first.
|
||||
# 2. Update the := to specify *max* version, e.g. < 7.
|
||||
# 3. Specify LLVM_MAX_SLOT, e.g. 6.
|
||||
LLVM_MAX_SLOT="7"
|
||||
LLVM_DEPSTR="
|
||||
|| (
|
||||
sys-devel/llvm:7[${MULTILIB_USEDEP}]
|
||||
)
|
||||
sys-devel/llvm:=[${MULTILIB_USEDEP}]
|
||||
"
|
||||
LLVM_DEPSTR_AMDGPU=${LLVM_DEPSTR//]/,llvm_targets_AMDGPU(-)]}
|
||||
CLANG_DEPSTR=${LLVM_DEPSTR//llvm/clang}
|
||||
CLANG_DEPSTR_AMDGPU=${CLANG_DEPSTR//]/,llvm_targets_AMDGPU(-)]}
|
||||
RDEPEND="${RDEPEND}
|
||||
llvm? (
|
||||
opencl? (
|
||||
video_cards_r600? (
|
||||
${CLANG_DEPSTR_AMDGPU}
|
||||
)
|
||||
!video_cards_r600? (
|
||||
video_cards_radeonsi? (
|
||||
${CLANG_DEPSTR_AMDGPU}
|
||||
)
|
||||
)
|
||||
!video_cards_r600? (
|
||||
!video_cards_radeonsi? (
|
||||
video_cards_radeon? (
|
||||
${CLANG_DEPSTR_AMDGPU}
|
||||
)
|
||||
)
|
||||
)
|
||||
!video_cards_r600? (
|
||||
!video_cards_radeon? (
|
||||
!video_cards_radeonsi? (
|
||||
${CLANG_DEPSTR}
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
!opencl? (
|
||||
video_cards_r600? (
|
||||
${LLVM_DEPSTR_AMDGPU}
|
||||
)
|
||||
!video_cards_r600? (
|
||||
video_cards_radeonsi? (
|
||||
${LLVM_DEPSTR_AMDGPU}
|
||||
)
|
||||
)
|
||||
!video_cards_r600? (
|
||||
!video_cards_radeonsi? (
|
||||
video_cards_radeon? (
|
||||
${LLVM_DEPSTR_AMDGPU}
|
||||
)
|
||||
)
|
||||
)
|
||||
!video_cards_r600? (
|
||||
!video_cards_radeon? (
|
||||
!video_cards_radeonsi? (
|
||||
${LLVM_DEPSTR}
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
"
|
||||
unset {LLVM,CLANG}_DEPSTR{,_AMDGPU}
|
||||
|
||||
DEPEND="${RDEPEND}
|
||||
${PYTHON_DEPS}
|
||||
opencl? (
|
||||
>=sys-devel/gcc-4.6
|
||||
)
|
||||
sys-devel/bison
|
||||
sys-devel/flex
|
||||
sys-devel/gettext
|
||||
virtual/pkgconfig
|
||||
valgrind? ( dev-util/valgrind )
|
||||
x11-base/xorg-proto
|
||||
x11-libs/libXrandr[${MULTILIB_USEDEP}]
|
||||
$(python_gen_any_dep ">=dev-python/mako-0.8.0[\${PYTHON_USEDEP}]")
|
||||
"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
EGIT_CHECKOUT_DIR=${S}
|
||||
|
||||
QA_WX_LOAD="
|
||||
x86? (
|
||||
!pic? (
|
||||
usr/lib*/libglapi.so.0.0.0
|
||||
usr/lib*/libGLESv1_CM.so.1.0.0
|
||||
usr/lib*/libGLESv2.so.2.0.0
|
||||
usr/lib*/libGL.so.1.2.0
|
||||
usr/lib*/libOSMesa.so.8.0.0
|
||||
)
|
||||
)"
|
||||
|
||||
llvm_check_deps() {
|
||||
local flags=${MULTILIB_USEDEP}
|
||||
if use video_cards_r600 || use video_cards_radeon || use video_cards_radeonsi
|
||||
then
|
||||
flags+=",llvm_targets_AMDGPU(-)"
|
||||
fi
|
||||
|
||||
if use opencl; then
|
||||
has_version "sys-devel/clang[${flags}]" || return 1
|
||||
fi
|
||||
has_version "sys-devel/llvm[${flags}]"
|
||||
}
|
||||
|
||||
pkg_pretend() {
|
||||
if use opencl; then
|
||||
if ! use video_cards_r600 &&
|
||||
! use video_cards_radeonsi; then
|
||||
ewarn "Ignoring USE=opencl since VIDEO_CARDS does not contain r600 or radeonsi"
|
||||
fi
|
||||
fi
|
||||
|
||||
if use vaapi; then
|
||||
if ! use video_cards_r600 &&
|
||||
! use video_cards_radeonsi &&
|
||||
! use video_cards_nouveau; then
|
||||
ewarn "Ignoring USE=vaapi since VIDEO_CARDS does not contain r600, radeonsi, or nouveau"
|
||||
fi
|
||||
fi
|
||||
|
||||
if use vdpau; then
|
||||
if ! use video_cards_r300 &&
|
||||
! use video_cards_r600 &&
|
||||
! use video_cards_radeonsi &&
|
||||
! use video_cards_nouveau; then
|
||||
ewarn "Ignoring USE=vdpau since VIDEO_CARDS does not contain r300, r600, radeonsi, or nouveau"
|
||||
fi
|
||||
fi
|
||||
|
||||
if use xa; then
|
||||
if ! use video_cards_freedreno &&
|
||||
! use video_cards_nouveau &&
|
||||
! use video_cards_vmware; then
|
||||
ewarn "Ignoring USE=xa since VIDEO_CARDS does not contain freedreno, nouveau, or vmware"
|
||||
fi
|
||||
fi
|
||||
|
||||
if use xvmc; then
|
||||
if ! use video_cards_r600 &&
|
||||
! use video_cards_nouveau; then
|
||||
ewarn "Ignoring USE=xvmc since VIDEO_CARDS does not contain r600 or nouveau"
|
||||
fi
|
||||
fi
|
||||
|
||||
if ! use gallium; then
|
||||
use lm_sensors && ewarn "Ignoring USE=lm_sensors since USE does not contain gallium"
|
||||
use llvm && ewarn "Ignoring USE=llvm since USE does not contain gallium"
|
||||
use opencl && ewarn "Ignoring USE=opencl since USE does not contain gallium"
|
||||
use vaapi && ewarn "Ignoring USE=vaapi since USE does not contain gallium"
|
||||
use vdpau && ewarn "Ignoring USE=vdpau since USE does not contain gallium"
|
||||
use unwind && ewarn "Ignoring USE=unwind since USE does not contain gallium"
|
||||
use xa && ewarn "Ignoring USE=xa since USE does not contain gallium"
|
||||
use xvmc && ewarn "Ignoring USE=xvmc since USE does not contain gallium"
|
||||
fi
|
||||
|
||||
if ! use llvm; then
|
||||
use opencl && ewarn "Ignoring USE=opencl since USE does not contain llvm"
|
||||
fi
|
||||
}
|
||||
|
||||
python_check_deps() {
|
||||
has_version ">=dev-python/mako-0.8.0[${PYTHON_USEDEP}]"
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
# warning message for bug 459306
|
||||
if use llvm && has_version sys-devel/llvm[!debug=]; then
|
||||
ewarn "Mismatch between debug USE flags in media-libs/mesa and sys-devel/llvm"
|
||||
ewarn "detected! This can cause problems. For details, see bug 459306."
|
||||
fi
|
||||
|
||||
if use llvm; then
|
||||
llvm_pkg_setup
|
||||
fi
|
||||
python-any-r1_pkg_setup
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
local emesonargs=()
|
||||
|
||||
if use classic; then
|
||||
# Intel code
|
||||
dri_driver_enable video_cards_i915 i915
|
||||
dri_driver_enable video_cards_i965 i965
|
||||
if ! use video_cards_i915 && \
|
||||
! use video_cards_i965; then
|
||||
dri_driver_enable video_cards_intel i915 i965
|
||||
fi
|
||||
|
||||
# Nouveau code
|
||||
dri_driver_enable video_cards_nouveau nouveau
|
||||
|
||||
# ATI code
|
||||
dri_driver_enable video_cards_r100 r100
|
||||
dri_driver_enable video_cards_r200 r200
|
||||
if ! use video_cards_r100 && \
|
||||
! use video_cards_r200; then
|
||||
dri_driver_enable video_cards_radeon r100 r200
|
||||
fi
|
||||
fi
|
||||
|
||||
emesonargs+=( -Dplatforms=x11,surfaceless$(use wayland && echo ",wayland")$(use gbm && echo ",drm") )
|
||||
|
||||
if use gallium; then
|
||||
emesonargs+=(
|
||||
$(meson_use llvm)
|
||||
$(meson_use lm_sensors lmsensors)
|
||||
$(meson_use unwind libunwind)
|
||||
)
|
||||
|
||||
if use video_cards_r300 ||
|
||||
use video_cards_r600 ||
|
||||
use video_cards_radeonsi ||
|
||||
use video_cards_nouveau ||
|
||||
use video_cards_vmware; then
|
||||
emesonargs+=($(meson_use d3d9 gallium-nine))
|
||||
else
|
||||
emesonargs+=(-Dgallium-nine=false)
|
||||
fi
|
||||
|
||||
if use video_cards_r600 ||
|
||||
use video_cards_radeonsi ||
|
||||
use video_cards_nouveau; then
|
||||
emesonargs+=($(meson_use vaapi gallium-va))
|
||||
use vaapi && emesonargs+=( -Dva-libs-path="${EPREFIX}"/usr/$(get_libdir)/va/drivers )
|
||||
else
|
||||
emesonargs+=(-Dgallium-va=false)
|
||||
fi
|
||||
|
||||
if use video_cards_r300 ||
|
||||
use video_cards_r600 ||
|
||||
use video_cards_radeonsi ||
|
||||
use video_cards_nouveau; then
|
||||
emesonargs+=($(meson_use vdpau gallium-vdpau))
|
||||
else
|
||||
emesonargs+=(-Dgallium-vdpau=false)
|
||||
fi
|
||||
|
||||
if use video_cards_freedreno ||
|
||||
use video_cards_nouveau ||
|
||||
use video_cards_vmware; then
|
||||
emesonargs+=($(meson_use xa gallium-xa))
|
||||
else
|
||||
emesonargs+=(-Dgallium-xa=false)
|
||||
fi
|
||||
|
||||
if use video_cards_r600 ||
|
||||
use video_cards_nouveau; then
|
||||
emesonargs+=($(meson_use xvmc gallium-xvmc))
|
||||
else
|
||||
emesonargs+=(-Dgallium-xvmc=false)
|
||||
fi
|
||||
|
||||
gallium_enable video_cards_vc4 vc4
|
||||
gallium_enable video_cards_vivante etnaviv
|
||||
gallium_enable video_cards_vmware svga
|
||||
gallium_enable video_cards_nouveau nouveau
|
||||
gallium_enable video_cards_imx imx
|
||||
|
||||
# Only one i915 driver (classic vs gallium). Default to classic.
|
||||
if ! use classic; then
|
||||
gallium_enable video_cards_i915 i915
|
||||
if ! use video_cards_i915 && \
|
||||
! use video_cards_i965; then
|
||||
gallium_enable video_cards_intel i915
|
||||
fi
|
||||
fi
|
||||
|
||||
gallium_enable video_cards_r300 r300
|
||||
gallium_enable video_cards_r600 r600
|
||||
gallium_enable video_cards_radeonsi radeonsi
|
||||
if ! use video_cards_r300 && \
|
||||
! use video_cards_r600; then
|
||||
gallium_enable video_cards_radeon r300 r600
|
||||
fi
|
||||
|
||||
gallium_enable video_cards_freedreno freedreno
|
||||
gallium_enable video_cards_virgl virgl
|
||||
|
||||
# opencl stuff
|
||||
emesonargs+=(
|
||||
-Dgallium-opencl="$(usex opencl icd disabled)"
|
||||
)
|
||||
fi
|
||||
|
||||
if use vulkan; then
|
||||
vulkan_enable video_cards_i965 intel
|
||||
vulkan_enable video_cards_radeonsi amd
|
||||
fi
|
||||
|
||||
# x86 hardened pax_kernel needs glx-rts, bug 240956
|
||||
if [[ ${ABI} == x86 ]]; then
|
||||
emesonargs+=( $(meson_use pax_kernel glx-read-only-text) )
|
||||
fi
|
||||
|
||||
# on abi_x86_32 hardened we need to have asm disable
|
||||
if [[ ${ABI} == x86* ]] && use pic; then
|
||||
emesonargs+=( -Dasm=false )
|
||||
fi
|
||||
|
||||
if use gallium; then
|
||||
gallium_enable -- swrast
|
||||
emesonargs+=( -Dosmesa=$(usex osmesa gallium none) )
|
||||
else
|
||||
dri_driver_enable -- swrast
|
||||
emesonargs+=( -Dosmesa=$(usex osmesa classic none) )
|
||||
fi
|
||||
|
||||
driver_list() {
|
||||
local drivers="$(sort -u <<< "${1// /$'\n'}")"
|
||||
echo "${drivers//$'\n'/,}"
|
||||
}
|
||||
|
||||
emesonargs+=(
|
||||
$(meson_use test build-tests)
|
||||
-Dglx=dri
|
||||
-Dshared-glapi=true
|
||||
$(meson_use dri3)
|
||||
$(meson_use egl)
|
||||
$(meson_use gbm)
|
||||
$(meson_use gles1)
|
||||
$(meson_use gles2)
|
||||
$(meson_use selinux)
|
||||
-Dvalgrind=$(usex valgrind auto false)
|
||||
-Ddri-drivers=$(driver_list "${DRI_DRIVERS[*]}")
|
||||
-Dgallium-drivers=$(driver_list "${GALLIUM_DRIVERS[*]}")
|
||||
-Dvulkan-drivers=$(driver_list "${VULKAN_DRIVERS[*]}")
|
||||
--buildtype $(usex debug debug plain)
|
||||
-Db_ndebug=$(usex debug false true)
|
||||
)
|
||||
meson_src_configure
|
||||
}
|
||||
|
||||
multilib_src_compile() {
|
||||
meson_src_compile
|
||||
}
|
||||
|
||||
multilib_src_install() {
|
||||
meson_src_install
|
||||
}
|
||||
|
||||
multilib_src_install_all() {
|
||||
einstalldocs
|
||||
}
|
||||
|
||||
multilib_src_test() {
|
||||
meson_src_test
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
# Switch to the xorg implementation.
|
||||
echo
|
||||
eselect opengl set --use-old ${OPENGL_DIR}
|
||||
}
|
||||
|
||||
# $1 - VIDEO_CARDS flag (check skipped for "--")
|
||||
# other args - names of DRI drivers to enable
|
||||
dri_driver_enable() {
|
||||
if [[ $1 == -- ]] || use $1; then
|
||||
shift
|
||||
DRI_DRIVERS+=("$@")
|
||||
fi
|
||||
}
|
||||
|
||||
gallium_enable() {
|
||||
if [[ $1 == -- ]] || use $1; then
|
||||
shift
|
||||
GALLIUM_DRIVERS+=("$@")
|
||||
fi
|
||||
}
|
||||
|
||||
vulkan_enable() {
|
||||
if [[ $1 == -- ]] || use $1; then
|
||||
shift
|
||||
VULKAN_DRIVERS+=("$@")
|
||||
fi
|
||||
}
|
@ -1,515 +0,0 @@
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=( python3_4 python3_5 python3_6 python3_7 )
|
||||
|
||||
inherit llvm meson multilib-minimal pax-utils python-any-r1
|
||||
|
||||
OPENGL_DIR="xorg-x11"
|
||||
|
||||
MY_P="${P/_/-}"
|
||||
|
||||
DESCRIPTION="OpenGL-like graphic library for Linux"
|
||||
HOMEPAGE="https://www.mesa3d.org/ https://mesa.freedesktop.org/"
|
||||
|
||||
if [[ ${PV} == 9999 ]]; then
|
||||
EGIT_REPO_URI="https://gitlab.freedesktop.org/mesa/mesa.git"
|
||||
EXPERIMENTAL="true"
|
||||
inherit git-r3
|
||||
else
|
||||
SRC_URI="https://mesa.freedesktop.org/archive/${MY_P}.tar.xz"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~sparc-solaris ~x64-solaris ~x86-solaris"
|
||||
fi
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
RESTRICT="
|
||||
!test? ( test )
|
||||
"
|
||||
|
||||
RADEON_CARDS="r100 r200 r300 r600 radeon radeonsi"
|
||||
VIDEO_CARDS="${RADEON_CARDS} freedreno i915 i965 imx intel nouveau vc4 virgl vivante vmware"
|
||||
for card in ${VIDEO_CARDS}; do
|
||||
IUSE_VIDEO_CARDS+=" video_cards_${card}"
|
||||
done
|
||||
|
||||
IUSE="${IUSE_VIDEO_CARDS}
|
||||
+classic d3d9 debug +dri3 +egl +gallium +gbm gles1 gles2 +llvm lm_sensors
|
||||
opencl osmesa pax_kernel pic selinux test unwind vaapi valgrind vdpau
|
||||
vulkan wayland xa xvmc"
|
||||
|
||||
REQUIRED_USE="
|
||||
d3d9? ( dri3 || ( video_cards_r300 video_cards_r600 video_cards_radeonsi video_cards_nouveau video_cards_vmware ) )
|
||||
gles1? ( egl )
|
||||
gles2? ( egl )
|
||||
vulkan? ( dri3
|
||||
|| ( video_cards_i965 video_cards_radeonsi )
|
||||
video_cards_radeonsi? ( llvm ) )
|
||||
wayland? ( egl gbm )
|
||||
video_cards_freedreno? ( gallium )
|
||||
video_cards_intel? ( classic )
|
||||
video_cards_i915? ( || ( classic gallium ) )
|
||||
video_cards_i965? ( classic )
|
||||
video_cards_imx? ( gallium video_cards_vivante )
|
||||
video_cards_nouveau? ( || ( classic gallium ) )
|
||||
video_cards_radeon? ( || ( classic gallium )
|
||||
gallium? ( x86? ( llvm ) amd64? ( llvm ) ) )
|
||||
video_cards_r100? ( classic )
|
||||
video_cards_r200? ( classic )
|
||||
video_cards_r300? ( gallium x86? ( llvm ) amd64? ( llvm ) )
|
||||
video_cards_r600? ( gallium )
|
||||
video_cards_radeonsi? ( gallium llvm )
|
||||
video_cards_vc4? ( gallium )
|
||||
video_cards_virgl? ( gallium )
|
||||
video_cards_vivante? ( gallium gbm )
|
||||
video_cards_vmware? ( gallium )
|
||||
"
|
||||
|
||||
LIBDRM_DEPSTRING=">=x11-libs/libdrm-2.4.97"
|
||||
RDEPEND="
|
||||
!app-eselect/eselect-mesa
|
||||
>=app-eselect/eselect-opengl-1.3.0
|
||||
>=dev-libs/expat-2.1.0-r3:=[${MULTILIB_USEDEP}]
|
||||
>=sys-libs/zlib-1.2.8[${MULTILIB_USEDEP}]
|
||||
>=x11-libs/libX11-1.6.2:=[${MULTILIB_USEDEP}]
|
||||
>=x11-libs/libxshmfence-1.1:=[${MULTILIB_USEDEP}]
|
||||
>=x11-libs/libXdamage-1.1.4-r1:=[${MULTILIB_USEDEP}]
|
||||
>=x11-libs/libXext-1.3.2:=[${MULTILIB_USEDEP}]
|
||||
>=x11-libs/libXxf86vm-1.1.3:=[${MULTILIB_USEDEP}]
|
||||
>=x11-libs/libxcb-1.13:=[${MULTILIB_USEDEP}]
|
||||
x11-libs/libXfixes:=[${MULTILIB_USEDEP}]
|
||||
gallium? (
|
||||
unwind? ( sys-libs/libunwind[${MULTILIB_USEDEP}] )
|
||||
llvm? (
|
||||
video_cards_radeonsi? (
|
||||
virtual/libelf:0=[${MULTILIB_USEDEP}]
|
||||
)
|
||||
video_cards_r600? (
|
||||
virtual/libelf:0=[${MULTILIB_USEDEP}]
|
||||
)
|
||||
video_cards_radeon? (
|
||||
virtual/libelf:0=[${MULTILIB_USEDEP}]
|
||||
)
|
||||
)
|
||||
lm_sensors? ( sys-apps/lm_sensors:=[${MULTILIB_USEDEP}] )
|
||||
opencl? (
|
||||
dev-libs/ocl-icd[khronos-headers,${MULTILIB_USEDEP}]
|
||||
dev-libs/libclc
|
||||
virtual/libelf:0=[${MULTILIB_USEDEP}]
|
||||
)
|
||||
vaapi? (
|
||||
>=x11-libs/libva-1.7.3:=[${MULTILIB_USEDEP}]
|
||||
video_cards_nouveau? ( !<=x11-libs/libva-vdpau-driver-0.7.4-r3 )
|
||||
)
|
||||
vdpau? ( >=x11-libs/libvdpau-1.1:=[${MULTILIB_USEDEP}] )
|
||||
xvmc? ( >=x11-libs/libXvMC-1.0.8:=[${MULTILIB_USEDEP}] )
|
||||
)
|
||||
wayland? (
|
||||
>=dev-libs/wayland-1.15.0:=[${MULTILIB_USEDEP}]
|
||||
>=dev-libs/wayland-protocols-1.8
|
||||
)
|
||||
${LIBDRM_DEPSTRING}[video_cards_freedreno?,video_cards_nouveau?,video_cards_vc4?,video_cards_vivante?,video_cards_vmware?,${MULTILIB_USEDEP}]
|
||||
|
||||
video_cards_intel? (
|
||||
!video_cards_i965? ( ${LIBDRM_DEPSTRING}[video_cards_intel] )
|
||||
)
|
||||
video_cards_i915? ( ${LIBDRM_DEPSTRING}[video_cards_intel] )
|
||||
"
|
||||
for card in ${RADEON_CARDS}; do
|
||||
RDEPEND="${RDEPEND}
|
||||
video_cards_${card}? ( ${LIBDRM_DEPSTRING}[video_cards_radeon] )
|
||||
"
|
||||
done
|
||||
RDEPEND="${RDEPEND}
|
||||
video_cards_radeonsi? ( ${LIBDRM_DEPSTRING}[video_cards_amdgpu] )
|
||||
"
|
||||
|
||||
# Please keep the LLVM dependency block separate. Since LLVM is slotted,
|
||||
# we need to *really* make sure we're not pulling one than more slot
|
||||
# simultaneously.
|
||||
#
|
||||
# How to use it:
|
||||
# 1. List all the working slots (with min versions) in ||, newest first.
|
||||
# 2. Update the := to specify *max* version, e.g. < 7.
|
||||
# 3. Specify LLVM_MAX_SLOT, e.g. 6.
|
||||
LLVM_MAX_SLOT="7"
|
||||
LLVM_DEPSTR="
|
||||
|| (
|
||||
sys-devel/llvm:7[${MULTILIB_USEDEP}]
|
||||
)
|
||||
sys-devel/llvm:=[${MULTILIB_USEDEP}]
|
||||
"
|
||||
LLVM_DEPSTR_AMDGPU=${LLVM_DEPSTR//]/,llvm_targets_AMDGPU(-)]}
|
||||
CLANG_DEPSTR=${LLVM_DEPSTR//llvm/clang}
|
||||
CLANG_DEPSTR_AMDGPU=${CLANG_DEPSTR//]/,llvm_targets_AMDGPU(-)]}
|
||||
RDEPEND="${RDEPEND}
|
||||
llvm? (
|
||||
opencl? (
|
||||
video_cards_r600? (
|
||||
${CLANG_DEPSTR_AMDGPU}
|
||||
)
|
||||
!video_cards_r600? (
|
||||
video_cards_radeonsi? (
|
||||
${CLANG_DEPSTR_AMDGPU}
|
||||
)
|
||||
)
|
||||
!video_cards_r600? (
|
||||
!video_cards_radeonsi? (
|
||||
video_cards_radeon? (
|
||||
${CLANG_DEPSTR_AMDGPU}
|
||||
)
|
||||
)
|
||||
)
|
||||
!video_cards_r600? (
|
||||
!video_cards_radeon? (
|
||||
!video_cards_radeonsi? (
|
||||
${CLANG_DEPSTR}
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
!opencl? (
|
||||
video_cards_r600? (
|
||||
${LLVM_DEPSTR_AMDGPU}
|
||||
)
|
||||
!video_cards_r600? (
|
||||
video_cards_radeonsi? (
|
||||
${LLVM_DEPSTR_AMDGPU}
|
||||
)
|
||||
)
|
||||
!video_cards_r600? (
|
||||
!video_cards_radeonsi? (
|
||||
video_cards_radeon? (
|
||||
${LLVM_DEPSTR_AMDGPU}
|
||||
)
|
||||
)
|
||||
)
|
||||
!video_cards_r600? (
|
||||
!video_cards_radeon? (
|
||||
!video_cards_radeonsi? (
|
||||
${LLVM_DEPSTR}
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
"
|
||||
unset {LLVM,CLANG}_DEPSTR{,_AMDGPU}
|
||||
|
||||
DEPEND="${RDEPEND}
|
||||
${PYTHON_DEPS}
|
||||
opencl? (
|
||||
>=sys-devel/gcc-4.6
|
||||
)
|
||||
sys-devel/bison
|
||||
sys-devel/flex
|
||||
sys-devel/gettext
|
||||
virtual/pkgconfig
|
||||
valgrind? ( dev-util/valgrind )
|
||||
x11-base/xorg-proto
|
||||
x11-libs/libXrandr[${MULTILIB_USEDEP}]
|
||||
$(python_gen_any_dep ">=dev-python/mako-0.8.0[\${PYTHON_USEDEP}]")
|
||||
"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
EGIT_CHECKOUT_DIR=${S}
|
||||
|
||||
QA_WX_LOAD="
|
||||
x86? (
|
||||
!pic? (
|
||||
usr/lib*/libglapi.so.0.0.0
|
||||
usr/lib*/libGLESv1_CM.so.1.0.0
|
||||
usr/lib*/libGLESv2.so.2.0.0
|
||||
usr/lib*/libGL.so.1.2.0
|
||||
usr/lib*/libOSMesa.so.8.0.0
|
||||
)
|
||||
)"
|
||||
|
||||
llvm_check_deps() {
|
||||
local flags=${MULTILIB_USEDEP}
|
||||
if use video_cards_r600 || use video_cards_radeon || use video_cards_radeonsi
|
||||
then
|
||||
flags+=",llvm_targets_AMDGPU(-)"
|
||||
fi
|
||||
|
||||
if use opencl; then
|
||||
has_version "sys-devel/clang[${flags}]" || return 1
|
||||
fi
|
||||
has_version "sys-devel/llvm[${flags}]"
|
||||
}
|
||||
|
||||
pkg_pretend() {
|
||||
if use opencl; then
|
||||
if ! use video_cards_r600 &&
|
||||
! use video_cards_radeonsi; then
|
||||
ewarn "Ignoring USE=opencl since VIDEO_CARDS does not contain r600 or radeonsi"
|
||||
fi
|
||||
fi
|
||||
|
||||
if use vaapi; then
|
||||
if ! use video_cards_r600 &&
|
||||
! use video_cards_radeonsi &&
|
||||
! use video_cards_nouveau; then
|
||||
ewarn "Ignoring USE=vaapi since VIDEO_CARDS does not contain r600, radeonsi, or nouveau"
|
||||
fi
|
||||
fi
|
||||
|
||||
if use vdpau; then
|
||||
if ! use video_cards_r300 &&
|
||||
! use video_cards_r600 &&
|
||||
! use video_cards_radeonsi &&
|
||||
! use video_cards_nouveau; then
|
||||
ewarn "Ignoring USE=vdpau since VIDEO_CARDS does not contain r300, r600, radeonsi, or nouveau"
|
||||
fi
|
||||
fi
|
||||
|
||||
if use xa; then
|
||||
if ! use video_cards_freedreno &&
|
||||
! use video_cards_nouveau &&
|
||||
! use video_cards_vmware; then
|
||||
ewarn "Ignoring USE=xa since VIDEO_CARDS does not contain freedreno, nouveau, or vmware"
|
||||
fi
|
||||
fi
|
||||
|
||||
if use xvmc; then
|
||||
if ! use video_cards_r600 &&
|
||||
! use video_cards_nouveau; then
|
||||
ewarn "Ignoring USE=xvmc since VIDEO_CARDS does not contain r600 or nouveau"
|
||||
fi
|
||||
fi
|
||||
|
||||
if ! use gallium; then
|
||||
use lm_sensors && ewarn "Ignoring USE=lm_sensors since USE does not contain gallium"
|
||||
use llvm && ewarn "Ignoring USE=llvm since USE does not contain gallium"
|
||||
use opencl && ewarn "Ignoring USE=opencl since USE does not contain gallium"
|
||||
use vaapi && ewarn "Ignoring USE=vaapi since USE does not contain gallium"
|
||||
use vdpau && ewarn "Ignoring USE=vdpau since USE does not contain gallium"
|
||||
use unwind && ewarn "Ignoring USE=unwind since USE does not contain gallium"
|
||||
use xa && ewarn "Ignoring USE=xa since USE does not contain gallium"
|
||||
use xvmc && ewarn "Ignoring USE=xvmc since USE does not contain gallium"
|
||||
fi
|
||||
|
||||
if ! use llvm; then
|
||||
use opencl && ewarn "Ignoring USE=opencl since USE does not contain llvm"
|
||||
fi
|
||||
}
|
||||
|
||||
python_check_deps() {
|
||||
has_version ">=dev-python/mako-0.8.0[${PYTHON_USEDEP}]"
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
# warning message for bug 459306
|
||||
if use llvm && has_version sys-devel/llvm[!debug=]; then
|
||||
ewarn "Mismatch between debug USE flags in media-libs/mesa and sys-devel/llvm"
|
||||
ewarn "detected! This can cause problems. For details, see bug 459306."
|
||||
fi
|
||||
|
||||
if use llvm; then
|
||||
llvm_pkg_setup
|
||||
fi
|
||||
python-any-r1_pkg_setup
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
local emesonargs=()
|
||||
|
||||
if use classic; then
|
||||
# Intel code
|
||||
dri_driver_enable video_cards_i915 i915
|
||||
dri_driver_enable video_cards_i965 i965
|
||||
if ! use video_cards_i915 && \
|
||||
! use video_cards_i965; then
|
||||
dri_driver_enable video_cards_intel i915 i965
|
||||
fi
|
||||
|
||||
# Nouveau code
|
||||
dri_driver_enable video_cards_nouveau nouveau
|
||||
|
||||
# ATI code
|
||||
dri_driver_enable video_cards_r100 r100
|
||||
dri_driver_enable video_cards_r200 r200
|
||||
if ! use video_cards_r100 && \
|
||||
! use video_cards_r200; then
|
||||
dri_driver_enable video_cards_radeon r100 r200
|
||||
fi
|
||||
fi
|
||||
|
||||
emesonargs+=( -Dplatforms=x11,surfaceless$(use wayland && echo ",wayland")$(use gbm && echo ",drm") )
|
||||
|
||||
if use gallium; then
|
||||
emesonargs+=(
|
||||
$(meson_use llvm)
|
||||
$(meson_use lm_sensors lmsensors)
|
||||
$(meson_use unwind libunwind)
|
||||
)
|
||||
|
||||
if use video_cards_r300 ||
|
||||
use video_cards_r600 ||
|
||||
use video_cards_radeonsi ||
|
||||
use video_cards_nouveau ||
|
||||
use video_cards_vmware; then
|
||||
emesonargs+=($(meson_use d3d9 gallium-nine))
|
||||
else
|
||||
emesonargs+=(-Dgallium-nine=false)
|
||||
fi
|
||||
|
||||
if use video_cards_r600 ||
|
||||
use video_cards_radeonsi ||
|
||||
use video_cards_nouveau; then
|
||||
emesonargs+=($(meson_use vaapi gallium-va))
|
||||
use vaapi && emesonargs+=( -Dva-libs-path="${EPREFIX}"/usr/$(get_libdir)/va/drivers )
|
||||
else
|
||||
emesonargs+=(-Dgallium-va=false)
|
||||
fi
|
||||
|
||||
if use video_cards_r300 ||
|
||||
use video_cards_r600 ||
|
||||
use video_cards_radeonsi ||
|
||||
use video_cards_nouveau; then
|
||||
emesonargs+=($(meson_use vdpau gallium-vdpau))
|
||||
else
|
||||
emesonargs+=(-Dgallium-vdpau=false)
|
||||
fi
|
||||
|
||||
if use video_cards_freedreno ||
|
||||
use video_cards_nouveau ||
|
||||
use video_cards_vmware; then
|
||||
emesonargs+=($(meson_use xa gallium-xa))
|
||||
else
|
||||
emesonargs+=(-Dgallium-xa=false)
|
||||
fi
|
||||
|
||||
if use video_cards_r600 ||
|
||||
use video_cards_nouveau; then
|
||||
emesonargs+=($(meson_use xvmc gallium-xvmc))
|
||||
else
|
||||
emesonargs+=(-Dgallium-xvmc=false)
|
||||
fi
|
||||
|
||||
gallium_enable video_cards_vc4 vc4
|
||||
gallium_enable video_cards_vivante etnaviv
|
||||
gallium_enable video_cards_vmware svga
|
||||
gallium_enable video_cards_nouveau nouveau
|
||||
gallium_enable video_cards_imx imx
|
||||
|
||||
# Only one i915 driver (classic vs gallium). Default to classic.
|
||||
if ! use classic; then
|
||||
gallium_enable video_cards_i915 i915
|
||||
if ! use video_cards_i915 && \
|
||||
! use video_cards_i965; then
|
||||
gallium_enable video_cards_intel i915
|
||||
fi
|
||||
fi
|
||||
|
||||
gallium_enable video_cards_r300 r300
|
||||
gallium_enable video_cards_r600 r600
|
||||
gallium_enable video_cards_radeonsi radeonsi
|
||||
if ! use video_cards_r300 && \
|
||||
! use video_cards_r600; then
|
||||
gallium_enable video_cards_radeon r300 r600
|
||||
fi
|
||||
|
||||
gallium_enable video_cards_freedreno freedreno
|
||||
gallium_enable video_cards_virgl virgl
|
||||
|
||||
# opencl stuff
|
||||
emesonargs+=(
|
||||
-Dgallium-opencl="$(usex opencl icd disabled)"
|
||||
)
|
||||
fi
|
||||
|
||||
if use vulkan; then
|
||||
vulkan_enable video_cards_i965 intel
|
||||
vulkan_enable video_cards_radeonsi amd
|
||||
fi
|
||||
|
||||
# x86 hardened pax_kernel needs glx-rts, bug 240956
|
||||
if [[ ${ABI} == x86 ]]; then
|
||||
emesonargs+=( $(meson_use pax_kernel glx-read-only-text) )
|
||||
fi
|
||||
|
||||
# on abi_x86_32 hardened we need to have asm disable
|
||||
if [[ ${ABI} == x86* ]] && use pic; then
|
||||
emesonargs+=( -Dasm=false )
|
||||
fi
|
||||
|
||||
if use gallium; then
|
||||
gallium_enable -- swrast
|
||||
emesonargs+=( -Dosmesa=$(usex osmesa gallium none) )
|
||||
else
|
||||
dri_driver_enable -- swrast
|
||||
emesonargs+=( -Dosmesa=$(usex osmesa classic none) )
|
||||
fi
|
||||
|
||||
driver_list() {
|
||||
local drivers="$(sort -u <<< "${1// /$'\n'}")"
|
||||
echo "${drivers//$'\n'/,}"
|
||||
}
|
||||
|
||||
emesonargs+=(
|
||||
$(meson_use test build-tests)
|
||||
-Dglx=dri
|
||||
-Dshared-glapi=true
|
||||
$(meson_use dri3)
|
||||
$(meson_use egl)
|
||||
$(meson_use gbm)
|
||||
$(meson_use gles1)
|
||||
$(meson_use gles2)
|
||||
$(meson_use selinux)
|
||||
-Dvalgrind=$(usex valgrind auto false)
|
||||
-Ddri-drivers=$(driver_list "${DRI_DRIVERS[*]}")
|
||||
-Dgallium-drivers=$(driver_list "${GALLIUM_DRIVERS[*]}")
|
||||
-Dvulkan-drivers=$(driver_list "${VULKAN_DRIVERS[*]}")
|
||||
--buildtype $(usex debug debug plain)
|
||||
-Db_ndebug=$(usex debug false true)
|
||||
)
|
||||
meson_src_configure
|
||||
}
|
||||
|
||||
multilib_src_compile() {
|
||||
meson_src_compile
|
||||
}
|
||||
|
||||
multilib_src_install() {
|
||||
meson_src_install
|
||||
}
|
||||
|
||||
multilib_src_install_all() {
|
||||
einstalldocs
|
||||
}
|
||||
|
||||
multilib_src_test() {
|
||||
meson_src_test
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
# Switch to the xorg implementation.
|
||||
echo
|
||||
eselect opengl set --use-old ${OPENGL_DIR}
|
||||
}
|
||||
|
||||
# $1 - VIDEO_CARDS flag (check skipped for "--")
|
||||
# other args - names of DRI drivers to enable
|
||||
dri_driver_enable() {
|
||||
if [[ $1 == -- ]] || use $1; then
|
||||
shift
|
||||
DRI_DRIVERS+=("$@")
|
||||
fi
|
||||
}
|
||||
|
||||
gallium_enable() {
|
||||
if [[ $1 == -- ]] || use $1; then
|
||||
shift
|
||||
GALLIUM_DRIVERS+=("$@")
|
||||
fi
|
||||
}
|
||||
|
||||
vulkan_enable() {
|
||||
if [[ $1 == -- ]] || use $1; then
|
||||
shift
|
||||
VULKAN_DRIVERS+=("$@")
|
||||
fi
|
||||
}
|
@ -1,515 +0,0 @@
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=( python3_4 python3_5 python3_6 python3_7 )
|
||||
|
||||
inherit llvm meson multilib-minimal pax-utils python-any-r1
|
||||
|
||||
OPENGL_DIR="xorg-x11"
|
||||
|
||||
MY_P="${P/_/-}"
|
||||
|
||||
DESCRIPTION="OpenGL-like graphic library for Linux"
|
||||
HOMEPAGE="https://www.mesa3d.org/ https://mesa.freedesktop.org/"
|
||||
|
||||
if [[ ${PV} == 9999 ]]; then
|
||||
EGIT_REPO_URI="https://gitlab.freedesktop.org/mesa/mesa.git"
|
||||
EXPERIMENTAL="true"
|
||||
inherit git-r3
|
||||
else
|
||||
SRC_URI="https://mesa.freedesktop.org/archive/${MY_P}.tar.xz"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~sparc-solaris ~x64-solaris ~x86-solaris"
|
||||
fi
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
RESTRICT="
|
||||
!test? ( test )
|
||||
"
|
||||
|
||||
RADEON_CARDS="r100 r200 r300 r600 radeon radeonsi"
|
||||
VIDEO_CARDS="${RADEON_CARDS} freedreno i915 i965 imx intel nouveau vc4 virgl vivante vmware"
|
||||
for card in ${VIDEO_CARDS}; do
|
||||
IUSE_VIDEO_CARDS+=" video_cards_${card}"
|
||||
done
|
||||
|
||||
IUSE="${IUSE_VIDEO_CARDS}
|
||||
+classic d3d9 debug +dri3 +egl +gallium +gbm gles1 gles2 +llvm lm_sensors
|
||||
opencl osmesa pax_kernel pic selinux test unwind vaapi valgrind vdpau
|
||||
vulkan wayland xa xvmc"
|
||||
|
||||
REQUIRED_USE="
|
||||
d3d9? ( dri3 || ( video_cards_r300 video_cards_r600 video_cards_radeonsi video_cards_nouveau video_cards_vmware ) )
|
||||
gles1? ( egl )
|
||||
gles2? ( egl )
|
||||
vulkan? ( dri3
|
||||
|| ( video_cards_i965 video_cards_radeonsi )
|
||||
video_cards_radeonsi? ( llvm ) )
|
||||
wayland? ( egl gbm )
|
||||
video_cards_freedreno? ( gallium )
|
||||
video_cards_intel? ( classic )
|
||||
video_cards_i915? ( || ( classic gallium ) )
|
||||
video_cards_i965? ( classic )
|
||||
video_cards_imx? ( gallium video_cards_vivante )
|
||||
video_cards_nouveau? ( || ( classic gallium ) )
|
||||
video_cards_radeon? ( || ( classic gallium )
|
||||
gallium? ( x86? ( llvm ) amd64? ( llvm ) ) )
|
||||
video_cards_r100? ( classic )
|
||||
video_cards_r200? ( classic )
|
||||
video_cards_r300? ( gallium x86? ( llvm ) amd64? ( llvm ) )
|
||||
video_cards_r600? ( gallium )
|
||||
video_cards_radeonsi? ( gallium llvm )
|
||||
video_cards_vc4? ( gallium )
|
||||
video_cards_virgl? ( gallium )
|
||||
video_cards_vivante? ( gallium gbm )
|
||||
video_cards_vmware? ( gallium )
|
||||
"
|
||||
|
||||
LIBDRM_DEPSTRING=">=x11-libs/libdrm-2.4.97"
|
||||
RDEPEND="
|
||||
!app-eselect/eselect-mesa
|
||||
>=app-eselect/eselect-opengl-1.3.0
|
||||
>=dev-libs/expat-2.1.0-r3:=[${MULTILIB_USEDEP}]
|
||||
>=sys-libs/zlib-1.2.8[${MULTILIB_USEDEP}]
|
||||
>=x11-libs/libX11-1.6.2:=[${MULTILIB_USEDEP}]
|
||||
>=x11-libs/libxshmfence-1.1:=[${MULTILIB_USEDEP}]
|
||||
>=x11-libs/libXdamage-1.1.4-r1:=[${MULTILIB_USEDEP}]
|
||||
>=x11-libs/libXext-1.3.2:=[${MULTILIB_USEDEP}]
|
||||
>=x11-libs/libXxf86vm-1.1.3:=[${MULTILIB_USEDEP}]
|
||||
>=x11-libs/libxcb-1.13:=[${MULTILIB_USEDEP}]
|
||||
x11-libs/libXfixes:=[${MULTILIB_USEDEP}]
|
||||
gallium? (
|
||||
unwind? ( sys-libs/libunwind[${MULTILIB_USEDEP}] )
|
||||
llvm? (
|
||||
video_cards_radeonsi? (
|
||||
virtual/libelf:0=[${MULTILIB_USEDEP}]
|
||||
)
|
||||
video_cards_r600? (
|
||||
virtual/libelf:0=[${MULTILIB_USEDEP}]
|
||||
)
|
||||
video_cards_radeon? (
|
||||
virtual/libelf:0=[${MULTILIB_USEDEP}]
|
||||
)
|
||||
)
|
||||
lm_sensors? ( sys-apps/lm_sensors:=[${MULTILIB_USEDEP}] )
|
||||
opencl? (
|
||||
dev-libs/ocl-icd[khronos-headers,${MULTILIB_USEDEP}]
|
||||
dev-libs/libclc
|
||||
virtual/libelf:0=[${MULTILIB_USEDEP}]
|
||||
)
|
||||
vaapi? (
|
||||
>=x11-libs/libva-1.7.3:=[${MULTILIB_USEDEP}]
|
||||
video_cards_nouveau? ( !<=x11-libs/libva-vdpau-driver-0.7.4-r3 )
|
||||
)
|
||||
vdpau? ( >=x11-libs/libvdpau-1.1:=[${MULTILIB_USEDEP}] )
|
||||
xvmc? ( >=x11-libs/libXvMC-1.0.8:=[${MULTILIB_USEDEP}] )
|
||||
)
|
||||
wayland? (
|
||||
>=dev-libs/wayland-1.15.0:=[${MULTILIB_USEDEP}]
|
||||
>=dev-libs/wayland-protocols-1.8
|
||||
)
|
||||
${LIBDRM_DEPSTRING}[video_cards_freedreno?,video_cards_nouveau?,video_cards_vc4?,video_cards_vivante?,video_cards_vmware?,${MULTILIB_USEDEP}]
|
||||
|
||||
video_cards_intel? (
|
||||
!video_cards_i965? ( ${LIBDRM_DEPSTRING}[video_cards_intel] )
|
||||
)
|
||||
video_cards_i915? ( ${LIBDRM_DEPSTRING}[video_cards_intel] )
|
||||
"
|
||||
for card in ${RADEON_CARDS}; do
|
||||
RDEPEND="${RDEPEND}
|
||||
video_cards_${card}? ( ${LIBDRM_DEPSTRING}[video_cards_radeon] )
|
||||
"
|
||||
done
|
||||
RDEPEND="${RDEPEND}
|
||||
video_cards_radeonsi? ( ${LIBDRM_DEPSTRING}[video_cards_amdgpu] )
|
||||
"
|
||||
|
||||
# Please keep the LLVM dependency block separate. Since LLVM is slotted,
|
||||
# we need to *really* make sure we're not pulling one than more slot
|
||||
# simultaneously.
|
||||
#
|
||||
# How to use it:
|
||||
# 1. List all the working slots (with min versions) in ||, newest first.
|
||||
# 2. Update the := to specify *max* version, e.g. < 7.
|
||||
# 3. Specify LLVM_MAX_SLOT, e.g. 6.
|
||||
LLVM_MAX_SLOT="7"
|
||||
LLVM_DEPSTR="
|
||||
|| (
|
||||
sys-devel/llvm:7[${MULTILIB_USEDEP}]
|
||||
)
|
||||
sys-devel/llvm:=[${MULTILIB_USEDEP}]
|
||||
"
|
||||
LLVM_DEPSTR_AMDGPU=${LLVM_DEPSTR//]/,llvm_targets_AMDGPU(-)]}
|
||||
CLANG_DEPSTR=${LLVM_DEPSTR//llvm/clang}
|
||||
CLANG_DEPSTR_AMDGPU=${CLANG_DEPSTR//]/,llvm_targets_AMDGPU(-)]}
|
||||
RDEPEND="${RDEPEND}
|
||||
llvm? (
|
||||
opencl? (
|
||||
video_cards_r600? (
|
||||
${CLANG_DEPSTR_AMDGPU}
|
||||
)
|
||||
!video_cards_r600? (
|
||||
video_cards_radeonsi? (
|
||||
${CLANG_DEPSTR_AMDGPU}
|
||||
)
|
||||
)
|
||||
!video_cards_r600? (
|
||||
!video_cards_radeonsi? (
|
||||
video_cards_radeon? (
|
||||
${CLANG_DEPSTR_AMDGPU}
|
||||
)
|
||||
)
|
||||
)
|
||||
!video_cards_r600? (
|
||||
!video_cards_radeon? (
|
||||
!video_cards_radeonsi? (
|
||||
${CLANG_DEPSTR}
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
!opencl? (
|
||||
video_cards_r600? (
|
||||
${LLVM_DEPSTR_AMDGPU}
|
||||
)
|
||||
!video_cards_r600? (
|
||||
video_cards_radeonsi? (
|
||||
${LLVM_DEPSTR_AMDGPU}
|
||||
)
|
||||
)
|
||||
!video_cards_r600? (
|
||||
!video_cards_radeonsi? (
|
||||
video_cards_radeon? (
|
||||
${LLVM_DEPSTR_AMDGPU}
|
||||
)
|
||||
)
|
||||
)
|
||||
!video_cards_r600? (
|
||||
!video_cards_radeon? (
|
||||
!video_cards_radeonsi? (
|
||||
${LLVM_DEPSTR}
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
"
|
||||
unset {LLVM,CLANG}_DEPSTR{,_AMDGPU}
|
||||
|
||||
DEPEND="${RDEPEND}
|
||||
${PYTHON_DEPS}
|
||||
opencl? (
|
||||
>=sys-devel/gcc-4.6
|
||||
)
|
||||
sys-devel/bison
|
||||
sys-devel/flex
|
||||
sys-devel/gettext
|
||||
virtual/pkgconfig
|
||||
valgrind? ( dev-util/valgrind )
|
||||
x11-base/xorg-proto
|
||||
x11-libs/libXrandr[${MULTILIB_USEDEP}]
|
||||
$(python_gen_any_dep ">=dev-python/mako-0.8.0[\${PYTHON_USEDEP}]")
|
||||
"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
EGIT_CHECKOUT_DIR=${S}
|
||||
|
||||
QA_WX_LOAD="
|
||||
x86? (
|
||||
!pic? (
|
||||
usr/lib*/libglapi.so.0.0.0
|
||||
usr/lib*/libGLESv1_CM.so.1.0.0
|
||||
usr/lib*/libGLESv2.so.2.0.0
|
||||
usr/lib*/libGL.so.1.2.0
|
||||
usr/lib*/libOSMesa.so.8.0.0
|
||||
)
|
||||
)"
|
||||
|
||||
llvm_check_deps() {
|
||||
local flags=${MULTILIB_USEDEP}
|
||||
if use video_cards_r600 || use video_cards_radeon || use video_cards_radeonsi
|
||||
then
|
||||
flags+=",llvm_targets_AMDGPU(-)"
|
||||
fi
|
||||
|
||||
if use opencl; then
|
||||
has_version "sys-devel/clang[${flags}]" || return 1
|
||||
fi
|
||||
has_version "sys-devel/llvm[${flags}]"
|
||||
}
|
||||
|
||||
pkg_pretend() {
|
||||
if use opencl; then
|
||||
if ! use video_cards_r600 &&
|
||||
! use video_cards_radeonsi; then
|
||||
ewarn "Ignoring USE=opencl since VIDEO_CARDS does not contain r600 or radeonsi"
|
||||
fi
|
||||
fi
|
||||
|
||||
if use vaapi; then
|
||||
if ! use video_cards_r600 &&
|
||||
! use video_cards_radeonsi &&
|
||||
! use video_cards_nouveau; then
|
||||
ewarn "Ignoring USE=vaapi since VIDEO_CARDS does not contain r600, radeonsi, or nouveau"
|
||||
fi
|
||||
fi
|
||||
|
||||
if use vdpau; then
|
||||
if ! use video_cards_r300 &&
|
||||
! use video_cards_r600 &&
|
||||
! use video_cards_radeonsi &&
|
||||
! use video_cards_nouveau; then
|
||||
ewarn "Ignoring USE=vdpau since VIDEO_CARDS does not contain r300, r600, radeonsi, or nouveau"
|
||||
fi
|
||||
fi
|
||||
|
||||
if use xa; then
|
||||
if ! use video_cards_freedreno &&
|
||||
! use video_cards_nouveau &&
|
||||
! use video_cards_vmware; then
|
||||
ewarn "Ignoring USE=xa since VIDEO_CARDS does not contain freedreno, nouveau, or vmware"
|
||||
fi
|
||||
fi
|
||||
|
||||
if use xvmc; then
|
||||
if ! use video_cards_r600 &&
|
||||
! use video_cards_nouveau; then
|
||||
ewarn "Ignoring USE=xvmc since VIDEO_CARDS does not contain r600 or nouveau"
|
||||
fi
|
||||
fi
|
||||
|
||||
if ! use gallium; then
|
||||
use lm_sensors && ewarn "Ignoring USE=lm_sensors since USE does not contain gallium"
|
||||
use llvm && ewarn "Ignoring USE=llvm since USE does not contain gallium"
|
||||
use opencl && ewarn "Ignoring USE=opencl since USE does not contain gallium"
|
||||
use vaapi && ewarn "Ignoring USE=vaapi since USE does not contain gallium"
|
||||
use vdpau && ewarn "Ignoring USE=vdpau since USE does not contain gallium"
|
||||
use unwind && ewarn "Ignoring USE=unwind since USE does not contain gallium"
|
||||
use xa && ewarn "Ignoring USE=xa since USE does not contain gallium"
|
||||
use xvmc && ewarn "Ignoring USE=xvmc since USE does not contain gallium"
|
||||
fi
|
||||
|
||||
if ! use llvm; then
|
||||
use opencl && ewarn "Ignoring USE=opencl since USE does not contain llvm"
|
||||
fi
|
||||
}
|
||||
|
||||
python_check_deps() {
|
||||
has_version ">=dev-python/mako-0.8.0[${PYTHON_USEDEP}]"
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
# warning message for bug 459306
|
||||
if use llvm && has_version sys-devel/llvm[!debug=]; then
|
||||
ewarn "Mismatch between debug USE flags in media-libs/mesa and sys-devel/llvm"
|
||||
ewarn "detected! This can cause problems. For details, see bug 459306."
|
||||
fi
|
||||
|
||||
if use llvm; then
|
||||
llvm_pkg_setup
|
||||
fi
|
||||
python-any-r1_pkg_setup
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
local emesonargs=()
|
||||
|
||||
if use classic; then
|
||||
# Intel code
|
||||
dri_driver_enable video_cards_i915 i915
|
||||
dri_driver_enable video_cards_i965 i965
|
||||
if ! use video_cards_i915 && \
|
||||
! use video_cards_i965; then
|
||||
dri_driver_enable video_cards_intel i915 i965
|
||||
fi
|
||||
|
||||
# Nouveau code
|
||||
dri_driver_enable video_cards_nouveau nouveau
|
||||
|
||||
# ATI code
|
||||
dri_driver_enable video_cards_r100 r100
|
||||
dri_driver_enable video_cards_r200 r200
|
||||
if ! use video_cards_r100 && \
|
||||
! use video_cards_r200; then
|
||||
dri_driver_enable video_cards_radeon r100 r200
|
||||
fi
|
||||
fi
|
||||
|
||||
emesonargs+=( -Dplatforms=x11,surfaceless$(use wayland && echo ",wayland")$(use gbm && echo ",drm") )
|
||||
|
||||
if use gallium; then
|
||||
emesonargs+=(
|
||||
$(meson_use llvm)
|
||||
$(meson_use lm_sensors lmsensors)
|
||||
$(meson_use unwind libunwind)
|
||||
)
|
||||
|
||||
if use video_cards_r300 ||
|
||||
use video_cards_r600 ||
|
||||
use video_cards_radeonsi ||
|
||||
use video_cards_nouveau ||
|
||||
use video_cards_vmware; then
|
||||
emesonargs+=($(meson_use d3d9 gallium-nine))
|
||||
else
|
||||
emesonargs+=(-Dgallium-nine=false)
|
||||
fi
|
||||
|
||||
if use video_cards_r600 ||
|
||||
use video_cards_radeonsi ||
|
||||
use video_cards_nouveau; then
|
||||
emesonargs+=($(meson_use vaapi gallium-va))
|
||||
use vaapi && emesonargs+=( -Dva-libs-path="${EPREFIX}"/usr/$(get_libdir)/va/drivers )
|
||||
else
|
||||
emesonargs+=(-Dgallium-va=false)
|
||||
fi
|
||||
|
||||
if use video_cards_r300 ||
|
||||
use video_cards_r600 ||
|
||||
use video_cards_radeonsi ||
|
||||
use video_cards_nouveau; then
|
||||
emesonargs+=($(meson_use vdpau gallium-vdpau))
|
||||
else
|
||||
emesonargs+=(-Dgallium-vdpau=false)
|
||||
fi
|
||||
|
||||
if use video_cards_freedreno ||
|
||||
use video_cards_nouveau ||
|
||||
use video_cards_vmware; then
|
||||
emesonargs+=($(meson_use xa gallium-xa))
|
||||
else
|
||||
emesonargs+=(-Dgallium-xa=false)
|
||||
fi
|
||||
|
||||
if use video_cards_r600 ||
|
||||
use video_cards_nouveau; then
|
||||
emesonargs+=($(meson_use xvmc gallium-xvmc))
|
||||
else
|
||||
emesonargs+=(-Dgallium-xvmc=false)
|
||||
fi
|
||||
|
||||
gallium_enable video_cards_vc4 vc4
|
||||
gallium_enable video_cards_vivante etnaviv
|
||||
gallium_enable video_cards_vmware svga
|
||||
gallium_enable video_cards_nouveau nouveau
|
||||
gallium_enable video_cards_imx imx
|
||||
|
||||
# Only one i915 driver (classic vs gallium). Default to classic.
|
||||
if ! use classic; then
|
||||
gallium_enable video_cards_i915 i915
|
||||
if ! use video_cards_i915 && \
|
||||
! use video_cards_i965; then
|
||||
gallium_enable video_cards_intel i915
|
||||
fi
|
||||
fi
|
||||
|
||||
gallium_enable video_cards_r300 r300
|
||||
gallium_enable video_cards_r600 r600
|
||||
gallium_enable video_cards_radeonsi radeonsi
|
||||
if ! use video_cards_r300 && \
|
||||
! use video_cards_r600; then
|
||||
gallium_enable video_cards_radeon r300 r600
|
||||
fi
|
||||
|
||||
gallium_enable video_cards_freedreno freedreno
|
||||
gallium_enable video_cards_virgl virgl
|
||||
|
||||
# opencl stuff
|
||||
emesonargs+=(
|
||||
-Dgallium-opencl="$(usex opencl icd disabled)"
|
||||
)
|
||||
fi
|
||||
|
||||
if use vulkan; then
|
||||
vulkan_enable video_cards_i965 intel
|
||||
vulkan_enable video_cards_radeonsi amd
|
||||
fi
|
||||
|
||||
# x86 hardened pax_kernel needs glx-rts, bug 240956
|
||||
if [[ ${ABI} == x86 ]]; then
|
||||
emesonargs+=( $(meson_use pax_kernel glx-read-only-text) )
|
||||
fi
|
||||
|
||||
# on abi_x86_32 hardened we need to have asm disable
|
||||
if [[ ${ABI} == x86* ]] && use pic; then
|
||||
emesonargs+=( -Dasm=false )
|
||||
fi
|
||||
|
||||
if use gallium; then
|
||||
gallium_enable -- swrast
|
||||
emesonargs+=( -Dosmesa=$(usex osmesa gallium none) )
|
||||
else
|
||||
dri_driver_enable -- swrast
|
||||
emesonargs+=( -Dosmesa=$(usex osmesa classic none) )
|
||||
fi
|
||||
|
||||
driver_list() {
|
||||
local drivers="$(sort -u <<< "${1// /$'\n'}")"
|
||||
echo "${drivers//$'\n'/,}"
|
||||
}
|
||||
|
||||
emesonargs+=(
|
||||
$(meson_use test build-tests)
|
||||
-Dglx=dri
|
||||
-Dshared-glapi=true
|
||||
$(meson_use dri3)
|
||||
$(meson_use egl)
|
||||
$(meson_use gbm)
|
||||
$(meson_use gles1)
|
||||
$(meson_use gles2)
|
||||
$(meson_use selinux)
|
||||
-Dvalgrind=$(usex valgrind auto false)
|
||||
-Ddri-drivers=$(driver_list "${DRI_DRIVERS[*]}")
|
||||
-Dgallium-drivers=$(driver_list "${GALLIUM_DRIVERS[*]}")
|
||||
-Dvulkan-drivers=$(driver_list "${VULKAN_DRIVERS[*]}")
|
||||
--buildtype $(usex debug debug plain)
|
||||
-Db_ndebug=$(usex debug false true)
|
||||
)
|
||||
meson_src_configure
|
||||
}
|
||||
|
||||
multilib_src_compile() {
|
||||
meson_src_compile
|
||||
}
|
||||
|
||||
multilib_src_install() {
|
||||
meson_src_install
|
||||
}
|
||||
|
||||
multilib_src_install_all() {
|
||||
einstalldocs
|
||||
}
|
||||
|
||||
multilib_src_test() {
|
||||
meson_src_test
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
# Switch to the xorg implementation.
|
||||
echo
|
||||
eselect opengl set --use-old ${OPENGL_DIR}
|
||||
}
|
||||
|
||||
# $1 - VIDEO_CARDS flag (check skipped for "--")
|
||||
# other args - names of DRI drivers to enable
|
||||
dri_driver_enable() {
|
||||
if [[ $1 == -- ]] || use $1; then
|
||||
shift
|
||||
DRI_DRIVERS+=("$@")
|
||||
fi
|
||||
}
|
||||
|
||||
gallium_enable() {
|
||||
if [[ $1 == -- ]] || use $1; then
|
||||
shift
|
||||
GALLIUM_DRIVERS+=("$@")
|
||||
fi
|
||||
}
|
||||
|
||||
vulkan_enable() {
|
||||
if [[ $1 == -- ]] || use $1; then
|
||||
shift
|
||||
VULKAN_DRIVERS+=("$@")
|
||||
fi
|
||||
}
|
@ -1,515 +0,0 @@
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=( python3_4 python3_5 python3_6 python3_7 )
|
||||
|
||||
inherit llvm meson multilib-minimal pax-utils python-any-r1
|
||||
|
||||
OPENGL_DIR="xorg-x11"
|
||||
|
||||
MY_P="${P/_/-}"
|
||||
|
||||
DESCRIPTION="OpenGL-like graphic library for Linux"
|
||||
HOMEPAGE="https://www.mesa3d.org/ https://mesa.freedesktop.org/"
|
||||
|
||||
if [[ ${PV} == 9999 ]]; then
|
||||
EGIT_REPO_URI="https://gitlab.freedesktop.org/mesa/mesa.git"
|
||||
EXPERIMENTAL="true"
|
||||
inherit git-r3
|
||||
else
|
||||
SRC_URI="https://mesa.freedesktop.org/archive/${MY_P}.tar.xz"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~sparc-solaris ~x64-solaris ~x86-solaris"
|
||||
fi
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
RESTRICT="
|
||||
!test? ( test )
|
||||
"
|
||||
|
||||
RADEON_CARDS="r100 r200 r300 r600 radeon radeonsi"
|
||||
VIDEO_CARDS="${RADEON_CARDS} freedreno i915 i965 imx intel nouveau vc4 virgl vivante vmware"
|
||||
for card in ${VIDEO_CARDS}; do
|
||||
IUSE_VIDEO_CARDS+=" video_cards_${card}"
|
||||
done
|
||||
|
||||
IUSE="${IUSE_VIDEO_CARDS}
|
||||
+classic d3d9 debug +dri3 +egl +gallium +gbm gles1 gles2 +llvm lm_sensors
|
||||
opencl osmesa pax_kernel pic selinux test unwind vaapi valgrind vdpau
|
||||
vulkan wayland xa xvmc"
|
||||
|
||||
REQUIRED_USE="
|
||||
d3d9? ( dri3 || ( video_cards_r300 video_cards_r600 video_cards_radeonsi video_cards_nouveau video_cards_vmware ) )
|
||||
gles1? ( egl )
|
||||
gles2? ( egl )
|
||||
vulkan? ( dri3
|
||||
|| ( video_cards_i965 video_cards_radeonsi )
|
||||
video_cards_radeonsi? ( llvm ) )
|
||||
wayland? ( egl gbm )
|
||||
video_cards_freedreno? ( gallium )
|
||||
video_cards_intel? ( classic )
|
||||
video_cards_i915? ( || ( classic gallium ) )
|
||||
video_cards_i965? ( classic )
|
||||
video_cards_imx? ( gallium video_cards_vivante )
|
||||
video_cards_nouveau? ( || ( classic gallium ) )
|
||||
video_cards_radeon? ( || ( classic gallium )
|
||||
gallium? ( x86? ( llvm ) amd64? ( llvm ) ) )
|
||||
video_cards_r100? ( classic )
|
||||
video_cards_r200? ( classic )
|
||||
video_cards_r300? ( gallium x86? ( llvm ) amd64? ( llvm ) )
|
||||
video_cards_r600? ( gallium )
|
||||
video_cards_radeonsi? ( gallium llvm )
|
||||
video_cards_vc4? ( gallium )
|
||||
video_cards_virgl? ( gallium )
|
||||
video_cards_vivante? ( gallium gbm )
|
||||
video_cards_vmware? ( gallium )
|
||||
"
|
||||
|
||||
LIBDRM_DEPSTRING=">=x11-libs/libdrm-2.4.97"
|
||||
RDEPEND="
|
||||
!app-eselect/eselect-mesa
|
||||
>=app-eselect/eselect-opengl-1.3.0
|
||||
>=dev-libs/expat-2.1.0-r3:=[${MULTILIB_USEDEP}]
|
||||
>=sys-libs/zlib-1.2.8[${MULTILIB_USEDEP}]
|
||||
>=x11-libs/libX11-1.6.2:=[${MULTILIB_USEDEP}]
|
||||
>=x11-libs/libxshmfence-1.1:=[${MULTILIB_USEDEP}]
|
||||
>=x11-libs/libXdamage-1.1.4-r1:=[${MULTILIB_USEDEP}]
|
||||
>=x11-libs/libXext-1.3.2:=[${MULTILIB_USEDEP}]
|
||||
>=x11-libs/libXxf86vm-1.1.3:=[${MULTILIB_USEDEP}]
|
||||
>=x11-libs/libxcb-1.13:=[${MULTILIB_USEDEP}]
|
||||
x11-libs/libXfixes:=[${MULTILIB_USEDEP}]
|
||||
gallium? (
|
||||
unwind? ( sys-libs/libunwind[${MULTILIB_USEDEP}] )
|
||||
llvm? (
|
||||
video_cards_radeonsi? (
|
||||
virtual/libelf:0=[${MULTILIB_USEDEP}]
|
||||
)
|
||||
video_cards_r600? (
|
||||
virtual/libelf:0=[${MULTILIB_USEDEP}]
|
||||
)
|
||||
video_cards_radeon? (
|
||||
virtual/libelf:0=[${MULTILIB_USEDEP}]
|
||||
)
|
||||
)
|
||||
lm_sensors? ( sys-apps/lm_sensors:=[${MULTILIB_USEDEP}] )
|
||||
opencl? (
|
||||
dev-libs/ocl-icd[khronos-headers,${MULTILIB_USEDEP}]
|
||||
dev-libs/libclc
|
||||
virtual/libelf:0=[${MULTILIB_USEDEP}]
|
||||
)
|
||||
vaapi? (
|
||||
>=x11-libs/libva-1.7.3:=[${MULTILIB_USEDEP}]
|
||||
video_cards_nouveau? ( !<=x11-libs/libva-vdpau-driver-0.7.4-r3 )
|
||||
)
|
||||
vdpau? ( >=x11-libs/libvdpau-1.1:=[${MULTILIB_USEDEP}] )
|
||||
xvmc? ( >=x11-libs/libXvMC-1.0.8:=[${MULTILIB_USEDEP}] )
|
||||
)
|
||||
wayland? (
|
||||
>=dev-libs/wayland-1.15.0:=[${MULTILIB_USEDEP}]
|
||||
>=dev-libs/wayland-protocols-1.8
|
||||
)
|
||||
${LIBDRM_DEPSTRING}[video_cards_freedreno?,video_cards_nouveau?,video_cards_vc4?,video_cards_vivante?,video_cards_vmware?,${MULTILIB_USEDEP}]
|
||||
|
||||
video_cards_intel? (
|
||||
!video_cards_i965? ( ${LIBDRM_DEPSTRING}[video_cards_intel] )
|
||||
)
|
||||
video_cards_i915? ( ${LIBDRM_DEPSTRING}[video_cards_intel] )
|
||||
"
|
||||
for card in ${RADEON_CARDS}; do
|
||||
RDEPEND="${RDEPEND}
|
||||
video_cards_${card}? ( ${LIBDRM_DEPSTRING}[video_cards_radeon] )
|
||||
"
|
||||
done
|
||||
RDEPEND="${RDEPEND}
|
||||
video_cards_radeonsi? ( ${LIBDRM_DEPSTRING}[video_cards_amdgpu] )
|
||||
"
|
||||
|
||||
# Please keep the LLVM dependency block separate. Since LLVM is slotted,
|
||||
# we need to *really* make sure we're not pulling one than more slot
|
||||
# simultaneously.
|
||||
#
|
||||
# How to use it:
|
||||
# 1. List all the working slots (with min versions) in ||, newest first.
|
||||
# 2. Update the := to specify *max* version, e.g. < 7.
|
||||
# 3. Specify LLVM_MAX_SLOT, e.g. 6.
|
||||
LLVM_MAX_SLOT="7"
|
||||
LLVM_DEPSTR="
|
||||
|| (
|
||||
sys-devel/llvm:7[${MULTILIB_USEDEP}]
|
||||
)
|
||||
sys-devel/llvm:=[${MULTILIB_USEDEP}]
|
||||
"
|
||||
LLVM_DEPSTR_AMDGPU=${LLVM_DEPSTR//]/,llvm_targets_AMDGPU(-)]}
|
||||
CLANG_DEPSTR=${LLVM_DEPSTR//llvm/clang}
|
||||
CLANG_DEPSTR_AMDGPU=${CLANG_DEPSTR//]/,llvm_targets_AMDGPU(-)]}
|
||||
RDEPEND="${RDEPEND}
|
||||
llvm? (
|
||||
opencl? (
|
||||
video_cards_r600? (
|
||||
${CLANG_DEPSTR_AMDGPU}
|
||||
)
|
||||
!video_cards_r600? (
|
||||
video_cards_radeonsi? (
|
||||
${CLANG_DEPSTR_AMDGPU}
|
||||
)
|
||||
)
|
||||
!video_cards_r600? (
|
||||
!video_cards_radeonsi? (
|
||||
video_cards_radeon? (
|
||||
${CLANG_DEPSTR_AMDGPU}
|
||||
)
|
||||
)
|
||||
)
|
||||
!video_cards_r600? (
|
||||
!video_cards_radeon? (
|
||||
!video_cards_radeonsi? (
|
||||
${CLANG_DEPSTR}
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
!opencl? (
|
||||
video_cards_r600? (
|
||||
${LLVM_DEPSTR_AMDGPU}
|
||||
)
|
||||
!video_cards_r600? (
|
||||
video_cards_radeonsi? (
|
||||
${LLVM_DEPSTR_AMDGPU}
|
||||
)
|
||||
)
|
||||
!video_cards_r600? (
|
||||
!video_cards_radeonsi? (
|
||||
video_cards_radeon? (
|
||||
${LLVM_DEPSTR_AMDGPU}
|
||||
)
|
||||
)
|
||||
)
|
||||
!video_cards_r600? (
|
||||
!video_cards_radeon? (
|
||||
!video_cards_radeonsi? (
|
||||
${LLVM_DEPSTR}
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
"
|
||||
unset {LLVM,CLANG}_DEPSTR{,_AMDGPU}
|
||||
|
||||
DEPEND="${RDEPEND}
|
||||
${PYTHON_DEPS}
|
||||
opencl? (
|
||||
>=sys-devel/gcc-4.6
|
||||
)
|
||||
sys-devel/bison
|
||||
sys-devel/flex
|
||||
sys-devel/gettext
|
||||
virtual/pkgconfig
|
||||
valgrind? ( dev-util/valgrind )
|
||||
x11-base/xorg-proto
|
||||
x11-libs/libXrandr[${MULTILIB_USEDEP}]
|
||||
$(python_gen_any_dep ">=dev-python/mako-0.8.0[\${PYTHON_USEDEP}]")
|
||||
"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
EGIT_CHECKOUT_DIR=${S}
|
||||
|
||||
QA_WX_LOAD="
|
||||
x86? (
|
||||
!pic? (
|
||||
usr/lib*/libglapi.so.0.0.0
|
||||
usr/lib*/libGLESv1_CM.so.1.0.0
|
||||
usr/lib*/libGLESv2.so.2.0.0
|
||||
usr/lib*/libGL.so.1.2.0
|
||||
usr/lib*/libOSMesa.so.8.0.0
|
||||
)
|
||||
)"
|
||||
|
||||
llvm_check_deps() {
|
||||
local flags=${MULTILIB_USEDEP}
|
||||
if use video_cards_r600 || use video_cards_radeon || use video_cards_radeonsi
|
||||
then
|
||||
flags+=",llvm_targets_AMDGPU(-)"
|
||||
fi
|
||||
|
||||
if use opencl; then
|
||||
has_version "sys-devel/clang[${flags}]" || return 1
|
||||
fi
|
||||
has_version "sys-devel/llvm[${flags}]"
|
||||
}
|
||||
|
||||
pkg_pretend() {
|
||||
if use opencl; then
|
||||
if ! use video_cards_r600 &&
|
||||
! use video_cards_radeonsi; then
|
||||
ewarn "Ignoring USE=opencl since VIDEO_CARDS does not contain r600 or radeonsi"
|
||||
fi
|
||||
fi
|
||||
|
||||
if use vaapi; then
|
||||
if ! use video_cards_r600 &&
|
||||
! use video_cards_radeonsi &&
|
||||
! use video_cards_nouveau; then
|
||||
ewarn "Ignoring USE=vaapi since VIDEO_CARDS does not contain r600, radeonsi, or nouveau"
|
||||
fi
|
||||
fi
|
||||
|
||||
if use vdpau; then
|
||||
if ! use video_cards_r300 &&
|
||||
! use video_cards_r600 &&
|
||||
! use video_cards_radeonsi &&
|
||||
! use video_cards_nouveau; then
|
||||
ewarn "Ignoring USE=vdpau since VIDEO_CARDS does not contain r300, r600, radeonsi, or nouveau"
|
||||
fi
|
||||
fi
|
||||
|
||||
if use xa; then
|
||||
if ! use video_cards_freedreno &&
|
||||
! use video_cards_nouveau &&
|
||||
! use video_cards_vmware; then
|
||||
ewarn "Ignoring USE=xa since VIDEO_CARDS does not contain freedreno, nouveau, or vmware"
|
||||
fi
|
||||
fi
|
||||
|
||||
if use xvmc; then
|
||||
if ! use video_cards_r600 &&
|
||||
! use video_cards_nouveau; then
|
||||
ewarn "Ignoring USE=xvmc since VIDEO_CARDS does not contain r600 or nouveau"
|
||||
fi
|
||||
fi
|
||||
|
||||
if ! use gallium; then
|
||||
use lm_sensors && ewarn "Ignoring USE=lm_sensors since USE does not contain gallium"
|
||||
use llvm && ewarn "Ignoring USE=llvm since USE does not contain gallium"
|
||||
use opencl && ewarn "Ignoring USE=opencl since USE does not contain gallium"
|
||||
use vaapi && ewarn "Ignoring USE=vaapi since USE does not contain gallium"
|
||||
use vdpau && ewarn "Ignoring USE=vdpau since USE does not contain gallium"
|
||||
use unwind && ewarn "Ignoring USE=unwind since USE does not contain gallium"
|
||||
use xa && ewarn "Ignoring USE=xa since USE does not contain gallium"
|
||||
use xvmc && ewarn "Ignoring USE=xvmc since USE does not contain gallium"
|
||||
fi
|
||||
|
||||
if ! use llvm; then
|
||||
use opencl && ewarn "Ignoring USE=opencl since USE does not contain llvm"
|
||||
fi
|
||||
}
|
||||
|
||||
python_check_deps() {
|
||||
has_version ">=dev-python/mako-0.8.0[${PYTHON_USEDEP}]"
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
# warning message for bug 459306
|
||||
if use llvm && has_version sys-devel/llvm[!debug=]; then
|
||||
ewarn "Mismatch between debug USE flags in media-libs/mesa and sys-devel/llvm"
|
||||
ewarn "detected! This can cause problems. For details, see bug 459306."
|
||||
fi
|
||||
|
||||
if use llvm; then
|
||||
llvm_pkg_setup
|
||||
fi
|
||||
python-any-r1_pkg_setup
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
local emesonargs=()
|
||||
|
||||
if use classic; then
|
||||
# Intel code
|
||||
dri_driver_enable video_cards_i915 i915
|
||||
dri_driver_enable video_cards_i965 i965
|
||||
if ! use video_cards_i915 && \
|
||||
! use video_cards_i965; then
|
||||
dri_driver_enable video_cards_intel i915 i965
|
||||
fi
|
||||
|
||||
# Nouveau code
|
||||
dri_driver_enable video_cards_nouveau nouveau
|
||||
|
||||
# ATI code
|
||||
dri_driver_enable video_cards_r100 r100
|
||||
dri_driver_enable video_cards_r200 r200
|
||||
if ! use video_cards_r100 && \
|
||||
! use video_cards_r200; then
|
||||
dri_driver_enable video_cards_radeon r100 r200
|
||||
fi
|
||||
fi
|
||||
|
||||
emesonargs+=( -Dplatforms=x11,surfaceless$(use wayland && echo ",wayland")$(use gbm && echo ",drm") )
|
||||
|
||||
if use gallium; then
|
||||
emesonargs+=(
|
||||
$(meson_use llvm)
|
||||
$(meson_use lm_sensors lmsensors)
|
||||
$(meson_use unwind libunwind)
|
||||
)
|
||||
|
||||
if use video_cards_r300 ||
|
||||
use video_cards_r600 ||
|
||||
use video_cards_radeonsi ||
|
||||
use video_cards_nouveau ||
|
||||
use video_cards_vmware; then
|
||||
emesonargs+=($(meson_use d3d9 gallium-nine))
|
||||
else
|
||||
emesonargs+=(-Dgallium-nine=false)
|
||||
fi
|
||||
|
||||
if use video_cards_r600 ||
|
||||
use video_cards_radeonsi ||
|
||||
use video_cards_nouveau; then
|
||||
emesonargs+=($(meson_use vaapi gallium-va))
|
||||
use vaapi && emesonargs+=( -Dva-libs-path="${EPREFIX}"/usr/$(get_libdir)/va/drivers )
|
||||
else
|
||||
emesonargs+=(-Dgallium-va=false)
|
||||
fi
|
||||
|
||||
if use video_cards_r300 ||
|
||||
use video_cards_r600 ||
|
||||
use video_cards_radeonsi ||
|
||||
use video_cards_nouveau; then
|
||||
emesonargs+=($(meson_use vdpau gallium-vdpau))
|
||||
else
|
||||
emesonargs+=(-Dgallium-vdpau=false)
|
||||
fi
|
||||
|
||||
if use video_cards_freedreno ||
|
||||
use video_cards_nouveau ||
|
||||
use video_cards_vmware; then
|
||||
emesonargs+=($(meson_use xa gallium-xa))
|
||||
else
|
||||
emesonargs+=(-Dgallium-xa=false)
|
||||
fi
|
||||
|
||||
if use video_cards_r600 ||
|
||||
use video_cards_nouveau; then
|
||||
emesonargs+=($(meson_use xvmc gallium-xvmc))
|
||||
else
|
||||
emesonargs+=(-Dgallium-xvmc=false)
|
||||
fi
|
||||
|
||||
gallium_enable video_cards_vc4 vc4
|
||||
gallium_enable video_cards_vivante etnaviv
|
||||
gallium_enable video_cards_vmware svga
|
||||
gallium_enable video_cards_nouveau nouveau
|
||||
gallium_enable video_cards_imx imx
|
||||
|
||||
# Only one i915 driver (classic vs gallium). Default to classic.
|
||||
if ! use classic; then
|
||||
gallium_enable video_cards_i915 i915
|
||||
if ! use video_cards_i915 && \
|
||||
! use video_cards_i965; then
|
||||
gallium_enable video_cards_intel i915
|
||||
fi
|
||||
fi
|
||||
|
||||
gallium_enable video_cards_r300 r300
|
||||
gallium_enable video_cards_r600 r600
|
||||
gallium_enable video_cards_radeonsi radeonsi
|
||||
if ! use video_cards_r300 && \
|
||||
! use video_cards_r600; then
|
||||
gallium_enable video_cards_radeon r300 r600
|
||||
fi
|
||||
|
||||
gallium_enable video_cards_freedreno freedreno
|
||||
gallium_enable video_cards_virgl virgl
|
||||
|
||||
# opencl stuff
|
||||
emesonargs+=(
|
||||
-Dgallium-opencl="$(usex opencl icd disabled)"
|
||||
)
|
||||
fi
|
||||
|
||||
if use vulkan; then
|
||||
vulkan_enable video_cards_i965 intel
|
||||
vulkan_enable video_cards_radeonsi amd
|
||||
fi
|
||||
|
||||
# x86 hardened pax_kernel needs glx-rts, bug 240956
|
||||
if [[ ${ABI} == x86 ]]; then
|
||||
emesonargs+=( $(meson_use pax_kernel glx-read-only-text) )
|
||||
fi
|
||||
|
||||
# on abi_x86_32 hardened we need to have asm disable
|
||||
if [[ ${ABI} == x86* ]] && use pic; then
|
||||
emesonargs+=( -Dasm=false )
|
||||
fi
|
||||
|
||||
if use gallium; then
|
||||
gallium_enable -- swrast
|
||||
emesonargs+=( -Dosmesa=$(usex osmesa gallium none) )
|
||||
else
|
||||
dri_driver_enable -- swrast
|
||||
emesonargs+=( -Dosmesa=$(usex osmesa classic none) )
|
||||
fi
|
||||
|
||||
driver_list() {
|
||||
local drivers="$(sort -u <<< "${1// /$'\n'}")"
|
||||
echo "${drivers//$'\n'/,}"
|
||||
}
|
||||
|
||||
emesonargs+=(
|
||||
$(meson_use test build-tests)
|
||||
-Dglx=dri
|
||||
-Dshared-glapi=true
|
||||
$(meson_use dri3)
|
||||
$(meson_use egl)
|
||||
$(meson_use gbm)
|
||||
$(meson_use gles1)
|
||||
$(meson_use gles2)
|
||||
$(meson_use selinux)
|
||||
-Dvalgrind=$(usex valgrind auto false)
|
||||
-Ddri-drivers=$(driver_list "${DRI_DRIVERS[*]}")
|
||||
-Dgallium-drivers=$(driver_list "${GALLIUM_DRIVERS[*]}")
|
||||
-Dvulkan-drivers=$(driver_list "${VULKAN_DRIVERS[*]}")
|
||||
--buildtype $(usex debug debug plain)
|
||||
-Db_ndebug=$(usex debug false true)
|
||||
)
|
||||
meson_src_configure
|
||||
}
|
||||
|
||||
multilib_src_compile() {
|
||||
meson_src_compile
|
||||
}
|
||||
|
||||
multilib_src_install() {
|
||||
meson_src_install
|
||||
}
|
||||
|
||||
multilib_src_install_all() {
|
||||
einstalldocs
|
||||
}
|
||||
|
||||
multilib_src_test() {
|
||||
meson_src_test
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
# Switch to the xorg implementation.
|
||||
echo
|
||||
eselect opengl set --use-old ${OPENGL_DIR}
|
||||
}
|
||||
|
||||
# $1 - VIDEO_CARDS flag (check skipped for "--")
|
||||
# other args - names of DRI drivers to enable
|
||||
dri_driver_enable() {
|
||||
if [[ $1 == -- ]] || use $1; then
|
||||
shift
|
||||
DRI_DRIVERS+=("$@")
|
||||
fi
|
||||
}
|
||||
|
||||
gallium_enable() {
|
||||
if [[ $1 == -- ]] || use $1; then
|
||||
shift
|
||||
GALLIUM_DRIVERS+=("$@")
|
||||
fi
|
||||
}
|
||||
|
||||
vulkan_enable() {
|
||||
if [[ $1 == -- ]] || use $1; then
|
||||
shift
|
||||
VULKAN_DRIVERS+=("$@")
|
||||
fi
|
||||
}
|
@ -1,515 +0,0 @@
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=( python3_4 python3_5 python3_6 python3_7 )
|
||||
|
||||
inherit llvm meson multilib-minimal pax-utils python-any-r1
|
||||
|
||||
OPENGL_DIR="xorg-x11"
|
||||
|
||||
MY_P="${P/_/-}"
|
||||
|
||||
DESCRIPTION="OpenGL-like graphic library for Linux"
|
||||
HOMEPAGE="https://www.mesa3d.org/ https://mesa.freedesktop.org/"
|
||||
|
||||
if [[ ${PV} == 9999 ]]; then
|
||||
EGIT_REPO_URI="https://gitlab.freedesktop.org/mesa/mesa.git"
|
||||
EXPERIMENTAL="true"
|
||||
inherit git-r3
|
||||
else
|
||||
SRC_URI="https://mesa.freedesktop.org/archive/${MY_P}.tar.xz"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~sparc-solaris ~x64-solaris ~x86-solaris"
|
||||
fi
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
RESTRICT="
|
||||
!test? ( test )
|
||||
"
|
||||
|
||||
RADEON_CARDS="r100 r200 r300 r600 radeon radeonsi"
|
||||
VIDEO_CARDS="${RADEON_CARDS} freedreno i915 i965 imx intel nouveau vc4 virgl vivante vmware"
|
||||
for card in ${VIDEO_CARDS}; do
|
||||
IUSE_VIDEO_CARDS+=" video_cards_${card}"
|
||||
done
|
||||
|
||||
IUSE="${IUSE_VIDEO_CARDS}
|
||||
+classic d3d9 debug +dri3 +egl +gallium +gbm gles1 gles2 +llvm lm_sensors
|
||||
opencl osmesa pax_kernel pic selinux test unwind vaapi valgrind vdpau
|
||||
vulkan wayland xa xvmc"
|
||||
|
||||
REQUIRED_USE="
|
||||
d3d9? ( dri3 || ( video_cards_r300 video_cards_r600 video_cards_radeonsi video_cards_nouveau video_cards_vmware ) )
|
||||
gles1? ( egl )
|
||||
gles2? ( egl )
|
||||
vulkan? ( dri3
|
||||
|| ( video_cards_i965 video_cards_radeonsi )
|
||||
video_cards_radeonsi? ( llvm ) )
|
||||
wayland? ( egl gbm )
|
||||
video_cards_freedreno? ( gallium )
|
||||
video_cards_intel? ( classic )
|
||||
video_cards_i915? ( || ( classic gallium ) )
|
||||
video_cards_i965? ( classic )
|
||||
video_cards_imx? ( gallium video_cards_vivante )
|
||||
video_cards_nouveau? ( || ( classic gallium ) )
|
||||
video_cards_radeon? ( || ( classic gallium )
|
||||
gallium? ( x86? ( llvm ) amd64? ( llvm ) ) )
|
||||
video_cards_r100? ( classic )
|
||||
video_cards_r200? ( classic )
|
||||
video_cards_r300? ( gallium x86? ( llvm ) amd64? ( llvm ) )
|
||||
video_cards_r600? ( gallium )
|
||||
video_cards_radeonsi? ( gallium llvm )
|
||||
video_cards_vc4? ( gallium )
|
||||
video_cards_virgl? ( gallium )
|
||||
video_cards_vivante? ( gallium gbm )
|
||||
video_cards_vmware? ( gallium )
|
||||
"
|
||||
|
||||
LIBDRM_DEPSTRING=">=x11-libs/libdrm-2.4.97"
|
||||
RDEPEND="
|
||||
!app-eselect/eselect-mesa
|
||||
>=app-eselect/eselect-opengl-1.3.0
|
||||
>=dev-libs/expat-2.1.0-r3:=[${MULTILIB_USEDEP}]
|
||||
>=sys-libs/zlib-1.2.8[${MULTILIB_USEDEP}]
|
||||
>=x11-libs/libX11-1.6.2:=[${MULTILIB_USEDEP}]
|
||||
>=x11-libs/libxshmfence-1.1:=[${MULTILIB_USEDEP}]
|
||||
>=x11-libs/libXdamage-1.1.4-r1:=[${MULTILIB_USEDEP}]
|
||||
>=x11-libs/libXext-1.3.2:=[${MULTILIB_USEDEP}]
|
||||
>=x11-libs/libXxf86vm-1.1.3:=[${MULTILIB_USEDEP}]
|
||||
>=x11-libs/libxcb-1.13:=[${MULTILIB_USEDEP}]
|
||||
x11-libs/libXfixes:=[${MULTILIB_USEDEP}]
|
||||
gallium? (
|
||||
unwind? ( sys-libs/libunwind[${MULTILIB_USEDEP}] )
|
||||
llvm? (
|
||||
video_cards_radeonsi? (
|
||||
virtual/libelf:0=[${MULTILIB_USEDEP}]
|
||||
)
|
||||
video_cards_r600? (
|
||||
virtual/libelf:0=[${MULTILIB_USEDEP}]
|
||||
)
|
||||
video_cards_radeon? (
|
||||
virtual/libelf:0=[${MULTILIB_USEDEP}]
|
||||
)
|
||||
)
|
||||
lm_sensors? ( sys-apps/lm_sensors:=[${MULTILIB_USEDEP}] )
|
||||
opencl? (
|
||||
dev-libs/ocl-icd[khronos-headers,${MULTILIB_USEDEP}]
|
||||
dev-libs/libclc
|
||||
virtual/libelf:0=[${MULTILIB_USEDEP}]
|
||||
)
|
||||
vaapi? (
|
||||
>=x11-libs/libva-1.7.3:=[${MULTILIB_USEDEP}]
|
||||
video_cards_nouveau? ( !<=x11-libs/libva-vdpau-driver-0.7.4-r3 )
|
||||
)
|
||||
vdpau? ( >=x11-libs/libvdpau-1.1:=[${MULTILIB_USEDEP}] )
|
||||
xvmc? ( >=x11-libs/libXvMC-1.0.8:=[${MULTILIB_USEDEP}] )
|
||||
)
|
||||
wayland? (
|
||||
>=dev-libs/wayland-1.15.0:=[${MULTILIB_USEDEP}]
|
||||
>=dev-libs/wayland-protocols-1.8
|
||||
)
|
||||
${LIBDRM_DEPSTRING}[video_cards_freedreno?,video_cards_nouveau?,video_cards_vc4?,video_cards_vivante?,video_cards_vmware?,${MULTILIB_USEDEP}]
|
||||
|
||||
video_cards_intel? (
|
||||
!video_cards_i965? ( ${LIBDRM_DEPSTRING}[video_cards_intel] )
|
||||
)
|
||||
video_cards_i915? ( ${LIBDRM_DEPSTRING}[video_cards_intel] )
|
||||
"
|
||||
for card in ${RADEON_CARDS}; do
|
||||
RDEPEND="${RDEPEND}
|
||||
video_cards_${card}? ( ${LIBDRM_DEPSTRING}[video_cards_radeon] )
|
||||
"
|
||||
done
|
||||
RDEPEND="${RDEPEND}
|
||||
video_cards_radeonsi? ( ${LIBDRM_DEPSTRING}[video_cards_amdgpu] )
|
||||
"
|
||||
|
||||
# Please keep the LLVM dependency block separate. Since LLVM is slotted,
|
||||
# we need to *really* make sure we're not pulling one than more slot
|
||||
# simultaneously.
|
||||
#
|
||||
# How to use it:
|
||||
# 1. List all the working slots (with min versions) in ||, newest first.
|
||||
# 2. Update the := to specify *max* version, e.g. < 7.
|
||||
# 3. Specify LLVM_MAX_SLOT, e.g. 6.
|
||||
LLVM_MAX_SLOT="7"
|
||||
LLVM_DEPSTR="
|
||||
|| (
|
||||
sys-devel/llvm:7[${MULTILIB_USEDEP}]
|
||||
)
|
||||
sys-devel/llvm:=[${MULTILIB_USEDEP}]
|
||||
"
|
||||
LLVM_DEPSTR_AMDGPU=${LLVM_DEPSTR//]/,llvm_targets_AMDGPU(-)]}
|
||||
CLANG_DEPSTR=${LLVM_DEPSTR//llvm/clang}
|
||||
CLANG_DEPSTR_AMDGPU=${CLANG_DEPSTR//]/,llvm_targets_AMDGPU(-)]}
|
||||
RDEPEND="${RDEPEND}
|
||||
llvm? (
|
||||
opencl? (
|
||||
video_cards_r600? (
|
||||
${CLANG_DEPSTR_AMDGPU}
|
||||
)
|
||||
!video_cards_r600? (
|
||||
video_cards_radeonsi? (
|
||||
${CLANG_DEPSTR_AMDGPU}
|
||||
)
|
||||
)
|
||||
!video_cards_r600? (
|
||||
!video_cards_radeonsi? (
|
||||
video_cards_radeon? (
|
||||
${CLANG_DEPSTR_AMDGPU}
|
||||
)
|
||||
)
|
||||
)
|
||||
!video_cards_r600? (
|
||||
!video_cards_radeon? (
|
||||
!video_cards_radeonsi? (
|
||||
${CLANG_DEPSTR}
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
!opencl? (
|
||||
video_cards_r600? (
|
||||
${LLVM_DEPSTR_AMDGPU}
|
||||
)
|
||||
!video_cards_r600? (
|
||||
video_cards_radeonsi? (
|
||||
${LLVM_DEPSTR_AMDGPU}
|
||||
)
|
||||
)
|
||||
!video_cards_r600? (
|
||||
!video_cards_radeonsi? (
|
||||
video_cards_radeon? (
|
||||
${LLVM_DEPSTR_AMDGPU}
|
||||
)
|
||||
)
|
||||
)
|
||||
!video_cards_r600? (
|
||||
!video_cards_radeon? (
|
||||
!video_cards_radeonsi? (
|
||||
${LLVM_DEPSTR}
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
"
|
||||
unset {LLVM,CLANG}_DEPSTR{,_AMDGPU}
|
||||
|
||||
DEPEND="${RDEPEND}
|
||||
${PYTHON_DEPS}
|
||||
opencl? (
|
||||
>=sys-devel/gcc-4.6
|
||||
)
|
||||
sys-devel/bison
|
||||
sys-devel/flex
|
||||
sys-devel/gettext
|
||||
virtual/pkgconfig
|
||||
valgrind? ( dev-util/valgrind )
|
||||
x11-base/xorg-proto
|
||||
x11-libs/libXrandr[${MULTILIB_USEDEP}]
|
||||
$(python_gen_any_dep ">=dev-python/mako-0.8.0[\${PYTHON_USEDEP}]")
|
||||
"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
EGIT_CHECKOUT_DIR=${S}
|
||||
|
||||
QA_WX_LOAD="
|
||||
x86? (
|
||||
!pic? (
|
||||
usr/lib*/libglapi.so.0.0.0
|
||||
usr/lib*/libGLESv1_CM.so.1.0.0
|
||||
usr/lib*/libGLESv2.so.2.0.0
|
||||
usr/lib*/libGL.so.1.2.0
|
||||
usr/lib*/libOSMesa.so.8.0.0
|
||||
)
|
||||
)"
|
||||
|
||||
llvm_check_deps() {
|
||||
local flags=${MULTILIB_USEDEP}
|
||||
if use video_cards_r600 || use video_cards_radeon || use video_cards_radeonsi
|
||||
then
|
||||
flags+=",llvm_targets_AMDGPU(-)"
|
||||
fi
|
||||
|
||||
if use opencl; then
|
||||
has_version "sys-devel/clang[${flags}]" || return 1
|
||||
fi
|
||||
has_version "sys-devel/llvm[${flags}]"
|
||||
}
|
||||
|
||||
pkg_pretend() {
|
||||
if use opencl; then
|
||||
if ! use video_cards_r600 &&
|
||||
! use video_cards_radeonsi; then
|
||||
ewarn "Ignoring USE=opencl since VIDEO_CARDS does not contain r600 or radeonsi"
|
||||
fi
|
||||
fi
|
||||
|
||||
if use vaapi; then
|
||||
if ! use video_cards_r600 &&
|
||||
! use video_cards_radeonsi &&
|
||||
! use video_cards_nouveau; then
|
||||
ewarn "Ignoring USE=vaapi since VIDEO_CARDS does not contain r600, radeonsi, or nouveau"
|
||||
fi
|
||||
fi
|
||||
|
||||
if use vdpau; then
|
||||
if ! use video_cards_r300 &&
|
||||
! use video_cards_r600 &&
|
||||
! use video_cards_radeonsi &&
|
||||
! use video_cards_nouveau; then
|
||||
ewarn "Ignoring USE=vdpau since VIDEO_CARDS does not contain r300, r600, radeonsi, or nouveau"
|
||||
fi
|
||||
fi
|
||||
|
||||
if use xa; then
|
||||
if ! use video_cards_freedreno &&
|
||||
! use video_cards_nouveau &&
|
||||
! use video_cards_vmware; then
|
||||
ewarn "Ignoring USE=xa since VIDEO_CARDS does not contain freedreno, nouveau, or vmware"
|
||||
fi
|
||||
fi
|
||||
|
||||
if use xvmc; then
|
||||
if ! use video_cards_r600 &&
|
||||
! use video_cards_nouveau; then
|
||||
ewarn "Ignoring USE=xvmc since VIDEO_CARDS does not contain r600 or nouveau"
|
||||
fi
|
||||
fi
|
||||
|
||||
if ! use gallium; then
|
||||
use lm_sensors && ewarn "Ignoring USE=lm_sensors since USE does not contain gallium"
|
||||
use llvm && ewarn "Ignoring USE=llvm since USE does not contain gallium"
|
||||
use opencl && ewarn "Ignoring USE=opencl since USE does not contain gallium"
|
||||
use vaapi && ewarn "Ignoring USE=vaapi since USE does not contain gallium"
|
||||
use vdpau && ewarn "Ignoring USE=vdpau since USE does not contain gallium"
|
||||
use unwind && ewarn "Ignoring USE=unwind since USE does not contain gallium"
|
||||
use xa && ewarn "Ignoring USE=xa since USE does not contain gallium"
|
||||
use xvmc && ewarn "Ignoring USE=xvmc since USE does not contain gallium"
|
||||
fi
|
||||
|
||||
if ! use llvm; then
|
||||
use opencl && ewarn "Ignoring USE=opencl since USE does not contain llvm"
|
||||
fi
|
||||
}
|
||||
|
||||
python_check_deps() {
|
||||
has_version ">=dev-python/mako-0.8.0[${PYTHON_USEDEP}]"
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
# warning message for bug 459306
|
||||
if use llvm && has_version sys-devel/llvm[!debug=]; then
|
||||
ewarn "Mismatch between debug USE flags in media-libs/mesa and sys-devel/llvm"
|
||||
ewarn "detected! This can cause problems. For details, see bug 459306."
|
||||
fi
|
||||
|
||||
if use llvm; then
|
||||
llvm_pkg_setup
|
||||
fi
|
||||
python-any-r1_pkg_setup
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
local emesonargs=()
|
||||
|
||||
if use classic; then
|
||||
# Intel code
|
||||
dri_driver_enable video_cards_i915 i915
|
||||
dri_driver_enable video_cards_i965 i965
|
||||
if ! use video_cards_i915 && \
|
||||
! use video_cards_i965; then
|
||||
dri_driver_enable video_cards_intel i915 i965
|
||||
fi
|
||||
|
||||
# Nouveau code
|
||||
dri_driver_enable video_cards_nouveau nouveau
|
||||
|
||||
# ATI code
|
||||
dri_driver_enable video_cards_r100 r100
|
||||
dri_driver_enable video_cards_r200 r200
|
||||
if ! use video_cards_r100 && \
|
||||
! use video_cards_r200; then
|
||||
dri_driver_enable video_cards_radeon r100 r200
|
||||
fi
|
||||
fi
|
||||
|
||||
emesonargs+=( -Dplatforms=x11,surfaceless$(use wayland && echo ",wayland")$(use gbm && echo ",drm") )
|
||||
|
||||
if use gallium; then
|
||||
emesonargs+=(
|
||||
$(meson_use llvm)
|
||||
$(meson_use lm_sensors lmsensors)
|
||||
$(meson_use unwind libunwind)
|
||||
)
|
||||
|
||||
if use video_cards_r300 ||
|
||||
use video_cards_r600 ||
|
||||
use video_cards_radeonsi ||
|
||||
use video_cards_nouveau ||
|
||||
use video_cards_vmware; then
|
||||
emesonargs+=($(meson_use d3d9 gallium-nine))
|
||||
else
|
||||
emesonargs+=(-Dgallium-nine=false)
|
||||
fi
|
||||
|
||||
if use video_cards_r600 ||
|
||||
use video_cards_radeonsi ||
|
||||
use video_cards_nouveau; then
|
||||
emesonargs+=($(meson_use vaapi gallium-va))
|
||||
use vaapi && emesonargs+=( -Dva-libs-path="${EPREFIX}"/usr/$(get_libdir)/va/drivers )
|
||||
else
|
||||
emesonargs+=(-Dgallium-va=false)
|
||||
fi
|
||||
|
||||
if use video_cards_r300 ||
|
||||
use video_cards_r600 ||
|
||||
use video_cards_radeonsi ||
|
||||
use video_cards_nouveau; then
|
||||
emesonargs+=($(meson_use vdpau gallium-vdpau))
|
||||
else
|
||||
emesonargs+=(-Dgallium-vdpau=false)
|
||||
fi
|
||||
|
||||
if use video_cards_freedreno ||
|
||||
use video_cards_nouveau ||
|
||||
use video_cards_vmware; then
|
||||
emesonargs+=($(meson_use xa gallium-xa))
|
||||
else
|
||||
emesonargs+=(-Dgallium-xa=false)
|
||||
fi
|
||||
|
||||
if use video_cards_r600 ||
|
||||
use video_cards_nouveau; then
|
||||
emesonargs+=($(meson_use xvmc gallium-xvmc))
|
||||
else
|
||||
emesonargs+=(-Dgallium-xvmc=false)
|
||||
fi
|
||||
|
||||
gallium_enable video_cards_vc4 vc4
|
||||
gallium_enable video_cards_vivante etnaviv
|
||||
gallium_enable video_cards_vmware svga
|
||||
gallium_enable video_cards_nouveau nouveau
|
||||
gallium_enable video_cards_imx imx
|
||||
|
||||
# Only one i915 driver (classic vs gallium). Default to classic.
|
||||
if ! use classic; then
|
||||
gallium_enable video_cards_i915 i915
|
||||
if ! use video_cards_i915 && \
|
||||
! use video_cards_i965; then
|
||||
gallium_enable video_cards_intel i915
|
||||
fi
|
||||
fi
|
||||
|
||||
gallium_enable video_cards_r300 r300
|
||||
gallium_enable video_cards_r600 r600
|
||||
gallium_enable video_cards_radeonsi radeonsi
|
||||
if ! use video_cards_r300 && \
|
||||
! use video_cards_r600; then
|
||||
gallium_enable video_cards_radeon r300 r600
|
||||
fi
|
||||
|
||||
gallium_enable video_cards_freedreno freedreno
|
||||
gallium_enable video_cards_virgl virgl
|
||||
|
||||
# opencl stuff
|
||||
emesonargs+=(
|
||||
-Dgallium-opencl="$(usex opencl icd disabled)"
|
||||
)
|
||||
fi
|
||||
|
||||
if use vulkan; then
|
||||
vulkan_enable video_cards_i965 intel
|
||||
vulkan_enable video_cards_radeonsi amd
|
||||
fi
|
||||
|
||||
# x86 hardened pax_kernel needs glx-rts, bug 240956
|
||||
if [[ ${ABI} == x86 ]]; then
|
||||
emesonargs+=( $(meson_use pax_kernel glx-read-only-text) )
|
||||
fi
|
||||
|
||||
# on abi_x86_32 hardened we need to have asm disable
|
||||
if [[ ${ABI} == x86* ]] && use pic; then
|
||||
emesonargs+=( -Dasm=false )
|
||||
fi
|
||||
|
||||
if use gallium; then
|
||||
gallium_enable -- swrast
|
||||
emesonargs+=( -Dosmesa=$(usex osmesa gallium none) )
|
||||
else
|
||||
dri_driver_enable -- swrast
|
||||
emesonargs+=( -Dosmesa=$(usex osmesa classic none) )
|
||||
fi
|
||||
|
||||
driver_list() {
|
||||
local drivers="$(sort -u <<< "${1// /$'\n'}")"
|
||||
echo "${drivers//$'\n'/,}"
|
||||
}
|
||||
|
||||
emesonargs+=(
|
||||
$(meson_use test build-tests)
|
||||
-Dglx=dri
|
||||
-Dshared-glapi=true
|
||||
$(meson_use dri3)
|
||||
$(meson_use egl)
|
||||
$(meson_use gbm)
|
||||
$(meson_use gles1)
|
||||
$(meson_use gles2)
|
||||
$(meson_use selinux)
|
||||
-Dvalgrind=$(usex valgrind auto false)
|
||||
-Ddri-drivers=$(driver_list "${DRI_DRIVERS[*]}")
|
||||
-Dgallium-drivers=$(driver_list "${GALLIUM_DRIVERS[*]}")
|
||||
-Dvulkan-drivers=$(driver_list "${VULKAN_DRIVERS[*]}")
|
||||
--buildtype $(usex debug debug plain)
|
||||
-Db_ndebug=$(usex debug false true)
|
||||
)
|
||||
meson_src_configure
|
||||
}
|
||||
|
||||
multilib_src_compile() {
|
||||
meson_src_compile
|
||||
}
|
||||
|
||||
multilib_src_install() {
|
||||
meson_src_install
|
||||
}
|
||||
|
||||
multilib_src_install_all() {
|
||||
einstalldocs
|
||||
}
|
||||
|
||||
multilib_src_test() {
|
||||
meson_src_test
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
# Switch to the xorg implementation.
|
||||
echo
|
||||
eselect opengl set --use-old ${OPENGL_DIR}
|
||||
}
|
||||
|
||||
# $1 - VIDEO_CARDS flag (check skipped for "--")
|
||||
# other args - names of DRI drivers to enable
|
||||
dri_driver_enable() {
|
||||
if [[ $1 == -- ]] || use $1; then
|
||||
shift
|
||||
DRI_DRIVERS+=("$@")
|
||||
fi
|
||||
}
|
||||
|
||||
gallium_enable() {
|
||||
if [[ $1 == -- ]] || use $1; then
|
||||
shift
|
||||
GALLIUM_DRIVERS+=("$@")
|
||||
fi
|
||||
}
|
||||
|
||||
vulkan_enable() {
|
||||
if [[ $1 == -- ]] || use $1; then
|
||||
shift
|
||||
VULKAN_DRIVERS+=("$@")
|
||||
fi
|
||||
}
|
@ -1,524 +0,0 @@
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=( python3_4 python3_5 python3_6 python3_7 )
|
||||
|
||||
inherit llvm meson multilib-minimal pax-utils python-any-r1
|
||||
|
||||
OPENGL_DIR="xorg-x11"
|
||||
|
||||
MY_P="${P/_/-}"
|
||||
|
||||
DESCRIPTION="OpenGL-like graphic library for Linux"
|
||||
HOMEPAGE="https://www.mesa3d.org/ https://mesa.freedesktop.org/"
|
||||
|
||||
if [[ ${PV} == 9999 ]]; then
|
||||
EGIT_REPO_URI="https://gitlab.freedesktop.org/mesa/mesa.git"
|
||||
EXPERIMENTAL="true"
|
||||
inherit git-r3
|
||||
else
|
||||
SRC_URI="https://mesa.freedesktop.org/archive/${MY_P}.tar.xz"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~sparc-solaris ~x64-solaris ~x86-solaris"
|
||||
fi
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
RESTRICT="
|
||||
!test? ( test )
|
||||
"
|
||||
|
||||
RADEON_CARDS="r100 r200 r300 r600 radeon radeonsi"
|
||||
VIDEO_CARDS="${RADEON_CARDS} freedreno i915 i965 imx intel nouveau vc4 virgl vivante vmware"
|
||||
for card in ${VIDEO_CARDS}; do
|
||||
IUSE_VIDEO_CARDS+=" video_cards_${card}"
|
||||
done
|
||||
|
||||
IUSE="${IUSE_VIDEO_CARDS}
|
||||
+classic d3d9 debug +dri3 +egl +gallium +gbm gles1 gles2 +libglvnd +llvm
|
||||
lm_sensors opencl osmesa pax_kernel pic selinux test unwind vaapi valgrind
|
||||
vdpau vulkan wayland xa xvmc"
|
||||
|
||||
REQUIRED_USE="
|
||||
d3d9? ( dri3 || ( video_cards_r300 video_cards_r600 video_cards_radeonsi video_cards_nouveau video_cards_vmware ) )
|
||||
gles1? ( egl )
|
||||
gles2? ( egl )
|
||||
vulkan? ( dri3
|
||||
|| ( video_cards_i965 video_cards_radeonsi )
|
||||
video_cards_radeonsi? ( llvm ) )
|
||||
wayland? ( egl gbm )
|
||||
video_cards_freedreno? ( gallium )
|
||||
video_cards_intel? ( classic )
|
||||
video_cards_i915? ( || ( classic gallium ) )
|
||||
video_cards_i965? ( classic )
|
||||
video_cards_imx? ( gallium video_cards_vivante )
|
||||
video_cards_nouveau? ( || ( classic gallium ) )
|
||||
video_cards_radeon? ( || ( classic gallium )
|
||||
gallium? ( x86? ( llvm ) amd64? ( llvm ) ) )
|
||||
video_cards_r100? ( classic )
|
||||
video_cards_r200? ( classic )
|
||||
video_cards_r300? ( gallium x86? ( llvm ) amd64? ( llvm ) )
|
||||
video_cards_r600? ( gallium )
|
||||
video_cards_radeonsi? ( gallium llvm )
|
||||
video_cards_vc4? ( gallium )
|
||||
video_cards_virgl? ( gallium )
|
||||
video_cards_vivante? ( gallium gbm )
|
||||
video_cards_vmware? ( gallium )
|
||||
"
|
||||
|
||||
LIBDRM_DEPSTRING=">=x11-libs/libdrm-2.4.97"
|
||||
RDEPEND="
|
||||
!app-eselect/eselect-mesa
|
||||
>=dev-libs/expat-2.1.0-r3:=[${MULTILIB_USEDEP}]
|
||||
>=sys-libs/zlib-1.2.8[${MULTILIB_USEDEP}]
|
||||
>=x11-libs/libX11-1.6.2:=[${MULTILIB_USEDEP}]
|
||||
>=x11-libs/libxshmfence-1.1:=[${MULTILIB_USEDEP}]
|
||||
>=x11-libs/libXdamage-1.1.4-r1:=[${MULTILIB_USEDEP}]
|
||||
>=x11-libs/libXext-1.3.2:=[${MULTILIB_USEDEP}]
|
||||
>=x11-libs/libXxf86vm-1.1.3:=[${MULTILIB_USEDEP}]
|
||||
>=x11-libs/libxcb-1.13:=[${MULTILIB_USEDEP}]
|
||||
x11-libs/libXfixes:=[${MULTILIB_USEDEP}]
|
||||
libglvnd? (
|
||||
media-libs/libglvnd
|
||||
!app-eselect/eselect-opengl
|
||||
)
|
||||
!libglvnd? (
|
||||
>=app-eselect/eselect-opengl-1.3.0
|
||||
)
|
||||
gallium? (
|
||||
unwind? ( sys-libs/libunwind[${MULTILIB_USEDEP}] )
|
||||
llvm? (
|
||||
video_cards_radeonsi? (
|
||||
virtual/libelf:0=[${MULTILIB_USEDEP}]
|
||||
)
|
||||
video_cards_r600? (
|
||||
virtual/libelf:0=[${MULTILIB_USEDEP}]
|
||||
)
|
||||
video_cards_radeon? (
|
||||
virtual/libelf:0=[${MULTILIB_USEDEP}]
|
||||
)
|
||||
)
|
||||
lm_sensors? ( sys-apps/lm_sensors:=[${MULTILIB_USEDEP}] )
|
||||
opencl? (
|
||||
dev-libs/ocl-icd[khronos-headers,${MULTILIB_USEDEP}]
|
||||
dev-libs/libclc
|
||||
virtual/libelf:0=[${MULTILIB_USEDEP}]
|
||||
)
|
||||
vaapi? (
|
||||
>=x11-libs/libva-1.7.3:=[${MULTILIB_USEDEP}]
|
||||
video_cards_nouveau? ( !<=x11-libs/libva-vdpau-driver-0.7.4-r3 )
|
||||
)
|
||||
vdpau? ( >=x11-libs/libvdpau-1.1:=[${MULTILIB_USEDEP}] )
|
||||
xvmc? ( >=x11-libs/libXvMC-1.0.8:=[${MULTILIB_USEDEP}] )
|
||||
)
|
||||
wayland? (
|
||||
>=dev-libs/wayland-1.15.0:=[${MULTILIB_USEDEP}]
|
||||
>=dev-libs/wayland-protocols-1.8
|
||||
)
|
||||
${LIBDRM_DEPSTRING}[video_cards_freedreno?,video_cards_nouveau?,video_cards_vc4?,video_cards_vivante?,video_cards_vmware?,${MULTILIB_USEDEP}]
|
||||
|
||||
video_cards_intel? (
|
||||
!video_cards_i965? ( ${LIBDRM_DEPSTRING}[video_cards_intel] )
|
||||
)
|
||||
video_cards_i915? ( ${LIBDRM_DEPSTRING}[video_cards_intel] )
|
||||
"
|
||||
for card in ${RADEON_CARDS}; do
|
||||
RDEPEND="${RDEPEND}
|
||||
video_cards_${card}? ( ${LIBDRM_DEPSTRING}[video_cards_radeon] )
|
||||
"
|
||||
done
|
||||
RDEPEND="${RDEPEND}
|
||||
video_cards_radeonsi? ( ${LIBDRM_DEPSTRING}[video_cards_amdgpu] )
|
||||
"
|
||||
|
||||
# Please keep the LLVM dependency block separate. Since LLVM is slotted,
|
||||
# we need to *really* make sure we're not pulling one than more slot
|
||||
# simultaneously.
|
||||
#
|
||||
# How to use it:
|
||||
# 1. List all the working slots (with min versions) in ||, newest first.
|
||||
# 2. Update the := to specify *max* version, e.g. < 7.
|
||||
# 3. Specify LLVM_MAX_SLOT, e.g. 6.
|
||||
LLVM_MAX_SLOT="7"
|
||||
LLVM_DEPSTR="
|
||||
|| (
|
||||
sys-devel/llvm:7[${MULTILIB_USEDEP}]
|
||||
)
|
||||
sys-devel/llvm:=[${MULTILIB_USEDEP}]
|
||||
"
|
||||
LLVM_DEPSTR_AMDGPU=${LLVM_DEPSTR//]/,llvm_targets_AMDGPU(-)]}
|
||||
CLANG_DEPSTR=${LLVM_DEPSTR//llvm/clang}
|
||||
CLANG_DEPSTR_AMDGPU=${CLANG_DEPSTR//]/,llvm_targets_AMDGPU(-)]}
|
||||
RDEPEND="${RDEPEND}
|
||||
llvm? (
|
||||
opencl? (
|
||||
video_cards_r600? (
|
||||
${CLANG_DEPSTR_AMDGPU}
|
||||
)
|
||||
!video_cards_r600? (
|
||||
video_cards_radeonsi? (
|
||||
${CLANG_DEPSTR_AMDGPU}
|
||||
)
|
||||
)
|
||||
!video_cards_r600? (
|
||||
!video_cards_radeonsi? (
|
||||
video_cards_radeon? (
|
||||
${CLANG_DEPSTR_AMDGPU}
|
||||
)
|
||||
)
|
||||
)
|
||||
!video_cards_r600? (
|
||||
!video_cards_radeon? (
|
||||
!video_cards_radeonsi? (
|
||||
${CLANG_DEPSTR}
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
!opencl? (
|
||||
video_cards_r600? (
|
||||
${LLVM_DEPSTR_AMDGPU}
|
||||
)
|
||||
!video_cards_r600? (
|
||||
video_cards_radeonsi? (
|
||||
${LLVM_DEPSTR_AMDGPU}
|
||||
)
|
||||
)
|
||||
!video_cards_r600? (
|
||||
!video_cards_radeonsi? (
|
||||
video_cards_radeon? (
|
||||
${LLVM_DEPSTR_AMDGPU}
|
||||
)
|
||||
)
|
||||
)
|
||||
!video_cards_r600? (
|
||||
!video_cards_radeon? (
|
||||
!video_cards_radeonsi? (
|
||||
${LLVM_DEPSTR}
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
"
|
||||
unset {LLVM,CLANG}_DEPSTR{,_AMDGPU}
|
||||
|
||||
DEPEND="${RDEPEND}
|
||||
${PYTHON_DEPS}
|
||||
opencl? (
|
||||
>=sys-devel/gcc-4.6
|
||||
)
|
||||
sys-devel/bison
|
||||
sys-devel/flex
|
||||
sys-devel/gettext
|
||||
virtual/pkgconfig
|
||||
valgrind? ( dev-util/valgrind )
|
||||
x11-base/xorg-proto
|
||||
x11-libs/libXrandr[${MULTILIB_USEDEP}]
|
||||
$(python_gen_any_dep ">=dev-python/mako-0.8.0[\${PYTHON_USEDEP}]")
|
||||
"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
EGIT_CHECKOUT_DIR=${S}
|
||||
|
||||
QA_WX_LOAD="
|
||||
x86? (
|
||||
!pic? (
|
||||
usr/lib*/libglapi.so.0.0.0
|
||||
usr/lib*/libGLESv1_CM.so.1.0.0
|
||||
usr/lib*/libGLESv2.so.2.0.0
|
||||
usr/lib*/libGL.so.1.2.0
|
||||
usr/lib*/libOSMesa.so.8.0.0
|
||||
)
|
||||
)"
|
||||
|
||||
llvm_check_deps() {
|
||||
local flags=${MULTILIB_USEDEP}
|
||||
if use video_cards_r600 || use video_cards_radeon || use video_cards_radeonsi
|
||||
then
|
||||
flags+=",llvm_targets_AMDGPU(-)"
|
||||
fi
|
||||
|
||||
if use opencl; then
|
||||
has_version "sys-devel/clang[${flags}]" || return 1
|
||||
fi
|
||||
has_version "sys-devel/llvm[${flags}]"
|
||||
}
|
||||
|
||||
pkg_pretend() {
|
||||
if use opencl; then
|
||||
if ! use video_cards_r600 &&
|
||||
! use video_cards_radeonsi; then
|
||||
ewarn "Ignoring USE=opencl since VIDEO_CARDS does not contain r600 or radeonsi"
|
||||
fi
|
||||
fi
|
||||
|
||||
if use vaapi; then
|
||||
if ! use video_cards_r600 &&
|
||||
! use video_cards_radeonsi &&
|
||||
! use video_cards_nouveau; then
|
||||
ewarn "Ignoring USE=vaapi since VIDEO_CARDS does not contain r600, radeonsi, or nouveau"
|
||||
fi
|
||||
fi
|
||||
|
||||
if use vdpau; then
|
||||
if ! use video_cards_r300 &&
|
||||
! use video_cards_r600 &&
|
||||
! use video_cards_radeonsi &&
|
||||
! use video_cards_nouveau; then
|
||||
ewarn "Ignoring USE=vdpau since VIDEO_CARDS does not contain r300, r600, radeonsi, or nouveau"
|
||||
fi
|
||||
fi
|
||||
|
||||
if use xa; then
|
||||
if ! use video_cards_freedreno &&
|
||||
! use video_cards_nouveau &&
|
||||
! use video_cards_vmware; then
|
||||
ewarn "Ignoring USE=xa since VIDEO_CARDS does not contain freedreno, nouveau, or vmware"
|
||||
fi
|
||||
fi
|
||||
|
||||
if use xvmc; then
|
||||
if ! use video_cards_r600 &&
|
||||
! use video_cards_nouveau; then
|
||||
ewarn "Ignoring USE=xvmc since VIDEO_CARDS does not contain r600 or nouveau"
|
||||
fi
|
||||
fi
|
||||
|
||||
if ! use gallium; then
|
||||
use lm_sensors && ewarn "Ignoring USE=lm_sensors since USE does not contain gallium"
|
||||
use llvm && ewarn "Ignoring USE=llvm since USE does not contain gallium"
|
||||
use opencl && ewarn "Ignoring USE=opencl since USE does not contain gallium"
|
||||
use vaapi && ewarn "Ignoring USE=vaapi since USE does not contain gallium"
|
||||
use vdpau && ewarn "Ignoring USE=vdpau since USE does not contain gallium"
|
||||
use unwind && ewarn "Ignoring USE=unwind since USE does not contain gallium"
|
||||
use xa && ewarn "Ignoring USE=xa since USE does not contain gallium"
|
||||
use xvmc && ewarn "Ignoring USE=xvmc since USE does not contain gallium"
|
||||
fi
|
||||
|
||||
if ! use llvm; then
|
||||
use opencl && ewarn "Ignoring USE=opencl since USE does not contain llvm"
|
||||
fi
|
||||
}
|
||||
|
||||
python_check_deps() {
|
||||
has_version ">=dev-python/mako-0.8.0[${PYTHON_USEDEP}]"
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
# warning message for bug 459306
|
||||
if use llvm && has_version sys-devel/llvm[!debug=]; then
|
||||
ewarn "Mismatch between debug USE flags in media-libs/mesa and sys-devel/llvm"
|
||||
ewarn "detected! This can cause problems. For details, see bug 459306."
|
||||
fi
|
||||
|
||||
if use llvm; then
|
||||
llvm_pkg_setup
|
||||
fi
|
||||
python-any-r1_pkg_setup
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
local emesonargs=()
|
||||
|
||||
if use classic; then
|
||||
# Intel code
|
||||
dri_driver_enable video_cards_i915 i915
|
||||
dri_driver_enable video_cards_i965 i965
|
||||
if ! use video_cards_i915 && \
|
||||
! use video_cards_i965; then
|
||||
dri_driver_enable video_cards_intel i915 i965
|
||||
fi
|
||||
|
||||
# Nouveau code
|
||||
dri_driver_enable video_cards_nouveau nouveau
|
||||
|
||||
# ATI code
|
||||
dri_driver_enable video_cards_r100 r100
|
||||
dri_driver_enable video_cards_r200 r200
|
||||
if ! use video_cards_r100 && \
|
||||
! use video_cards_r200; then
|
||||
dri_driver_enable video_cards_radeon r100 r200
|
||||
fi
|
||||
fi
|
||||
|
||||
emesonargs+=( -Dplatforms=x11,surfaceless$(use wayland && echo ",wayland")$(use gbm && echo ",drm") )
|
||||
|
||||
if use gallium; then
|
||||
emesonargs+=(
|
||||
$(meson_use llvm)
|
||||
$(meson_use lm_sensors lmsensors)
|
||||
$(meson_use unwind libunwind)
|
||||
)
|
||||
|
||||
if use video_cards_r300 ||
|
||||
use video_cards_r600 ||
|
||||
use video_cards_radeonsi ||
|
||||
use video_cards_nouveau ||
|
||||
use video_cards_vmware; then
|
||||
emesonargs+=($(meson_use d3d9 gallium-nine))
|
||||
else
|
||||
emesonargs+=(-Dgallium-nine=false)
|
||||
fi
|
||||
|
||||
if use video_cards_r600 ||
|
||||
use video_cards_radeonsi ||
|
||||
use video_cards_nouveau; then
|
||||
emesonargs+=($(meson_use vaapi gallium-va))
|
||||
use vaapi && emesonargs+=( -Dva-libs-path="${EPREFIX}"/usr/$(get_libdir)/va/drivers )
|
||||
else
|
||||
emesonargs+=(-Dgallium-va=false)
|
||||
fi
|
||||
|
||||
if use video_cards_r300 ||
|
||||
use video_cards_r600 ||
|
||||
use video_cards_radeonsi ||
|
||||
use video_cards_nouveau; then
|
||||
emesonargs+=($(meson_use vdpau gallium-vdpau))
|
||||
else
|
||||
emesonargs+=(-Dgallium-vdpau=false)
|
||||
fi
|
||||
|
||||
if use video_cards_freedreno ||
|
||||
use video_cards_nouveau ||
|
||||
use video_cards_vmware; then
|
||||
emesonargs+=($(meson_use xa gallium-xa))
|
||||
else
|
||||
emesonargs+=(-Dgallium-xa=false)
|
||||
fi
|
||||
|
||||
if use video_cards_r600 ||
|
||||
use video_cards_nouveau; then
|
||||
emesonargs+=($(meson_use xvmc gallium-xvmc))
|
||||
else
|
||||
emesonargs+=(-Dgallium-xvmc=false)
|
||||
fi
|
||||
|
||||
gallium_enable video_cards_vc4 vc4
|
||||
gallium_enable video_cards_vivante etnaviv
|
||||
gallium_enable video_cards_vmware svga
|
||||
gallium_enable video_cards_nouveau nouveau
|
||||
gallium_enable video_cards_imx imx
|
||||
|
||||
# Only one i915 driver (classic vs gallium). Default to classic.
|
||||
if ! use classic; then
|
||||
gallium_enable video_cards_i915 i915
|
||||
if ! use video_cards_i915 && \
|
||||
! use video_cards_i965; then
|
||||
gallium_enable video_cards_intel i915
|
||||
fi
|
||||
fi
|
||||
|
||||
gallium_enable video_cards_r300 r300
|
||||
gallium_enable video_cards_r600 r600
|
||||
gallium_enable video_cards_radeonsi radeonsi
|
||||
if ! use video_cards_r300 && \
|
||||
! use video_cards_r600; then
|
||||
gallium_enable video_cards_radeon r300 r600
|
||||
fi
|
||||
|
||||
gallium_enable video_cards_freedreno freedreno
|
||||
gallium_enable video_cards_virgl virgl
|
||||
|
||||
# opencl stuff
|
||||
emesonargs+=(
|
||||
-Dgallium-opencl="$(usex opencl icd disabled)"
|
||||
)
|
||||
fi
|
||||
|
||||
if use vulkan; then
|
||||
vulkan_enable video_cards_i965 intel
|
||||
vulkan_enable video_cards_radeonsi amd
|
||||
fi
|
||||
|
||||
# x86 hardened pax_kernel needs glx-rts, bug 240956
|
||||
if [[ ${ABI} == x86 ]]; then
|
||||
emesonargs+=( $(meson_use pax_kernel glx-read-only-text) )
|
||||
fi
|
||||
|
||||
# on abi_x86_32 hardened we need to have asm disable
|
||||
if [[ ${ABI} == x86* ]] && use pic; then
|
||||
emesonargs+=( -Dasm=false )
|
||||
fi
|
||||
|
||||
if use gallium; then
|
||||
gallium_enable -- swrast
|
||||
emesonargs+=( -Dosmesa=$(usex osmesa gallium none) )
|
||||
else
|
||||
dri_driver_enable -- swrast
|
||||
emesonargs+=( -Dosmesa=$(usex osmesa classic none) )
|
||||
fi
|
||||
|
||||
driver_list() {
|
||||
local drivers="$(sort -u <<< "${1// /$'\n'}")"
|
||||
echo "${drivers//$'\n'/,}"
|
||||
}
|
||||
|
||||
emesonargs+=(
|
||||
$(meson_use test build-tests)
|
||||
-Dglx=dri
|
||||
-Dshared-glapi=true
|
||||
$(meson_use dri3)
|
||||
$(meson_use egl)
|
||||
$(meson_use gbm)
|
||||
$(meson_use gles1)
|
||||
$(meson_use gles2)
|
||||
$(meson_use libglvnd glvnd)
|
||||
$(meson_use selinux)
|
||||
-Dvalgrind=$(usex valgrind auto false)
|
||||
-Ddri-drivers=$(driver_list "${DRI_DRIVERS[*]}")
|
||||
-Dgallium-drivers=$(driver_list "${GALLIUM_DRIVERS[*]}")
|
||||
-Dvulkan-drivers=$(driver_list "${VULKAN_DRIVERS[*]}")
|
||||
--buildtype $(usex debug debug plain)
|
||||
-Db_ndebug=$(usex debug false true)
|
||||
)
|
||||
meson_src_configure
|
||||
}
|
||||
|
||||
multilib_src_compile() {
|
||||
meson_src_compile
|
||||
}
|
||||
|
||||
multilib_src_install() {
|
||||
meson_src_install
|
||||
|
||||
use libglvnd && rm -f "${D}"/usr/$(get_libdir)/libGLESv{1_CM,2}.so*
|
||||
}
|
||||
|
||||
multilib_src_install_all() {
|
||||
einstalldocs
|
||||
}
|
||||
|
||||
multilib_src_test() {
|
||||
meson_src_test
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
# Switch to the xorg implementation.
|
||||
echo
|
||||
eselect opengl set --use-old ${OPENGL_DIR}
|
||||
}
|
||||
|
||||
# $1 - VIDEO_CARDS flag (check skipped for "--")
|
||||
# other args - names of DRI drivers to enable
|
||||
dri_driver_enable() {
|
||||
if [[ $1 == -- ]] || use $1; then
|
||||
shift
|
||||
DRI_DRIVERS+=("$@")
|
||||
fi
|
||||
}
|
||||
|
||||
gallium_enable() {
|
||||
if [[ $1 == -- ]] || use $1; then
|
||||
shift
|
||||
GALLIUM_DRIVERS+=("$@")
|
||||
fi
|
||||
}
|
||||
|
||||
vulkan_enable() {
|
||||
if [[ $1 == -- ]] || use $1; then
|
||||
shift
|
||||
VULKAN_DRIVERS+=("$@")
|
||||
fi
|
||||
}
|
Binary file not shown.
Binary file not shown.
@ -1 +1 @@
|
||||
Wed, 13 Mar 2019 20:08:42 +0000
|
||||
Thu, 14 Mar 2019 05:08:45 +0000
|
||||
|
@ -1,23 +1,23 @@
|
||||
-----BEGIN PGP SIGNED MESSAGE-----
|
||||
Hash: SHA512
|
||||
|
||||
MANIFEST Manifest.files.gz 436466 BLAKE2B 1592f1e1bb1660fe56598a716be2722c8f9b14d74fcc7bf4086935ca129dff18da9e9a7deb43b3b3ab5e34487a04b37269914fde19e2c86f3d80a1165fc058e0 SHA512 814ba1ee894cf6c7438051199c5078a6339901cdea60b6848add142bf264fc54ba915b91229a96a1404f81bdbc5177e162144d5b97ce8351358c43ca91c86df7
|
||||
TIMESTAMP 2019-03-13T20:08:46Z
|
||||
MANIFEST Manifest.files.gz 437429 BLAKE2B d71793c37518c554e77bcce22a3ca061890ae72b465c007c31dd2c429c8174741829feddc258347929fc21c74551873bd6be78db810aced844a0e1c497853ff8 SHA512 00d0bfb813b46cc0d061cd7f833014ba841445d5bb2ae0b2ba659c73836487cf7bae990c575667b3cc73306bb0dc54613f22d4fd84afe2cd7cee60f090008f3e
|
||||
TIMESTAMP 2019-03-14T05:08:49Z
|
||||
-----BEGIN PGP SIGNATURE-----
|
||||
|
||||
iQKTBAEBCgB9FiEE4dartjv8+0ugL98c7FkO6skYklAFAlyJY05fFIAAAAAALgAo
|
||||
iQKTBAEBCgB9FiEE4dartjv8+0ugL98c7FkO6skYklAFAlyJ4eFfFIAAAAAALgAo
|
||||
aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEUx
|
||||
RDZBQkI2M0JGQ0ZCNEJBMDJGREYxQ0VDNTkwRUVBQzkxODkyNTAACgkQ7FkO6skY
|
||||
klD0AQ/+PIB7p1b9pYreFrmcDUGFr4Zbxgy0zvLMj8yGFyfr6JD1T9RZYKKVoNL1
|
||||
P11Cqfz+g/L2eZgkdaYq9W6WGaHIb6Yc7vXVwtnGN1U6agmYC+0G1KdUcWWvoqcX
|
||||
a2nqUdFgWTWwN5dAWaalbE9hNbyZNg/dMQh4bYpqUN9EgzrfI4oEr15zLi1BqmrI
|
||||
Xg9qlXaLnqShypgRWO4CvaXdAjwi3+BHj/TtH5rhRdqDcAqQx/J7mrX/22+g8lE9
|
||||
sumEXTeMnwYbUg988jwMP1MOgWqKBRXwumc2cRsMnpRDrs0RVDHDL6RNGFyU/Xvu
|
||||
JVZSX/ODmW83MlRHPjqIbXBarB0o5EiHxI7a4FAL40ykaWt64kKpfklVEUK4+9hQ
|
||||
gu4vAoJByUejHBzTpWxPRqUq3AS5m8ebF92+aG0jO5q6F0+LVxIkutTEbrWvCxBJ
|
||||
OlOGOykP6GgH3kwZzJjOC3xzRf5SUP2CYJDymxm0kSk/j5YbRDF/GHvwk/oXL3Nc
|
||||
N5GIdAaDEcmH4hEgP38Pe0VqZywdMIAXTtJ9DLmgjROD4Cxw9gk1SKqHRvLfttNu
|
||||
3eYFrAv8lE4air3zr9WvYC6KCqAhwoiTQef3YyFkxO6vssYfmQoPb6R8pvH3m9HO
|
||||
qv0qfisFLUA+hR02ML5TSwrN7oAyDTtORQWgiVRuc5Nj7bD8vvk=
|
||||
=1Lna
|
||||
klAx4Q/+L8K1+qnlR7IOpaXQV5sTNxO+PuaStE3mlmjdhHYmYgPCvJHbez5RPFOj
|
||||
HGiBBS48wVvZPc20511G5z7gBMrHk0jiZQebDuvFpOGMQJ5BH9z1Ic6MqhL9ZoTe
|
||||
XrGjd+ZIACPOSXrmyOPY+FbdyN87/BnM2TOf/0mXYZy8lQdS3RtwvhEVodyTeAAQ
|
||||
PcPUDuLRIa/NdxkALR8jMlplcTrKpp4eb1Jhp/JenhIfICK1/pxfhtQLnJX0GelS
|
||||
6RWjCepBkO6hp5VWEYjXeUfdeGZ3lA9Qe+sctwVTew9BvX89zlNhi6pG3+wWoo1w
|
||||
n/rw5CaRhodptwHTpKW9o2voc/NMHnkQOkqQqBxzZhP5QXRlN4c/YZeo+OOL71Uq
|
||||
L4mkG4QKYEPC8jfwHTr8Qfr81noF9I2hqTWGYkqf/sC98zCb0ZvJ8BEdGzQ1ChVc
|
||||
gKvLNInk/vIZTpEXiMuNUUSeqhXx/jdcgzl9J/QW67gaNGmbd6BYzBFzNpZ5Pc2M
|
||||
Rn0KyWqBWC4HQyIIps+4EGfDCRRwiSRN1mWZkrzwXI/k4KtR9tm7MKdqtBjV2mlw
|
||||
G1MeVTXlpPUtcxWWbcL3MfUnn4PlOhBLP5DC0r7uh5ywrMKe6DvW/RekS52CwLiK
|
||||
G7I+eXp9/efrO0mqojKOJFoCqxd7krfi6bO7rskvx0P/8viGtGE=
|
||||
=Pd4a
|
||||
-----END PGP SIGNATURE-----
|
||||
|
Binary file not shown.
@ -0,0 +1,50 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE glsa SYSTEM "http://www.gentoo.org/dtd/glsa.dtd">
|
||||
<glsa id="201903-09">
|
||||
<title>GNU C Library: Arbitrary descriptor allocation</title>
|
||||
<synopsis>A vulnerability in the GNU C Library could result in a Denial of
|
||||
Service condition.
|
||||
</synopsis>
|
||||
<product type="ebuild">glibc</product>
|
||||
<announced>2019-03-14</announced>
|
||||
<revised count="1">2019-03-14</revised>
|
||||
<bug>617938</bug>
|
||||
<access>remote</access>
|
||||
<affected>
|
||||
<package name="sys-libs/glibc" auto="yes" arch="*">
|
||||
<unaffected range="ge">2.26.0</unaffected>
|
||||
<vulnerable range="lt">2.26.0</vulnerable>
|
||||
</package>
|
||||
</affected>
|
||||
<background>
|
||||
<p>The GNU C library is the standard C library used by Gentoo Linux
|
||||
systems.
|
||||
</p>
|
||||
</background>
|
||||
<description>
|
||||
<p>A vulnerability was discovered in the GNU C Library functions xdr_bytes
|
||||
and xdr_string.
|
||||
</p>
|
||||
</description>
|
||||
<impact type="normal">
|
||||
<p>A remote attacker, by sending a crafted UDP packet, could cause a Denial
|
||||
of Service condition.
|
||||
</p>
|
||||
</impact>
|
||||
<workaround>
|
||||
<p>There is no known workaround at this time.</p>
|
||||
</workaround>
|
||||
<resolution>
|
||||
<p>All GNU C Library users should upgrade to the latest version:</p>
|
||||
|
||||
<code>
|
||||
# emerge --sync
|
||||
# emerge --ask --oneshot --verbose ">=sys-libs/glibc-2.26.0"
|
||||
</code>
|
||||
</resolution>
|
||||
<references>
|
||||
<uri link="https://nvd.nist.gov/vuln/detail/CVE-2018-19591">CVE-2018-19591</uri>
|
||||
</references>
|
||||
<metadata tag="requester" timestamp="2018-12-30T15:32:10Z">Zlogene</metadata>
|
||||
<metadata tag="submitter" timestamp="2019-03-14T01:31:55Z">Zlogene</metadata>
|
||||
</glsa>
|
@ -0,0 +1,49 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE glsa SYSTEM "http://www.gentoo.org/dtd/glsa.dtd">
|
||||
<glsa id="201903-11">
|
||||
<title>XRootD: Remote code execution</title>
|
||||
<synopsis>A vulnerability was discovered in XRootD which could lead to the
|
||||
remote execution of code.
|
||||
</synopsis>
|
||||
<product type="ebuild">xrootd</product>
|
||||
<announced>2019-03-14</announced>
|
||||
<revised count="1">2019-03-14</revised>
|
||||
<bug>638420</bug>
|
||||
<access>remote</access>
|
||||
<affected>
|
||||
<package name="net-libs/xrootd" auto="yes" arch="*">
|
||||
<unaffected range="ge">4.8.3</unaffected>
|
||||
<vulnerable range="lt">4.8.3</vulnerable>
|
||||
</package>
|
||||
</affected>
|
||||
<background>
|
||||
<p>A project that aims at giving high performance, scalable, and fault
|
||||
tolerant access to data repositories of many kinds.
|
||||
</p>
|
||||
</background>
|
||||
<description>
|
||||
<p>A shell command injection was discovered in XRootD.</p>
|
||||
|
||||
</description>
|
||||
<impact type="normal">
|
||||
<p>A remote attacker could execute arbitrary code.</p>
|
||||
</impact>
|
||||
<workaround>
|
||||
<p>There is no known workaround at this time.</p>
|
||||
</workaround>
|
||||
<resolution>
|
||||
<p>All XRootD users should upgrade to the latest version:</p>
|
||||
|
||||
<code>
|
||||
# emerge --sync
|
||||
# emerge --ask --oneshot --verbose ">=net-libs/xrootd-4.8.3"
|
||||
</code>
|
||||
</resolution>
|
||||
<references>
|
||||
<uri link="https://nvd.nist.gov/vuln/detail/CVE-2017-1000215">
|
||||
CVE-2017-1000215
|
||||
</uri>
|
||||
</references>
|
||||
<metadata tag="requester" timestamp="2019-03-10T02:02:16Z">BlueKnight</metadata>
|
||||
<metadata tag="submitter" timestamp="2019-03-14T01:35:58Z">b-man</metadata>
|
||||
</glsa>
|
@ -0,0 +1,61 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE glsa SYSTEM "http://www.gentoo.org/dtd/glsa.dtd">
|
||||
<glsa id="201903-12">
|
||||
<title>WebkitGTK+: Multiple vulnerabilities</title>
|
||||
<synopsis>Multiple vulnerabilities have been found in WebkitGTK+, the worst
|
||||
of which could result in the arbitrary execution of code.
|
||||
</synopsis>
|
||||
<product type="ebuild">webkit-gtk</product>
|
||||
<announced>2019-03-14</announced>
|
||||
<revised count="1">2019-03-14</revised>
|
||||
<bug>672108</bug>
|
||||
<bug>674702</bug>
|
||||
<bug>678334</bug>
|
||||
<access>remote</access>
|
||||
<affected>
|
||||
<package name="net-libs/webkit-gtk" auto="yes" arch="*">
|
||||
<unaffected range="ge">2.22.6</unaffected>
|
||||
<vulnerable range="lt">2.22.6</vulnerable>
|
||||
</package>
|
||||
</affected>
|
||||
<background>
|
||||
<p>WebKitGTK+ is a full-featured port of the WebKit rendering engine,
|
||||
suitable for projects requiring any kind of web integration, from hybrid
|
||||
HTML/CSS applications to full-fledged web browsers.
|
||||
</p>
|
||||
</background>
|
||||
<description>
|
||||
<p>Multiple vulnerabilities have been discovered in WebKitGTK+. Please
|
||||
review the referenced CVE identifiers for details.
|
||||
</p>
|
||||
</description>
|
||||
<impact type="normal">
|
||||
<p>An attacker could execute arbitrary code or conduct cross-site
|
||||
scripting.
|
||||
</p>
|
||||
</impact>
|
||||
<workaround>
|
||||
<p>There is no known workaround at this time.</p>
|
||||
</workaround>
|
||||
<resolution>
|
||||
<p>All WebkitGTK+ users should upgrade to the latest version:</p>
|
||||
|
||||
<code>
|
||||
# emerge --sync
|
||||
# emerge --ask --oneshot --verbose ">=net-libs/webkit-gtk-2.22.6"
|
||||
</code>
|
||||
</resolution>
|
||||
<references>
|
||||
<uri link="https://nvd.nist.gov/vuln/detail/CVE-2019-6212">CVE-2019-6212</uri>
|
||||
<uri link="https://nvd.nist.gov/vuln/detail/CVE-2019-6215">CVE-2019-6215</uri>
|
||||
<uri link="https://nvd.nist.gov/vuln/detail/CVE-2019-6216">CVE-2019-6216</uri>
|
||||
<uri link="https://nvd.nist.gov/vuln/detail/CVE-2019-6217">CVE-2019-6217</uri>
|
||||
<uri link="https://nvd.nist.gov/vuln/detail/CVE-2019-6226">CVE-2019-6226</uri>
|
||||
<uri link="https://nvd.nist.gov/vuln/detail/CVE-2019-6227">CVE-2019-6227</uri>
|
||||
<uri link="https://nvd.nist.gov/vuln/detail/CVE-2019-6229">CVE-2019-6229</uri>
|
||||
<uri link="https://nvd.nist.gov/vuln/detail/CVE-2019-6233">CVE-2019-6233</uri>
|
||||
<uri link="https://nvd.nist.gov/vuln/detail/CVE-2019-6234">CVE-2019-6234</uri>
|
||||
</references>
|
||||
<metadata tag="requester" timestamp="2019-03-07T21:59:07Z">BlueKnight</metadata>
|
||||
<metadata tag="submitter" timestamp="2019-03-14T01:37:23Z">b-man</metadata>
|
||||
</glsa>
|
@ -0,0 +1,52 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE glsa SYSTEM "http://www.gentoo.org/dtd/glsa.dtd">
|
||||
<glsa id="201903-13">
|
||||
<title>BIND: Multiple vulnerabilities</title>
|
||||
<synopsis>Multiple vulnerabilities have been found in BIND, the worst of
|
||||
which could result in a Denial of Service condition.
|
||||
</synopsis>
|
||||
<product type="ebuild">bind</product>
|
||||
<announced>2019-03-14</announced>
|
||||
<revised count="1">2019-03-14</revised>
|
||||
<bug>657654</bug>
|
||||
<bug>666946</bug>
|
||||
<access>remote</access>
|
||||
<affected>
|
||||
<package name="net-dns/bind" auto="yes" arch="*">
|
||||
<unaffected range="ge">9.12.1_p2-r1</unaffected>
|
||||
<vulnerable range="lt">9.12.1_p2-r1</vulnerable>
|
||||
</package>
|
||||
</affected>
|
||||
<background>
|
||||
<p>BIND (Berkeley Internet Name Domain) is a Name Server.</p>
|
||||
</background>
|
||||
<description>
|
||||
<p>Multiple vulnerabilities have been discovered in BIND. Please review the
|
||||
CVE identifiers referenced below for details.
|
||||
</p>
|
||||
</description>
|
||||
<impact type="normal">
|
||||
<p>BIND can improperly permit recursive query service to unauthorized
|
||||
clients possibly resulting in a Denial of Service condition or to be used
|
||||
in DNS reflection attacks.
|
||||
</p>
|
||||
</impact>
|
||||
<workaround>
|
||||
<p>There is no known workaround at this time.</p>
|
||||
</workaround>
|
||||
<resolution>
|
||||
<p>All bind users should upgrade to the latest version:</p>
|
||||
|
||||
<code>
|
||||
# emerge --sync
|
||||
# emerge --ask --oneshot --verbose ">=net-dns/bind-9.12.1_p2-r1"
|
||||
</code>
|
||||
</resolution>
|
||||
<references>
|
||||
<uri link="https://nvd.nist.gov/vuln/detail/CVE-2018-5738">CVE-2018-5738</uri>
|
||||
<uri link="https://nvd.nist.gov/vuln/detail/CVE-2018-5740">CVE-2018-5740</uri>
|
||||
<uri link="https://nvd.nist.gov/vuln/detail/CVE-2018-5741">CVE-2018-5741</uri>
|
||||
</references>
|
||||
<metadata tag="requester" timestamp="2019-03-10T00:30:31Z">BlueKnight</metadata>
|
||||
<metadata tag="submitter" timestamp="2019-03-14T01:41:21Z">BlueKnight</metadata>
|
||||
</glsa>
|
@ -1 +1 @@
|
||||
Wed, 13 Mar 2019 20:08:42 +0000
|
||||
Thu, 14 Mar 2019 05:08:45 +0000
|
||||
|
@ -1 +1 @@
|
||||
579d79ed98752445ffce6122ab66094d1cb0110e 1552251022 2019-03-10T20:50:22+00:00
|
||||
17152e28d973dd918d88b38fdcc6e83f34c921f2 1552527902 2019-03-14T01:45:02+00:00
|
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,13 +0,0 @@
|
||||
DEFINED_PHASES=compile install unpack
|
||||
DEPEND=all_sfx? ( app-arch/unrar )
|
||||
DESCRIPTION=RAR compressor/uncompressor
|
||||
EAPI=6
|
||||
HOMEPAGE=https://rarlab.com/
|
||||
IUSE=all_sfx
|
||||
KEYWORDS=-* amd64 x86
|
||||
LICENSE=RAR BSD BSD-2
|
||||
RDEPEND=sys-libs/glibc
|
||||
RESTRICT=mirror bindist
|
||||
SLOT=0
|
||||
SRC_URI=x86? ( https://mirror.whissi.de/distfiles/rar/rarlinux-5.6.1_p20180930.tar.gz ) amd64? ( https://mirror.whissi.de/distfiles/rar/rarlinux-x64-5.6.1_p20180930.tar.gz ) all_sfx? ( https://mirror.whissi.de/distfiles/rar/rarlinux-5.6.1_p20180930.tar.gz https://mirror.whissi.de/distfiles/rar/rarlinux-x64-5.6.1_p20180930.tar.gz https://mirror.whissi.de/distfiles/rar/winrar-x64-5.6.1_p20180930.exe )
|
||||
_md5_=d96b72725d38847bd203d33c3c756a17
|
@ -1,13 +0,0 @@
|
||||
DEFINED_PHASES=compile install unpack
|
||||
DEPEND=all_sfx? ( app-arch/unrar )
|
||||
DESCRIPTION=RAR compressor/uncompressor
|
||||
EAPI=6
|
||||
HOMEPAGE=https://rarlab.com/
|
||||
IUSE=all_sfx
|
||||
KEYWORDS=-* ~amd64 ~x86
|
||||
LICENSE=RAR BSD BSD-2
|
||||
RDEPEND=sys-libs/glibc
|
||||
RESTRICT=mirror bindist
|
||||
SLOT=0
|
||||
SRC_URI=x86? ( https://mirror.whissi.de/distfiles/rar/rarlinux-5.7.0_beta2_p20190221.tar.gz ) amd64? ( https://mirror.whissi.de/distfiles/rar/rarlinux-x64-5.7.0_beta2_p20190221.tar.gz ) all_sfx? ( https://mirror.whissi.de/distfiles/rar/rarlinux-5.7.0_beta2_p20190221.tar.gz https://mirror.whissi.de/distfiles/rar/rarlinux-x64-5.7.0_beta2_p20190221.tar.gz https://mirror.whissi.de/distfiles/rar/winrar-x64-5.7.0_beta2_p20190221.exe )
|
||||
_md5_=85989d2e217a3c95ab803599873d7bc8
|
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue