diff options
Diffstat (limited to 'media-libs/xvid')
-rw-r--r-- | media-libs/xvid/Manifest | 2 | ||||
-rw-r--r-- | media-libs/xvid/xvid-1.3.7.ebuild | 68 |
2 files changed, 70 insertions, 0 deletions
diff --git a/media-libs/xvid/Manifest b/media-libs/xvid/Manifest index 483588482817..4aeb17523c8f 100644 --- a/media-libs/xvid/Manifest +++ b/media-libs/xvid/Manifest @@ -1,4 +1,6 @@ DIST xvidcore-1.3.5.tar.bz2 698846 BLAKE2B c65c90a2a51d993af65becd760364b495ca1714f888c640b577ee3cb509afc5dbe56d1f536aa710a5322106ca65bed4ad162ad97440e9c14deeabbcbe00984b5 SHA512 3297243400ce9ed2d0083559ee15fdfa422e585114c4e92c72fe702f43fea4af9fe4e9e794630959c220222379fa329452c4163a395f4ba1998c9be03a2e9441 +DIST xvidcore-1.3.7.tar.bz2 698615 BLAKE2B 19bea63226c2223e74e5202d3b671c5b292c03ce5de240df7d8ce34101de4036b28fad516b2a56712a099819b905e68922fa83a01fbe4f200dc880ca56c10a96 SHA512 e2b22e7a7e103af7adcc999d95484f991a0a33df02b912fe042b2e23d2af07381c737d23158dbf0fad770ee680572f86fbe04ab2ef33c81e2e0180ead2acc8ed EBUILD xvid-1.3.5-r1.ebuild 1749 BLAKE2B 524b85ade8e5b1102227cc13912f6162e78a43e4ba91d17dfb4240e5bb2db8762dd9ecb9605ed02121936038ad716f497b2a85b4fa78d6f894d881f413143c97 SHA512 3be60bb77595d630dc186942bd9786653871b175473c4fba5809f6804db45bc5394e2ea4827d3cfd25ff5cb77a2369b168df623a0c28e3b3e7e6e25927a7f3ee EBUILD xvid-1.3.5.ebuild 1670 BLAKE2B ce06176a07776e33b5a34b1774b1a2aafd0678ad85e5bc9f9e12611449aeda401440244679d8a00d40975d0adc9206d644798a86d2fa3c6b90fe2dcdb8d4707c SHA512 4b81bf15e6599c3feb608e1a7fece487c9e1f531cdb02cb3ca2a36af6516f7b94fe7f970ad7a02c63e32b40836031a0a827b7096c1d7dfa855c54838a9a7f653 +EBUILD xvid-1.3.7.ebuild 1750 BLAKE2B 6f5305f7caae6afadf61832c4008b1984dea4d67a0bb50b4311974b47e4b8ceb3dee21cad53096ea625cefe3993f15da6749f3871c4d8192b4dcefa21194a6f0 SHA512 5d8be6b1885097ebf7b6426462c6f718b553ef6002266a1cc794c49200255191c2eeb62e43f3309d41de702b83985d09b1cf472b37116a416248ba4b67342d60 MISC metadata.xml 321 BLAKE2B cb6de1ddc565513350b010042d99dd2cb34c0cfa80d26d1324266b6621bea5fe50f4e9233348d0c5d9b9c214d48b9c94e8fc4b08f9c0b43c779b238a65559c03 SHA512 640a21ce70c9b74f86e27bca3153b920ad7ad8313f3f5d6032e41791ab99f7463718f99bfc7fd15613e682769be6fe322c15d3bc841f674bc0322afa130c8b98 diff --git a/media-libs/xvid/xvid-1.3.7.ebuild b/media-libs/xvid/xvid-1.3.7.ebuild new file mode 100644 index 000000000000..bfd41066754c --- /dev/null +++ b/media-libs/xvid/xvid-1.3.7.ebuild @@ -0,0 +1,68 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +MY_PN="${PN}core" +MY_P="${MY_PN}-${PV}" +inherit flag-o-matic multilib-minimal + +DESCRIPTION="High performance/quality MPEG-4 video de-/encoding solution" +HOMEPAGE="https://www.xvid.org/" +SRC_URI="https://downloads.xvid.com/downloads/${MY_P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~x86-solaris" +IUSE="elibc_FreeBSD examples pic +threads" + +NASM=">=dev-lang/nasm-2" +YASM=">=dev-lang/yasm-1" + +BDEPEND="sys-apps/grep" +DEPEND="amd64? ( || ( ${YASM} ${NASM} ) ) + x86? ( || ( ${YASM} ${NASM} ) ) + x86-macos? ( ${NASM} ) + x64-macos? ( ${NASM} )" + +S="${WORKDIR}/${MY_PN}/build/generic" + +src_prepare() { + default + + # make build verbose + sed \ + -e 's/@$(CC)/$(CC)/' \ + -e 's/@$(AS)/$(AS)/' \ + -e 's/@$(RM)/$(RM)/' \ + -e 's/@$(INSTALL)/$(INSTALL)/' \ + -e 's/@cd/cd/' \ + -e '/\$(libdir)\/\$(STATIC_LIB)/d' \ + -e 's/\$(BUILD_DIR)\/\$(STATIC_LIB)//g' \ + -e 's/info \$(STATIC_LIB)/info/g' \ + -i Makefile || die + # Since only the build system is in $S, this will only copy it but not the + # entire sources. + multilib_copy_sources +} + +multilib_src_configure() { + use sparc && append-cflags -mno-vis #357149 + use elibc_FreeBSD && export ac_cv_prog_ac_yasm=no #477736 + + local myconf=( $(use_enable threads pthread) ) + if use pic || [[ ${ABI} == "x32" ]] ; then #421841 + myconf+=( --disable-assembly ) + fi + + econf "${myconf[@]}" +} + +multilib_src_install_all() { + dodoc "${S}"/../../{AUTHORS,ChangeLog*,CodingStyle,README,TODO} + + if use examples; then + insinto /usr/share/${PN} + doins -r "${S}"/../../examples + fi +} |