mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-06 00:48:18 -07:00
media-video/asfrecorder: EAPI7->8, fix build w/ upcoming clang16
Also simplify with implicit make rules, and drop dead SRC_URI (sourceforge project page is technically still there but marked abandoned and downloads are gone). Closes: https://bugs.gentoo.org/874558 Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
This commit is contained in:
@@ -1,14 +1,16 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
EAPI=8
|
||||
|
||||
inherit toolchain-funcs
|
||||
|
||||
MY_PN="${PN/asfr/ASFR}"
|
||||
|
||||
DESCRIPTION="Linux WindowsMedia streaming client"
|
||||
HOMEPAGE="https://sourceforge.net/projects/asfrecorder/"
|
||||
SRC_URI="mirror://sourceforge/${PN}/${MY_PN}.zip"
|
||||
SRC_URI="mirror://gentoo/${MY_PN}.zip"
|
||||
S="${WORKDIR}/${MY_PN}"
|
||||
|
||||
LICENSE="public-domain"
|
||||
SLOT="0"
|
||||
@@ -16,17 +18,16 @@ KEYWORDS="~amd64 ppc x86 ~x86-linux ~ppc-macos"
|
||||
|
||||
BDEPEND="app-arch/unzip"
|
||||
|
||||
S=${WORKDIR}/${MY_PN}
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${P}-headers.patch
|
||||
)
|
||||
|
||||
src_compile() {
|
||||
# There is a Makefile, but it only works for Cygwin, so we
|
||||
# only compile this single program.
|
||||
cd "${S}"/source || die
|
||||
$(tc-getCC) -o ${PN} ${CFLAGS} ${LDFLAGS} ${PN}.c || die "Build failed"
|
||||
tc-export CC
|
||||
emake -C source ${PN}
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# Again, no makefiles, so just take what we want.
|
||||
dobin source/${PN}
|
||||
dodoc README.TXT
|
||||
einstalldocs
|
||||
}
|
||||
11
media-video/asfrecorder/files/asfrecorder-1.1-headers.patch
Normal file
11
media-video/asfrecorder/files/asfrecorder-1.1-headers.patch
Normal file
@@ -0,0 +1,11 @@
|
||||
https://bugs.gentoo.org/874558
|
||||
--- a/source/asfrecorder.c
|
||||
+++ b/source/asfrecorder.c
|
||||
@@ -127,2 +127,7 @@
|
||||
#include <time.h>
|
||||
+#include <ctype.h>
|
||||
+#include <unistd.h>
|
||||
+#include <sys/socket.h>
|
||||
+#include <netinet/in.h>
|
||||
+#include <arpa/inet.h>
|
||||
|
||||
Reference in New Issue
Block a user