diff options
author | 2006-08-10 14:05:37 +0000 | |
---|---|---|
committer | 2006-08-10 14:05:37 +0000 | |
commit | b619de5faa4d4cdae04ac54e56a7d9a8721ed4d4 (patch) | |
tree | ca8163083e9ad1157d24701a4107a7c6f41f8571 /media-video | |
parent | Cleanup (diff) | |
download | gentoo-2-b619de5faa4d4cdae04ac54e56a7d9a8721ed4d4.tar.gz gentoo-2-b619de5faa4d4cdae04ac54e56a7d9a8721ed4d4.tar.bz2 gentoo-2-b619de5faa4d4cdae04ac54e56a7d9a8721ed4d4.zip |
Cleanup
(Portage version: 2.1.1_pre4-r4)
(Unsigned Manifest commit)
Diffstat (limited to 'media-video')
19 files changed, 4 insertions, 4482 deletions
diff --git a/media-video/mplayer/Manifest b/media-video/mplayer/Manifest index 8cc68be9d29f..2dc08a8abfbc 100644 --- a/media-video/mplayer/Manifest +++ b/media-video/mplayer/Manifest @@ -1,70 +1,15 @@ -AUX gcc-3-register_allocation.patch 544 RMD160 336b637aebe38457d86ddaca25e0a3395cde2f4b SHA1 2bc8c3f207a640d6ec611940f3a7daba58a2a4fe SHA256 316e0a9ef50b0caebb4443fe0864c2d6c93ac014c64d6e6af59823983af8cb10 -MD5 163307ed3acfb473135a2a4a9319401d files/gcc-3-register_allocation.patch 544 -RMD160 336b637aebe38457d86ddaca25e0a3395cde2f4b files/gcc-3-register_allocation.patch 544 -SHA256 316e0a9ef50b0caebb4443fe0864c2d6c93ac014c64d6e6af59823983af8cb10 files/gcc-3-register_allocation.patch 544 -AUX mplayer-1.0_pre7-gcc4-amd64.patch 2521 RMD160 6fdfd5eb60ae9893f74a5bd22ddc59acee1f9126 SHA1 3858d19b59728d35cb52d9a657f116fbfe8155f6 SHA256 b59bc7328d50cfb0f1b18ae768ebc90051325a311bc54e4ace2acfc033d5ee8c -MD5 9c52b8b6d2256cc936201aad760823c6 files/mplayer-1.0_pre7-gcc4-amd64.patch 2521 -RMD160 6fdfd5eb60ae9893f74a5bd22ddc59acee1f9126 files/mplayer-1.0_pre7-gcc4-amd64.patch 2521 -SHA256 b59bc7328d50cfb0f1b18ae768ebc90051325a311bc54e4ace2acfc033d5ee8c files/mplayer-1.0_pre7-gcc4-amd64.patch 2521 -AUX mplayer-1.0_pre7-gcc4.patch 6412 RMD160 3105c3fa6763a454181ab23c387a78a2959facb6 SHA1 427d9c3ba93d652bdeecf6ba2785d8a375a30514 SHA256 bd3b69bd713c3e7ab56428fe4207bbe55fd6fb74df1e4ec8832657aae58fc2b0 -MD5 3d94fd5886df3b60fe2606c4dee9d1dd files/mplayer-1.0_pre7-gcc4.patch 6412 -RMD160 3105c3fa6763a454181ab23c387a78a2959facb6 files/mplayer-1.0_pre7-gcc4.patch 6412 -SHA256 bd3b69bd713c3e7ab56428fe4207bbe55fd6fb74df1e4ec8832657aae58fc2b0 files/mplayer-1.0_pre7-gcc4.patch 6412 -AUX mplayer-1.0_pre7-gcc_detection.patch 788 RMD160 471477ac5f12ece69c7a1c2e705669f4bbd92a08 SHA1 a52a378b9daa592363628ac406541c38d77c9d6d SHA256 3f65f78a45e0e89de801e6eb6f9438d60a3390d6303e3dfc7e6dcbb79f068a1e -MD5 c08980a7e7ffcb5793e929cf25cf349e files/mplayer-1.0_pre7-gcc_detection.patch 788 -RMD160 471477ac5f12ece69c7a1c2e705669f4bbd92a08 files/mplayer-1.0_pre7-gcc_detection.patch 788 -SHA256 3f65f78a45e0e89de801e6eb6f9438d60a3390d6303e3dfc7e6dcbb79f068a1e files/mplayer-1.0_pre7-gcc_detection.patch 788 -AUX mplayer-1.0_pre7-ppc64.patch 353 RMD160 efd512282648e1ba7cfbbcd90727a99014b5f442 SHA1 adba458c9e7ded4bfae3c391df6d59702694ba05 SHA256 c35944de6b3c879885184ce5c3ac53d88b32f7a0c14dad86ff96bd30892c8b0f -MD5 0ea2e07703fc2105a7f3d265106e9b1f files/mplayer-1.0_pre7-ppc64.patch 353 -RMD160 efd512282648e1ba7cfbbcd90727a99014b5f442 files/mplayer-1.0_pre7-ppc64.patch 353 -SHA256 c35944de6b3c879885184ce5c3ac53d88b32f7a0c14dad86ff96bd30892c8b0f files/mplayer-1.0_pre7-ppc64.patch 353 -AUX mplayer-mythtv.patch 13755 RMD160 3d6e26ef71124c41054c45084884fcb0eee0f687 SHA1 b6d182ec177de710017910d80c42ec3bbc839378 SHA256 c14d15c9dbcf89d92f3d5549410e216f97ec5c79a5945830460d7b66ba11e4be -MD5 38c7908ce49f7f6a272993ba5bc9dd09 files/mplayer-mythtv.patch 13755 -RMD160 3d6e26ef71124c41054c45084884fcb0eee0f687 files/mplayer-mythtv.patch 13755 -SHA256 c14d15c9dbcf89d92f3d5549410e216f97ec5c79a5945830460d7b66ba11e4be files/mplayer-mythtv.patch 13755 AUX mplayer.desktop 794 RMD160 f7df35bfad6cb8d1eba2f5b2df9ace117c9f2651 SHA1 24f4082fabb0637be4044b467a7f2e6a7b5c821a SHA256 a3763e82f93b008e202bcb38bd48a65de8f4fd954a8e44b847f0a0f3a83b563d MD5 995f560631c6874f08bf6cc9ae01fb08 files/mplayer.desktop 794 RMD160 f7df35bfad6cb8d1eba2f5b2df9ace117c9f2651 files/mplayer.desktop 794 SHA256 a3763e82f93b008e202bcb38bd48a65de8f4fd954a8e44b847f0a0f3a83b563d files/mplayer.desktop 794 DIST 26104-510.zip 291836 RMD160 0ff97a27fe5d08dd43571fd1982ce0f07bce3bca SHA1 b22dbe895991c23fad446c3c4ff7b6db12673778 SHA256 75fdf6416950c155ccbfd7fae4ffd6529f162ad6b427ab242c3e00685e303f46 DIST 26204-510.zip 246663 RMD160 1b68232bc40d84298b134c57697e29a842e63ffd SHA1 9ca910295c2888fba95a98da83762a22aaf34651 SHA256 069ebd6ed8ef846d99bdd13d6c47fdb99fe5583b0ed5f405e1392a1a21a1b991 -DIST Blue-1.4.tar.bz2 221734 RMD160 839447caf0f1b269b428258a4013643651f2308e SHA1 f5ad2ed838945ae34e46bdfb5d7b2d24653bbb40 SHA256 d39821d465de22fabea933268f7d999a672bbb622ce94c5ecf41ad0d30617082 DIST Blue-1.5.tar.bz2 222679 RMD160 5c6b72c9ffeb247acb5a77bfeabf9329f29ff040 SHA1 0bfd2fefa9f640a54fc1f2b787d5e1b4d4b8ee98 SHA256 5bbcdea819643d99922e2ccc1b79bffb323650d78a7174f8b8d044d595a9789a -DIST MPlayer-1.0pre7try2.tar.bz2 6868786 RMD160 d1da9b34f4c3de67a3a41f9117f32d2ee88c6e54 SHA1 dcaced128167f15d094c9b63ca8b3dfd8f583e32 SHA256 006da26e16bd1b1a8aec5d59b72b0b2ae7716f4e7634859a3e88b6fbbec4d89a DIST MPlayer-1.0pre8.tar.bz2 8166628 RMD160 23fd13fe75a5c4029ead043aa4b3b08fe5fe44f0 SHA1 8a0929b84dcb37d47c062230ce693b64b3e30921 SHA256 4e611138efb3709e650e3770bb3f33609f3fd04047932c830e52a02e0e97efcc DIST font-arial-cp1250.tar.bz2 249705 RMD160 a2fc7ae07b0d80936ea58e168e1047efccb9eb91 SHA1 ccf11dce5d0fb72fd3af97f788b7471cd0cd0b68 SHA256 423a07e780bb130cd8e4730715545c5d919c248dda595aab7a0a01de3c83fd12 DIST font-arial-iso-8859-1.tar.bz2 234242 RMD160 666697cd5efd9387057a898c714175e7c2aacbcd SHA1 152c40bf20de34aa8802d7f80d34d673b0b67212 SHA256 9730f481764f367c9089d0166fb6ccf9148808ffbbfeca635cf0e6db75765d29 DIST font-arial-iso-8859-2.tar.bz2 222208 RMD160 562d4d92c4f5f3d537340fde3ad8d1495ac41acb SHA1 7b99bbe0e9ba89a57eccbea8f93c453c4f268181 SHA256 71debfc960007c2f6242dfc91e8b1c005b30a99e129aeb00ab8c03f4371b41c1 -DIST mplayer-1.0.20060102.tar.bz2 6599968 RMD160 0b8023932a75153c03ced7ca83e789f3b1397391 SHA256 855d5c23e1a80b9a13016011893a1a55d985229412e5acc0a3f200d53ba00167 -DIST mplayer-1.0.20060217.tar.bz2 6682401 RMD160 ea6334fb788266f414a532356c2bff6d52398331 SHA1 2c21b0c54e02ec24101923f6d85f5425729ba2f7 SHA256 7e93f287ed83f13265417fe28b7a052041371011b5b1b1d2763f988909592cd5 -DIST mplayer-1.0.20060302.tar.bz2 6686151 RMD160 beb4830a5145999e7cbf02dac12019718f4c2966 SHA1 4df596e265b2056824e1d5ef23569bfbf3894814 SHA256 77a9f8e53b7bb652d77f06c7c43c50c77a8d9c8ff0aaf59f2068475f86778378 -DIST mplayer-1.0.20060408.tar.bz2 6717755 RMD160 84040a639caeb2affb35bf4669cef9029c936339 SHA1 73610b3804758fcf8f28723f121bba494be9bf0d SHA256 26cc46758d55617f82aa7f997778264b5371eacbad8d12579aae4c587932106b -DIST mplayer-1.0.20060415.tar.bz2 6730268 RMD160 2b0f888822d98625b443a039ab50f696400b4297 SHA1 244dfda134c5007f1b58bf12bf201d03c840f986 SHA256 a7d81f755eb9202f588be1eb3f33fa58dcf615a8493476c6ed7f0f13ea28a885 DIST svgalib_helper-1.9.17-mplayer.tar.bz2 7234 RMD160 e0c4ae039478732404dd743e250e1061cc9cf0a4 SHA1 d2d596f1ddd283188b2990417d22903c0b466d25 SHA256 016edd27d74b5c66481ddb4563c961fbb579e3a95dd846cc857a639df09999e5 -EBUILD mplayer-1.0.20060102.ebuild 16600 RMD160 7586c20d47a6067e414e5c5b50558a4bfafdb2b7 SHA1 f5fcdb4a39eeb813b6b563864d342aa42d11230e SHA256 804c1a6529d4f21709ec3e1f3535b534095594d45131e9694de3e955c3eaa9b0 -MD5 ccf0db22db95a45a73349e146c70922c mplayer-1.0.20060102.ebuild 16600 -RMD160 7586c20d47a6067e414e5c5b50558a4bfafdb2b7 mplayer-1.0.20060102.ebuild 16600 -SHA256 804c1a6529d4f21709ec3e1f3535b534095594d45131e9694de3e955c3eaa9b0 mplayer-1.0.20060102.ebuild 16600 -EBUILD mplayer-1.0.20060217.ebuild 16662 RMD160 eaad2f383c9af94793b668eb87c6374b4b7a32c6 SHA1 e5fa5d45b9fccccbfa3c1d502d5a6f34920c4199 SHA256 0852f75af3b0089c21e0a245e72d7d0ab4631fa40d20ec923c2a2be91105e48d -MD5 9efc67c0b77faedc8b85d9d57b11017a mplayer-1.0.20060217.ebuild 16662 -RMD160 eaad2f383c9af94793b668eb87c6374b4b7a32c6 mplayer-1.0.20060217.ebuild 16662 -SHA256 0852f75af3b0089c21e0a245e72d7d0ab4631fa40d20ec923c2a2be91105e48d mplayer-1.0.20060217.ebuild 16662 -EBUILD mplayer-1.0.20060302.ebuild 17054 RMD160 29e3517a49249793db8bf08fad410fa04e9dc82e SHA1 176145e25d05148e9530f4dc744fc833d004013b SHA256 26d9bd5ddf8d8eb18c3d0977dbeb778b8a1cafd37c6c9915cc9bb1c63d5eef25 -MD5 ff914e0257047e72123e54c5b0b064ab mplayer-1.0.20060302.ebuild 17054 -RMD160 29e3517a49249793db8bf08fad410fa04e9dc82e mplayer-1.0.20060302.ebuild 17054 -SHA256 26d9bd5ddf8d8eb18c3d0977dbeb778b8a1cafd37c6c9915cc9bb1c63d5eef25 mplayer-1.0.20060302.ebuild 17054 -EBUILD mplayer-1.0.20060408.ebuild 16878 RMD160 7c81aabb9a9a94050f7bc2fed679a61e778794ec SHA1 ab678f8054784c5d233acc2bbcb8ffe1a470638e SHA256 fe8e3a8e9212ebb143cca1931edab143f60950faedec5cc5b7e58f9b3e1a8ac8 -MD5 2b74ed4e697fa87703f82315403b4cd4 mplayer-1.0.20060408.ebuild 16878 -RMD160 7c81aabb9a9a94050f7bc2fed679a61e778794ec mplayer-1.0.20060408.ebuild 16878 -SHA256 fe8e3a8e9212ebb143cca1931edab143f60950faedec5cc5b7e58f9b3e1a8ac8 mplayer-1.0.20060408.ebuild 16878 -EBUILD mplayer-1.0.20060415.ebuild 17064 RMD160 2a19bc2cb8c0db4dd002c3cc57bf0ab2bdd37263 SHA1 ab421b9e242357461568128fe416e389075dccce SHA256 751de4a419b219b4a217060258f8c375e9d40daecbc6898675a275213b3c81a2 -MD5 5afe7e9181d3d6c9edea8aa07554da0d mplayer-1.0.20060415.ebuild 17064 -RMD160 2a19bc2cb8c0db4dd002c3cc57bf0ab2bdd37263 mplayer-1.0.20060415.ebuild 17064 -SHA256 751de4a419b219b4a217060258f8c375e9d40daecbc6898675a275213b3c81a2 mplayer-1.0.20060415.ebuild 17064 -EBUILD mplayer-1.0_pre7-r1.ebuild 16946 RMD160 a4b8a7b145a1966115700b8f5ad029703e4e7933 SHA1 829f10c302c051f12149717949fa1b4845c9d2af SHA256 953fdad4dd350a4b691d73ed23405286ed5e93e2ab122c7e428ebd34ff92d4f9 -MD5 6665717da157777f9f197f883e032185 mplayer-1.0_pre7-r1.ebuild 16946 -RMD160 a4b8a7b145a1966115700b8f5ad029703e4e7933 mplayer-1.0_pre7-r1.ebuild 16946 -SHA256 953fdad4dd350a4b691d73ed23405286ed5e93e2ab122c7e428ebd34ff92d4f9 mplayer-1.0_pre7-r1.ebuild 16946 EBUILD mplayer-1.0_pre8-r1.ebuild 16741 RMD160 9312dc0edd2435e2f943f3a15c650ec62876cf40 SHA1 f0bf4ffd6d8266533cfea0e7b97446e0bc9d71c1 SHA256 74690dd5787fb40e80caab2664157b74fac3cce024d40633b455a57284c97c42 MD5 3d492176be831de71636fd949eb3b83d mplayer-1.0_pre8-r1.ebuild 16741 RMD160 9312dc0edd2435e2f943f3a15c650ec62876cf40 mplayer-1.0_pre8-r1.ebuild 16741 @@ -73,32 +18,14 @@ EBUILD mplayer-1.0_pre8.ebuild 17039 RMD160 e177214523a04cf4ce14ea9593798c2fea41 MD5 bb0b987fc483db099ea2850d65dcef83 mplayer-1.0_pre8.ebuild 17039 RMD160 e177214523a04cf4ce14ea9593798c2fea41ab27 mplayer-1.0_pre8.ebuild 17039 SHA256 2a194c2f4e3052faf52e3b33bcf1e0097ec5040a37185cb07c57bc3499f39d22 mplayer-1.0_pre8.ebuild 17039 -MISC ChangeLog 73284 RMD160 c02491588e43e7443f254f7a789ce288cf93b626 SHA1 3022977915f3cc8a31844c997ebb46ee4dca097b SHA256 e9c484258a72da136e196fac56f2ec61b759aaaa1935b3bb7bc3dbf689609850 -MD5 490cc59704d234b73f39fbd6772ade82 ChangeLog 73284 -RMD160 c02491588e43e7443f254f7a789ce288cf93b626 ChangeLog 73284 -SHA256 e9c484258a72da136e196fac56f2ec61b759aaaa1935b3bb7bc3dbf689609850 ChangeLog 73284 +MISC ChangeLog 73771 RMD160 ca02ccb2e37f503f610f0d4f4ebd43017316add9 SHA1 8ec39530f5a986b49c8cc7d54165d8b1a2d0d4e5 SHA256 c568a1b0ed7170d31e4515a3340ed2525dd0088f07fa1fc225aa854556a808c5 +MD5 59a1c77cd84272437811bf1eb7a9f2d9 ChangeLog 73771 +RMD160 ca02ccb2e37f503f610f0d4f4ebd43017316add9 ChangeLog 73771 +SHA256 c568a1b0ed7170d31e4515a3340ed2525dd0088f07fa1fc225aa854556a808c5 ChangeLog 73771 MISC metadata.xml 223 RMD160 86b42c49b694db39ddb3fdc60b98a3ad1a0c3392 SHA1 ea8c387229caaf4b0d3c9fbef9143b70dcae0b0d SHA256 dd48e823ec9a151bc3611121402ed26ee24eb3304aa62870b1e875a8fa0ac812 MD5 0338bfb24d7bfb6450aac4dd025c0096 metadata.xml 223 RMD160 86b42c49b694db39ddb3fdc60b98a3ad1a0c3392 metadata.xml 223 SHA256 dd48e823ec9a151bc3611121402ed26ee24eb3304aa62870b1e875a8fa0ac812 metadata.xml 223 -MD5 aac58a9c4b612f2dac10dc340a86730c files/digest-mplayer-1.0.20060102 1575 -RMD160 3dd4825255d4a386562d02480fdb30f72e6d0df4 files/digest-mplayer-1.0.20060102 1575 -SHA256 953559f8f6f91ddcf4665ea6b94a3d70790bcd941d5b3fbd793ab7f3108473e4 files/digest-mplayer-1.0.20060102 1575 -MD5 b44febf9819c7c8cc51387dfae4dfcbe files/digest-mplayer-1.0.20060217 1575 -RMD160 731351aff9c01a8f0758f59bcc4cc9d2e1de06a3 files/digest-mplayer-1.0.20060217 1575 -SHA256 23f2d81285e075ce277e4c4361b6ca68cf8b6042f8011041b014c2df48098ddf files/digest-mplayer-1.0.20060217 1575 -MD5 fcb29770275202ed992ef78bf089c275 files/digest-mplayer-1.0.20060302 1575 -RMD160 3577b49debb7b9471e3016a41b3d8c7eabc695a5 files/digest-mplayer-1.0.20060302 1575 -SHA256 486250f56696e2292dcfcbf6e23567783c47655663b79051e5c59cd582dd8216 files/digest-mplayer-1.0.20060302 1575 -MD5 1bbfaa2ec18c2e40fdba337c56c4fce8 files/digest-mplayer-1.0.20060408 1575 -RMD160 1be679fe04e2816f92b62daa616491c655900caa files/digest-mplayer-1.0.20060408 1575 -SHA256 3a4994f9e113a281fe94c5304c4ab8e7f18a868c987f9c64fed0776c1a9bd204 files/digest-mplayer-1.0.20060408 1575 -MD5 522d42849846f60fee803da3f6012e50 files/digest-mplayer-1.0.20060415 1575 -RMD160 3b830e2f578d6c3b1513fa9afe27a9a410a13752 files/digest-mplayer-1.0.20060415 1575 -SHA256 52273ef230b36a3008a3fcecf767a5480564e66824768b524d19b2bd73482e31 files/digest-mplayer-1.0.20060415 1575 -MD5 be999b87bb088106705975ffb36cacac files/digest-mplayer-1.0_pre7-r1 1572 -RMD160 d8077a3619087b4d66d78e921c7341003f376a0b files/digest-mplayer-1.0_pre7-r1 1572 -SHA256 09d3d5d444d92f60bacfd779d758919deab42eb1f2c0bbc176b8903cd92b61b2 files/digest-mplayer-1.0_pre7-r1 1572 MD5 7e6a032d6790003fd5bb4b90215c9b46 files/digest-mplayer-1.0_pre8 1560 RMD160 ffc574f282b9ab24d14a07e5b466c9353903ad76 files/digest-mplayer-1.0_pre8 1560 SHA256 cd0e19533e30a52f2ee9b4d7ef98d8878860b964c20040bf607a4cb4d0891976 files/digest-mplayer-1.0_pre8 1560 diff --git a/media-video/mplayer/files/digest-mplayer-1.0.20060102 b/media-video/mplayer/files/digest-mplayer-1.0.20060102 deleted file mode 100644 index a3e4abd7293f..000000000000 --- a/media-video/mplayer/files/digest-mplayer-1.0.20060102 +++ /dev/null @@ -1,18 +0,0 @@ -MD5 5fdc36704c4ec3a6dc6b57a536608180 Blue-1.4.tar.bz2 221734 -RMD160 839447caf0f1b269b428258a4013643651f2308e Blue-1.4.tar.bz2 221734 -SHA256 d39821d465de22fabea933268f7d999a672bbb622ce94c5ecf41ad0d30617082 Blue-1.4.tar.bz2 221734 -MD5 d0afd83cd04c29a714a62b427aace5c5 font-arial-cp1250.tar.bz2 249705 -RMD160 a2fc7ae07b0d80936ea58e168e1047efccb9eb91 font-arial-cp1250.tar.bz2 249705 -SHA256 423a07e780bb130cd8e4730715545c5d919c248dda595aab7a0a01de3c83fd12 font-arial-cp1250.tar.bz2 249705 -MD5 1ecd31d17b51f16332b1fcc7da36b312 font-arial-iso-8859-1.tar.bz2 234242 -RMD160 666697cd5efd9387057a898c714175e7c2aacbcd font-arial-iso-8859-1.tar.bz2 234242 -SHA256 9730f481764f367c9089d0166fb6ccf9148808ffbbfeca635cf0e6db75765d29 font-arial-iso-8859-1.tar.bz2 234242 -MD5 7b47904a925cf58ea546ca15f3df160c font-arial-iso-8859-2.tar.bz2 222208 -RMD160 562d4d92c4f5f3d537340fde3ad8d1495ac41acb font-arial-iso-8859-2.tar.bz2 222208 -SHA256 71debfc960007c2f6242dfc91e8b1c005b30a99e129aeb00ab8c03f4371b41c1 font-arial-iso-8859-2.tar.bz2 222208 -MD5 73e72eb56ba87094a6178fb73fc94fd3 mplayer-1.0.20060102.tar.bz2 6599968 -RMD160 0b8023932a75153c03ced7ca83e789f3b1397391 mplayer-1.0.20060102.tar.bz2 6599968 -SHA256 855d5c23e1a80b9a13016011893a1a55d985229412e5acc0a3f200d53ba00167 mplayer-1.0.20060102.tar.bz2 6599968 -MD5 3f1b9eb2ba639bf42c61f7b9189f6524 svgalib_helper-1.9.17-mplayer.tar.bz2 7234 -RMD160 e0c4ae039478732404dd743e250e1061cc9cf0a4 svgalib_helper-1.9.17-mplayer.tar.bz2 7234 -SHA256 016edd27d74b5c66481ddb4563c961fbb579e3a95dd846cc857a639df09999e5 svgalib_helper-1.9.17-mplayer.tar.bz2 7234 diff --git a/media-video/mplayer/files/digest-mplayer-1.0.20060217 b/media-video/mplayer/files/digest-mplayer-1.0.20060217 deleted file mode 100644 index e56f3cebcf18..000000000000 --- a/media-video/mplayer/files/digest-mplayer-1.0.20060217 +++ /dev/null @@ -1,18 +0,0 @@ -MD5 5fdc36704c4ec3a6dc6b57a536608180 Blue-1.4.tar.bz2 221734 -RMD160 839447caf0f1b269b428258a4013643651f2308e Blue-1.4.tar.bz2 221734 -SHA256 d39821d465de22fabea933268f7d999a672bbb622ce94c5ecf41ad0d30617082 Blue-1.4.tar.bz2 221734 -MD5 d0afd83cd04c29a714a62b427aace5c5 font-arial-cp1250.tar.bz2 249705 -RMD160 a2fc7ae07b0d80936ea58e168e1047efccb9eb91 font-arial-cp1250.tar.bz2 249705 -SHA256 423a07e780bb130cd8e4730715545c5d919c248dda595aab7a0a01de3c83fd12 font-arial-cp1250.tar.bz2 249705 -MD5 1ecd31d17b51f16332b1fcc7da36b312 font-arial-iso-8859-1.tar.bz2 234242 -RMD160 666697cd5efd9387057a898c714175e7c2aacbcd font-arial-iso-8859-1.tar.bz2 234242 -SHA256 9730f481764f367c9089d0166fb6ccf9148808ffbbfeca635cf0e6db75765d29 font-arial-iso-8859-1.tar.bz2 234242 -MD5 7b47904a925cf58ea546ca15f3df160c font-arial-iso-8859-2.tar.bz2 222208 -RMD160 562d4d92c4f5f3d537340fde3ad8d1495ac41acb font-arial-iso-8859-2.tar.bz2 222208 -SHA256 71debfc960007c2f6242dfc91e8b1c005b30a99e129aeb00ab8c03f4371b41c1 font-arial-iso-8859-2.tar.bz2 222208 -MD5 2b9bfd82c446ca11c4d003aae32db0e0 mplayer-1.0.20060217.tar.bz2 6682401 -RMD160 ea6334fb788266f414a532356c2bff6d52398331 mplayer-1.0.20060217.tar.bz2 6682401 -SHA256 7e93f287ed83f13265417fe28b7a052041371011b5b1b1d2763f988909592cd5 mplayer-1.0.20060217.tar.bz2 6682401 -MD5 3f1b9eb2ba639bf42c61f7b9189f6524 svgalib_helper-1.9.17-mplayer.tar.bz2 7234 -RMD160 e0c4ae039478732404dd743e250e1061cc9cf0a4 svgalib_helper-1.9.17-mplayer.tar.bz2 7234 -SHA256 016edd27d74b5c66481ddb4563c961fbb579e3a95dd846cc857a639df09999e5 svgalib_helper-1.9.17-mplayer.tar.bz2 7234 diff --git a/media-video/mplayer/files/digest-mplayer-1.0.20060302 b/media-video/mplayer/files/digest-mplayer-1.0.20060302 deleted file mode 100644 index 3eb10dff7d96..000000000000 --- a/media-video/mplayer/files/digest-mplayer-1.0.20060302 +++ /dev/null @@ -1,18 +0,0 @@ -MD5 5fdc36704c4ec3a6dc6b57a536608180 Blue-1.4.tar.bz2 221734 -RMD160 839447caf0f1b269b428258a4013643651f2308e Blue-1.4.tar.bz2 221734 -SHA256 d39821d465de22fabea933268f7d999a672bbb622ce94c5ecf41ad0d30617082 Blue-1.4.tar.bz2 221734 -MD5 d0afd83cd04c29a714a62b427aace5c5 font-arial-cp1250.tar.bz2 249705 -RMD160 a2fc7ae07b0d80936ea58e168e1047efccb9eb91 font-arial-cp1250.tar.bz2 249705 -SHA256 423a07e780bb130cd8e4730715545c5d919c248dda595aab7a0a01de3c83fd12 font-arial-cp1250.tar.bz2 249705 -MD5 1ecd31d17b51f16332b1fcc7da36b312 font-arial-iso-8859-1.tar.bz2 234242 -RMD160 666697cd5efd9387057a898c714175e7c2aacbcd font-arial-iso-8859-1.tar.bz2 234242 -SHA256 9730f481764f367c9089d0166fb6ccf9148808ffbbfeca635cf0e6db75765d29 font-arial-iso-8859-1.tar.bz2 234242 -MD5 7b47904a925cf58ea546ca15f3df160c font-arial-iso-8859-2.tar.bz2 222208 -RMD160 562d4d92c4f5f3d537340fde3ad8d1495ac41acb font-arial-iso-8859-2.tar.bz2 222208 -SHA256 71debfc960007c2f6242dfc91e8b1c005b30a99e129aeb00ab8c03f4371b41c1 font-arial-iso-8859-2.tar.bz2 222208 -MD5 e7e76c4daef50cb335f27e6443c9774b mplayer-1.0.20060302.tar.bz2 6686151 -RMD160 beb4830a5145999e7cbf02dac12019718f4c2966 mplayer-1.0.20060302.tar.bz2 6686151 -SHA256 77a9f8e53b7bb652d77f06c7c43c50c77a8d9c8ff0aaf59f2068475f86778378 mplayer-1.0.20060302.tar.bz2 6686151 -MD5 3f1b9eb2ba639bf42c61f7b9189f6524 svgalib_helper-1.9.17-mplayer.tar.bz2 7234 -RMD160 e0c4ae039478732404dd743e250e1061cc9cf0a4 svgalib_helper-1.9.17-mplayer.tar.bz2 7234 -SHA256 016edd27d74b5c66481ddb4563c961fbb579e3a95dd846cc857a639df09999e5 svgalib_helper-1.9.17-mplayer.tar.bz2 7234 diff --git a/media-video/mplayer/files/digest-mplayer-1.0.20060408 b/media-video/mplayer/files/digest-mplayer-1.0.20060408 deleted file mode 100644 index 2bc07ddb89e9..000000000000 --- a/media-video/mplayer/files/digest-mplayer-1.0.20060408 +++ /dev/null @@ -1,18 +0,0 @@ -MD5 5fdc36704c4ec3a6dc6b57a536608180 Blue-1.4.tar.bz2 221734 -RMD160 839447caf0f1b269b428258a4013643651f2308e Blue-1.4.tar.bz2 221734 -SHA256 d39821d465de22fabea933268f7d999a672bbb622ce94c5ecf41ad0d30617082 Blue-1.4.tar.bz2 221734 -MD5 d0afd83cd04c29a714a62b427aace5c5 font-arial-cp1250.tar.bz2 249705 -RMD160 a2fc7ae07b0d80936ea58e168e1047efccb9eb91 font-arial-cp1250.tar.bz2 249705 -SHA256 423a07e780bb130cd8e4730715545c5d919c248dda595aab7a0a01de3c83fd12 font-arial-cp1250.tar.bz2 249705 -MD5 1ecd31d17b51f16332b1fcc7da36b312 font-arial-iso-8859-1.tar.bz2 234242 -RMD160 666697cd5efd9387057a898c714175e7c2aacbcd font-arial-iso-8859-1.tar.bz2 234242 -SHA256 9730f481764f367c9089d0166fb6ccf9148808ffbbfeca635cf0e6db75765d29 font-arial-iso-8859-1.tar.bz2 234242 -MD5 7b47904a925cf58ea546ca15f3df160c font-arial-iso-8859-2.tar.bz2 222208 -RMD160 562d4d92c4f5f3d537340fde3ad8d1495ac41acb font-arial-iso-8859-2.tar.bz2 222208 -SHA256 71debfc960007c2f6242dfc91e8b1c005b30a99e129aeb00ab8c03f4371b41c1 font-arial-iso-8859-2.tar.bz2 222208 -MD5 e352817e6423e430edd1d32309c5ad71 mplayer-1.0.20060408.tar.bz2 6717755 -RMD160 84040a639caeb2affb35bf4669cef9029c936339 mplayer-1.0.20060408.tar.bz2 6717755 -SHA256 26cc46758d55617f82aa7f997778264b5371eacbad8d12579aae4c587932106b mplayer-1.0.20060408.tar.bz2 6717755 -MD5 3f1b9eb2ba639bf42c61f7b9189f6524 svgalib_helper-1.9.17-mplayer.tar.bz2 7234 -RMD160 e0c4ae039478732404dd743e250e1061cc9cf0a4 svgalib_helper-1.9.17-mplayer.tar.bz2 7234 -SHA256 016edd27d74b5c66481ddb4563c961fbb579e3a95dd846cc857a639df09999e5 svgalib_helper-1.9.17-mplayer.tar.bz2 7234 diff --git a/media-video/mplayer/files/digest-mplayer-1.0.20060415 b/media-video/mplayer/files/digest-mplayer-1.0.20060415 deleted file mode 100644 index c3f9c77b8998..000000000000 --- a/media-video/mplayer/files/digest-mplayer-1.0.20060415 +++ /dev/null @@ -1,18 +0,0 @@ -MD5 371fa9457f0f23295ddaa93b57d862a0 Blue-1.5.tar.bz2 222679 -RMD160 5c6b72c9ffeb247acb5a77bfeabf9329f29ff040 Blue-1.5.tar.bz2 222679 -SHA256 5bbcdea819643d99922e2ccc1b79bffb323650d78a7174f8b8d044d595a9789a Blue-1.5.tar.bz2 222679 -MD5 d0afd83cd04c29a714a62b427aace5c5 font-arial-cp1250.tar.bz2 249705 -RMD160 a2fc7ae07b0d80936ea58e168e1047efccb9eb91 font-arial-cp1250.tar.bz2 249705 -SHA256 423a07e780bb130cd8e4730715545c5d919c248dda595aab7a0a01de3c83fd12 font-arial-cp1250.tar.bz2 249705 -MD5 1ecd31d17b51f16332b1fcc7da36b312 font-arial-iso-8859-1.tar.bz2 234242 -RMD160 666697cd5efd9387057a898c714175e7c2aacbcd font-arial-iso-8859-1.tar.bz2 234242 -SHA256 9730f481764f367c9089d0166fb6ccf9148808ffbbfeca635cf0e6db75765d29 font-arial-iso-8859-1.tar.bz2 234242 -MD5 7b47904a925cf58ea546ca15f3df160c font-arial-iso-8859-2.tar.bz2 222208 -RMD160 562d4d92c4f5f3d537340fde3ad8d1495ac41acb font-arial-iso-8859-2.tar.bz2 222208 -SHA256 71debfc960007c2f6242dfc91e8b1c005b30a99e129aeb00ab8c03f4371b41c1 font-arial-iso-8859-2.tar.bz2 222208 -MD5 094672192949271d7de8a3e259055021 mplayer-1.0.20060415.tar.bz2 6730268 -RMD160 2b0f888822d98625b443a039ab50f696400b4297 mplayer-1.0.20060415.tar.bz2 6730268 -SHA256 a7d81f755eb9202f588be1eb3f33fa58dcf615a8493476c6ed7f0f13ea28a885 mplayer-1.0.20060415.tar.bz2 6730268 -MD5 3f1b9eb2ba639bf42c61f7b9189f6524 svgalib_helper-1.9.17-mplayer.tar.bz2 7234 -RMD160 e0c4ae039478732404dd743e250e1061cc9cf0a4 svgalib_helper-1.9.17-mplayer.tar.bz2 7234 -SHA256 016edd27d74b5c66481ddb4563c961fbb579e3a95dd846cc857a639df09999e5 svgalib_helper-1.9.17-mplayer.tar.bz2 7234 diff --git a/media-video/mplayer/files/digest-mplayer-1.0_pre7-r1 b/media-video/mplayer/files/digest-mplayer-1.0_pre7-r1 deleted file mode 100644 index 10d28c82b000..000000000000 --- a/media-video/mplayer/files/digest-mplayer-1.0_pre7-r1 +++ /dev/null @@ -1,18 +0,0 @@ -MD5 5fdc36704c4ec3a6dc6b57a536608180 Blue-1.4.tar.bz2 221734 -RMD160 839447caf0f1b269b428258a4013643651f2308e Blue-1.4.tar.bz2 221734 -SHA256 d39821d465de22fabea933268f7d999a672bbb622ce94c5ecf41ad0d30617082 Blue-1.4.tar.bz2 221734 -MD5 aaca4fd327176c1afb463f0f047ef6f4 MPlayer-1.0pre7try2.tar.bz2 6868786 -RMD160 d1da9b34f4c3de67a3a41f9117f32d2ee88c6e54 MPlayer-1.0pre7try2.tar.bz2 6868786 -SHA256 006da26e16bd1b1a8aec5d59b72b0b2ae7716f4e7634859a3e88b6fbbec4d89a MPlayer-1.0pre7try2.tar.bz2 6868786 -MD5 d0afd83cd04c29a714a62b427aace5c5 font-arial-cp1250.tar.bz2 249705 -RMD160 a2fc7ae07b0d80936ea58e168e1047efccb9eb91 font-arial-cp1250.tar.bz2 249705 -SHA256 423a07e780bb130cd8e4730715545c5d919c248dda595aab7a0a01de3c83fd12 font-arial-cp1250.tar.bz2 249705 -MD5 1ecd31d17b51f16332b1fcc7da36b312 font-arial-iso-8859-1.tar.bz2 234242 -RMD160 666697cd5efd9387057a898c714175e7c2aacbcd font-arial-iso-8859-1.tar.bz2 234242 -SHA256 9730f481764f367c9089d0166fb6ccf9148808ffbbfeca635cf0e6db75765d29 font-arial-iso-8859-1.tar.bz2 234242 -MD5 7b47904a925cf58ea546ca15f3df160c font-arial-iso-8859-2.tar.bz2 222208 -RMD160 562d4d92c4f5f3d537340fde3ad8d1495ac41acb font-arial-iso-8859-2.tar.bz2 222208 -SHA256 71debfc960007c2f6242dfc91e8b1c005b30a99e129aeb00ab8c03f4371b41c1 font-arial-iso-8859-2.tar.bz2 222208 -MD5 3f1b9eb2ba639bf42c61f7b9189f6524 svgalib_helper-1.9.17-mplayer.tar.bz2 7234 -RMD160 e0c4ae039478732404dd743e250e1061cc9cf0a4 svgalib_helper-1.9.17-mplayer.tar.bz2 7234 -SHA256 016edd27d74b5c66481ddb4563c961fbb579e3a95dd846cc857a639df09999e5 svgalib_helper-1.9.17-mplayer.tar.bz2 7234 diff --git a/media-video/mplayer/files/gcc-3-register_allocation.patch b/media-video/mplayer/files/gcc-3-register_allocation.patch deleted file mode 100644 index 85101b9382f6..000000000000 --- a/media-video/mplayer/files/gcc-3-register_allocation.patch +++ /dev/null @@ -1,19 +0,0 @@ -Index: libavcodec/ppc/gcc_fixes.h -=================================================================== -RCS file: /cvsroot/ffmpeg/ffmpeg/libavcodec/ppc/gcc_fixes.h,v -retrieving revision 1.8 -diff -u -r1.8 gcc_fixes.h ---- libavcodec/ppc/gcc_fixes.h 7 Apr 2006 12:40:28 -0000 1.8 -+++ libavcodec/ppc/gcc_fixes.h 16 Apr 2006 11:41:09 -0000 -@@ -23,9 +23,9 @@ - #define AVV(x...) {x} - - #if (__GNUC__ < 4) --# define REG_v(a) asm ( #a ) --#else - # define REG_v(a) -+#else -+# define REG_v(a) asm ( #a ) - #endif - - #if (__GNUC__ * 100 + __GNUC_MINOR__ < 303) diff --git a/media-video/mplayer/files/mplayer-1.0_pre7-gcc4-amd64.patch b/media-video/mplayer/files/mplayer-1.0_pre7-gcc4-amd64.patch deleted file mode 100644 index d6f34634327d..000000000000 --- a/media-video/mplayer/files/mplayer-1.0_pre7-gcc4-amd64.patch +++ /dev/null @@ -1,65 +0,0 @@ -diff -ur MPlayer-1.0pre7try2-orig/libavcodec/libpostproc/postprocess_template.c MPlayer-1.0pre7try2/libavcodec/libpostproc/postprocess_template.c ---- MPlayer-1.0pre7try2-orig/libavcodec/libpostproc/postprocess_template.c 2005-10-03 13:05:15.824886936 +0000 -+++ MPlayer-1.0pre7try2/libavcodec/libpostproc/postprocess_template.c 2005-10-03 12:58:26.370023055 +0000 -@@ -3496,7 +3496,7 @@ - "prefetchnta 32(%%"REG_a", %0) \n\t" - "prefetcht0 32(%%"REG_d", %2) \n\t" - :: "r" (srcBlock), "r" ((long)srcStride), "r" (dstBlock), "r" ((long)dstStride), -- "m" ((long)x), "m" ((long)copyAhead) -+ "g" ((long)x), "g" ((long)copyAhead) - : "%"REG_a, "%"REG_d - ); - -@@ -3642,7 +3642,7 @@ - "prefetchnta 32(%%"REG_a", %0) \n\t" - "prefetcht0 32(%%"REG_d", %2) \n\t" - :: "r" (srcBlock), "r" ((long)srcStride), "r" (dstBlock), "r" ((long)dstStride), -- "m" ((long)x), "m" ((long)copyAhead) -+ "g" ((long)x), "g" ((long)copyAhead) - : "%"REG_a, "%"REG_d - ); - -diff -ur MPlayer-1.0pre7try2-orig/postproc/swscale_template.c MPlayer-1.0pre7try2/postproc/swscale_template.c ---- MPlayer-1.0pre7try2-orig/postproc/swscale_template.c 2005-10-03 13:05:15.828887121 +0000 -+++ MPlayer-1.0pre7try2/postproc/swscale_template.c 2005-10-03 13:12:18.948389447 +0000 -@@ -765,14 +765,14 @@ - asm volatile( - YSCALEYUV2YV12X(0, CHR_MMX_FILTER_OFFSET) - :: "r" (&c->redDither), -- "r" (uDest), "m" ((long)chrDstW) -+ "r" (uDest), "p" ((long)chrDstW) - : "%"REG_a, "%"REG_d, "%"REG_S - ); - - asm volatile( - YSCALEYUV2YV12X(4096, CHR_MMX_FILTER_OFFSET) - :: "r" (&c->redDither), -- "r" (vDest), "m" ((long)chrDstW) -+ "r" (vDest), "p" ((long)chrDstW) - : "%"REG_a, "%"REG_d, "%"REG_S - ); - } -@@ -780,7 +780,7 @@ - asm volatile( - YSCALEYUV2YV12X(0, LUM_MMX_FILTER_OFFSET) - :: "r" (&c->redDither), -- "r" (dest), "m" ((long)dstW) -+ "r" (dest), "p" ((long)dstW) - : "%"REG_a, "%"REG_d, "%"REG_S - ); - #else -@@ -2552,8 +2552,13 @@ - "add $1, %%"REG_a" \n\t" - "cmp %2, %%"REG_a" \n\t" - " jb 1b \n\t" -- -+/* GCC-3.3 makes MPlayer crash on IA-32 machines when using "g" operand here, -+ which is needed to support GCC-4.0 */ -+#if defined(ARCH_X86_64) && ((__GNUC__ > 3) || ( __GNUC__ == 3 && __GNUC_MINOR__ >= 4)) -+ :: "m" (src1), "m" (dst), "g" ((long)dstWidth), "m" (xInc_hi), "m" (xInc_lo), -+#else - :: "m" (src1), "m" (dst), "m" ((long)dstWidth), "m" ((long)(xInc_hi)), "m" ((xInc_lo)), -+#endif - "r" (src2) - : "%"REG_a, "%"REG_b, "%ecx", "%"REG_D, "%esi" - ); diff --git a/media-video/mplayer/files/mplayer-1.0_pre7-gcc4.patch b/media-video/mplayer/files/mplayer-1.0_pre7-gcc4.patch deleted file mode 100644 index d5a7a30505ca..000000000000 --- a/media-video/mplayer/files/mplayer-1.0_pre7-gcc4.patch +++ /dev/null @@ -1,187 +0,0 @@ -diff -bBur MPlayer-20050413-orig/configure MPlayer-20050413/configure ---- MPlayer-20050413-orig/configure 2005-04-06 14:57:08.000000000 +0300 -+++ MPlayer-20050413/configure 2005-04-14 16:20:41.000000000 +0300 -@@ -604,7 +604,7 @@ - cc_version="v. ?.??, bad" - cc_verc_fail=yes - ;; -- 2.95.[2-9]|2.95.[2-9][-.]*|3.[0-9]|3.[0-9].[0-9]) -+ 2.95.[2-9]|2.95.[2-9][-.]*|3.[0-9]|3.[0-9].[0-9]|4.*) - _cc_major=`echo $cc_version | cut -d '.' -f 1` - _cc_minor=`echo $cc_version | cut -d '.' -f 2` - _cc_mini=`echo $cc_version | cut -d '.' -f 3` -diff -bBur MPlayer-20050413-orig/liba52/imdct.c MPlayer-20050413/liba52/imdct.c ---- MPlayer-20050413-orig/liba52/imdct.c 2005-03-23 01:27:18.000000000 +0200 -+++ MPlayer-20050413/liba52/imdct.c 2005-04-14 16:48:54.000000000 +0300 -@@ -937,7 +937,8 @@ - /* 4-7. iterations */ - for (m=3; m < 7; m++) { - two_m = (1 << m); -- two_m_plus_one = two_m<<1; -+ int two_m_plus_four=two_m<<4; -+ complex_t* buf_plus_128=buf+128; - asm volatile( - "movl %0, %%esi \n\t" - ".balign 16 \n\t" -@@ -963,7 +964,7 @@ - "addl %2, %%esi \n\t" - "cmpl %1, %%esi \n\t" - " jb 1b \n\t" -- :: "g" (buf), "m" (buf+128), "m" (two_m_plus_one<<3), "r" (two_m<<3), -+ :: "g" (buf), "m" (buf_plus_128), "m" (two_m_plus_four), "r" (two_m<<3), - "r" (sseW[m]) - : "%esi", "%edi", "%edx" - ); -diff -bBur MPlayer-20050413-orig/libavcodec/libpostproc/postprocess_template.c MPlayer-20050413/libavcodec/libpostproc/postprocess_template.c ---- MPlayer-20050413-orig/libavcodec/libpostproc/postprocess_template.c 2005-02-27 10:56:26.000000000 +0200 -+++ MPlayer-20050413/libavcodec/libpostproc/postprocess_template.c 2005-04-14 16:35:07.000000000 +0300 -@@ -2648,6 +2648,8 @@ - static always_inline void RENAME(do_a_deblock)(uint8_t *src, int step, int stride, PPContext *c){ - int64_t dc_mask, eq_mask; - int64_t sums[10*8*2]; -+ int64_t dc_and_eq_mask; -+ - src+= step*3; // src points to begin of the 8x8 Block - //START_TIMER - asm volatile( -@@ -2754,8 +2756,9 @@ - : "r" (src), "r" ((long)step), "m" (c->pQPb), "m"(c->ppMode.flatnessThreshold) - : "%"REG_a - ); -+ dc_and_eq_mask=dc_mask & eq_mask; - -- if(dc_mask & eq_mask){ -+ if(dc_and_eq_mask){ - long offset= -8*step; - int64_t *temp_sums= sums; - -@@ -2930,7 +2933,7 @@ - " js 1b \n\t" - - : "+r"(offset), "+r"(temp_sums) -- : "r" ((long)step), "r"(src - offset), "m"(dc_mask & eq_mask) -+ : "r" ((long)step), "r"(src - offset), "m"(dc_and_eq_mask) - ); - }else - src+= step; // src points to begin of the 8x8 Block -diff -bBur MPlayer-20050413-orig/libmpdemux/frequencies.h MPlayer-20050413/libmpdemux/frequencies.h ---- MPlayer-20050413-orig/libmpdemux/frequencies.h 2001-11-17 00:06:48.000000000 +0200 -+++ MPlayer-20050413/libmpdemux/frequencies.h 2005-04-14 16:36:51.000000000 +0300 -@@ -104,7 +104,7 @@ - /* --------------------------------------------------------------------- */ - - extern struct CHANLISTS chanlists[]; --extern struct STRTAB chanlist_names[]; -+/* extern struct STRTAB chanlist_names[]; */ - - extern int chantab; - extern struct CHANLIST *chanlist; -diff -bBur MPlayer-20050413-orig/mmx.h MPlayer-20050413/mmx.h ---- MPlayer-20050413-orig/mmx.h 2001-10-28 13:47:21.000000000 +0200 -+++ MPlayer-20050413/mmx.h 2005-04-14 16:22:54.000000000 +0300 -@@ -353,11 +353,11 @@ - #define mmx_m2r(op, mem, reg) \ - __asm__ __volatile__ (#op " %0, %%" #reg \ - : /* nothing */ \ -- : "X" (mem)) -+ : "m" (mem)) - - #define mmx_r2m(op, reg, mem) \ - __asm__ __volatile__ (#op " %%" #reg ", %0" \ -- : "=X" (mem) \ -+ : "=m" (mem) \ - : /* nothing */ ) - - #define mmx_r2r(op, regs, regd) \ -@@ -367,8 +367,8 @@ - __asm__ __volatile__ ("movq %0, %%mm0\n\t" \ - #op " %1, %%mm0\n\t" \ - "movq %%mm0, %0" \ -- : "=X" (memd) \ -- : "X" (mems)) -+ : "=m" (memd) \ -+ : "m" (mems)) - - #endif - -diff -bBur MPlayer-20050413-orig/postproc/swscale_template.c MPlayer-20050413/postproc/swscale_template.c ---- MPlayer-20050413-orig/postproc/swscale_template.c 2005-02-17 01:47:00.000000000 +0200 -+++ MPlayer-20050413/postproc/swscale_template.c 2005-04-14 16:46:12.000000000 +0300 -@@ -2136,6 +2136,7 @@ - else - { - long counter= -2*dstW; -+ uint8_t* ptr=src+filterSize; - // filter-= counter*filterSize/2; - filterPos-= counter/2; - dst-= counter/2; -@@ -2177,7 +2178,7 @@ - " jnc 1b \n\t" - - : "+r" (counter), "+r" (filter) -- : "m" (filterPos), "m" (dst), "m"(src+filterSize), -+ : "m" (filterPos), "m" (dst), "m"(ptr), - "m" (src), "r" ((long)filterSize*2) - : "%"REG_b, "%"REG_a, "%"REG_c - ); -@@ -2320,6 +2321,8 @@ - { - #endif - //NO MMX just normal asm ... -+ int xInc_hi=xInc>>16; -+ int xInc_lo=xInc&0xffff; - asm volatile( - "xor %%"REG_a", %%"REG_a" \n\t" // i - "xor %%"REG_b", %%"REG_b" \n\t" // xx -@@ -2356,7 +2359,7 @@ - " jb 1b \n\t" - - -- :: "r" (src), "m" (dst), "m" (dstWidth), "m" (xInc>>16), "m" (xInc&0xFFFF) -+ :: "r" (src), "m" (dst), "m" (dstWidth), "m" (xInc_hi), "m" (xInc_lo) - : "%"REG_a, "%"REG_b, "%ecx", "%"REG_D, "%esi" - ); - #ifdef HAVE_MMX2 -@@ -2515,6 +2518,8 @@ - else - { - #endif -+ int xInc_hi=xInc>>16; -+ int xInc_lo=xInc&0xffff; - asm volatile( - "xor %%"REG_a", %%"REG_a" \n\t" // i - "xor %%"REG_b", %%"REG_b" \n\t" // xx -@@ -2548,7 +2553,7 @@ - "cmp %2, %%"REG_a" \n\t" - " jb 1b \n\t" - -- :: "m" (src1), "m" (dst), "m" ((long)dstWidth), "m" ((long)(xInc>>16)), "m" ((xInc&0xFFFF)), -+ :: "m" (src1), "m" (dst), "m" ((long)dstWidth), "m" ((long)(xInc_hi)), "m" ((xInc_lo)), - "r" (src2) - : "%"REG_a, "%"REG_b, "%ecx", "%"REG_D, "%esi" - ); - ---- MPlayer-1.0pre7/libvo/aclib_template.c 2005-04-25 08:26:11.000000000 +0000 -+++ MPlayer-1.0pre7.az/libvo/aclib_template.c 2005-04-25 08:26:17.000000000 +0000 -@@ -249,8 +249,8 @@ - MOVNTQ" %%mm6, 48(%1)\n" - MOVNTQ" %%mm7, 56(%1)\n" - :: "r" (from), "r" (to) : "memory"); -- ((const unsigned char *)from)+=64; -- ((unsigned char *)to)+=64; -+ from=((const unsigned char *)from)+64; -+ to=((unsigned char *)to)+64; - } - - // printf(" %d %d\n", (int)from&1023, (int)to&1023); -@@ -338,8 +338,8 @@ - MOVNTQ" %%mm6, 48(%1)\n" - MOVNTQ" %%mm7, 56(%1)\n" - :: "r" (from), "r" (to) : "memory"); -- ((const unsigned char *)from)+=64; -- ((unsigned char *)to)+=64; -+ from=((const unsigned char *)from)+64; -+ to=((unsigned char *)to)+64; - } - - #endif /* Have SSE */ diff --git a/media-video/mplayer/files/mplayer-1.0_pre7-gcc_detection.patch b/media-video/mplayer/files/mplayer-1.0_pre7-gcc_detection.patch deleted file mode 100644 index c58734081cde..000000000000 --- a/media-video/mplayer/files/mplayer-1.0_pre7-gcc_detection.patch +++ /dev/null @@ -1,20 +0,0 @@ ---- configure.old 2005-02-19 13:11:58.000000000 +0900 -+++ configure 2005-02-19 13:20:22.538154224 +0900 -@@ -586,7 +586,7 @@ - echocheck "$_cc version" - cc_vendor=gnu - cc_name=`( $_cc -v ) 2>&1 | _tail 1 | cut -d ' ' -f 1` -- cc_version=`( $_cc -dumpversion ) 2>&1` -+ cc_version=`( $_cc -dumpversion | cut -f1,2 -d.) 2>&1` - if test "$?" -gt 0; then - cc_version="not found" - fi -@@ -595,7 +595,7 @@ - cc_version="v. ?.??, bad" - cc_verc_fail=yes - ;; -- 2.95.[2-9]|2.95.[2-9][-.]*|3.[0-9]|3.[0-9].[0-9]|4.*) -+ 2.95.[2-9]|2.95.[2-9][-.]*|3.[0-9]|3.[0-9].[0-9]|3.[0-9][-.]*|3.[0-9].[0-9][-.]*|4.*) - _cc_major=`echo $cc_version | cut -d '.' -f 1` - _cc_minor=`echo $cc_version | cut -d '.' -f 2` - _cc_mini=`echo $cc_version | cut -d '.' -f 3` diff --git a/media-video/mplayer/files/mplayer-1.0_pre7-ppc64.patch b/media-video/mplayer/files/mplayer-1.0_pre7-ppc64.patch deleted file mode 100644 index 2eeb52343dda..000000000000 --- a/media-video/mplayer/files/mplayer-1.0_pre7-ppc64.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- configure.old 2004-12-25 00:19:51.396513200 +0900 -+++ configure 2004-12-25 00:20:10.908546920 +0900 -@@ -469,7 +469,7 @@ - host_arch=i386 - fi - ;; -- macppc|ppc) host_arch=ppc ;; -+ macppc|ppc|ppc64) host_arch=ppc ;; - alpha) host_arch=alpha ;; - sparc) host_arch=sparc ;; - sparc64) host_arch=sparc64 ;; diff --git a/media-video/mplayer/files/mplayer-mythtv.patch b/media-video/mplayer/files/mplayer-mythtv.patch deleted file mode 100644 index db3797b52bdc..000000000000 --- a/media-video/mplayer/files/mplayer-mythtv.patch +++ /dev/null @@ -1,381 +0,0 @@ -diff -ru MPlayer-0.90/libmpcodecs/native/nuppelvideo.c MPlayer-0.90+mdz/libmpcodecs/native/nuppelvideo.c ---- MPlayer-0.90/libmpcodecs/native/nuppelvideo.c 2002-08-28 18:45:45.000000000 -0400 -+++ MPlayer-0.90+mdz/libmpcodecs/native/nuppelvideo.c 2003-04-07 09:49:51.000000000 -0400 -@@ -33,6 +33,7 @@ - static unsigned char *previous_buffer = 0; /* to support Last-frame-copy */ - #endif - static int is_lzo_inited = 0; -+ static int is_rtjpeg_inited = 0; - - // printf("frametype: %c, comtype: %c, encoded_size: %d, width: %d, height: %d\n", - // encodedh->frametype, encodedh->comptype, encoded_size, width, height); -@@ -44,6 +45,7 @@ - /* tables are in encoded */ - if (encodedh->comptype == 'R') - { -+ is_rtjpeg_inited = 1; - RTjpeg_init_decompress ( (unsigned long *)(encoded+12), width, height ); - mp_msg(MSGT_DECVIDEO, MSGL_V, "Found RTjpeg tables (size: %d, width: %d, height: %d)\n", - encoded_size-12, width, height); -@@ -91,7 +93,10 @@ - mp_msg(MSGT_DECVIDEO, MSGL_ERR, "Nuppelvideo: error decompressing\n"); - break; - } -- RTjpeg_decompressYUV420 ( ( __s8 * ) buffer, decoded ); -+ if(is_rtjpeg_inited) -+ RTjpeg_decompressYUV420 ( ( __s8 * ) buffer, decoded ); -+ else /* MythTV */ -+ RTjpeg_decompressYUV420 ( ( __s8 * ) buffer + 12, decoded ); - break; - case '3': /* raw YUV420 with LZO */ - r = lzo1x_decompress ( encoded + 12, encodedh->packetlength, decoded, &out_len, NULL ); -diff -ru MPlayer-0.90/libmpdemux/demux_nuv.c MPlayer-0.90+mdz/libmpdemux/demux_nuv.c ---- MPlayer-0.90/libmpdemux/demux_nuv.c 2002-09-30 17:10:41.000000000 -0400 -+++ MPlayer-0.90+mdz/libmpdemux/demux_nuv.c 2003-04-07 09:50:30.000000000 -0400 -@@ -43,6 +43,60 @@ - nuv_position_t *current_position; - } nuv_priv_t; - -+/* stolen from libmp3lame -mdz */ -+ -+/* Used to find nearest matching bitrate -+ * we need bitrate-based values -+ * determined using tables -+ * -+ * bitrate in kbps -+ * -+ * Gabriel Bouvigne 2002-11-03 -+ */ -+int nearestBitrate(const int bitrate) -+{ -+ /* borrowed from DM abr presets*/ -+ -+ int index; // resolved range -+ -+ const int bitrate_table[] = {8, 16, 24, 32, 40, 48, 56, 64, 80, 96, 112, 128, 160, 192, 224, 256, 320}; -+ -+ -+ int lower_range = 0, lower_range_kbps = 0, -+ upper_range = 0, upper_range_kbps = 0; -+ -+ -+ int b; -+ -+ -+ // We assume specified bitrate will be 320kbps -+ upper_range_kbps = bitrate_table[16]; -+ upper_range = 16; -+ lower_range_kbps = bitrate_table[16]; -+ lower_range = 16; -+ -+ // Determine which significant bitrates the value specified falls between, -+ // if loop ends without breaking then we were correct above that the value was 320 -+ for (b = 0; b < 16; b++) { -+ if (bitrate < bitrate_table[b+1]) { -+ upper_range_kbps = bitrate_table[b+1]; -+ upper_range = b+1; -+ lower_range_kbps = bitrate_table[b]; -+ lower_range = (b); -+ break; // We found upper range -+ } -+ } -+ -+ // Determine which range the value specified is closer to -+ if ((upper_range_kbps - bitrate) > (bitrate - lower_range_kbps)) -+ index = lower_range; -+ else -+ index = upper_range; -+ -+ return bitrate_table[index]; -+} -+ -+#define MKTAG(a,b,c,d) (a | (b << 8) | (c << 16) | (d << 24)) - - /** - * Seek to a position relative to the current position, indicated in time. -@@ -147,17 +201,25 @@ - return 0; /* EOF */ - - #if 0 -- printf("NUV frame: frametype: %c, comptype: %c, packetlength: %d\n", -+ printf("NUV frame: frametype: %c, comptype: %c, packetlength: %d, timecode: %d\n", - rtjpeg_frameheader.frametype, rtjpeg_frameheader.comptype, -- rtjpeg_frameheader.packetlength); -+ rtjpeg_frameheader.packetlength, rtjpeg_frameheader.timecode); - #endif - -- /* Skip Seekpoint, Text and Sync for now */ -+ /* Skip Seekpoint, Extended header and Sync for now */ - if ((rtjpeg_frameheader.frametype == 'R') || -- (rtjpeg_frameheader.frametype == 'T') || -- (rtjpeg_frameheader.frametype == 'S')) -+ (rtjpeg_frameheader.frametype == 'X') || -+ (rtjpeg_frameheader.frametype == 'S')) - return 1; -- -+ -+ /* Skip seektable and text (these have a payload) */ -+ if (rtjpeg_frameheader.frametype == 'Q' || -+ rtjpeg_frameheader.frametype == 'T') { -+ stream_skip(demuxer->stream, rtjpeg_frameheader.packetlength); -+ return 1; -+ } -+ -+ - if (((rtjpeg_frameheader.frametype == 'D') && - (rtjpeg_frameheader.comptype == 'R')) || - (rtjpeg_frameheader.frametype == 'V')) -@@ -175,13 +237,13 @@ - /* put RTjpeg tables, Video info to video buffer */ - stream_seek ( demuxer->stream, orig_pos ); - ds_read_packet ( demuxer->video, demuxer->stream, rtjpeg_frameheader.packetlength + 12, -- rtjpeg_frameheader.timecode*0.001, orig_pos, 0 ); -+ rtjpeg_frameheader.timecode*0.001, orig_pos, 0 ); - - - } else - /* copy PCM only */ - if (demuxer->audio && (rtjpeg_frameheader.frametype == 'A') && -- (rtjpeg_frameheader.comptype == '0')) -+ 1 /*(rtjpeg_frameheader.comptype == '0')*/) - { - priv->current_audio_frame++; - if (want_audio) { -@@ -192,15 +254,110 @@ - orig_pos + 12, 0 ); - } else { - /* skip audio block */ -- stream_seek ( demuxer->stream, -- stream_tell ( demuxer->stream ) -- + rtjpeg_frameheader.packetlength ); -+ stream_skip ( demuxer->stream, -+ rtjpeg_frameheader.packetlength ); - } - } - - return 1; - } - -+/* Scan for the extended data in MythTV nuv streams */ -+int demux_xscan_nuv ( demuxer_t* demuxer, int width, int height ) -+{ -+ int i; -+ struct rtframeheader rtjpeg_frameheader; -+ struct extendeddata ext; -+ sh_video_t* sh_video = demuxer->video->sh; -+ sh_audio_t* sh_audio = demuxer->audio->sh; -+ -+ for( i = 0 ; i < 2 ; ++i ) { -+ if (stream_read ( demuxer->stream, (char*)& rtjpeg_frameheader, sizeof ( rtjpeg_frameheader ) ) < sizeof(rtjpeg_frameheader)) -+ return 0; /* EOF */ -+ -+ if (rtjpeg_frameheader.frametype != 'X') -+ stream_skip( demuxer->stream, rtjpeg_frameheader.packetlength ); -+ } -+ -+ if ( rtjpeg_frameheader.frametype != 'X' ) { -+ stream_reset( demuxer->stream ); -+ return 0; /* No X frame in the expected place */ -+ } -+ -+ if ( rtjpeg_frameheader.packetlength != sizeof(ext) ) { -+ printf("NUV extended frame does not have expected length, ignoring\n"); -+ stream_reset( demuxer->stream ); -+ return 0; -+ } -+ -+ if (stream_read( demuxer->stream, (char*)& ext, sizeof(ext)) < sizeof(ext)) { -+ stream_reset( demuxer->stream ); -+ return 0; /* EOF */ -+ } -+ -+ if ( ext.version != 1 ) { -+ printf("NUV extended frame has unknown version number (%d), ignoring\n", -+ ext.version); -+ stream_reset( demuxer->stream ); -+ return 0; -+ } -+ -+ printf("Detected MythTV stream, reading extended format information\n"); -+ -+ /* Video parameters */ -+ printf("FOURCC: %c%c%c%c\n", -+ (ext.video_fourcc >> 24) & 0xff, -+ (ext.video_fourcc >> 16) & 0xff, -+ (ext.video_fourcc >> 8) & 0xff, -+ (ext.video_fourcc) & 0xff); -+ if ( ext.video_fourcc == mmioFOURCC('R', 'J', 'P', 'G') ) { -+ long buf[128]; -+ -+ /* Ignore the fact that this is initialising the compression -+ Doing this will set the quality factor correctly */ -+ RTjpeg_init_compress(buf,width,height,ext.rtjpeg_quality); -+ RTjpeg_init_decompress(buf,width,height); -+ -+ sh_video->format = mmioFOURCC('N', 'U', 'V', '1'); -+ } else { -+ sh_video->format = ext.video_fourcc; -+ sh_video->i_bps = ext.lavc_bitrate; -+ } -+ -+ /* Audio parameters */ -+ if ( ext.audio_fourcc == mmioFOURCC('L', 'A', 'M', 'E') ) { -+ sh_audio->format = 0x55; -+ } else if ( ext.audio_fourcc == mmioFOURCC('R', 'A', 'W', 'A') ) { -+ sh_audio->format = 0x1; -+ } else { -+ printf("Warning! unknown audio format %d\n", ext.audio_fourcc); -+ } -+ -+ sh_audio->samplerate = ext.audio_sample_rate; -+ sh_audio->channels = ext.audio_channels; -+ -+ /* this is a little silly so that we can use libmp3lame's -+ nearestBitrate verbatim */ -+ if (sh_audio->format != 0x1) -+ sh_audio->i_bps = nearestBitrate(ext.audio_channels -+ * ext.audio_bits_per_sample -+ * ext.audio_sample_rate / -+ ext.audio_compression_ratio / 1000) * 1000; -+ -+ sh_audio->wf->wBitsPerSample = ext.audio_bits_per_sample; -+ sh_audio->wf->nAvgBytesPerSec = sh_audio->i_bps / 8; -+ sh_audio->wf->nBlockAlign = sh_audio->channels * 2; -+ sh_audio->wf->cbSize = 0; -+ sh_audio->wf->nSamplesPerSec = ext.audio_sample_rate; -+ sh_audio->wf->wFormatTag = sh_audio->format; -+ sh_audio->wf->nChannels = ext.audio_channels; -+ -+ printf("channels=%d bitspersample=%d samplerate=%d audio_compression_ratio=%d\n", ext.audio_channels, ext.audio_bits_per_sample, ext.audio_sample_rate, ext.audio_compression_ratio); -+ -+ stream_reset( demuxer->stream ); -+ -+ return 1; -+} - - demuxer_t* demux_open_nuv ( demuxer_t* demuxer ) - { -@@ -240,8 +397,6 @@ - */ - sh_video->ds = demuxer->video; - -- /* Custom fourcc for internal MPlayer use */ -- sh_video->format = mmioFOURCC('N', 'U', 'V', '1'); - - sh_video->disp_w = rtjpeg_fileheader.width; - sh_video->disp_h = rtjpeg_fileheader.height; -@@ -258,26 +413,44 @@ - sh_video->fps = rtjpeg_fileheader.fps; - sh_video->frametime = 1 / sh_video->fps; - -- if (rtjpeg_fileheader.audioblocks != 0) -- { -- sh_audio = new_sh_audio(demuxer, 0); -- demuxer->audio->sh = sh_audio; -- sh_audio->ds = demuxer->audio; -- sh_audio->format = 0x1; -- sh_audio->channels = 2; -- sh_audio->samplerate = 44100; -- -- sh_audio->wf = malloc(sizeof(WAVEFORMATEX)); -- memset(sh_audio->wf, 0, sizeof(WAVEFORMATEX)); -- sh_audio->wf->wFormatTag = sh_audio->format; -- sh_audio->wf->nChannels = sh_audio->channels; -- sh_audio->wf->wBitsPerSample = 16; -- sh_audio->wf->nSamplesPerSec = sh_audio->samplerate; -- sh_audio->wf->nAvgBytesPerSec = sh_audio->wf->nChannels* -- sh_audio->wf->wBitsPerSample*sh_audio->wf->nSamplesPerSec/8; -- sh_audio->wf->nBlockAlign = sh_audio->channels * 2; -- sh_audio->wf->cbSize = 0; -- } -+ if (rtjpeg_fileheader.audioblocks != 0) -+ { -+ sh_audio = new_sh_audio(demuxer, 0); -+ demuxer->audio->sh = sh_audio; -+ sh_audio->ds = demuxer->audio; -+ sh_audio->wf = malloc(sizeof(WAVEFORMATEX)); -+ memset(sh_audio->wf, 0, sizeof(WAVEFORMATEX)); -+ } -+ -+ /* Check for extended data (X frame) and read settings from it */ -+ if (! demux_xscan_nuv( demuxer, -+ rtjpeg_fileheader.width, -+ rtjpeg_fileheader.height) ) { -+ /* Otherwise assume defaults */ -+ printf("No NUV extended frame, using defaults\n"); -+ -+ /* Custom fourcc for internal MPlayer use */ -+ sh_video->format = mmioFOURCC('N', 'U', 'V', '1'); -+ -+ if (rtjpeg_fileheader.audioblocks != 0) -+ { -+ sh_audio->format = 0x1; -+ sh_audio->channels = 2; -+ sh_audio->samplerate = 44100; -+ sh_audio->wf->wBitsPerSample = 16; -+ } -+ -+ if (rtjpeg_fileheader.audioblocks != 0) -+ { -+ sh_audio->wf->wFormatTag = sh_audio->format; -+ sh_audio->wf->nChannels = sh_audio->channels; -+ sh_audio->wf->nSamplesPerSec = sh_audio->samplerate; -+ sh_audio->wf->nAvgBytesPerSec = sh_audio->wf->nChannels* -+ sh_audio->wf->wBitsPerSample*sh_audio->wf->nSamplesPerSec/8; -+ sh_audio->wf->nBlockAlign = sh_audio->channels * 2; -+ sh_audio->wf->cbSize = 0; -+ } -+ } - - priv->index_list = (nuv_position_t*) malloc(sizeof(nuv_position_t)); - priv->index_list->frame = 0; -@@ -300,9 +473,12 @@ - - stream_read(demuxer->stream,(char*)&ns,sizeof(ns)); - -- if ( strncmp ( ns.finfo, "NuppelVideo", 12 ) ) -+ if ( strncmp ( ns.finfo, "NuppelVideo", 12 ) && -+ strncmp ( ns.finfo, "MythTVVideo", 12 ) ) - return 0; /* Not a NuppelVideo file */ -- if ( strncmp ( ns.version, "0.05", 5 ) ) -+ if ( strncmp ( ns.version, "0.05", 5 ) && -+ strncmp ( ns.version, "0.06", 5 ) && -+ strncmp ( ns.version, "0.07", 5 ) ) - return 0; /* Wrong version NuppelVideo file */ - - /* Return to original position */ -Only in MPlayer-0.90+mdz/libmpdemux: demux_nuv.c~ -diff -ru MPlayer-0.90/libmpdemux/nuppelvideo.h MPlayer-0.90+mdz/libmpdemux/nuppelvideo.h ---- MPlayer-0.90/libmpdemux/nuppelvideo.h 2001-12-27 17:20:15.000000000 -0500 -+++ MPlayer-0.90+mdz/libmpdemux/nuppelvideo.h 2003-04-07 09:49:51.000000000 -0400 -@@ -90,3 +90,30 @@ - unsigned char *buffer_offset; - } audbuffertyp; - -+/* for MythTV */ -+typedef struct extendeddata -+{ -+ int version; // yes, this is repeated from the file header -+ int video_fourcc; // video encoding method used -+ int audio_fourcc; // audio encoding method used -+ // generic data -+ int audio_sample_rate; -+ int audio_bits_per_sample; -+ int audio_channels; -+ // codec specific -+ // mp3lame -+ int audio_compression_ratio; -+ int audio_quality; -+ // rtjpeg -+ int rtjpeg_quality; -+ int rtjpeg_luma_filter; -+ int rtjpeg_chroma_filter; -+ // libavcodec -+ int lavc_bitrate; -+ int lavc_qmin; -+ int lavc_qmax; -+ int lavc_maxqdiff; -+ // unused for later -- total size of 128 integers. -+ // new fields must be added at the end, above this comment. -+ int expansion[113]; -+} extendeddata; diff --git a/media-video/mplayer/mplayer-1.0.20060102.ebuild b/media-video/mplayer/mplayer-1.0.20060102.ebuild deleted file mode 100644 index 275ff5612cce..000000000000 --- a/media-video/mplayer/mplayer-1.0.20060102.ebuild +++ /dev/null @@ -1,594 +0,0 @@ -# Copyright 1999-2006 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/media-video/mplayer/mplayer-1.0.20060102.ebuild,v 1.12 2006/07/13 02:24:04 agriffis Exp $ - -inherit eutils flag-o-matic - -RESTRICT="nostrip" -IUSE="3dfx 3dnow 3dnowext aac aalib alsa altivec arts bidi bl bindist -cpudetection custom-cflags debug dga doc dts dvb cdparanoia directfb dvd dv -dvdread edl encode esd fbcon gif ggi gtk i8x0 ipv6 jack joystick jpeg libcaca -lirc live livecd lzo mad matroska matrox mmx mmxext musepack nas nls nvidia -vorbis opengl oss png real rtc samba sdl sse sse2 svga tga theora truetype -v4l v4l2 win32codecs X xanim xinerama xmms xv xvid xvmc" - -BLUV=1.4 -SVGV=1.9.17 - -# Handle PREversions as well -SRC_URI="mirror://mplayer/releases/${P}.tar.bz2 - mirror://mplayer/releases/fonts/font-arial-iso-8859-1.tar.bz2 - mirror://mplayer/releases/fonts/font-arial-iso-8859-2.tar.bz2 - mirror://mplayer/releases/fonts/font-arial-cp1250.tar.bz2 - svga? ( http://mplayerhq.hu/~alex/svgalib_helper-${SVGV}-mplayer.tar.bz2 ) - gtk? ( mirror://mplayer/Skin/Blue-${BLUV}.tar.bz2 )" - -# Only install Skin if GUI should be build (gtk as USE flag) -DESCRIPTION="Media Player for Linux (snapshot)" -HOMEPAGE="http://www.mplayerhq.hu/" - -# 'encode' in USE for MEncoder. -RDEPEND="xvid? ( >=media-libs/xvid-0.9.0 ) - win32codecs? ( >=media-libs/win32codecs-20040916 ) - x86? ( real? ( >=media-video/realplayer-10.0.3 ) ) - aalib? ( media-libs/aalib ) - alsa? ( media-libs/alsa-lib ) - arts? ( kde-base/arts ) - bidi? ( dev-libs/fribidi ) - cdparanoia? ( media-sound/cdparanoia ) - dga? ( || ( x11-libs/libXxf86dga <virtual/x11-7 ) ) - directfb? ( dev-libs/DirectFB ) - dts? ( media-libs/libdts ) - dvb? ( media-tv/linuxtv-dvb-headers ) - dvd? ( dvdread? ( media-libs/libdvdread ) ) - encode? ( - media-sound/lame - dv? ( >=media-libs/libdv-0.9.5 ) - ) - esd? ( media-sound/esound ) - gif? ( media-libs/giflib ) - ggi? ( media-libs/libggi ) - gtk? ( - media-libs/libpng - || ( ( x11-libs/libXxf86vm - x11-libs/libXext - x11-libs/libXi - ) - <virtual/x11-7 - ) - =x11-libs/gtk+-2* - =dev-libs/glib-2* - ) - jpeg? ( media-libs/jpeg ) - libcaca? ( media-libs/libcaca ) - lirc? ( app-misc/lirc ) - lzo? ( =dev-libs/lzo-1* ) - mad? ( media-libs/libmad ) - musepack? ( >=media-libs/libmpcdec-1.2.2 ) - nas? ( media-libs/nas ) - nls? ( virtual/libintl ) - vorbis? ( media-libs/libvorbis ) - opengl? ( virtual/opengl ) - png? ( media-libs/libpng ) - samba? ( >=net-fs/samba-2.2.8a ) - sdl? ( media-libs/libsdl ) - svga? ( media-libs/svgalib ) - theora? ( media-libs/libtheora ) - live? ( >=media-plugins/live-2004.07.20 ) - truetype? ( >=media-libs/freetype-2.1 ) - xinerama? ( || ( ( x11-libs/libXinerama - x11-libs/libXxf86vm - x11-libs/libXext - ) - <virtual/x11-7 - ) - ) - xmms? ( media-sound/xmms ) - xanim? ( >=media-video/xanim-2.80.1-r4 ) - sys-libs/ncurses - xv? ( || ( ( x11-libs/libXv - x11-libs/libXxf86vm - x11-libs/libXext - ) - <virtual/x11-7 - ) - ) - xvmc? ( || ( x11-libs/libXvMC <virtual/x11-7 ) ) - X? ( || ( ( x11-libs/libXxf86vm - x11-libs/libXext - ) - <virtual/x11-7 - ) - )" - -DEPEND="${RDEPEND} - app-arch/unzip - nls? ( sys-devel/gettext ) - dga? ( || ( x11-proto/xf86dgaproto <virtual/x11-7 ) ) - xinerama? ( || ( x11-proto/xineramaproto <virtual/x11-7 ) ) - xv? ( || ( ( x11-proto/videoproto - x11-proto/xf86vidmodeproto - ) - <virtual/x11-7 - ) - ) - gtk? ( || ( ( x11-proto/xextproto - x11-proto/xf86vidmodeproto - ) - <virtual/x11-7 - ) - ) - X? ( || ( ( x11-proto/xextproto - x11-proto/xf86vidmodeproto - ) - <virtual/x11-7 - ) - )" - -SLOT="0" -LICENSE="GPL-2" -KEYWORDS="-alpha -amd64 ~hppa -ia64 -ppc -ppc64 -sparc -x86" - -pkg_setup() { - if use real && use x86; then - REALLIBDIR="/opt/RealPlayer/codecs" - fi -} - -src_unpack() { - - unpack ${P}.tar.bz2 \ - font-arial-iso-8859-1.tar.bz2 font-arial-iso-8859-2.tar.bz2 \ - font-arial-cp1250.tar.bz2 - - use svga && unpack svgalib_helper-${SVGV}-mplayer.tar.bz2 - - use gtk && unpack Blue-${BLUV}.tar.bz2 - - cd ${S} - - # Fix hppa compilation - [ "${ARCH}" = "hppa" ] && sed -i -e "s/-O4/-O1/" "${S}/configure" - - if use svga - then - echo - einfo "Enabling vidix non-root mode." - einfo "(You need a proper svgalib_helper.o module for your kernel" - einfo " to actually use this)" - echo - - mv ${WORKDIR}/svgalib_helper ${S}/libdha - fi - - # Remove kernel-2.6 workaround as the problem it works around is - # fixed, and the workaround breaks sparc - use sparc && sed -i 's:#define __KERNEL__::' osdep/kerneltwosix.h - -} - -linguas_warn() { - ewarn "Language ${LANG[0]} or ${LANG_CC} not avaliable" - ewarn "Language set to English" - ewarn "If this is a mistake, please set the" - ewarn "First LINGUAS language to one of the following" - ewarn - ewarn "bg - Bulgarian" - ewarn "cs - Czech" - ewarn "de - German" - ewarn "dk - Danish" - ewarn "el - Greek" - ewarn "en - English" - ewarn "es - Spanish" - ewarn "fr - French" - ewarn "hu - Hungarian" - ewarn "ja - Japanese" - ewarn "ko - Korean" - ewarn "mk - FYRO Macedonian" - ewarn "nl - Dutch" - ewarn "no - Norwegian" - ewarn "pl - Polish" - ewarn "pt_BR - Portuguese - Brazil" - ewarn "ro - Romanian" - ewarn "ru - Russian" - ewarn "sk - Slovak" - ewarn "tr - Turkish" - ewarn "uk - Ukranian" - ewarn "zh_CN - Chinese - China" - ewarn "zh_TW - Chinese - Taiwan" - export LINGUAS="en ${LINGUAS}" -} - -src_compile() { - - # have fun with LINGUAS variable - if [[ -n $LINGUAS ]] - then - # LINGUAS has stuff in it, start the logic - LANG=( $LINGUAS ) - if [ -e ${S}/help/help_mp-${LANG[0]}.h ] - then - einfo "Setting MPlayer messages to language: ${LANG[0]}" - else - LANG_CC=${LANG[0]} - if [ ${#LANG_CC} -ge 2 ] - then - LANG_CC=${LANG_CC:0:2} - if [ -e ${S}/help/help_mp-${LANG_CC}.h ] - then - einfo "Setting MPlayer messages to language ${LANG_CC}" - export LINGUAS="${LANG_CC} ${LINGUAS}" - else - linguas_warn - fi - else - linguas_warn - fi - fi - else - # sending blank LINGUAS, make it default to en - einfo "No LINGUAS given, defaulting to English" - export LINGUAS="en ${LINGUAS}" - fi - - - - #FIXME make it work in the snapshot - local myconf="--disable-x264" - ################ - #Optional features# - ############### - if use cpudetection || use livecd || use bindist - then - myconf="${myconf} --enable-runtime-cpudetection" - fi - - myconf="${myconf} $(use_enable bidi fribidi)" - myconf="${myconf} $(use_enable cdparanoia)" - if use dvd; then - myconf="${myconf} $(use_enable dvdread) $(use_enable !dvdread mpdvdkit)" - else - myconf="${myconf} --disable-dvdread --disable-mpdvdkit" - fi - myconf="${myconf} $(use_enable edl)" - - if use encode ; then - myconf="${myconf} --enable-mencoder $(use_enable dv libdv)" - else - myconf="${myconf} --disable-mencoder --disable-libdv" - fi - - myconf="${myconf} $(use_enable gtk gui)" - - if use !gtk && use !X && use !xv && use !xinerama; then - myconf="${myconf} --disable-gui --disable-x11 --disable-xv --disable-xmga --disable-xinerama --disable-vm --disable-xvmc" - else - #note we ain't touching --enable-vm. That should be locked down in the future. - myconf="${myconf} --enable-x11 $(use_enable xinerama) $(use_enable xv) $(use_enable gtk gui)" - fi - - # this looks like a hack, but the - # --enable-dga needs a paramter, but there's no surefire - # way to tell what it is.. so I'm letting MPlayer decide - # the enable part - if ! use dga && ! use 3dfx ; then - myconf="${myconf} --disable-dga" - fi - # disable png *only* if gtk && png aren't on - if use png || use gtk; then - myconf="${myconf} --enable-png" - else - myconf="${myconf} --disable-png" - fi - myconf="${myconf} $(use_enable ipv6 inet6)" - myconf="${myconf} $(use_enable joystick)" - myconf="${myconf} $(use_enable lirc)" - myconf="${myconf} $(use_enable live)" - myconf="${myconf} $(use_enable rtc)" - myconf="${myconf} $(use_enable samba smb)" - myconf="${myconf} $(use_enable truetype freetype)" - myconf="${myconf} $(use_enable v4l tv-v4l)" - myconf="${myconf} $(use_enable v4l2 tv-v4l2)" - use jack || myconf="${myconf} --disable-jack" - - ######### - # Codecs # - ######## - myconf="${myconf} $(use_enable gif)" - myconf="${myconf} $(use_enable jpeg)" - #myconf="${myconf} $(use_enable ladspa)" - myconf="${myconf} $(use_enable dts libdts)" - myconf="${myconf} $(use_enable lzo liblzo)" - myconf="${myconf} $(use_enable matroska internal-matroska)" - myconf="${myconf} $(use_enable musepack)" - myconf="${myconf} $(use_enable aac internal-faad)" - myconf="${myconf} $(use_enable vorbis)" - myconf="${myconf} $(use_enable theora)" - myconf="${myconf} $(use_enable xmms)" - myconf="${myconf} $(use_enable xvid)" - use x86 && myconf="${myconf} $(use_enable real)" - myconf="${myconf} $(use_enable win32codecs win32)" - - ############# - # Video Output # - ############# - myconf="${myconf} $(use_enable 3dfx)" - if use 3dfx; then - myconf="${myconf} --enable-tdfxvid" - else - myconf="${myconf} --disable-tdfxvid" - fi - if use fbcon && use 3dfx; then - myconf="${myconf} --enable-tdfxfb" - else - myconf="${myconf} --disable-tdfxfb" - fi - - if use dvb ; then - myconf="${myconf} --enable-dvbhead --with-dvbincdir=/usr/include" - else - myconf="${myconf} --disable-dvbhead" - fi - - use aalib || myconf="${myconf} --disable-aa" - myconf="${myconf} $(use_enable directfb)" - myconf="${myconf} $(use_enable fbcon fbdev)" - myconf="${myconf} $(use_enable ggi)" - myconf="${myconf} $(use_enable libcaca caca)" - if use matrox && use X; then - myconf="${myconf} $(use_enable matrox xmga)" - fi - myconf="${myconf} $(use_enable matrox mga)" - myconf="${myconf} $(use_enable opengl gl)" - myconf="${myconf} $(use_enable sdl)" - - if use svga - then - myconf="${myconf} --enable-svga" - else - myconf="${myconf} --disable-svga --disable-vidix" - fi - - myconf="${myconf} $(use_enable tga)" - - ( use xvmc && use nvidia ) \ - && myconf="${myconf} --enable-xvmc --with-xvmclib=XvMCNVIDIA" - - ( use xvmc && use i8x0 ) \ - && myconf="${myconf} --enable-xvmc --with-xvmclib=I810XvMC" - - ( use xvmc && use nvidia && use i8x0 ) \ - && { - eerror "Invalid combination of USE flags" - eerror "When building support for xvmc, you may only" - eerror "include support for one video card:" - eerror " nvidia, i8x0" - eerror - eerror "Emerge again with different USE flags" - - exit 1 - } - - ( use xvmc && ! use nvidia && ! use i8x0 ) && { - ewarn "You tried to build with xvmc support." - ewarn "No supported graphics hardware was specified." - ewarn - ewarn "No xvmc support will be included." - ewarn "Please one appropriate USE flag and re-emerge:" - ewarn " nvidia or i8x0" - - myconf="${myconf} --disable-xvmc" - } - - ############# - # Audio Output # - ############# - myconf="${myconf} $(use_enable alsa)" - myconf="${myconf} $(use_enable arts)" - myconf="${myconf} $(use_enable esd)" - myconf="${myconf} $(use_enable mad)" - myconf="${myconf} $(use_enable nas)" - myconf="${myconf} $(use_enable oss ossaudio)" - - ################# - # Advanced Options # - ################# - # Platform specific flags, hardcoded on amd64 (see below) - use x86 && myconf="${myconf} $(use_enable 3dnow)" - use x86 && myconf="${myconf} $(use_enable 3dnowext 3dnowex)"; - use x86 && myconf="${myconf} $(use_enable sse)" - use x86 && myconf="${myconf} $(use_enable sse2)" - use x86 && myconf="${myconf} $(use_enable mmx)" - use x86 && myconf="${myconf} $(use_enable mmxext mmx2)" - myconf="${myconf} $(use_enable debug)" - myconf="${myconf} $(use_enable nls i18n)" - - # mplayer now contains SIMD assembler code for amd64 - # AMD64 Team decided to hardenable SIMD assembler for all users - # Danny van Dyk <kugelfang@gentoo.org> 2005/01/11 - if use amd64; then - myconf="${myconf} --enable-3dnow --enable-3dnowex --enable-sse --enable-sse2 --enable-mmx --enable-mmx2" - fi - - if use ppc64 - then - myconf="${myconf} --disable-altivec" - else - myconf="${myconf} $(use_enable altivec)" - use altivec && append-flags -maltivec -mabi=altivec - fi - - - if use xanim - then - myconf="${myconf} --with-xanimlibdir=/usr/lib/xanim/mods" - fi - - if [ -e /dev/.devfsd ] - then - myconf="${myconf} --enable-linux-devfs" - fi - - use xmms && myconf="${myconf} --with-xmmslibdir=/usr/$(get_libdir)" - - use live && myconf="${myconf} --with-livelibdir=/usr/$(get_libdir)/live" - - # support for blinkenlights - use bl && myconf="${myconf} --enable-bl" - - #leave this in place till the configure/compilation borkage is completely corrected back to pre4-r4 levels. - # it's intended for debugging so we can get the options we configure mplayer w/, rather then hunt about. - # it *will* be removed asap; in the meantime, doesn't hurt anything. - echo "${myconf}" > ${T}/configure-options - - if use custom-cflags - then - # let's play the filtration game! MPlayer hates on all! - strip-flags - # ugly optimizations cause MPlayer to cry on x86 systems! - if use x86 ; then - replace-flags -O0 -O2 - replace-flags -O3 -O2 - filter-flags -fPIC -fPIE - fi - else - unset CFLAGS CXXFLAGS - fi - - CFLAGS="$CFLAGS" ./configure \ - --prefix=/usr \ - --confdir=/usr/share/mplayer \ - --datadir=/usr/share/mplayer \ - --enable-largefiles \ - --enable-menu \ - --enable-network --enable-ftp \ - --with-reallibdir=${REALLIBDIR} \ - --with-x11incdir=/usr/X11R6/include \ - --disable-external-faad \ - ${myconf} || die - - # we run into problems if -jN > -j1 - # see #86245 - MAKEOPTS="${MAKEOPTS} -j1" - - einfo "Make" - make depend && emake || die "Failed to build MPlayer!" - einfo "Make completed" - - # We build the shared libpostproc.so here so that our - # mplayer binary is not linked to it, ensuring that we - # do not run into issues ... (bug #14479) - cd ${S}/libavcodec/libpostproc - make SHARED_PP="yes" || die "Failed to build libpostproc.so!" -} - -src_install() { - - einfo "Make install" - make prefix=${D}/usr \ - BINDIR=${D}/usr/bin \ - LIBDIR=${D}/usr/$(get_libdir) \ - CONFDIR=${D}/usr/share/mplayer \ - DATADIR=${D}/usr/share/mplayer \ - MANDIR=${D}/usr/share/man \ - install || die "Failed to install MPlayer!" - einfo "Make install completed" - - dodoc AUTHORS ChangeLog README - # Install the documentation; DOCS is all mixed up not just html - if use doc ; then - find "${S}/DOCS" -type d | xargs -- chmod 0755 - find "${S}/DOCS" -type f | xargs -- chmod 0644 - cp -r "${S}/DOCS" "${D}/usr/share/doc/${PF}/" || die - fi - - # Copy misc tools to documentation path, as they're not installed directly - # and yes, we are nuking the +x bit. - find "${S}/TOOLS" -type d | xargs -- chmod 0755 - find "${S}/TOOLS" -type f | xargs -- chmod 0644 - cp -r "${S}/TOOLS" "${D}/usr/share/doc/${PF}/" || die - - # Install the default Skin and Gnome menu entry - if use gtk; then - dodir /usr/share/mplayer/Skin - cp -r ${WORKDIR}/Blue ${D}/usr/share/mplayer/Skin/default || die - - # Fix the symlink - rm -rf ${D}/usr/bin/gmplayer - dosym mplayer /usr/bin/gmplayer - - insinto /usr/share/pixmaps - newins ${S}/Gui/mplayer/pixmaps/logo.xpm mplayer.xpm - insinto /usr/share/applications - doins ${FILESDIR}/mplayer.desktop - fi - - dodir /usr/share/mplayer/fonts - local x= - # Do this generic, as the mplayer people like to change the structure - # of their zips ... - for x in $(find ${WORKDIR}/ -type d -name 'font-arial-*') - do - cp -Rd ${x} ${D}/usr/share/mplayer/fonts - done - # Fix the font symlink ... - rm -rf ${D}/usr/share/mplayer/font - dosym fonts/font-arial-14-iso-8859-1 /usr/share/mplayer/font - - insinto /etc - newins ${S}/etc/example.conf mplayer.conf - dosed -e 's/include =/#include =/' /etc/mplayer.conf - dosed -e 's/fs=yes/fs=no/' /etc/mplayer.conf - dosym ../../../etc/mplayer.conf /usr/share/mplayer/mplayer.conf - - #mv the midentify script to /usr/bin for emovix. - cp ${D}/usr/share/doc/${PF}/TOOLS/midentify ${D}/usr/bin - chmod a+x ${D}/usr/bin/midentify - - insinto /usr/share/mplayer - doins ${S}/etc/codecs.conf - doins ${S}/etc/input.conf - doins ${S}/etc/menu.conf -} - -pkg_preinst() { - - if [ -d "${ROOT}/usr/share/mplayer/Skin/default" ] - then - rm -rf ${ROOT}/usr/share/mplayer/Skin/default - fi -} - -pkg_postinst() { - - if use matrox; then - depmod -a &>/dev/null || : - fi - - if use alsa ; then - einfo "For those using alsa, please note the ao driver name is no longer" - einfo "alsa9x or alsa1x. It is now just 'alsa' (omit quotes)." - einfo "The syntax for optional drivers has also changed. For example" - einfo "if you use a dmix driver called 'dmixer,' use" - einfo "ao=alsa:device=dmixer instead of ao=alsa:dmixer" - einfo "Some users may not need to specify the extra driver with the ao=" - einfo "command." - fi -} - -pkg_postrm() { - - # Cleanup stale symlinks - if [ -L ${ROOT}/usr/share/mplayer/font -a \ - ! -e ${ROOT}/usr/share/mplayer/font ] - then - rm -f ${ROOT}/usr/share/mplayer/font - fi - - if [ -L ${ROOT}/usr/share/mplayer/subfont.ttf -a \ - ! -e ${ROOT}/usr/share/mplayer/subfont.ttf ] - then - rm -f ${ROOT}/usr/share/mplayer/subfont.ttf - fi -} - diff --git a/media-video/mplayer/mplayer-1.0.20060217.ebuild b/media-video/mplayer/mplayer-1.0.20060217.ebuild deleted file mode 100644 index e84b903941c9..000000000000 --- a/media-video/mplayer/mplayer-1.0.20060217.ebuild +++ /dev/null @@ -1,594 +0,0 @@ -# Copyright 1999-2006 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/media-video/mplayer/mplayer-1.0.20060217.ebuild,v 1.20 2006/07/13 02:24:04 agriffis Exp $ - -inherit eutils flag-o-matic - -RESTRICT="nostrip" -IUSE="3dfx 3dnow 3dnowext aac aalib alsa altivec arts bidi bl bindist -cpudetection custom-cflags debug dga doc dts dvb cdparanoia directfb dvd dv -dvdread edl encode esd fbcon gif ggi gtk i8x0 ipv6 jack joystick jpeg libcaca -lirc live livecd lzo mad matroska matrox mmx mmxext musepack nas nls nvidia -vorbis opengl oss png real rtc samba sdl sse sse2 svga tga theora -truetype v4l v4l2 win32codecs X xanim xinerama xmms xv xvid xvmc" -# openal -BLUV=1.4 -SVGV=1.9.17 - -# Handle PREversions as well -SRC_URI="mirror://mplayer/releases/${P}.tar.bz2 - mirror://mplayer/releases/fonts/font-arial-iso-8859-1.tar.bz2 - mirror://mplayer/releases/fonts/font-arial-iso-8859-2.tar.bz2 - mirror://mplayer/releases/fonts/font-arial-cp1250.tar.bz2 - svga? ( http://mplayerhq.hu/~alex/svgalib_helper-${SVGV}-mplayer.tar.bz2 ) - gtk? ( mirror://mplayer/Skin/Blue-${BLUV}.tar.bz2 )" - -# Only install Skin if GUI should be build (gtk as USE flag) -DESCRIPTION="Media Player for Linux (snapshot)" -HOMEPAGE="http://www.mplayerhq.hu/" - -# 'encode' in USE for MEncoder. -RDEPEND="xvid? ( >=media-libs/xvid-0.9.0 ) - win32codecs? ( >=media-libs/win32codecs-20040916 ) - x86? ( real? ( >=media-video/realplayer-10.0.3 ) ) - aalib? ( media-libs/aalib ) - alsa? ( media-libs/alsa-lib ) - arts? ( kde-base/arts ) - bidi? ( dev-libs/fribidi ) - cdparanoia? ( media-sound/cdparanoia ) - dga? ( || ( x11-libs/libXxf86dga <virtual/x11-7 ) ) - directfb? ( dev-libs/DirectFB ) - dts? ( media-libs/libdts ) - dvb? ( media-tv/linuxtv-dvb-headers ) - dvd? ( dvdread? ( media-libs/libdvdread ) ) - encode? ( - media-sound/lame - dv? ( >=media-libs/libdv-0.9.5 ) - ) - esd? ( media-sound/esound ) - gif? ( media-libs/giflib ) - ggi? ( media-libs/libggi ) - gtk? ( - media-libs/libpng - || ( ( x11-libs/libXxf86vm - x11-libs/libXext - x11-libs/libXi - ) - <virtual/x11-7 - ) - =x11-libs/gtk+-2* - =dev-libs/glib-2* - ) - jpeg? ( media-libs/jpeg ) - libcaca? ( media-libs/libcaca ) - lirc? ( app-misc/lirc ) - lzo? ( =dev-libs/lzo-1* ) - mad? ( media-libs/libmad ) - musepack? ( >=media-libs/libmpcdec-1.2.2 ) - nas? ( media-libs/nas ) - nls? ( virtual/libintl ) - opengl? ( virtual/opengl ) - png? ( media-libs/libpng ) - samba? ( >=net-fs/samba-2.2.8a ) - sdl? ( media-libs/libsdl ) - svga? ( media-libs/svgalib ) - theora? ( media-libs/libtheora ) - live? ( >=media-plugins/live-2004.07.20 ) - truetype? ( >=media-libs/freetype-2.1 ) - xinerama? ( || ( ( x11-libs/libXinerama - x11-libs/libXxf86vm - x11-libs/libXext - ) - <virtual/x11-7 - ) - ) - xmms? ( media-sound/xmms ) - xanim? ( >=media-video/xanim-2.80.1-r4 ) - sys-libs/ncurses - xv? ( || ( ( x11-libs/libXv - x11-libs/libXxf86vm - x11-libs/libXext - ) - <virtual/x11-7 - ) - ) - xvmc? ( || ( x11-libs/libXvMC <virtual/x11-7 ) ) - X? ( || ( ( x11-libs/libXxf86vm - x11-libs/libXext - ) - <virtual/x11-7 - ) - )" - -DEPEND="${RDEPEND} - app-arch/unzip - nls? ( sys-devel/gettext ) - dga? ( || ( x11-proto/xf86dgaproto <virtual/x11-7 ) ) - xinerama? ( || ( x11-proto/xineramaproto <virtual/x11-7 ) ) - xv? ( || ( ( x11-proto/videoproto - x11-proto/xf86vidmodeproto - ) - <virtual/x11-7 - ) - ) - gtk? ( || ( ( x11-proto/xextproto - x11-proto/xf86vidmodeproto - ) - <virtual/x11-7 - ) - ) - X? ( || ( ( x11-proto/xextproto - x11-proto/xf86vidmodeproto - ) - <virtual/x11-7 - ) - )" - -SLOT="0" -LICENSE="GPL-2" -KEYWORDS="-alpha -amd64 -hppa -ia64 -ppc -ppc64 -sparc -x86" - -pkg_setup() { - if use real && use x86; then - REALLIBDIR="/opt/RealPlayer/codecs" - fi -} - -src_unpack() { - - unpack ${P}.tar.bz2 \ - font-arial-iso-8859-1.tar.bz2 font-arial-iso-8859-2.tar.bz2 \ - font-arial-cp1250.tar.bz2 - - use svga && unpack svgalib_helper-${SVGV}-mplayer.tar.bz2 - - use gtk && unpack Blue-${BLUV}.tar.bz2 - - cd ${S} - - # Fix hppa compilation - [ "${ARCH}" = "hppa" ] && sed -i -e "s/-O4/-O1/" "${S}/configure" - - if use svga - then - echo - einfo "Enabling vidix non-root mode." - einfo "(You need a proper svgalib_helper.o module for your kernel" - einfo " to actually use this)" - echo - - mv ${WORKDIR}/svgalib_helper ${S}/libdha - fi - - # Remove kernel-2.6 workaround as the problem it works around is - # fixed, and the workaround breaks sparc - use sparc && sed -i 's:#define __KERNEL__::' osdep/kerneltwosix.h - -} - -linguas_warn() { - ewarn "Language ${LANG[0]} or ${LANG_CC} not avaliable" - ewarn "Language set to English" - ewarn "If this is a mistake, please set the" - ewarn "First LINGUAS language to one of the following" - ewarn - ewarn "bg - Bulgarian" - ewarn "cs - Czech" - ewarn "de - German" - ewarn "dk - Danish" - ewarn "el - Greek" - ewarn "en - English" - ewarn "es - Spanish" - ewarn "fr - French" - ewarn "hu - Hungarian" - ewarn "ja - Japanese" - ewarn "ko - Korean" - ewarn "mk - FYRO Macedonian" - ewarn "nl - Dutch" - ewarn "no - Norwegian" - ewarn "pl - Polish" - ewarn "pt_BR - Portuguese - Brazil" - ewarn "ro - Romanian" - ewarn "ru - Russian" - ewarn "sk - Slovak" - ewarn "tr - Turkish" - ewarn "uk - Ukranian" - ewarn "zh_CN - Chinese - China" - ewarn "zh_TW - Chinese - Taiwan" - export LINGUAS="en ${LINGUAS}" -} - -src_compile() { - - # have fun with LINGUAS variable - if [[ -n $LINGUAS ]] - then - # LINGUAS has stuff in it, start the logic - LANG=( $LINGUAS ) - if [ -e ${S}/help/help_mp-${LANG[0]}.h ] - then - einfo "Setting MPlayer messages to language: ${LANG[0]}" - else - LANG_CC=${LANG[0]} - if [ ${#LANG_CC} -ge 2 ] - then - LANG_CC=${LANG_CC:0:2} - if [ -e ${S}/help/help_mp-${LANG_CC}.h ] - then - einfo "Setting MPlayer messages to language ${LANG_CC}" - export LINGUAS="${LANG_CC} ${LINGUAS}" - else - linguas_warn - fi - else - linguas_warn - fi - fi - else - # sending blank LINGUAS, make it default to en - einfo "No LINGUAS given, defaulting to English" - export LINGUAS="en ${LINGUAS}" - fi - - - - #FIXME make x264 work in the snapshot - local myconf="--disable-x264 --disable-external-faad" - ################ - #Optional features# - ############### - if use cpudetection || use livecd || use bindist - then - myconf="${myconf} --enable-runtime-cpudetection" - fi - - myconf="${myconf} $(use_enable bidi fribidi)" - myconf="${myconf} $(use_enable cdparanoia)" - if use dvd; then - myconf="${myconf} $(use_enable dvdread) $(use_enable !dvdread mpdvdkit)" - else - myconf="${myconf} --disable-dvdread --disable-mpdvdkit" - fi - myconf="${myconf} $(use_enable edl)" - - if use encode ; then - myconf="${myconf} --enable-mencoder $(use_enable dv libdv)" - else - myconf="${myconf} --disable-mencoder --disable-libdv" - fi - - myconf="${myconf} $(use_enable gtk gui)" - - if use !gtk && use !X && use !xv && use !xinerama; then - myconf="${myconf} --disable-gui --disable-x11 --disable-xv --disable-xmga --disable-xinerama --disable-vm --disable-xvmc" - else - #note we ain't touching --enable-vm. That should be locked down in the future. - myconf="${myconf} --enable-x11 $(use_enable xinerama) $(use_enable xv) $(use_enable gtk gui)" - fi - - # this looks like a hack, but the - # --enable-dga needs a paramter, but there's no surefire - # way to tell what it is.. so I'm letting MPlayer decide - # the enable part - if ! use dga && ! use 3dfx ; then - myconf="${myconf} --disable-dga" - fi - # disable png *only* if gtk && png aren't on - if use png || use gtk; then - myconf="${myconf} --enable-png" - else - myconf="${myconf} --disable-png" - fi - myconf="${myconf} $(use_enable ipv6 inet6)" - myconf="${myconf} $(use_enable joystick)" - myconf="${myconf} $(use_enable lirc)" - myconf="${myconf} $(use_enable live)" - myconf="${myconf} $(use_enable rtc)" - myconf="${myconf} $(use_enable samba smb)" - myconf="${myconf} $(use_enable truetype freetype)" - myconf="${myconf} $(use_enable v4l tv-v4l)" - myconf="${myconf} $(use_enable v4l2 tv-v4l2)" - use jack || myconf="${myconf} --disable-jack" - - ######### - # Codecs # - ######## - myconf="${myconf} $(use_enable gif)" - myconf="${myconf} $(use_enable jpeg)" - #myconf="${myconf} $(use_enable ladspa)" - myconf="${myconf} $(use_enable dts libdts)" - myconf="${myconf} $(use_enable lzo liblzo)" - myconf="${myconf} $(use_enable matroska internal-matroska)" - myconf="${myconf} $(use_enable musepack)" - myconf="${myconf} $(use_enable aac internal-faad)" - myconf="${myconf} $(use_enable vorbis)" - myconf="${myconf} $(use_enable theora)" - myconf="${myconf} $(use_enable xmms)" - myconf="${myconf} $(use_enable xvid)" - use x86 && myconf="${myconf} $(use_enable real)" - myconf="${myconf} $(use_enable win32codecs win32)" - - ############# - # Video Output # - ############# - myconf="${myconf} $(use_enable 3dfx)" - if use 3dfx; then - myconf="${myconf} --enable-tdfxvid" - else - myconf="${myconf} --disable-tdfxvid" - fi - if use fbcon && use 3dfx; then - myconf="${myconf} --enable-tdfxfb" - else - myconf="${myconf} --disable-tdfxfb" - fi - - if use dvb ; then - myconf="${myconf} --enable-dvbhead --with-dvbincdir=/usr/include" - else - myconf="${myconf} --disable-dvbhead" - fi - - use aalib || myconf="${myconf} --disable-aa" - myconf="${myconf} $(use_enable directfb)" - myconf="${myconf} $(use_enable fbcon fbdev)" - myconf="${myconf} $(use_enable ggi)" - myconf="${myconf} $(use_enable libcaca caca)" - if use matrox && use X; then - myconf="${myconf} $(use_enable matrox xmga)" - fi - myconf="${myconf} $(use_enable matrox mga)" - myconf="${myconf} $(use_enable opengl gl)" - myconf="${myconf} $(use_enable sdl)" - - if use svga - then - myconf="${myconf} --enable-svga" - else - myconf="${myconf} --disable-svga --disable-vidix" - fi - - myconf="${myconf} $(use_enable tga)" - - ( use xvmc && use nvidia ) \ - && myconf="${myconf} --enable-xvmc --with-xvmclib=XvMCNVIDIA" - - ( use xvmc && use i8x0 ) \ - && myconf="${myconf} --enable-xvmc --with-xvmclib=I810XvMC" - - ( use xvmc && use nvidia && use i8x0 ) \ - && { - eerror "Invalid combination of USE flags" - eerror "When building support for xvmc, you may only" - eerror "include support for one video card:" - eerror " nvidia, i8x0" - eerror - eerror "Emerge again with different USE flags" - - exit 1 - } - - ( use xvmc && ! use nvidia && ! use i8x0 ) && { - ewarn "You tried to build with xvmc support." - ewarn "No supported graphics hardware was specified." - ewarn - ewarn "No xvmc support will be included." - ewarn "Please one appropriate USE flag and re-emerge:" - ewarn " nvidia or i8x0" - - myconf="${myconf} --disable-xvmc" - } - - ############# - # Audio Output # - ############# - use alsa || myconf="${myconf} --disable-alsa" - use arts || myconf="${myconf} --disable-arts" - use esd || myconf="${myconf} --disable-esd" - use mad || myconf="${myconf} --disable-mad" - use nas || myconf="${myconf} --disable-nas" - myconf="${myconf} --disable-openal" - use oss || myconf="${myconf} --disable-ossaudio" - - ################# - # Advanced Options # - ################# - # Platform specific flags, hardcoded on amd64 (see below) - use x86 && myconf="${myconf} $(use_enable 3dnow)" - use x86 && myconf="${myconf} $(use_enable 3dnowext 3dnowex)"; - use x86 && myconf="${myconf} $(use_enable sse)" - use x86 && myconf="${myconf} $(use_enable sse2)" - use x86 && myconf="${myconf} $(use_enable mmx)" - use x86 && myconf="${myconf} $(use_enable mmxext mmx2)" - myconf="${myconf} $(use_enable debug)" - myconf="${myconf} $(use_enable nls i18n)" - - # mplayer now contains SIMD assembler code for amd64 - # AMD64 Team decided to hardenable SIMD assembler for all users - # Danny van Dyk <kugelfang@gentoo.org> 2005/01/11 - if use amd64; then - myconf="${myconf} --enable-3dnow --enable-3dnowex --enable-sse --enable-sse2 --enable-mmx --enable-mmx2" - fi - - if use ppc64 - then - myconf="${myconf} --disable-altivec" - else - myconf="${myconf} $(use_enable altivec)" - use altivec && append-flags -maltivec -mabi=altivec - fi - - - if use xanim - then - myconf="${myconf} --with-xanimlibdir=/usr/lib/xanim/mods" - fi - - if [ -e /dev/.devfsd ] - then - myconf="${myconf} --enable-linux-devfs" - fi - - use xmms && myconf="${myconf} --with-xmmslibdir=/usr/$(get_libdir)" - - use live && myconf="${myconf} --with-livelibdir=/usr/$(get_libdir)/live" - - # support for blinkenlights - use bl && myconf="${myconf} --enable-bl" - - #leave this in place till the configure/compilation borkage is completely corrected back to pre4-r4 levels. - # it's intended for debugging so we can get the options we configure mplayer w/, rather then hunt about. - # it *will* be removed asap; in the meantime, doesn't hurt anything. - echo "${myconf}" > ${T}/configure-options - - if use custom-cflags - then - # let's play the filtration game! MPlayer hates on all! - strip-flags - # ugly optimizations cause MPlayer to cry on x86 systems! - if use x86 ; then - replace-flags -O0 -O2 - replace-flags -O3 -O2 - filter-flags -fPIC -fPIE - fi - else - unset CFLAGS CXXFLAGS - fi - - CFLAGS="$CFLAGS" ./configure \ - --prefix=/usr \ - --confdir=/usr/share/mplayer \ - --datadir=/usr/share/mplayer \ - --enable-largefiles \ - --enable-menu \ - --enable-network --enable-ftp \ - --with-reallibdir=${REALLIBDIR} \ - --with-x11incdir=/usr/X11R6/include \ - --disable-external-faad \ - ${myconf} || die - - # we run into problems if -jN > -j1 - # see #86245 - MAKEOPTS="${MAKEOPTS} -j1" - - einfo "Make" - make depend && emake || die "Failed to build MPlayer!" - einfo "Make completed" - - # We build the shared libpostproc.so here so that our - # mplayer binary is not linked to it, ensuring that we - # do not run into issues ... (bug #14479) - cd ${S}/libavcodec/libpostproc - make SHARED_PP="yes" || die "Failed to build libpostproc.so!" -} - -src_install() { - - einfo "Make install" - make prefix=${D}/usr \ - BINDIR=${D}/usr/bin \ - LIBDIR=${D}/usr/$(get_libdir) \ - CONFDIR=${D}/usr/share/mplayer \ - DATADIR=${D}/usr/share/mplayer \ - MANDIR=${D}/usr/share/man \ - install || die "Failed to install MPlayer!" - einfo "Make install completed" - - dodoc AUTHORS ChangeLog README - # Install the documentation; DOCS is all mixed up not just html - if use doc ; then - find "${S}/DOCS" -type d | xargs -- chmod 0755 - find "${S}/DOCS" -type f | xargs -- chmod 0644 - cp -r "${S}/DOCS" "${D}/usr/share/doc/${PF}/" || die - fi - - # Copy misc tools to documentation path, as they're not installed directly - # and yes, we are nuking the +x bit. - find "${S}/TOOLS" -type d | xargs -- chmod 0755 - find "${S}/TOOLS" -type f | xargs -- chmod 0644 - cp -r "${S}/TOOLS" "${D}/usr/share/doc/${PF}/" || die - - # Install the default Skin and Gnome menu entry - if use gtk; then - dodir /usr/share/mplayer/Skin - cp -r ${WORKDIR}/Blue ${D}/usr/share/mplayer/Skin/default || die - - # Fix the symlink - rm -rf ${D}/usr/bin/gmplayer - dosym mplayer /usr/bin/gmplayer - - insinto /usr/share/pixmaps - newins ${S}/Gui/mplayer/pixmaps/logo.xpm mplayer.xpm - insinto /usr/share/applications - doins ${FILESDIR}/mplayer.desktop - fi - - dodir /usr/share/mplayer/fonts - local x= - # Do this generic, as the mplayer people like to change the structure - # of their zips ... - for x in $(find ${WORKDIR}/ -type d -name 'font-arial-*') - do - cp -Rd ${x} ${D}/usr/share/mplayer/fonts - done - # Fix the font symlink ... - rm -rf ${D}/usr/share/mplayer/font - dosym fonts/font-arial-14-iso-8859-1 /usr/share/mplayer/font - - insinto /etc - newins ${S}/etc/example.conf mplayer.conf - dosed -e 's/include =/#include =/' /etc/mplayer.conf - dosed -e 's/fs=yes/fs=no/' /etc/mplayer.conf - dosym ../../../etc/mplayer.conf /usr/share/mplayer/mplayer.conf - - #mv the midentify script to /usr/bin for emovix. - cp ${D}/usr/share/doc/${PF}/TOOLS/midentify ${D}/usr/bin - chmod a+x ${D}/usr/bin/midentify - - insinto /usr/share/mplayer - doins ${S}/etc/codecs.conf - doins ${S}/etc/input.conf - doins ${S}/etc/menu.conf -} - -pkg_preinst() { - - if [ -d "${ROOT}/usr/share/mplayer/Skin/default" ] - then - rm -rf ${ROOT}/usr/share/mplayer/Skin/default - fi -} - -pkg_postinst() { - - if use matrox; then - depmod -a &>/dev/null || : - fi - - if use alsa ; then - einfo "For those using alsa, please note the ao driver name is no longer" - einfo "alsa9x or alsa1x. It is now just 'alsa' (omit quotes)." - einfo "The syntax for optional drivers has also changed. For example" - einfo "if you use a dmix driver called 'dmixer,' use" - einfo "ao=alsa:device=dmixer instead of ao=alsa:dmixer" - einfo "Some users may not need to specify the extra driver with the ao=" - einfo "command." - fi -} - -pkg_postrm() { - - # Cleanup stale symlinks - if [ -L ${ROOT}/usr/share/mplayer/font -a \ - ! -e ${ROOT}/usr/share/mplayer/font ] - then - rm -f ${ROOT}/usr/share/mplayer/font - fi - - if [ -L ${ROOT}/usr/share/mplayer/subfont.ttf -a \ - ! -e ${ROOT}/usr/share/mplayer/subfont.ttf ] - then - rm -f ${ROOT}/usr/share/mplayer/subfont.ttf - fi -} - diff --git a/media-video/mplayer/mplayer-1.0.20060302.ebuild b/media-video/mplayer/mplayer-1.0.20060302.ebuild deleted file mode 100644 index 5d611a43782e..000000000000 --- a/media-video/mplayer/mplayer-1.0.20060302.ebuild +++ /dev/null @@ -1,607 +0,0 @@ -# Copyright 1999-2006 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/media-video/mplayer/mplayer-1.0.20060302.ebuild,v 1.13 2006/07/13 02:24:04 agriffis Exp $ - -inherit eutils flag-o-matic - -RESTRICT="nostrip" -IUSE="3dfx 3dnow 3dnowext aac aalib alsa altivec arts bidi bl bindist -cpudetection custom-cflags debug dga doc dts dvb cdparanoia directfb dvd dv -dvdread edl encode esd fbcon gif ggi gtk i8x0 ipv6 jack joystick jpeg libcaca -lirc live livecd lzo mad matroska matrox mmx mmxext musepack nas nls nvidia -vorbis opengl openal oss png real rtc samba sdl sse sse2 svga tga theora -truetype v4l v4l2 win32codecs X x264 xanim xinerama xmms xv xvid xvmc" -# openal -BLUV=1.4 -SVGV=1.9.17 - -# Handle PREversions as well -SRC_URI="mirror://mplayer/releases/${P}.tar.bz2 - mirror://mplayer/releases/fonts/font-arial-iso-8859-1.tar.bz2 - mirror://mplayer/releases/fonts/font-arial-iso-8859-2.tar.bz2 - mirror://mplayer/releases/fonts/font-arial-cp1250.tar.bz2 - svga? ( http://mplayerhq.hu/~alex/svgalib_helper-${SVGV}-mplayer.tar.bz2 ) - gtk? ( mirror://mplayer/Skin/Blue-${BLUV}.tar.bz2 )" - -# Only install Skin if GUI should be build (gtk as USE flag) -DESCRIPTION="Media Player for Linux (snapshot)" -HOMEPAGE="http://www.mplayerhq.hu/" - -# 'encode' in USE for MEncoder. -RDEPEND="xvid? ( >=media-libs/xvid-0.9.0 ) - win32codecs? ( >=media-libs/win32codecs-20040916 ) - x86? ( real? ( >=media-video/realplayer-10.0.3 ) ) - aalib? ( media-libs/aalib ) - alsa? ( media-libs/alsa-lib ) - arts? ( kde-base/arts ) - openal? ( media-libs/openal ) - bidi? ( dev-libs/fribidi ) - cdparanoia? ( media-sound/cdparanoia ) - dga? ( || ( x11-libs/libXxf86dga <virtual/x11-7 ) ) - directfb? ( dev-libs/DirectFB ) - dts? ( media-libs/libdts ) - dvb? ( media-tv/linuxtv-dvb-headers ) - dvd? ( dvdread? ( media-libs/libdvdread ) ) - encode? ( - media-sound/lame - dv? ( >=media-libs/libdv-0.9.5 ) - x264? ( media-libs/x264-svn ) - ) - esd? ( media-sound/esound ) - gif? ( media-libs/giflib ) - ggi? ( media-libs/libggi ) - gtk? ( - media-libs/libpng - || ( ( x11-libs/libXxf86vm - x11-libs/libXext - x11-libs/libXi - ) - <virtual/x11-7 - ) - =x11-libs/gtk+-2* - =dev-libs/glib-2* - ) - jpeg? ( media-libs/jpeg ) - libcaca? ( media-libs/libcaca ) - lirc? ( app-misc/lirc ) - lzo? ( =dev-libs/lzo-1* ) - mad? ( media-libs/libmad ) - musepack? ( >=media-libs/libmpcdec-1.2.2 ) - nas? ( media-libs/nas ) - nls? ( virtual/libintl ) - opengl? ( virtual/opengl ) - png? ( media-libs/libpng ) - samba? ( >=net-fs/samba-2.2.8a ) - sdl? ( media-libs/libsdl ) - svga? ( media-libs/svgalib ) - theora? ( media-libs/libtheora ) - live? ( >=media-plugins/live-2004.07.20 ) - truetype? ( >=media-libs/freetype-2.1 ) - xinerama? ( || ( ( x11-libs/libXinerama - x11-libs/libXxf86vm - x11-libs/libXext - ) - <virtual/x11-7 - ) - ) - xmms? ( media-sound/xmms ) - xanim? ( >=media-video/xanim-2.80.1-r4 ) - sys-libs/ncurses - xv? ( || ( ( x11-libs/libXv - x11-libs/libXxf86vm - x11-libs/libXext - ) - <virtual/x11-7 - ) - ) - xvmc? ( || ( x11-libs/libXvMC <virtual/x11-7 ) ) - X? ( || ( ( x11-libs/libXxf86vm - x11-libs/libXext - ) - <virtual/x11-7 - ) - )" - -DEPEND="${RDEPEND} - app-arch/unzip - doc? ( >=app-text/docbook-sgml-dtd-4.1.2 - app-text/docbook-xml-dtd - >=app-text/docbook-xml-simple-dtd-1.50.0 - dev-libs/libxslt - ) - nls? ( sys-devel/gettext ) - dga? ( || ( x11-proto/xf86dgaproto <virtual/x11-7 ) ) - xinerama? ( || ( x11-proto/xineramaproto <virtual/x11-7 ) ) - xv? ( || ( ( x11-proto/videoproto - x11-proto/xf86vidmodeproto - ) - <virtual/x11-7 - ) - ) - gtk? ( || ( ( x11-proto/xextproto - x11-proto/xf86vidmodeproto - ) - <virtual/x11-7 - ) - ) - X? ( || ( ( x11-proto/xextproto - x11-proto/xf86vidmodeproto - ) - <virtual/x11-7 - ) - )" - -SLOT="0" -LICENSE="GPL-2" -KEYWORDS="-alpha -amd64 -ia64 -ppc -ppc64 -sparc -x86" - -pkg_setup() { - if use real && use x86; then - REALLIBDIR="/opt/RealPlayer/codecs" - fi -} - -src_unpack() { - - unpack ${P}.tar.bz2 \ - font-arial-iso-8859-1.tar.bz2 font-arial-iso-8859-2.tar.bz2 \ - font-arial-cp1250.tar.bz2 - - use svga && unpack svgalib_helper-${SVGV}-mplayer.tar.bz2 - - use gtk && unpack Blue-${BLUV}.tar.bz2 - - cd ${S} - - # Fix hppa compilation - [ "${ARCH}" = "hppa" ] && sed -i -e "s/-O4/-O1/" "${S}/configure" - - if use svga - then - echo - einfo "Enabling vidix non-root mode." - einfo "(You need a proper svgalib_helper.o module for your kernel" - einfo " to actually use this)" - echo - - mv ${WORKDIR}/svgalib_helper ${S}/libdha - fi - - # Remove kernel-2.6 workaround as the problem it works around is - # fixed, and the workaround breaks sparc - use sparc && sed -i 's:#define __KERNEL__::' osdep/kerneltwosix.h - - # minor fix - sed -i -e "s:-O4:-O4 -D__STDC_LIMIT_MACROS:" configure - -} - -linguas_warn() { - ewarn "Language ${LANG[0]} or ${LANG_CC} not avaliable" - ewarn "Language set to English" - ewarn "If this is a mistake, please set the" - ewarn "First LINGUAS language to one of the following" - ewarn - ewarn "bg - Bulgarian" - ewarn "cs - Czech" - ewarn "de - German" - ewarn "dk - Danish" - ewarn "el - Greek" - ewarn "en - English" - ewarn "es - Spanish" - ewarn "fr - French" - ewarn "hu - Hungarian" - ewarn "ja - Japanese" - ewarn "ko - Korean" - ewarn "mk - FYRO Macedonian" - ewarn "nl - Dutch" - ewarn "no - Norwegian" - ewarn "pl - Polish" - ewarn "pt_BR - Portuguese - Brazil" - ewarn "ro - Romanian" - ewarn "ru - Russian" - ewarn "sk - Slovak" - ewarn "tr - Turkish" - ewarn "uk - Ukranian" - ewarn "zh_CN - Chinese - China" - ewarn "zh_TW - Chinese - Taiwan" - export LINGUAS="en ${LINGUAS}" -} - -src_compile() { - - # have fun with LINGUAS variable - if [[ -n $LINGUAS ]] - then - # LINGUAS has stuff in it, start the logic - LANG=( $LINGUAS ) - if [ -e ${S}/help/help_mp-${LANG[0]}.h ] - then - einfo "Setting MPlayer messages to language: ${LANG[0]}" - else - LANG_CC=${LANG[0]} - if [ ${#LANG_CC} -ge 2 ] - then - LANG_CC=${LANG_CC:0:2} - if [ -e ${S}/help/help_mp-${LANG_CC}.h ] - then - einfo "Setting MPlayer messages to language ${LANG_CC}" - export LINGUAS="${LANG_CC} ${LINGUAS}" - else - linguas_warn - fi - else - linguas_warn - fi - fi - else - # sending blank LINGUAS, make it default to en - einfo "No LINGUAS given, defaulting to English" - export LINGUAS="en ${LINGUAS}" - fi - - - - - local myconf="--disable-external-faad --disable-tv-bsdbt848" - ################ - #Optional features# - ############### - if use cpudetection || use livecd || use bindist - then - myconf="${myconf} --enable-runtime-cpudetection" - fi - - myconf="${myconf} $(use_enable bidi fribidi)" - myconf="${myconf} $(use_enable cdparanoia)" - if use dvd; then - myconf="${myconf} $(use_enable dvdread) $(use_enable !dvdread mpdvdkit)" - else - myconf="${myconf} --disable-dvdread --disable-mpdvdkit" - fi - myconf="${myconf} $(use_enable edl)" - - if use encode ; then - myconf="${myconf} --enable-mencoder $(use_enable dv libdv) \ - $(use_enable x264)" - else - myconf="${myconf} --disable-mencoder --disable-libdv --disable-x264" - fi - - myconf="${myconf} $(use_enable gtk gui)" - - if use !gtk && use !X && use !xv && use !xinerama; then - myconf="${myconf} --disable-gui --disable-x11 --disable-xv --disable-xmga --disable-xinerama --disable-vm --disable-xvmc" - else - #note we ain't touching --enable-vm. That should be locked down in the future. - myconf="${myconf} --enable-x11 $(use_enable xinerama) $(use_enable xv) $(use_enable gtk gui)" - fi - - # this looks like a hack, but the - # --enable-dga needs a paramter, but there's no surefire - # way to tell what it is.. so I'm letting MPlayer decide - # the enable part - if ! use dga && ! use 3dfx ; then - myconf="${myconf} --disable-dga" - fi - # disable png *only* if gtk && png aren't on - if use png || use gtk; then - myconf="${myconf} --enable-png" - else - myconf="${myconf} --disable-png" - fi - myconf="${myconf} $(use_enable ipv6 inet6)" - myconf="${myconf} $(use_enable joystick)" - myconf="${myconf} $(use_enable lirc)" - myconf="${myconf} $(use_enable live)" - myconf="${myconf} $(use_enable rtc)" - myconf="${myconf} $(use_enable samba smb)" - myconf="${myconf} $(use_enable truetype freetype)" - myconf="${myconf} $(use_enable v4l tv-v4l)" - myconf="${myconf} $(use_enable v4l2 tv-v4l2)" - use jack || myconf="${myconf} --disable-jack" - - ######### - # Codecs # - ######## - myconf="${myconf} $(use_enable gif)" - myconf="${myconf} $(use_enable jpeg)" - #myconf="${myconf} $(use_enable ladspa)" - myconf="${myconf} $(use_enable dts libdts)" - myconf="${myconf} $(use_enable lzo liblzo)" - myconf="${myconf} $(use_enable matroska internal-matroska)" - myconf="${myconf} $(use_enable musepack)" - myconf="${myconf} $(use_enable aac internal-faad)" - myconf="${myconf} $(use_enable vorbis)" - myconf="${myconf} $(use_enable theora)" - myconf="${myconf} $(use_enable xmms)" - myconf="${myconf} $(use_enable xvid)" - use x86 && myconf="${myconf} $(use_enable real)" - myconf="${myconf} $(use_enable win32codecs win32)" - - ############# - # Video Output # - ############# - myconf="${myconf} $(use_enable 3dfx)" - if use 3dfx; then - myconf="${myconf} --enable-tdfxvid" - else - myconf="${myconf} --disable-tdfxvid" - fi - if use fbcon && use 3dfx; then - myconf="${myconf} --enable-tdfxfb" - else - myconf="${myconf} --disable-tdfxfb" - fi - - if use dvb ; then - myconf="${myconf} --enable-dvbhead --with-dvbincdir=/usr/include" - else - myconf="${myconf} --disable-dvbhead" - fi - - use aalib || myconf="${myconf} --disable-aa" - myconf="${myconf} $(use_enable directfb)" - myconf="${myconf} $(use_enable fbcon fbdev)" - myconf="${myconf} $(use_enable ggi)" - myconf="${myconf} $(use_enable libcaca caca)" - if use matrox && use X; then - myconf="${myconf} $(use_enable matrox xmga)" - fi - myconf="${myconf} $(use_enable matrox mga)" - myconf="${myconf} $(use_enable opengl gl)" - myconf="${myconf} $(use_enable sdl)" - - if use svga - then - myconf="${myconf} --enable-svga" - else - myconf="${myconf} --disable-svga --disable-vidix" - fi - - myconf="${myconf} $(use_enable tga)" - - ( use xvmc && use nvidia ) \ - && myconf="${myconf} --enable-xvmc --with-xvmclib=XvMCNVIDIA" - - ( use xvmc && use i8x0 ) \ - && myconf="${myconf} --enable-xvmc --with-xvmclib=I810XvMC" - - ( use xvmc && use nvidia && use i8x0 ) \ - && { - eerror "Invalid combination of USE flags" - eerror "When building support for xvmc, you may only" - eerror "include support for one video card:" - eerror " nvidia, i8x0" - eerror - eerror "Emerge again with different USE flags" - - exit 1 - } - - ( use xvmc && ! use nvidia && ! use i8x0 ) && { - ewarn "You tried to build with xvmc support." - ewarn "No supported graphics hardware was specified." - ewarn - ewarn "No xvmc support will be included." - ewarn "Please one appropriate USE flag and re-emerge:" - ewarn " nvidia or i8x0" - - myconf="${myconf} --disable-xvmc" - } - - ############# - # Audio Output # - ############# - use alsa || myconf="${myconf} --disable-alsa" - use arts || myconf="${myconf} --disable-arts" - use esd || myconf="${myconf} --disable-esd" - use mad || myconf="${myconf} --disable-mad" - use nas || myconf="${myconf} --disable-nas" - use openal || myconf="${myconf} --disable-openal" - use oss || myconf="${myconf} --disable-ossaudio" - - ################# - # Advanced Options # - ################# - # Platform specific flags, hardcoded on amd64 (see below) - use x86 && myconf="${myconf} $(use_enable 3dnow)" - use x86 && myconf="${myconf} $(use_enable 3dnowext 3dnowex)"; - use x86 && myconf="${myconf} $(use_enable sse)" - use x86 && myconf="${myconf} $(use_enable sse2)" - use x86 && myconf="${myconf} $(use_enable mmx)" - use x86 && myconf="${myconf} $(use_enable mmxext mmx2)" - myconf="${myconf} $(use_enable debug)" - myconf="${myconf} $(use_enable nls i18n)" - - # mplayer now contains SIMD assembler code for amd64 - # AMD64 Team decided to hardenable SIMD assembler for all users - # Danny van Dyk <kugelfang@gentoo.org> 2005/01/11 - if use amd64; then - myconf="${myconf} --enable-3dnow --enable-3dnowex --enable-sse --enable-sse2 --enable-mmx --enable-mmx2" - fi - - if use ppc64 - then - myconf="${myconf} --disable-altivec" - else - myconf="${myconf} $(use_enable altivec)" - use altivec && append-flags -maltivec -mabi=altivec - fi - - - if use xanim - then - myconf="${myconf} --with-xanimlibdir=/usr/lib/xanim/mods" - fi - - if [ -e /dev/.devfsd ] - then - myconf="${myconf} --enable-linux-devfs" - fi - - use xmms && myconf="${myconf} --with-xmmslibdir=/usr/$(get_libdir)" - - use live && myconf="${myconf} --with-livelibdir=/usr/$(get_libdir)/live" - - # support for blinkenlights - use bl && myconf="${myconf} --enable-bl" - - #leave this in place till the configure/compilation borkage is completely corrected back to pre4-r4 levels. - # it's intended for debugging so we can get the options we configure mplayer w/, rather then hunt about. - # it *will* be removed asap; in the meantime, doesn't hurt anything. - echo "${myconf}" > ${T}/configure-options - - if use custom-cflags - then - # let's play the filtration game! MPlayer hates on all! - strip-flags - # ugly optimizations cause MPlayer to cry on x86 systems! - if use x86 ; then - replace-flags -O0 -O2 - replace-flags -O3 -O2 - filter-flags -fPIC -fPIE - fi - append-flags -D__STDC_LIMIT_MACROS - else - unset CFLAGS CXXFLAGS - fi - - CFLAGS="$CFLAGS" ./configure \ - --prefix=/usr \ - --confdir=/usr/share/mplayer \ - --datadir=/usr/share/mplayer \ - --enable-largefiles \ - --enable-menu \ - --enable-network --enable-ftp \ - --with-reallibdir=${REALLIBDIR} \ - --with-x11incdir=/usr/X11R6/include \ - --disable-external-faad \ - ${myconf} || die - - # we run into problems if -jN > -j1 - # see #86245 - MAKEOPTS="${MAKEOPTS} -j1" - - einfo "Make" - make depend && emake || die "Failed to build MPlayer!" - cd doc && make -C DOCS/xml html-chunked - einfo "Make completed" - - # We build the shared libpostproc.so here so that our - # mplayer binary is not linked to it, ensuring that we - # do not run into issues ... (bug #14479) - cd ${S}/libavcodec/libpostproc - make SHARED_PP="yes" || die "Failed to build libpostproc.so!" -} - -src_install() { - - einfo "Make install" - make prefix=${D}/usr \ - BINDIR=${D}/usr/bin \ - LIBDIR=${D}/usr/$(get_libdir) \ - CONFDIR=${D}/usr/share/mplayer \ - DATADIR=${D}/usr/share/mplayer \ - MANDIR=${D}/usr/share/man \ - install || die "Failed to install MPlayer!" - einfo "Make install completed" - - dodoc AUTHORS ChangeLog README - # Install the documentation; DOCS is all mixed up not just html - if use doc ; then - find "${S}/DOCS" -type d | xargs -- chmod 0755 - find "${S}/DOCS" -type f | xargs -- chmod 0644 - cp -r "${S}/DOCS" "${D}/usr/share/doc/${PF}/" || die - fi - - # Copy misc tools to documentation path, as they're not installed directly - # and yes, we are nuking the +x bit. - find "${S}/TOOLS" -type d | xargs -- chmod 0755 - find "${S}/TOOLS" -type f | xargs -- chmod 0644 - cp -r "${S}/TOOLS" "${D}/usr/share/doc/${PF}/" || die - - # Install the default Skin and Gnome menu entry - if use gtk; then - dodir /usr/share/mplayer/Skin - cp -r ${WORKDIR}/Blue ${D}/usr/share/mplayer/Skin/default || die - - # Fix the symlink - rm -rf ${D}/usr/bin/gmplayer - dosym mplayer /usr/bin/gmplayer - - insinto /usr/share/pixmaps - newins ${S}/Gui/mplayer/pixmaps/logo.xpm mplayer.xpm - insinto /usr/share/applications - doins ${FILESDIR}/mplayer.desktop - fi - - dodir /usr/share/mplayer/fonts - local x= - # Do this generic, as the mplayer people like to change the structure - # of their zips ... - for x in $(find ${WORKDIR}/ -type d -name 'font-arial-*') - do - cp -pPR ${x} ${D}/usr/share/mplayer/fonts - done - # Fix the font symlink ... - rm -rf ${D}/usr/share/mplayer/font - dosym fonts/font-arial-14-iso-8859-1 /usr/share/mplayer/font - - insinto /etc - newins ${S}/etc/example.conf mplayer.conf - dosed -e 's/include =/#include =/' /etc/mplayer.conf - dosed -e 's/fs=yes/fs=no/' /etc/mplayer.conf - dosym ../../../etc/mplayer.conf /usr/share/mplayer/mplayer.conf - - #mv the midentify script to /usr/bin for emovix. - cp ${D}/usr/share/doc/${PF}/TOOLS/midentify ${D}/usr/bin - chmod a+x ${D}/usr/bin/midentify - - insinto /usr/share/mplayer - doins ${S}/etc/codecs.conf - doins ${S}/etc/input.conf - doins ${S}/etc/menu.conf -} - -pkg_preinst() { - - if [ -d "${ROOT}/usr/share/mplayer/Skin/default" ] - then - rm -rf ${ROOT}/usr/share/mplayer/Skin/default - fi -} - -pkg_postinst() { - - if use matrox; then - depmod -a &>/dev/null || : - fi - - if use alsa ; then - einfo "For those using alsa, please note the ao driver name is no longer" - einfo "alsa9x or alsa1x. It is now just 'alsa' (omit quotes)." - einfo "The syntax for optional drivers has also changed. For example" - einfo "if you use a dmix driver called 'dmixer,' use" - einfo "ao=alsa:device=dmixer instead of ao=alsa:dmixer" - einfo "Some users may not need to specify the extra driver with the ao=" - einfo "command." - fi -} - -pkg_postrm() { - - # Cleanup stale symlinks - if [ -L ${ROOT}/usr/share/mplayer/font -a \ - ! -e ${ROOT}/usr/share/mplayer/font ] - then - rm -f ${ROOT}/usr/share/mplayer/font - fi - - if [ -L ${ROOT}/usr/share/mplayer/subfont.ttf -a \ - ! -e ${ROOT}/usr/share/mplayer/subfont.ttf ] - then - rm -f ${ROOT}/usr/share/mplayer/subfont.ttf - fi -} - diff --git a/media-video/mplayer/mplayer-1.0.20060408.ebuild b/media-video/mplayer/mplayer-1.0.20060408.ebuild deleted file mode 100644 index 8f440a00efe5..000000000000 --- a/media-video/mplayer/mplayer-1.0.20060408.ebuild +++ /dev/null @@ -1,604 +0,0 @@ -# Copyright 1999-2006 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/media-video/mplayer/mplayer-1.0.20060408.ebuild,v 1.12 2006/07/13 02:24:04 agriffis Exp $ - -inherit eutils flag-o-matic - -RESTRICT="nostrip" -IUSE="3dfx 3dnow 3dnowext aac aalib alsa altivec arts bidi bl bindist -cpudetection custom-cflags debug dga doc dts dvb cdparanoia directfb dvd dv -dvdread edl encode esd fbcon gif ggi gtk i8x0 ipv6 jack joystick jpeg libcaca -lirc live livecd lzo mad matroska matrox mmx mmxext musepack nas nls nvidia -unicode vorbis opengl openal oss png real rtc samba sdl sse sse2 svga tga -theora truetype v4l v4l2 win32codecs X x264 xanim xinerama xmms xv xvid xvmc" -# openal -BLUV=1.4 -SVGV=1.9.17 - -# Handle PREversions as well -SRC_URI="mirror://mplayer/releases/${P}.tar.bz2 - mirror://mplayer/releases/fonts/font-arial-iso-8859-1.tar.bz2 - mirror://mplayer/releases/fonts/font-arial-iso-8859-2.tar.bz2 - mirror://mplayer/releases/fonts/font-arial-cp1250.tar.bz2 - svga? ( http://mplayerhq.hu/~alex/svgalib_helper-${SVGV}-mplayer.tar.bz2 ) - gtk? ( mirror://mplayer/Skin/Blue-${BLUV}.tar.bz2 )" - -# Only install Skin if GUI should be build (gtk as USE flag) -DESCRIPTION="Media Player for Linux (snapshot)" -HOMEPAGE="http://www.mplayerhq.hu/" - -# 'encode' in USE for MEncoder. -RDEPEND="xvid? ( >=media-libs/xvid-0.9.0 ) - win32codecs? ( >=media-libs/win32codecs-20040916 ) - x86? ( real? ( >=media-video/realplayer-10.0.3 ) ) - aalib? ( media-libs/aalib ) - alsa? ( media-libs/alsa-lib ) - arts? ( kde-base/arts ) - openal? ( media-libs/openal ) - bidi? ( dev-libs/fribidi ) - cdparanoia? ( media-sound/cdparanoia ) - dga? ( || ( x11-libs/libXxf86dga <virtual/x11-7 ) ) - directfb? ( dev-libs/DirectFB ) - dts? ( media-libs/libdts ) - dvb? ( media-tv/linuxtv-dvb-headers ) - dvd? ( dvdread? ( media-libs/libdvdread ) ) - encode? ( - media-sound/lame - dv? ( >=media-libs/libdv-0.9.5 ) - x264? ( >=media-libs/x264-svn-20060409 ) - ) - esd? ( media-sound/esound ) - gif? ( media-libs/giflib ) - ggi? ( media-libs/libggi ) - gtk? ( - media-libs/libpng - || ( ( x11-libs/libXxf86vm - x11-libs/libXext - x11-libs/libXi - ) - <virtual/x11-7 - ) - =x11-libs/gtk+-2* - =dev-libs/glib-2* - ) - jpeg? ( media-libs/jpeg ) - libcaca? ( media-libs/libcaca ) - lirc? ( app-misc/lirc ) - lzo? ( =dev-libs/lzo-1* ) - mad? ( media-libs/libmad ) - musepack? ( >=media-libs/libmpcdec-1.2.2 ) - nas? ( media-libs/nas ) - nls? ( virtual/libintl ) - opengl? ( virtual/opengl ) - png? ( media-libs/libpng ) - samba? ( >=net-fs/samba-2.2.8a ) - sdl? ( media-libs/libsdl ) - svga? ( media-libs/svgalib ) - theora? ( media-libs/libtheora ) - live? ( >=media-plugins/live-2004.07.20 ) - truetype? ( >=media-libs/freetype-2.1 ) - xinerama? ( || ( ( x11-libs/libXinerama - x11-libs/libXxf86vm - x11-libs/libXext - ) - <virtual/x11-7 - ) - ) - xmms? ( media-sound/xmms ) - xanim? ( >=media-video/xanim-2.80.1-r4 ) - sys-libs/ncurses - xv? ( || ( ( x11-libs/libXv - x11-libs/libXxf86vm - x11-libs/libXext - ) - <virtual/x11-7 - ) - ) - xvmc? ( || ( x11-libs/libXvMC <virtual/x11-7 ) ) - X? ( || ( ( x11-libs/libXxf86vm - x11-libs/libXext - ) - <virtual/x11-7 - ) - )" - -DEPEND="${RDEPEND} - app-arch/unzip - doc? ( >=app-text/docbook-sgml-dtd-4.1.2 - app-text/docbook-xml-dtd - >=app-text/docbook-xml-simple-dtd-1.50.0 - dev-libs/libxslt - ) - nls? ( sys-devel/gettext ) - dga? ( || ( x11-proto/xf86dgaproto <virtual/x11-7 ) ) - xinerama? ( || ( x11-proto/xineramaproto <virtual/x11-7 ) ) - xv? ( || ( ( x11-proto/videoproto - x11-proto/xf86vidmodeproto - ) - <virtual/x11-7 - ) - ) - gtk? ( || ( ( x11-proto/xextproto - x11-proto/xf86vidmodeproto - ) - <virtual/x11-7 - ) - ) - X? ( || ( ( x11-proto/xextproto - x11-proto/xf86vidmodeproto - ) - <virtual/x11-7 - ) - )" - -SLOT="0" -LICENSE="GPL-2" -KEYWORDS="-alpha -amd64 -hppa -ia64 -ppc -ppc64 -sparc -x86" - -pkg_setup() { - if use real && use x86; then - REALLIBDIR="/opt/RealPlayer/codecs" - fi -} - -src_unpack() { - - unpack ${P}.tar.bz2 \ - font-arial-iso-8859-1.tar.bz2 font-arial-iso-8859-2.tar.bz2 \ - font-arial-cp1250.tar.bz2 - - use svga && unpack svgalib_helper-${SVGV}-mplayer.tar.bz2 - - use gtk && unpack Blue-${BLUV}.tar.bz2 - - cd ${S} - - # Fix hppa compilation - [ "${ARCH}" = "hppa" ] && sed -i -e "s/-O4/-O1/" "${S}/configure" - - if use svga - then - echo - einfo "Enabling vidix non-root mode." - einfo "(You need a proper svgalib_helper.o module for your kernel" - einfo " to actually use this)" - echo - - mv ${WORKDIR}/svgalib_helper ${S}/libdha - fi - - # Remove kernel-2.6 workaround as the problem it works around is - # fixed, and the workaround breaks sparc - use sparc && sed -i 's:#define __KERNEL__::' osdep/kerneltwosix.h - - # minor fix - sed -i -e "s:-O4:-O4 -D__STDC_LIMIT_MACROS:" configure - -} - -linguas_warn() { - ewarn "Language ${LANG[0]} or ${LANG_CC} not avaliable" - ewarn "Language set to English" - ewarn "If this is a mistake, please set the" - ewarn "First LINGUAS language to one of the following" - ewarn - ewarn "bg - Bulgarian" - ewarn "cs - Czech" - ewarn "de - German" - ewarn "dk - Danish" - ewarn "el - Greek" - ewarn "en - English" - ewarn "es - Spanish" - ewarn "fr - French" - ewarn "hu - Hungarian" - ewarn "ja - Japanese" - ewarn "ko - Korean" - ewarn "mk - FYRO Macedonian" - ewarn "nl - Dutch" - ewarn "no - Norwegian" - ewarn "pl - Polish" - ewarn "pt_BR - Portuguese - Brazil" - ewarn "ro - Romanian" - ewarn "ru - Russian" - ewarn "sk - Slovak" - ewarn "tr - Turkish" - ewarn "uk - Ukranian" - ewarn "zh_CN - Chinese - China" - ewarn "zh_TW - Chinese - Taiwan" - export LINGUAS="en ${LINGUAS}" -} - -src_compile() { - - # have fun with LINGUAS variable - if [[ -n $LINGUAS ]] - then - # LINGUAS has stuff in it, start the logic - LANG=( $LINGUAS ) - if [ -e ${S}/help/help_mp-${LANG[0]}.h ] - then - einfo "Setting MPlayer messages to language: ${LANG[0]}" - else - LANG_CC=${LANG[0]} - if [ ${#LANG_CC} -ge 2 ] - then - LANG_CC=${LANG_CC:0:2} - if [ -e ${S}/help/help_mp-${LANG_CC}.h ] - then - einfo "Setting MPlayer messages to language ${LANG_CC}" - export LINGUAS="${LANG_CC} ${LINGUAS}" - else - linguas_warn - fi - else - linguas_warn - fi - fi - else - # sending blank LINGUAS, make it default to en - einfo "No LINGUAS given, defaulting to English" - export LINGUAS="en ${LINGUAS}" - fi - - - - - local myconf="--disable-external-faad --disable-tv-bsdbt848" - myconf="--disable-external-vidix" - ################ - #Optional features# - ############### - if use cpudetection || use livecd || use bindist - then - myconf="${myconf} --enable-runtime-cpudetection" - fi - - myconf="${myconf} $(use_enable bidi fribidi)" - if use unicode; then - myconf="${myconf} --charset=utf8" - fi - myconf="${myconf} $(use_enable cdparanoia)" - if use dvd; then - myconf="${myconf} $(use_enable dvdread) $(use_enable !dvdread mpdvdkit)" - else - myconf="${myconf} --disable-dvdread --disable-mpdvdkit" - fi - myconf="${myconf} $(use_enable edl)" - - if use encode ; then - myconf="${myconf} --enable-mencoder $(use_enable dv libdv) \ - $(use_enable x264)" - else - myconf="${myconf} --disable-mencoder --disable-libdv --disable-x264" - fi - - myconf="${myconf} $(use_enable gtk gui)" - - if use !gtk && use !X && use !xv && use !xinerama; then - myconf="${myconf} --disable-gui --disable-x11 --disable-xv --disable-xmga --disable-xinerama --disable-vm --disable-xvmc" - else - #note we ain't touching --enable-vm. That should be locked down in the future. - myconf="${myconf} --enable-x11 $(use_enable xinerama) $(use_enable xv) $(use_enable gtk gui)" - fi - - # this looks like a hack, but the - # --enable-dga needs a paramter, but there's no surefire - # way to tell what it is.. so I'm letting MPlayer decide - # the enable part - if ! use dga && ! use 3dfx ; then - myconf="${myconf} --disable-dga" - fi - # disable png *only* if gtk && png aren't on - if use png || use gtk; then - myconf="${myconf} --enable-png" - else - myconf="${myconf} --disable-png" - fi - myconf="${myconf} $(use_enable ipv6 inet6)" - myconf="${myconf} $(use_enable joystick)" - myconf="${myconf} $(use_enable lirc)" - myconf="${myconf} $(use_enable live)" - myconf="${myconf} $(use_enable rtc)" - myconf="${myconf} $(use_enable samba smb)" - myconf="${myconf} $(use_enable truetype freetype)" - myconf="${myconf} $(use_enable v4l tv-v4l)" - myconf="${myconf} $(use_enable v4l2 tv-v4l2)" - use jack || myconf="${myconf} --disable-jack" - - ######### - # Codecs # - ######## - myconf="${myconf} $(use_enable gif)" - myconf="${myconf} $(use_enable jpeg)" - #myconf="${myconf} $(use_enable ladspa)" - myconf="${myconf} $(use_enable dts libdts)" - myconf="${myconf} $(use_enable lzo liblzo)" - myconf="${myconf} $(use_enable matroska internal-matroska)" - myconf="${myconf} $(use_enable musepack)" - myconf="${myconf} $(use_enable aac internal-faad)" - myconf="${myconf} $(use_enable vorbis)" - myconf="${myconf} $(use_enable theora)" - myconf="${myconf} $(use_enable xmms)" - myconf="${myconf} $(use_enable xvid)" - use x86 && myconf="${myconf} $(use_enable real)" - myconf="${myconf} $(use_enable win32codecs win32)" - - ############# - # Video Output # - ############# - myconf="${myconf} $(use_enable 3dfx)" - if use 3dfx; then - myconf="${myconf} --enable-tdfxvid" - else - myconf="${myconf} --disable-tdfxvid" - fi - if use fbcon && use 3dfx; then - myconf="${myconf} --enable-tdfxfb" - else - myconf="${myconf} --disable-tdfxfb" - fi - - if use dvb ; then - myconf="${myconf} --enable-dvbhead --with-dvbincdir=/usr/include" - else - myconf="${myconf} --disable-dvbhead" - fi - - use aalib || myconf="${myconf} --disable-aa" - myconf="${myconf} $(use_enable directfb)" - myconf="${myconf} $(use_enable fbcon fbdev)" - myconf="${myconf} $(use_enable ggi)" - myconf="${myconf} $(use_enable libcaca caca)" - if use matrox && use X; then - myconf="${myconf} $(use_enable matrox xmga)" - fi - myconf="${myconf} $(use_enable matrox mga)" - myconf="${myconf} $(use_enable opengl gl)" - myconf="${myconf} $(use_enable sdl)" - - if use svga - then - myconf="${myconf} --enable-svga" - else - myconf="${myconf} --disable-svga --disable-internal-vidix" - fi - - myconf="${myconf} $(use_enable tga)" - - ( use xvmc && use nvidia ) \ - && myconf="${myconf} --enable-xvmc --with-xvmclib=XvMCNVIDIA" - - ( use xvmc && use i8x0 ) \ - && myconf="${myconf} --enable-xvmc --with-xvmclib=I810XvMC" - - ( use xvmc && use nvidia && use i8x0 ) \ - && { - eerror "Invalid combination of USE flags" - eerror "When building support for xvmc, you may only" - eerror "include support for one video card:" - eerror " nvidia, i8x0" - eerror - eerror "Emerge again with different USE flags" - - exit 1 - } - - ( use xvmc && ! use nvidia && ! use i8x0 ) && { - ewarn "You tried to build with xvmc support." - ewarn "No supported graphics hardware was specified." - ewarn - ewarn "No xvmc support will be included." - ewarn "Please one appropriate USE flag and re-emerge:" - ewarn " nvidia or i8x0" - - myconf="${myconf} --disable-xvmc" - } - - ############# - # Audio Output # - ############# - use alsa || myconf="${myconf} --disable-alsa" - use arts || myconf="${myconf} --disable-arts" - use esd || myconf="${myconf} --disable-esd" - use mad || myconf="${myconf} --disable-mad" - use nas || myconf="${myconf} --disable-nas" - use openal || myconf="${myconf} --disable-openal" - use oss || myconf="${myconf} --disable-ossaudio" - - ################# - # Advanced Options # - ################# - # Platform specific flags, hardcoded on amd64 (see below) - use x86 && myconf="${myconf} $(use_enable 3dnow)" - use x86 && myconf="${myconf} $(use_enable 3dnowext 3dnowex)"; - use x86 && myconf="${myconf} $(use_enable sse)" - use x86 && myconf="${myconf} $(use_enable sse2)" - use x86 && myconf="${myconf} $(use_enable mmx)" - use x86 && myconf="${myconf} $(use_enable mmxext mmx2)" - myconf="${myconf} $(use_enable debug)" - - # mplayer now contains SIMD assembler code for amd64 - # AMD64 Team decided to hardenable SIMD assembler for all users - # Danny van Dyk <kugelfang@gentoo.org> 2005/01/11 - if use amd64; then - myconf="${myconf} --enable-3dnow --enable-3dnowex --enable-sse --enable-sse2 --enable-mmx --enable-mmx2" - fi - - if use ppc64 - then - myconf="${myconf} --disable-altivec" - else - myconf="${myconf} $(use_enable altivec)" - use altivec && append-flags -maltivec -mabi=altivec - fi - - - if use xanim - then - myconf="${myconf} --with-xanimlibdir=/usr/lib/xanim/mods" - fi - - if [ -e /dev/.devfsd ] - then - myconf="${myconf} --enable-linux-devfs" - fi - - use xmms && myconf="${myconf} --with-xmmslibdir=/usr/$(get_libdir)" - - use live && myconf="${myconf} --with-livelibdir=/usr/$(get_libdir)/live" - - # support for blinkenlights - use bl && myconf="${myconf} --enable-bl" - - #leave this in place till the configure/compilation borkage is completely corrected back to pre4-r4 levels. - # it's intended for debugging so we can get the options we configure mplayer w/, rather then hunt about. - # it *will* be removed asap; in the meantime, doesn't hurt anything. - echo "${myconf}" > ${T}/configure-options - - if use custom-cflags - then - # let's play the filtration game! MPlayer hates on all! - strip-flags - # ugly optimizations cause MPlayer to cry on x86 systems! - if use x86 ; then - replace-flags -O0 -O2 - replace-flags -O3 -O2 - filter-flags -fPIC -fPIE - fi - append-flags -D__STDC_LIMIT_MACROS - else - unset CFLAGS CXXFLAGS - fi - - CFLAGS="$CFLAGS" ./configure \ - --prefix=/usr \ - --confdir=/usr/share/mplayer \ - --datadir=/usr/share/mplayer \ - --enable-largefiles \ - --enable-menu \ - --enable-network --enable-ftp \ - --with-reallibdir=${REALLIBDIR} \ - --with-x11incdir=/usr/X11R6/include \ - --disable-external-faad \ - ${myconf} || die - - # we run into problems if -jN > -j1 - # see #86245 - MAKEOPTS="${MAKEOPTS} -j1" - - einfo "Make" - emake || die "Failed to build MPlayer!" - use doc && make -C DOCS/xml html-chunked - einfo "Make completed" -} - -src_install() { - - einfo "Make install" - make prefix=${D}/usr \ - BINDIR=${D}/usr/bin \ - LIBDIR=${D}/usr/$(get_libdir) \ - CONFDIR=${D}/usr/share/mplayer \ - DATADIR=${D}/usr/share/mplayer \ - MANDIR=${D}/usr/share/man \ - install || die "Failed to install MPlayer!" - einfo "Make install completed" - - dodoc AUTHORS ChangeLog README - # Install the documentation; DOCS is all mixed up not just html - if use doc ; then - find "${S}/DOCS" -type d | xargs -- chmod 0755 - find "${S}/DOCS" -type f | xargs -- chmod 0644 - cp -r "${S}/DOCS" "${D}/usr/share/doc/${PF}/" || die - fi - - # Copy misc tools to documentation path, as they're not installed directly - # and yes, we are nuking the +x bit. - find "${S}/TOOLS" -type d | xargs -- chmod 0755 - find "${S}/TOOLS" -type f | xargs -- chmod 0644 - cp -r "${S}/TOOLS" "${D}/usr/share/doc/${PF}/" || die - - # Install the default Skin and Gnome menu entry - if use gtk; then - dodir /usr/share/mplayer/Skin - cp -r ${WORKDIR}/Blue ${D}/usr/share/mplayer/Skin/default || die - - # Fix the symlink - rm -rf ${D}/usr/bin/gmplayer - dosym mplayer /usr/bin/gmplayer - - insinto /usr/share/pixmaps - newins ${S}/Gui/mplayer/pixmaps/logo.xpm mplayer.xpm - insinto /usr/share/applications - doins ${FILESDIR}/mplayer.desktop - fi - - dodir /usr/share/mplayer/fonts - local x= - # Do this generic, as the mplayer people like to change the structure - # of their zips ... - for x in $(find ${WORKDIR}/ -type d -name 'font-arial-*') - do - cp -pPR ${x} ${D}/usr/share/mplayer/fonts - done - # Fix the font symlink ... - rm -rf ${D}/usr/share/mplayer/font - dosym fonts/font-arial-14-iso-8859-1 /usr/share/mplayer/font - - insinto /etc - newins ${S}/etc/example.conf mplayer.conf - dosed -e 's/include =/#include =/' /etc/mplayer.conf - dosed -e 's/fs=yes/fs=no/' /etc/mplayer.conf - dosym ../../../etc/mplayer.conf /usr/share/mplayer/mplayer.conf - - #mv the midentify script to /usr/bin for emovix. - cp ${D}/usr/share/doc/${PF}/TOOLS/midentify ${D}/usr/bin - chmod a+x ${D}/usr/bin/midentify - - insinto /usr/share/mplayer - doins ${S}/etc/codecs.conf - doins ${S}/etc/input.conf - doins ${S}/etc/menu.conf -} - -pkg_preinst() { - - if [ -d "${ROOT}/usr/share/mplayer/Skin/default" ] - then - rm -rf ${ROOT}/usr/share/mplayer/Skin/default - fi -} - -pkg_postinst() { - - if use matrox; then - depmod -a &>/dev/null || : - fi - - if use alsa ; then - einfo "For those using alsa, please note the ao driver name is no longer" - einfo "alsa9x or alsa1x. It is now just 'alsa' (omit quotes)." - einfo "The syntax for optional drivers has also changed. For example" - einfo "if you use a dmix driver called 'dmixer,' use" - einfo "ao=alsa:device=dmixer instead of ao=alsa:dmixer" - einfo "Some users may not need to specify the extra driver with the ao=" - einfo "command." - fi -} - -pkg_postrm() { - - # Cleanup stale symlinks - if [ -L ${ROOT}/usr/share/mplayer/font -a \ - ! -e ${ROOT}/usr/share/mplayer/font ] - then - rm -f ${ROOT}/usr/share/mplayer/font - fi - - if [ -L ${ROOT}/usr/share/mplayer/subfont.ttf -a \ - ! -e ${ROOT}/usr/share/mplayer/subfont.ttf ] - then - rm -f ${ROOT}/usr/share/mplayer/subfont.ttf - fi -} - diff --git a/media-video/mplayer/mplayer-1.0.20060415.ebuild b/media-video/mplayer/mplayer-1.0.20060415.ebuild deleted file mode 100644 index be2233072db9..000000000000 --- a/media-video/mplayer/mplayer-1.0.20060415.ebuild +++ /dev/null @@ -1,609 +0,0 @@ -# Copyright 1999-2006 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/media-video/mplayer/mplayer-1.0.20060415.ebuild,v 1.22 2006/07/13 02:24:04 agriffis Exp $ - -inherit eutils flag-o-matic - -RESTRICT="nostrip" -IUSE="3dfx 3dnow 3dnowext aac aalib alsa altivec arts bidi bl bindist -cpudetection custom-cflags debug dga doc dts dvb cdparanoia directfb dvd dv -dvdread edl encode esd fbcon gif ggi gtk i8x0 ipv6 jack joystick jpeg libcaca -lirc live livecd lzo mad matroska matrox mmx mmxext musepack nas nls nvidia -unicode vorbis opengl openal oss png real rtc samba sdl speex sse sse2 svga tga -theora truetype v4l v4l2 win32codecs X x264 xanim xinerama xmms xv xvid xvmc" -# openal -BLUV=1.5 -SVGV=1.9.17 - -# Handle PREversions as well -SRC_URI="mirror://gentoo/${P}.tar.bz2 - mirror://mplayer/releases/fonts/font-arial-iso-8859-1.tar.bz2 - mirror://mplayer/releases/fonts/font-arial-iso-8859-2.tar.bz2 - mirror://mplayer/releases/fonts/font-arial-cp1250.tar.bz2 - svga? ( http://mplayerhq.hu/~alex/svgalib_helper-${SVGV}-mplayer.tar.bz2 ) - gtk? ( mirror://mplayer/Skin/Blue-${BLUV}.tar.bz2 )" - -# Only install Skin if GUI should be build (gtk as USE flag) -DESCRIPTION="Media Player for Linux (snapshot)" -HOMEPAGE="http://www.mplayerhq.hu/" - -# 'encode' in USE for MEncoder. -RDEPEND="xvid? ( >=media-libs/xvid-0.9.0 ) - win32codecs? ( >=media-libs/win32codecs-20040916 ) - x86? ( real? ( >=media-video/realplayer-10.0.3 ) ) - aalib? ( media-libs/aalib ) - alsa? ( media-libs/alsa-lib ) - arts? ( kde-base/arts ) - openal? ( media-libs/openal ) - bidi? ( dev-libs/fribidi ) - cdparanoia? ( media-sound/cdparanoia ) - dga? ( || ( x11-libs/libXxf86dga <virtual/x11-7 ) ) - directfb? ( dev-libs/DirectFB ) - dts? ( media-libs/libdts ) - dvb? ( media-tv/linuxtv-dvb-headers ) - dvd? ( dvdread? ( media-libs/libdvdread ) ) - encode? ( - media-sound/lame - dv? ( >=media-libs/libdv-0.9.5 ) - x264? ( >=media-libs/x264-svn-20060409 ) - ) - esd? ( media-sound/esound ) - gif? ( media-libs/giflib ) - ggi? ( media-libs/libggi ) - gtk? ( - media-libs/libpng - || ( ( x11-libs/libXxf86vm - x11-libs/libXext - x11-libs/libXi - ) - <virtual/x11-7 - ) - =x11-libs/gtk+-2* - =dev-libs/glib-2* - ) - jpeg? ( media-libs/jpeg ) - libcaca? ( media-libs/libcaca ) - lirc? ( app-misc/lirc ) - lzo? ( =dev-libs/lzo-1* ) - mad? ( media-libs/libmad ) - musepack? ( >=media-libs/libmpcdec-1.2.2 ) - nas? ( media-libs/nas ) - nls? ( virtual/libintl ) - opengl? ( virtual/opengl ) - png? ( media-libs/libpng ) - samba? ( >=net-fs/samba-2.2.8a ) - sdl? ( media-libs/libsdl ) - speex? ( media-libs/speex ) - svga? ( media-libs/svgalib ) - theora? ( media-libs/libtheora ) - live? ( >=media-plugins/live-2004.07.20 ) - truetype? ( >=media-libs/freetype-2.1 ) - xinerama? ( || ( ( x11-libs/libXinerama - x11-libs/libXxf86vm - x11-libs/libXext - ) - <virtual/x11-7 - ) - ) - xmms? ( media-sound/xmms ) - xanim? ( >=media-video/xanim-2.80.1-r4 ) - sys-libs/ncurses - xv? ( || ( ( x11-libs/libXv - x11-libs/libXxf86vm - x11-libs/libXext - ) - <virtual/x11-7 - ) - ) - xvmc? ( || ( x11-libs/libXvMC <virtual/x11-7 ) ) - X? ( || ( ( x11-libs/libXxf86vm - x11-libs/libXext - ) - <virtual/x11-7 - ) - )" - -DEPEND="${RDEPEND} - app-arch/unzip - doc? ( >=app-text/docbook-sgml-dtd-4.1.2 - app-text/docbook-xml-dtd - >=app-text/docbook-xml-simple-dtd-1.50.0 - dev-libs/libxslt - ) - nls? ( sys-devel/gettext ) - dga? ( || ( x11-proto/xf86dgaproto <virtual/x11-7 ) ) - xinerama? ( || ( x11-proto/xineramaproto <virtual/x11-7 ) ) - xv? ( || ( ( x11-proto/videoproto - x11-proto/xf86vidmodeproto - ) - <virtual/x11-7 - ) - ) - gtk? ( || ( ( x11-proto/xextproto - x11-proto/xf86vidmodeproto - ) - <virtual/x11-7 - ) - ) - X? ( || ( ( x11-proto/xextproto - x11-proto/xf86vidmodeproto - ) - <virtual/x11-7 - ) - )" - -SLOT="0" -LICENSE="GPL-2" -KEYWORDS="-alpha -amd64 -hppa -ia64 -ppc -ppc64 -sparc -x86" - -pkg_setup() { - if use real && use x86; then - REALLIBDIR="/opt/RealPlayer/codecs" - fi -} - -src_unpack() { - - unpack ${P}.tar.bz2 \ - font-arial-iso-8859-1.tar.bz2 font-arial-iso-8859-2.tar.bz2 \ - font-arial-cp1250.tar.bz2 - - use svga && unpack svgalib_helper-${SVGV}-mplayer.tar.bz2 - - use gtk && unpack Blue-${BLUV}.tar.bz2 - - cd ${S} - - # Fix hppa compilation - [ "${ARCH}" = "hppa" ] && sed -i -e "s/-O4/-O1/" "${S}/configure" - - if use svga - then - echo - einfo "Enabling vidix non-root mode." - einfo "(You need a proper svgalib_helper.o module for your kernel" - einfo " to actually use this)" - echo - - mv ${WORKDIR}/svgalib_helper ${S}/libdha - fi - - # Remove kernel-2.6 workaround as the problem it works around is - # fixed, and the workaround breaks sparc - use sparc && sed -i 's:#define __KERNEL__::' osdep/kerneltwosix.h - - # minor fix - sed -i -e "s:-O4:-O4 -D__STDC_LIMIT_MACROS:" configure - - epatch ${FILESDIR}/gcc-3-register_allocation.patch - -} - -linguas_warn() { - ewarn "Language ${LANG[0]} or ${LANG_CC} not avaliable" - ewarn "Language set to English" - ewarn "If this is a mistake, please set the" - ewarn "First LINGUAS language to one of the following" - ewarn - ewarn "bg - Bulgarian" - ewarn "cs - Czech" - ewarn "de - German" - ewarn "dk - Danish" - ewarn "el - Greek" - ewarn "en - English" - ewarn "es - Spanish" - ewarn "fr - French" - ewarn "hu - Hungarian" - ewarn "ja - Japanese" - ewarn "ko - Korean" - ewarn "mk - FYRO Macedonian" - ewarn "nl - Dutch" - ewarn "no - Norwegian" - ewarn "pl - Polish" - ewarn "pt_BR - Portuguese - Brazil" - ewarn "ro - Romanian" - ewarn "ru - Russian" - ewarn "sk - Slovak" - ewarn "tr - Turkish" - ewarn "uk - Ukranian" - ewarn "zh_CN - Chinese - China" - ewarn "zh_TW - Chinese - Taiwan" - export LINGUAS="en ${LINGUAS}" -} - -src_compile() { - - # have fun with LINGUAS variable -# if [[ -n $LINGUAS ]] -# then -# # LINGUAS has stuff in it, start the logic -# LANG=( $LINGUAS ) -# if [ -e ${S}/help/help_mp-${LANG[0]}.h ] -# then -# einfo "Setting MPlayer messages to language: ${LANG[0]}" -# else -# LANG_CC=${LANG[0]} -# if [ ${#LANG_CC} -ge 2 ] -# then -# LANG_CC=${LANG_CC:0:2} -# if [ -e ${S}/help/help_mp-${LANG_CC}.h ] -# then -# einfo "Setting MPlayer messages to language ${LANG_CC}" -# export LINGUAS="${LANG_CC} ${LINGUAS}" -# else -# linguas_warn -# fi -# else -# linguas_warn -# fi -# fi -# else -# # sending blank LINGUAS, make it default to en -# einfo "No LINGUAS given, defaulting to English" -# export LINGUAS="en ${LINGUAS}" -export LINGUAS="en" -# fi - - - - - local myconf="--disable-external-faad --disable-tv-bsdbt848" - myconf="${myconf} --disable-external-vidix" - ################ - #Optional features# - ############### - if use cpudetection || use livecd || use bindist - then - myconf="${myconf} --enable-runtime-cpudetection" - fi - - myconf="${myconf} $(use_enable bidi fribidi)" - if use unicode; then - myconf="${myconf} --charset=UTF-8" - fi - myconf="${myconf} $(use_enable cdparanoia)" - if use dvd; then - myconf="${myconf} $(use_enable dvdread) $(use_enable !dvdread mpdvdkit)" - else - myconf="${myconf} --disable-dvdread --disable-mpdvdkit" - fi - myconf="${myconf} $(use_enable edl)" - - if use encode ; then - myconf="${myconf} --enable-mencoder $(use_enable dv libdv) \ - $(use_enable x264)" - else - myconf="${myconf} --disable-mencoder --disable-libdv --disable-x264" - fi - - myconf="${myconf} $(use_enable gtk gui)" - - if use !gtk && use !X && use !xv && use !xinerama; then - myconf="${myconf} --disable-gui --disable-x11 --disable-xv --disable-xmga --disable-xinerama --disable-vm --disable-xvmc" - else - #note we ain't touching --enable-vm. That should be locked down in the future. - myconf="${myconf} --enable-x11 $(use_enable xinerama) $(use_enable xv) $(use_enable gtk gui)" - fi - - # this looks like a hack, but the - # --enable-dga needs a paramter, but there's no surefire - # way to tell what it is.. so I'm letting MPlayer decide - # the enable part - if ! use dga && ! use 3dfx ; then - myconf="${myconf} --disable-dga" - fi - # disable png *only* if gtk && png aren't on - if use png || use gtk; then - myconf="${myconf} --enable-png" - else - myconf="${myconf} --disable-png" - fi - myconf="${myconf} $(use_enable ipv6 inet6)" - myconf="${myconf} $(use_enable joystick)" - myconf="${myconf} $(use_enable lirc)" - myconf="${myconf} $(use_enable live)" - myconf="${myconf} $(use_enable rtc)" - myconf="${myconf} $(use_enable samba smb)" - myconf="${myconf} $(use_enable truetype freetype)" - myconf="${myconf} $(use_enable v4l tv-v4l)" - myconf="${myconf} $(use_enable v4l2 tv-v4l2)" - use jack || myconf="${myconf} --disable-jack" - - ######### - # Codecs # - ######## - myconf="${myconf} $(use_enable gif)" - myconf="${myconf} $(use_enable jpeg)" - #myconf="${myconf} $(use_enable ladspa)" - myconf="${myconf} $(use_enable dts libdts)" - myconf="${myconf} $(use_enable lzo liblzo)" - myconf="${myconf} $(use_enable matroska internal-matroska)" - myconf="${myconf} $(use_enable musepack)" - myconf="${myconf} $(use_enable aac internal-faad)" - myconf="${myconf} $(use_enable vorbis)" - myconf="${myconf} $(use_enable theora)" - use speex || myconf="${myconf} --disable-speex" - myconf="${myconf} $(use_enable xmms)" - myconf="${myconf} $(use_enable xvid)" - use x86 && myconf="${myconf} $(use_enable real)" - myconf="${myconf} $(use_enable win32codecs win32)" - - ############# - # Video Output # - ############# - myconf="${myconf} $(use_enable 3dfx)" - if use 3dfx; then - myconf="${myconf} --enable-tdfxvid" - else - myconf="${myconf} --disable-tdfxvid" - fi - if use fbcon && use 3dfx; then - myconf="${myconf} --enable-tdfxfb" - else - myconf="${myconf} --disable-tdfxfb" - fi - - if use dvb ; then - myconf="${myconf} --enable-dvbhead --with-dvbincdir=/usr/include" - else - myconf="${myconf} --disable-dvbhead" - fi - - use aalib || myconf="${myconf} --disable-aa" - myconf="${myconf} $(use_enable directfb)" - myconf="${myconf} $(use_enable fbcon fbdev)" - myconf="${myconf} $(use_enable ggi)" - myconf="${myconf} $(use_enable libcaca caca)" - if use matrox && use X; then - myconf="${myconf} $(use_enable matrox xmga)" - fi - myconf="${myconf} $(use_enable matrox mga)" - myconf="${myconf} $(use_enable opengl gl)" - myconf="${myconf} $(use_enable sdl)" - - if use svga - then - myconf="${myconf} --enable-svga" - else - myconf="${myconf} --disable-svga --disable-internal-vidix" - fi - - myconf="${myconf} $(use_enable tga)" - - ( use xvmc && use nvidia ) \ - && myconf="${myconf} --enable-xvmc --with-xvmclib=XvMCNVIDIA" - - ( use xvmc && use i8x0 ) \ - && myconf="${myconf} --enable-xvmc --with-xvmclib=I810XvMC" - - ( use xvmc && use nvidia && use i8x0 ) \ - && { - eerror "Invalid combination of USE flags" - eerror "When building support for xvmc, you may only" - eerror "include support for one video card:" - eerror " nvidia, i8x0" - eerror - eerror "Emerge again with different USE flags" - - exit 1 - } - - ( use xvmc && ! use nvidia && ! use i8x0 ) && { - ewarn "You tried to build with xvmc support." - ewarn "No supported graphics hardware was specified." - ewarn - ewarn "No xvmc support will be included." - ewarn "Please one appropriate USE flag and re-emerge:" - ewarn " nvidia or i8x0" - - myconf="${myconf} --disable-xvmc" - } - - ############# - # Audio Output # - ############# - use alsa || myconf="${myconf} --disable-alsa" - use arts || myconf="${myconf} --disable-arts" - use esd || myconf="${myconf} --disable-esd" - use mad || myconf="${myconf} --disable-mad" - use nas || myconf="${myconf} --disable-nas" - use openal || myconf="${myconf} --disable-openal" - use oss || myconf="${myconf} --disable-ossaudio" - - ################# - # Advanced Options # - ################# - # Platform specific flags, hardcoded on amd64 (see below) - use x86 && myconf="${myconf} $(use_enable 3dnow)" - use x86 && myconf="${myconf} $(use_enable 3dnowext 3dnowex)"; - use x86 && myconf="${myconf} $(use_enable sse)" - use x86 && myconf="${myconf} $(use_enable sse2)" - use x86 && myconf="${myconf} $(use_enable mmx)" - use x86 && myconf="${myconf} $(use_enable mmxext mmx2)" - myconf="${myconf} $(use_enable debug)" - - # mplayer now contains SIMD assembler code for amd64 - # AMD64 Team decided to hardenable SIMD assembler for all users - # Danny van Dyk <kugelfang@gentoo.org> 2005/01/11 - if use amd64; then - myconf="${myconf} --enable-3dnow --enable-3dnowex --enable-sse --enable-sse2 --enable-mmx --enable-mmx2" - fi - - if use ppc64 - then - myconf="${myconf} --disable-altivec" - else - myconf="${myconf} $(use_enable altivec)" - use altivec && append-flags -maltivec -mabi=altivec - fi - - - if use xanim - then - myconf="${myconf} --with-xanimlibdir=/usr/lib/xanim/mods" - fi - - if [ -e /dev/.devfsd ] - then - myconf="${myconf} --enable-linux-devfs" - fi - - use xmms && myconf="${myconf} --with-xmmslibdir=/usr/$(get_libdir)" - - use live && myconf="${myconf} --with-livelibdir=/usr/$(get_libdir)/live" - - # support for blinkenlights - use bl && myconf="${myconf} --enable-bl" - - #leave this in place till the configure/compilation borkage is completely corrected back to pre4-r4 levels. - # it's intended for debugging so we can get the options we configure mplayer w/, rather then hunt about. - # it *will* be removed asap; in the meantime, doesn't hurt anything. - echo "${myconf}" > ${T}/configure-options - - if use custom-cflags - then - # let's play the filtration game! MPlayer hates on all! - strip-flags - # ugly optimizations cause MPlayer to cry on x86 systems! - if use x86 ; then - replace-flags -O0 -O2 - replace-flags -O3 -O2 - filter-flags -fPIC -fPIE - fi - append-flags -D__STDC_LIMIT_MACROS - else - unset CFLAGS CXXFLAGS - fi - - CFLAGS="$CFLAGS" ./configure \ - --prefix=/usr \ - --confdir=/usr/share/mplayer \ - --datadir=/usr/share/mplayer \ - --enable-largefiles \ - --enable-menu \ - --enable-network --enable-ftp \ - --with-reallibdir=${REALLIBDIR} \ - --with-x11incdir=/usr/X11R6/include \ - --disable-external-faad \ - ${myconf} || die - - # we run into problems if -jN > -j1 - # see #86245 - MAKEOPTS="${MAKEOPTS} -j1" - - einfo "Make" - emake || die "Failed to build MPlayer!" - use doc && make -C DOCS/xml html-chunked - einfo "Make completed" -} - -src_install() { - - einfo "Make install" - make prefix=${D}/usr \ - BINDIR=${D}/usr/bin \ - LIBDIR=${D}/usr/$(get_libdir) \ - CONFDIR=${D}/usr/share/mplayer \ - DATADIR=${D}/usr/share/mplayer \ - MANDIR=${D}/usr/share/man \ - install || die "Failed to install MPlayer!" - einfo "Make install completed" - - dodoc AUTHORS ChangeLog README - # Install the documentation; DOCS is all mixed up not just html - if use doc ; then - find "${S}/DOCS" -type d | xargs -- chmod 0755 - find "${S}/DOCS" -type f | xargs -- chmod 0644 - cp -r "${S}/DOCS" "${D}/usr/share/doc/${PF}/" || die - fi - - # Copy misc tools to documentation path, as they're not installed directly - # and yes, we are nuking the +x bit. - find "${S}/TOOLS" -type d | xargs -- chmod 0755 - find "${S}/TOOLS" -type f | xargs -- chmod 0644 - cp -r "${S}/TOOLS" "${D}/usr/share/doc/${PF}/" || die - - # Install the default Skin and Gnome menu entry - if use gtk; then - dodir /usr/share/mplayer/Skin - cp -r ${WORKDIR}/Blue ${D}/usr/share/mplayer/Skin/default || die - - # Fix the symlink - rm -rf ${D}/usr/bin/gmplayer - dosym mplayer /usr/bin/gmplayer - - insinto /usr/share/pixmaps - newins ${S}/Gui/mplayer/pixmaps/logo.xpm mplayer.xpm - insinto /usr/share/applications - doins ${FILESDIR}/mplayer.desktop - fi - - dodir /usr/share/mplayer/fonts - local x= - # Do this generic, as the mplayer people like to change the structure - # of their zips ... - for x in $(find ${WORKDIR}/ -type d -name 'font-arial-*') - do - cp -pPR ${x} ${D}/usr/share/mplayer/fonts - done - # Fix the font symlink ... - rm -rf ${D}/usr/share/mplayer/font - dosym fonts/font-arial-14-iso-8859-1 /usr/share/mplayer/font - - insinto /etc - newins ${S}/etc/example.conf mplayer.conf - dosed -e 's/include =/#include =/' /etc/mplayer.conf - dosed -e 's/fs=yes/fs=no/' /etc/mplayer.conf - dosym ../../../etc/mplayer.conf /usr/share/mplayer/mplayer.conf - - #mv the midentify script to /usr/bin for emovix. - cp ${D}/usr/share/doc/${PF}/TOOLS/midentify ${D}/usr/bin - chmod a+x ${D}/usr/bin/midentify - - insinto /usr/share/mplayer - doins ${S}/etc/codecs.conf - doins ${S}/etc/input.conf - doins ${S}/etc/menu.conf -} - -pkg_preinst() { - - if [ -d "${ROOT}/usr/share/mplayer/Skin/default" ] - then - rm -rf ${ROOT}/usr/share/mplayer/Skin/default - fi -} - -pkg_postinst() { - - if use matrox; then - depmod -a &>/dev/null || : - fi - - if use alsa ; then - einfo "For those using alsa, please note the ao driver name is no longer" - einfo "alsa9x or alsa1x. It is now just 'alsa' (omit quotes)." - einfo "The syntax for optional drivers has also changed. For example" - einfo "if you use a dmix driver called 'dmixer,' use" - einfo "ao=alsa:device=dmixer instead of ao=alsa:dmixer" - einfo "Some users may not need to specify the extra driver with the ao=" - einfo "command." - fi -} - -pkg_postrm() { - - # Cleanup stale symlinks - if [ -L ${ROOT}/usr/share/mplayer/font -a \ - ! -e ${ROOT}/usr/share/mplayer/font ] - then - rm -f ${ROOT}/usr/share/mplayer/font - fi - - if [ -L ${ROOT}/usr/share/mplayer/subfont.ttf -a \ - ! -e ${ROOT}/usr/share/mplayer/subfont.ttf ] - then - rm -f ${ROOT}/usr/share/mplayer/subfont.ttf - fi -} - diff --git a/media-video/mplayer/mplayer-1.0_pre7-r1.ebuild b/media-video/mplayer/mplayer-1.0_pre7-r1.ebuild deleted file mode 100644 index cd363bb28e8a..000000000000 --- a/media-video/mplayer/mplayer-1.0_pre7-r1.ebuild +++ /dev/null @@ -1,606 +0,0 @@ -# Copyright 1999-2006 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/media-video/mplayer/mplayer-1.0_pre7-r1.ebuild,v 1.19 2006/07/09 21:03:24 flameeyes Exp $ - -inherit eutils flag-o-matic - -RESTRICT="nostrip" -IUSE="3dfx 3dnow 3dnowext aac aalib alsa altivec arts bidi bl bindist -cpudetection custom-cflags debug dga doc dts dvb cdparanoia directfb dvd dv -dvdread edl encode esd fbcon gif ggi gtk i8x0 ipv6 jack joystick jpeg libcaca -lirc live livecd lzo mad matroska matrox mmx mmxext mythtv nas nls nvidia -vorbis opengl oss png real rtc samba sdl sse sse2 svga tga theora truetype -v4l v4l2 win32codecs X xanim xinerama xmms xv xvid xvmc" - -BLUV=1.4 -SVGV=1.9.17 - -# Handle PREversions as well -MY_PV="${PV/_/}" -MY_P="MPlayer-${MY_PV}try2" -S="${WORKDIR}/${MY_P}" -SRC_URI="mirror://mplayer/releases/${MY_P}.tar.bz2 - mirror://mplayer/releases/fonts/font-arial-iso-8859-1.tar.bz2 - mirror://mplayer/releases/fonts/font-arial-iso-8859-2.tar.bz2 - mirror://mplayer/releases/fonts/font-arial-cp1250.tar.bz2 - svga? ( http://mplayerhq.hu/~alex/svgalib_helper-${SVGV}-mplayer.tar.bz2 ) - gtk? ( mirror://mplayer/Skin/Blue-${BLUV}.tar.bz2 )" - -# Only install Skin if GUI should be build (gtk as USE flag) -DESCRIPTION="Media Player for Linux" -HOMEPAGE="http://www.mplayerhq.hu/" - -# 'encode' in USE for MEncoder. -RDEPEND="xvid? ( >=media-libs/xvid-0.9.0 ) - win32codecs? ( >=media-libs/win32codecs-20040916 ) - x86? ( real? ( >=media-video/realplayer-10.0.3 ) ) - aalib? ( media-libs/aalib ) - alsa? ( media-libs/alsa-lib ) - arts? ( kde-base/arts ) - bidi? ( dev-libs/fribidi ) - cdparanoia? ( media-sound/cdparanoia ) - dga? ( || ( x11-libs/libXxf86dga <virtual/x11-7 ) ) - directfb? ( dev-libs/DirectFB ) - dts? ( media-libs/libdts ) - dvd? ( dvdread? ( media-libs/libdvdread ) ) - encode? ( - media-sound/lame - dv? ( >=media-libs/libdv-0.9.5 ) - ) - esd? ( media-sound/esound ) - gif? ( media-libs/giflib ) - ggi? ( media-libs/libggi ) - gtk? ( - media-libs/libpng - || ( ( x11-libs/libXxf86vm - x11-libs/libXext - x11-libs/libXi - ) - <virtual/x11-7 - ) - =x11-libs/gtk+-1.2* - =dev-libs/glib-1.2* - ) - jpeg? ( media-libs/jpeg ) - libcaca? ( media-libs/libcaca ) - lirc? ( app-misc/lirc ) - lzo? ( =dev-libs/lzo-1* ) - mad? ( media-libs/libmad ) - nas? ( media-libs/nas ) - nls? ( virtual/libintl ) - vorbis? ( media-libs/libvorbis ) - opengl? ( virtual/opengl ) - png? ( media-libs/libpng ) - samba? ( >=net-fs/samba-2.2.8a ) - sdl? ( media-libs/libsdl ) - svga? ( media-libs/svgalib ) - theora? ( media-libs/libtheora ) - live? ( >=media-plugins/live-2004.07.20 ) - truetype? ( >=media-libs/freetype-2.1 ) - xinerama? ( || ( ( x11-libs/libXinerama - x11-libs/libXxf86vm - x11-libs/libXext - ) - <virtual/x11-7 - ) - ) - jack? ( >=media-libs/bio2jack-0.4 ) - xmms? ( media-sound/xmms ) - xanim? ( >=media-video/xanim-2.80.1-r4 ) - sys-libs/ncurses - xv? ( || ( ( x11-libs/libXv - x11-libs/libXxf86vm - x11-libs/libXext - ) - <virtual/x11-7 - ) - ) - xvmc? ( || ( x11-libs/libXvMC <virtual/x11-7 ) ) - X? ( || ( ( x11-libs/libXxf86vm - x11-libs/libXext - ) - <virtual/x11-7 - ) - )" - -DEPEND="${RDEPEND} - app-arch/unzip - nls? ( sys-devel/gettext ) - dga? ( || ( x11-proto/xf86dgaproto <virtual/x11-7 ) ) - xinerama? ( || ( x11-proto/xineramaproto <virtual/x11-7 ) ) - xv? ( || ( ( x11-proto/videoproto - x11-proto/xf86vidmodeproto - ) - <virtual/x11-7 - ) - ) - gtk? ( || ( ( x11-proto/xextproto - x11-proto/xf86vidmodeproto - ) - <virtual/x11-7 - ) - ) - X? ( || ( ( x11-proto/xextproto - x11-proto/xf86vidmodeproto - ) - <virtual/x11-7 - ) - )" - -SLOT="0" -LICENSE="GPL-2" -KEYWORDS="alpha amd64 hppa ia64 ppc ppc64 sparc x86" - -pkg_setup() { - if use real && use x86; then - REALLIBDIR="/opt/RealPlayer/codecs" - fi -} - -src_unpack() { - - unpack ${MY_P}.tar.bz2 \ - font-arial-iso-8859-1.tar.bz2 font-arial-iso-8859-2.tar.bz2 \ - font-arial-cp1250.tar.bz2 - - use svga && unpack svgalib_helper-${SVGV}-mplayer.tar.bz2 - - use gtk && unpack Blue-${BLUV}.tar.bz2 - - cd ${S} - - #adds mythtv support to mplayer - use mythtv && epatch ${FILESDIR}/mplayer-mythtv.patch - - # Fix hppa compilation - [ "${ARCH}" = "hppa" ] && sed -i -e "s/-O4/-O1/" "${S}/configure" - - if use svga - then - echo - einfo "Enabling vidix non-root mode." - einfo "(You need a proper svgalib_helper.o module for your kernel" - einfo " to actually use this)" - echo - - mv ${WORKDIR}/svgalib_helper ${S}/libdha - fi - - # Remove kernel-2.6 workaround as the problem it works around is - # fixed, and the workaround breaks sparc - use sparc && sed -i 's:#define __KERNEL__::' osdep/kerneltwosix.h - epatch ${FILESDIR}/${P}-ppc64.patch - - # Fix building with gcc4 - epatch ${FILESDIR}/${P}-gcc4.patch - epatch ${FILESDIR}/${P}-gcc4-amd64.patch - - # fixes mplayer not seeing gcc 3.4-blahetc type - # gcc versions. Half stolen from toolchain-funcs - epatch ${FILESDIR}/${P}-gcc_detection.patch -} - -linguas_warn() { - ewarn "Language ${LANG[0]} or ${LANG_CC} not avaliable" - ewarn "Language set to English" - ewarn "If this is a mistake, please set the" - ewarn "First LINGUAS language to one of the following" - ewarn - ewarn "bg - Bulgarian" - ewarn "cs - Czech" - ewarn "de - German" - ewarn "dk - Danish" - ewarn "el - Greek" - ewarn "en - English" - ewarn "es - Spanish" - ewarn "fr - French" - ewarn "hu - Hungarian" - ewarn "ja - Japanese" - ewarn "ko - Korean" - ewarn "mk - FYRO Macedonian" - ewarn "nl - Dutch" - ewarn "no - Norwegian" - ewarn "pl - Polish" - ewarn "pt_BR - Portuguese - Brazil" - ewarn "ro - Romanian" - ewarn "ru - Russian" - ewarn "sk - Slovak" - ewarn "tr - Turkish" - ewarn "uk - Ukranian" - ewarn "zh_CN - Chinese - China" - ewarn "zh_TW - Chinese - Taiwan" - export LINGUAS="en ${LINGUAS}" -} - -src_compile() { - - # have fun with LINGUAS variable - if [[ -n $LINGUAS ]] - then - # LINGUAS has stuff in it, start the logic - LANG=( $LINGUAS ) - if [ -e ${S}/help/help_mp-${LANG[0]}.h ] - then - einfo "Setting MPlayer messages to language: ${LANG[0]}" - else - LANG_CC=${LANG[0]} - if [ ${#LANG_CC} -ge 2 ] - then - LANG_CC=${LANG_CC:0:2} - if [ -e ${S}/help/help_mp-${LANG_CC}.h ] - then - einfo "Setting MPlayer messages to language ${LANG_CC}" - export LINGUAS="${LANG_CC} ${LINGUAS}" - else - linguas_warn - fi - else - linguas_warn - fi - fi - else - # sending blank LINGUAS, make it default to en - einfo "No LINGUAS given, defaulting to English" - export LINGUAS="en ${LINGUAS}" - fi - - - - #FIXME make it work in the snapshot - local myconf="--disable-x264" - ################ - #Optional features# - ############### - if use cpudetection || use livecd || use bindist - then - myconf="${myconf} --enable-runtime-cpudetection" - fi - - myconf="${myconf} $(use_enable bidi fribidi)" - myconf="${myconf} $(use_enable cdparanoia)" - if use dvd; then - myconf="${myconf} $(use_enable dvdread) $(use_enable !dvdread mpdvdkit)" - else - myconf="${myconf} --disable-dvdread --disable-mpdvdkit" - fi - myconf="${myconf} $(use_enable edl)" - - if use encode ; then - myconf="${myconf} --enable-mencoder $(use_enable dv libdv)" - else - myconf="${myconf} --disable-mencoder --disable-libdv" - fi - - myconf="${myconf} $(use_enable gtk gui)" - - if use !gtk && use !X && use !xv && use !xinerama; then - myconf="${myconf} --disable-gui --disable-x11 --disable-xv --disable-xmga --disable-xinerama --disable-vm --disable-xvmc" - else - #note we ain't touching --enable-vm. That should be locked down in the future. - myconf="${myconf} --enable-x11 $(use_enable xinerama) $(use_enable xv) $(use_enable gtk gui)" - fi - - # this looks like a hack, but the - # --enable-dga needs a paramter, but there's no surefire - # way to tell what it is.. so I'm letting MPlayer decide - # the enable part - if ! use dga && ! use 3dfx ; then - myconf="${myconf} --disable-dga" - fi - # disable png *only* if gtk && png aren't on - if use png || use gtk; then - myconf="${myconf} --enable-png" - else - myconf="${myconf} --disable-png" - fi - myconf="${myconf} $(use_enable ipv6 inet6)" - myconf="${myconf} $(use_enable joystick)" - myconf="${myconf} $(use_enable lirc)" - myconf="${myconf} $(use_enable live)" - myconf="${myconf} $(use_enable rtc)" - myconf="${myconf} $(use_enable samba smb)" - myconf="${myconf} $(use_enable truetype freetype)" - myconf="${myconf} $(use_enable v4l tv-v4l)" - myconf="${myconf} $(use_enable v4l2 tv-v4l2)" - myconf="${myconf} $(use_enable jack)" - - ######### - # Codecs # - ######## - myconf="${myconf} $(use_enable gif)" - myconf="${myconf} $(use_enable jpeg)" - #myconf="${myconf} $(use_enable ladspa)" - myconf="${myconf} $(use_enable dts libdts)" - myconf="${myconf} $(use_enable lzo liblzo)" - myconf="${myconf} $(use_enable matroska internal-matroska)" - myconf="${myconf} $(use_enable aac internal-faad)" - myconf="${myconf} $(use_enable vorbis)" - myconf="${myconf} $(use_enable theora)" - myconf="${myconf} $(use_enable xmms)" - myconf="${myconf} $(use_enable xvid)" - use x86 && myconf="${myconf} $(use_enable real)" - myconf="${myconf} $(use_enable win32codecs win32)" - - ############# - # Video Output # - ############# - myconf="${myconf} $(use_enable 3dfx)" - if use 3dfx; then - myconf="${myconf} --enable-tdfxvid" - else - myconf="${myconf} --disable-tdfxvid" - fi - if use fbcon && use 3dfx; then - myconf="${myconf} --enable-tdfxfb" - else - myconf="${myconf} --disable-tdfxfb" - fi - - if use dvb ; then - myconf="${myconf} --enable-dvbhead --with-dvbincdir=/usr/src/linux/include" - else - myconf="${myconf} --disable-dvbhead" - fi - - use aalib || myconf="${myconf} --disable-aa" - myconf="${myconf} $(use_enable directfb)" - myconf="${myconf} $(use_enable fbcon fbdev)" - myconf="${myconf} $(use_enable ggi)" - myconf="${myconf} $(use_enable libcaca caca)" - if use matrox && use X; then - myconf="${myconf} $(use_enable matrox xmga)" - fi - myconf="${myconf} $(use_enable matrox mga)" - myconf="${myconf} $(use_enable opengl gl)" - myconf="${myconf} $(use_enable sdl)" - - if use svga - then - myconf="${myconf} --enable-svga" - else - myconf="${myconf} --disable-svga --disable-vidix" - fi - - myconf="${myconf} $(use_enable tga)" - - ( use xvmc && use nvidia ) \ - && myconf="${myconf} --enable-xvmc --with-xvmclib=XvMCNVIDIA" - - ( use xvmc && use i8x0 ) \ - && myconf="${myconf} --enable-xvmc --with-xvmclib=I810XvMC" - - ( use xvmc && use nvidia && use i8x0 ) \ - && { - eerror "Invalid combination of USE flags" - eerror "When building support for xvmc, you may only" - eerror "include support for one video card:" - eerror " nvidia, i8x0" - eerror - eerror "Emerge again with different USE flags" - - exit 1 - } - - ( use xvmc && ! use nvidia && ! use i8x0 ) && { - ewarn "You tried to build with xvmc support." - ewarn "No supported graphics hardware was specified." - ewarn - ewarn "No xvmc support will be included." - ewarn "Please one appropriate USE flag and re-emerge:" - ewarn " nvidia or i8x0" - - myconf="${myconf} --disable-xvmc" - } - - ############# - # Audio Output # - ############# - myconf="${myconf} $(use_enable alsa)" - myconf="${myconf} $(use_enable arts)" - myconf="${myconf} $(use_enable esd)" - myconf="${myconf} $(use_enable mad)" - myconf="${myconf} $(use_enable nas)" - myconf="${myconf} $(use_enable oss ossaudio)" - - ################# - # Advanced Options # - ################# - # Platform specific flags, hardcoded on amd64 (see below) - use x86 && myconf="${myconf} $(use_enable 3dnow)" - use x86 && myconf="${myconf} $(use_enable 3dnowext 3dnowex)"; - use x86 && myconf="${myconf} $(use_enable sse)" - use x86 && myconf="${myconf} $(use_enable sse2)" - use x86 && myconf="${myconf} $(use_enable mmx)" - use x86 && myconf="${myconf} $(use_enable mmxext mmx2)" - myconf="${myconf} $(use_enable debug)" - myconf="${myconf} $(use_enable nls i18n)" - - # mplayer now contains SIMD assembler code for amd64 - # AMD64 Team decided to hardenable SIMD assembler for all users - # Danny van Dyk <kugelfang@gentoo.org> 2005/01/11 - if use amd64; then - myconf="${myconf} --enable-3dnow --enable-3dnowex --enable-sse --enable-sse2 --enable-mmx --enable-mmx2" - fi - - if use ppc64 - then - myconf="${myconf} --disable-altivec" - else - myconf="${myconf} $(use_enable altivec)" - use altivec && append-flags -maltivec -mabi=altivec - fi - - - if use xanim - then - myconf="${myconf} --with-xanimlibdir=/usr/lib/xanim/mods" - fi - - if [ -e /dev/.devfsd ] - then - myconf="${myconf} --enable-linux-devfs" - fi - - use xmms && myconf="${myconf} --with-xmmslibdir=/usr/$(get_libdir)" - - use live && myconf="${myconf} --with-livelibdir=/usr/$(get_libdir)/live" - - # support for blinkenlights - use bl && myconf="${myconf} --enable-bl" - - #leave this in place till the configure/compilation borkage is completely corrected back to pre4-r4 levels. - # it's intended for debugging so we can get the options we configure mplayer w/, rather then hunt about. - # it *will* be removed asap; in the meantime, doesn't hurt anything. - echo "${myconf}" > ${T}/configure-options - - if use custom-cflags - then - # let's play the filtration game! MPlayer hates on all! - strip-flags - # ugly optimizations cause MPlayer to cry on x86 systems! - if use x86 ; then - replace-flags -O0 -O2 - replace-flags -O3 -O2 - filter-flags -fPIC -fPIE - fi - else - unset CFLAGS CXXFLAGS - fi - - CFLAGS="$CFLAGS" ./configure \ - --prefix=/usr \ - --confdir=/usr/share/mplayer \ - --datadir=/usr/share/mplayer \ - --enable-largefiles \ - --enable-menu \ - --enable-network --enable-ftp \ - --with-reallibdir=${REALLIBDIR} \ - --with-x11incdir=/usr/X11R6/include \ - --disable-external-faad \ - ${myconf} || die - - # we run into problems if -jN > -j1 - # see #86245 - MAKEOPTS="${MAKEOPTS} -j1" - - einfo "Make" - make depend && emake || die "Failed to build MPlayer!" - einfo "Make completed" - - # We build the shared libpostproc.so here so that our - # mplayer binary is not linked to it, ensuring that we - # do not run into issues ... (bug #14479) - cd ${S}/libavcodec/libpostproc - make SHARED_PP="yes" || die "Failed to build libpostproc.so!" -} - -src_install() { - - einfo "Make install" - make prefix=${D}/usr \ - BINDIR=${D}/usr/bin \ - LIBDIR=${D}/usr/$(get_libdir) \ - CONFDIR=${D}/usr/share/mplayer \ - DATADIR=${D}/usr/share/mplayer \ - MANDIR=${D}/usr/share/man \ - install || die "Failed to install MPlayer!" - einfo "Make install completed" - - dodoc AUTHORS ChangeLog README - # Install the documentation; DOCS is all mixed up not just html - if use doc ; then - find "${S}/DOCS" -type d | xargs -- chmod 0755 - find "${S}/DOCS" -type f | xargs -- chmod 0644 - cp -r "${S}/DOCS" "${D}/usr/share/doc/${PF}/" || die - fi - - # Copy misc tools to documentation path, as they're not installed directly - # and yes, we are nuking the +x bit. - find "${S}/TOOLS" -type d | xargs -- chmod 0755 - find "${S}/TOOLS" -type f | xargs -- chmod 0644 - cp -r "${S}/TOOLS" "${D}/usr/share/doc/${PF}/" || die - - # Install the default Skin and Gnome menu entry - if use gtk; then - dodir /usr/share/mplayer/Skin - cp -r ${WORKDIR}/Blue ${D}/usr/share/mplayer/Skin/default || die - - # Fix the symlink - rm -rf ${D}/usr/bin/gmplayer - dosym mplayer /usr/bin/gmplayer - - insinto /usr/share/pixmaps - newins ${S}/Gui/mplayer/pixmaps/logo.xpm mplayer.xpm - insinto /usr/share/applications - doins ${FILESDIR}/mplayer.desktop - fi - - dodir /usr/share/mplayer/fonts - local x= - # Do this generic, as the mplayer people like to change the structure - # of their zips ... - for x in $(find ${WORKDIR}/ -type d -name 'font-arial-*') - do - cp -Rd ${x} ${D}/usr/share/mplayer/fonts - done - # Fix the font symlink ... - rm -rf ${D}/usr/share/mplayer/font - dosym fonts/font-arial-14-iso-8859-1 /usr/share/mplayer/font - - insinto /etc - newins ${S}/etc/example.conf mplayer.conf - dosed -e 's/include =/#include =/' /etc/mplayer.conf - dosed -e 's/fs=yes/fs=no/' /etc/mplayer.conf - dosym ../../../etc/mplayer.conf /usr/share/mplayer/mplayer.conf - - #mv the midentify script to /usr/bin for emovix. - cp ${D}/usr/share/doc/${PF}/TOOLS/midentify ${D}/usr/bin - chmod a+x ${D}/usr/bin/midentify - - insinto /usr/share/mplayer - doins ${S}/etc/codecs.conf - doins ${S}/etc/input.conf - doins ${S}/etc/menu.conf -} - -pkg_preinst() { - - if [ -d "${ROOT}/usr/share/mplayer/Skin/default" ] - then - rm -rf ${ROOT}/usr/share/mplayer/Skin/default - fi -} - -pkg_postinst() { - - if use matrox; then - depmod -a &>/dev/null || : - fi - - if use alsa ; then - einfo "For those using alsa, please note the ao driver name is no longer" - einfo "alsa9x or alsa1x. It is now just 'alsa' (omit quotes)." - einfo "The syntax for optional drivers has also changed. For example" - einfo "if you use a dmix driver called 'dmixer,' use" - einfo "ao=alsa:device=dmixer instead of ao=alsa:dmixer" - einfo "Some users may not need to specify the extra driver with the ao=" - einfo "command." - fi -} - -pkg_postrm() { - - # Cleanup stale symlinks - if [ -L ${ROOT}/usr/share/mplayer/font -a \ - ! -e ${ROOT}/usr/share/mplayer/font ] - then - rm -f ${ROOT}/usr/share/mplayer/font - fi - - if [ -L ${ROOT}/usr/share/mplayer/subfont.ttf -a \ - ! -e ${ROOT}/usr/share/mplayer/subfont.ttf ] - then - rm -f ${ROOT}/usr/share/mplayer/subfont.ttf - fi -} - |