diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2019-12-15 18:09:03 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2019-12-15 18:09:03 +0000 |
commit | 7bc9c63c9da678a7e6fceb095d56c634afd22c56 (patch) | |
tree | 4a67d50a439e9af63947e5f8b6ba3719af98b6c9 /media-video/mpeg2vidcodec/mpeg2vidcodec-12-r1.ebuild | |
parent | b284a3168fa91a038925d2ecf5e4791011ea5e7d (diff) |
gentoo resync : 15.12.2019
Diffstat (limited to 'media-video/mpeg2vidcodec/mpeg2vidcodec-12-r1.ebuild')
-rw-r--r-- | media-video/mpeg2vidcodec/mpeg2vidcodec-12-r1.ebuild | 24 |
1 files changed, 11 insertions, 13 deletions
diff --git a/media-video/mpeg2vidcodec/mpeg2vidcodec-12-r1.ebuild b/media-video/mpeg2vidcodec/mpeg2vidcodec-12-r1.ebuild index d3769dd81efc..33d9cdb700f6 100644 --- a/media-video/mpeg2vidcodec/mpeg2vidcodec-12-r1.ebuild +++ b/media-video/mpeg2vidcodec/mpeg2vidcodec-12-r1.ebuild @@ -1,11 +1,12 @@ -# Copyright 1999-2013 Gentoo Foundation +# Copyright 1999-2019 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=4 +EAPI=7 inherit toolchain-funcs MY_P="${PN}_v${PV}" + DESCRIPTION="MPEG Library" HOMEPAGE="http://www.mpeg.org/" SRC_URI="http://www.mpeg.org/pub_ftp/mpeg/mssg/${MY_P}.tar.gz" @@ -13,23 +14,20 @@ SRC_URI="http://www.mpeg.org/pub_ftp/mpeg/mssg/${MY_P}.tar.gz" LICENSE="mpeg2enc" SLOT="0" KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~sparc-solaris" -IUSE="" RESTRICT="mirror bindist" #465088 -S=${WORKDIR}/mpeg2 - -src_prepare() { - sed -i -e 's:make:$(MAKE):' Makefile || die +S="${WORKDIR}/mpeg2" - sed -i -e 's:$(CC) $(CFLAGS):\0 $(LDFLAGS):' \ - src/mpeg2enc/Makefile src/mpeg2dec/Makefile || die -} +PATCHES=( + "${FILESDIR}"/${P}-fix-build-system.patch + "${FILESDIR}"/${P}-Wimplicit-function-declaration.patch +) -src_compile() { - emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" +src_configure() { + tc-export CC } src_install() { dobin src/mpeg2dec/mpeg2decode src/mpeg2enc/mpeg2encode - dodoc README doc/* + dodoc -r README doc/. } |