diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /media-libs/libmpeg3 |
reinit the tree, so we can have metadata
Diffstat (limited to 'media-libs/libmpeg3')
-rw-r--r-- | media-libs/libmpeg3/Manifest | 8 | ||||
-rw-r--r-- | media-libs/libmpeg3/files/libmpeg3-1.8-impldecl.patch | 24 | ||||
-rw-r--r-- | media-libs/libmpeg3/libmpeg3-1.8-r1.ebuild | 60 | ||||
-rw-r--r-- | media-libs/libmpeg3/libmpeg3-1.8.ebuild | 59 | ||||
-rw-r--r-- | media-libs/libmpeg3/metadata.xml | 10 |
5 files changed, 161 insertions, 0 deletions
diff --git a/media-libs/libmpeg3/Manifest b/media-libs/libmpeg3/Manifest new file mode 100644 index 000000000000..1b43be8f737f --- /dev/null +++ b/media-libs/libmpeg3/Manifest @@ -0,0 +1,8 @@ +AUX libmpeg3-1.8-impldecl.patch 559 SHA256 f9e591f63f4d1a151d8c3370cd99fe0e4d5c026bf748d8246d45a25c12d76694 SHA512 43affdcfd54146c0623478f6b2108b28b2be09c956d800705b24dfe9eff6c50e861c83e392371a4deaff19649d61fe27edc7521c7daa703ac369c96b5f698ff9 WHIRLPOOL 6856580263d01d88f731a0454e32faf897200d19c63fbab47a39043f0d4acbe2563c73cec868023c1449b2fde45666b1ca83cf6aa57a10c00e21aebf4b89c969 +DIST libmpeg3-1.7-gentoo.tar.bz2 5625 SHA256 6dde60e78776e7a3c761218e35afc6432a9289eb1ae18c4e4e7f85f67d63572d SHA512 9ef94c41ee943e321c9fc14a02659a839f08554aac4f5c5abcb9835e9940f0e5dc4c67c26f8124de960cba78493fa43f6c800748c0426e6dc141aa106e2aabc1 WHIRLPOOL 501aa2767acb06e4fa9cc95315f32ab7f8e9cd0889d5c2aa7f3b9476868b8db865c65ff9e7e5b221361cf1104f725693ec4eaac6a43b1bc3eafa60720e847341 +DIST libmpeg3-1.8-src.tar.bz2 2452350 SHA256 656f50bef752463af06c6b131f67efef30a34978499e1fdee30e97cac1dea3c4 SHA512 e381f07d46d47d391c6db420791a065e3572e17ca63966eb52712560867866683505693f73b25869059319eec66fd1c2f923dbef1fdca5ef9efbe598e217d60e WHIRLPOOL ecbd01be343edb5a115983e28fef1526a37a3f0b67ddc1eb3c8c566be47a3bc1def26d017954fa49795567df2d3ac838ae6868d12d3cf1a8c359e82a07c11e30 +EBUILD libmpeg3-1.8-r1.ebuild 1727 SHA256 7d201722c72da75c4627fe58dbea452d1bab48a70e2335c047f8b052336e5b63 SHA512 00e29078c853cf437cb63bd47553ebe9a9ab54a1dd381896eb36eb3bb763de46b7ab6fc6b55db8b0deefce89924fd3cace6fb6f2f49f926f09744c06f9a2db08 WHIRLPOOL cbe9371c91147a0651e3b56cf77e73b227edddbd98acb12de27c9cb8be602a920b1f6376a33d11637cc55f10b0dede8e89067528c80889d13a1e619b402b10c4 +EBUILD libmpeg3-1.8.ebuild 1624 SHA256 fcfc1bf3495074626ad43974906fc058c2d4195905c02cd7f32f7bde9d46a10e SHA512 ae0deff29937211d86f2890c323abf90d5378f8385f72c692020c8b60134952305675fc4d131d54c47ef24b0f586e486c65cbb02fc80231e16b06cd56c3cf2cb WHIRLPOOL 9b3cd4df5639a11c24c065faed825a57f89b4a7335707311084a90afaa782b3a24839444a85be86c9f8a37ad15a14e4d01dbd800c391283482de0bf450285802 +MISC ChangeLog 2522 SHA256 4e93dcb88f82bea671cf633ae384216a51a3c9a69de02fa7e1d31509590714b0 SHA512 0a4c8f88877910255599e5815b866dbc7465e08c7cd5adec9acefd3983fb0245b13ccd5135c00ac0d3f32c305ff3eac3a648925ff0149762ae96fee138ece5d1 WHIRLPOOL 59ba8b578bc693035e330f07b0549a4706179eb72593bb4070dfcca07d9efe6d4ecb4780a50ed8d3e81bcf9550dcd207cbf9867d0a9558a25e67aea1331e568b +MISC ChangeLog-2015 13251 SHA256 77570a599cc91e9ac190f36dbebade94b16e3f1977a300365d2774a694b1ddf6 SHA512 975de81e43bba4131877f8f92d1e85d7bbe4a62f035b6b9c1ab3bf95caa4748153bafc341f83f2bf54c200e5dd7c0fc716ff44e970ee3c5177d4a1deab87dd95 WHIRLPOOL 1255ecbbce816ed349060a1a16cc7e6960e4ba0cb8140e155eb801c59a113211e8e2973bb301f990b0848d6df9354575c4505ff7c0e17b17564fba0c096d45ab +MISC metadata.xml 309 SHA256 5de90222844b2d2c67770c38a57da4dc8050f1e2cea6a30c1716665ff681a5d2 SHA512 f14445391f7eee4a7f0906b3c483ccb915cd64bcccdbad63780bb1da5e0eb851621abebafc70f8b88cbfabd335fb396aa3dc909f5789cd8c8eb582af923a2d63 WHIRLPOOL c7f485894144d6874f878d3f0230fe1c0b143a03343b48d3e1ae8641befea22113fe1d85626131e6268293b48296ab1402125461dcfc4dec937def1bb4ccc5b0 diff --git a/media-libs/libmpeg3/files/libmpeg3-1.8-impldecl.patch b/media-libs/libmpeg3/files/libmpeg3-1.8-impldecl.patch new file mode 100644 index 000000000000..632537b87191 --- /dev/null +++ b/media-libs/libmpeg3/files/libmpeg3-1.8-impldecl.patch @@ -0,0 +1,24 @@ +Index: libmpeg3-1.8/audio/ac3.c +=================================================================== +--- libmpeg3-1.8.orig/audio/ac3.c ++++ libmpeg3-1.8/audio/ac3.c +@@ -6,6 +6,7 @@ + #include "mpeg3protos.h" + + #include <string.h> ++#include <stdlib.h> + + + mpeg3_ac3_t* mpeg3_new_ac3() +Index: libmpeg3-1.8/audio/layer3.c +=================================================================== +--- libmpeg3-1.8.orig/audio/layer3.c ++++ libmpeg3-1.8/audio/layer3.c +@@ -5,6 +5,7 @@ + + #include <stdio.h> + #include <string.h> ++#include <stdlib.h> + + struct gr_info_s + { diff --git a/media-libs/libmpeg3/libmpeg3-1.8-r1.ebuild b/media-libs/libmpeg3/libmpeg3-1.8-r1.ebuild new file mode 100644 index 000000000000..98b3de4522ac --- /dev/null +++ b/media-libs/libmpeg3/libmpeg3-1.8-r1.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit eutils autotools toolchain-funcs multilib-minimal + +DESCRIPTION="An mpeg library for linux" +HOMEPAGE="http://heroinewarrior.com/libmpeg3.php" +SRC_URI="mirror://sourceforge/heroines/${P}-src.tar.bz2 + mirror://gentoo/${PN}-1.7-gentoo.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ppc ppc64 ~sh sparc x86" +IUSE="cpu_flags_x86_mmx" + +RDEPEND="sys-libs/zlib + virtual/jpeg:0 + media-libs/a52dec" +DEPEND="${RDEPEND} + cpu_flags_x86_mmx? ( dev-lang/nasm )" + +src_prepare() { + epatch "${WORKDIR}"/${PN}-1.7-mpeg3split.patch + epatch "${WORKDIR}"/${PN}-1.7-textrel.patch + epatch "${WORKDIR}"/${PN}-1.7-gnustack.patch + epatch "${WORKDIR}"/${PN}-1.7-a52.patch + epatch "${WORKDIR}"/${PN}-1.7-all_gcc4.patch + epatch "${WORKDIR}"/${PN}-1.7-all_pthread.patch + + epatch "${FILESDIR}/${P}-impldecl.patch" + + cp -rf "${WORKDIR}"/1.7/* . + eautoreconf +} + +multilib_src_configure() { + #disabling css since it's a fake one. + #One can find in the sources this message : + # Stubs for deCSS which can't be distributed in source form + + ECONF_SOURCE="${S}" econf \ + $(use_enable cpu_flags_x86_mmx mmx) \ + --disable-css +} + +multilib_src_install_all() { + dohtml -r docs + # This is a workaround, it wants to rebuild + # everything if the headers have changed + # So we patch them after install... + cd "${ED}/usr/include/libmpeg3" + # This patch patches the .h files that get installed into /usr/include + # to show the correct include syntax '<>' instead of '""' This patch + # was also generated using info from SF's src.rpm + epatch "${WORKDIR}"/gentoo-p2.patch + + find "${ED}" -name '*.la' -exec rm -f '{}' + +} diff --git a/media-libs/libmpeg3/libmpeg3-1.8.ebuild b/media-libs/libmpeg3/libmpeg3-1.8.ebuild new file mode 100644 index 000000000000..a4a6d7b74205 --- /dev/null +++ b/media-libs/libmpeg3/libmpeg3-1.8.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=4 + +inherit eutils autotools toolchain-funcs + +DESCRIPTION="An mpeg library for linux" +HOMEPAGE="http://heroinewarrior.com/libmpeg3.php" +SRC_URI="mirror://sourceforge/heroines/${P}-src.tar.bz2 + mirror://gentoo/${PN}-1.7-gentoo.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 sh sparc x86" +IUSE="cpu_flags_x86_mmx" + +RDEPEND="sys-libs/zlib + virtual/jpeg + media-libs/a52dec" +DEPEND="${RDEPEND} + cpu_flags_x86_mmx? ( dev-lang/nasm )" + +src_prepare() { + epatch "${WORKDIR}"/${PN}-1.7-mpeg3split.patch + epatch "${WORKDIR}"/${PN}-1.7-textrel.patch + epatch "${WORKDIR}"/${PN}-1.7-gnustack.patch + epatch "${WORKDIR}"/${PN}-1.7-a52.patch + epatch "${WORKDIR}"/${PN}-1.7-all_gcc4.patch + epatch "${WORKDIR}"/${PN}-1.7-all_pthread.patch + + cp -rf "${WORKDIR}"/1.7/* . + eautoreconf +} + +src_configure() { + #disabling css since it's a fake one. + #One can find in the sources this message : + # Stubs for deCSS which can't be distributed in source form + + econf \ + $(use_enable cpu_flags_x86_mmx mmx) \ + --disable-css +} + +src_install() { + default + dohtml -r docs + # This is a workaround, it wants to rebuild + # everything if the headers have changed + # So we patch them after install... + cd "${ED}/usr/include/libmpeg3" + # This patch patches the .h files that get installed into /usr/include + # to show the correct include syntax '<>' instead of '""' This patch + # was also generated using info from SF's src.rpm + epatch "${WORKDIR}"/gentoo-p2.patch + + find "${ED}" -name '*.la' -exec rm -f '{}' + +} diff --git a/media-libs/libmpeg3/metadata.xml b/media-libs/libmpeg3/metadata.xml new file mode 100644 index 000000000000..c8992185ad4b --- /dev/null +++ b/media-libs/libmpeg3/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>media-video@gentoo.org</email> + </maintainer> + <upstream> + <remote-id type="sourceforge">heroines</remote-id> + </upstream> +</pkgmetadata> |