From owner-svn-ports-all@freebsd.org Tue Dec 29 13:17:30 2020 Return-Path: Delivered-To: svn-ports-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 2276F4BE59F; Tue, 29 Dec 2020 13:17:30 +0000 (UTC) (envelope-from pkubaj@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4D4w220Y0xz4Xms; Tue, 29 Dec 2020 13:17:30 +0000 (UTC) (envelope-from pkubaj@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 05F61498E; Tue, 29 Dec 2020 13:17:30 +0000 (UTC) (envelope-from pkubaj@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 0BTDHTED010532; Tue, 29 Dec 2020 13:17:29 GMT (envelope-from pkubaj@FreeBSD.org) Received: (from pkubaj@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 0BTDHTNJ010530; Tue, 29 Dec 2020 13:17:29 GMT (envelope-from pkubaj@FreeBSD.org) Message-Id: <202012291317.0BTDHTNJ010530@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: pkubaj set sender to pkubaj@FreeBSD.org using -f From: Piotr Kubaj Date: Tue, 29 Dec 2020 13:17:29 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r559578 - in head/multimedia/mythtv: . files X-SVN-Group: ports-head X-SVN-Commit-Author: pkubaj X-SVN-Commit-Paths: in head/multimedia/mythtv: . files X-SVN-Commit-Revision: 559578 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Dec 2020 13:17:30 -0000 Author: pkubaj Date: Tue Dec 29 13:17:29 2020 New Revision: 559578 URL: https://svnweb.freebsd.org/changeset/ports/559578 Log: multimedia/mythtv: enable on powerpc64 Requires backporting already merged ffmpeg patch. Added: head/multimedia/mythtv/files/patch-external_FFmpeg_libswscale_ppc_swscale__altivec.c (contents, props changed) Modified: head/multimedia/mythtv/Makefile Modified: head/multimedia/mythtv/Makefile ============================================================================== --- head/multimedia/mythtv/Makefile Tue Dec 29 12:56:24 2020 (r559577) +++ head/multimedia/mythtv/Makefile Tue Dec 29 13:17:29 2020 (r559578) @@ -13,7 +13,7 @@ COMMENT?= Homebrew PVR project LICENSE= GPLv2+ LICENSE_FILE= ${WRKSRC}/COPYING -ONLY_FOR_ARCHS= amd64 i386 +ONLY_FOR_ARCHS= amd64 i386 powerpc64 .if ${/usr/bin/ld:L:tA} == /usr/bin/ld.lld BROKEN_i386= ld: error: can't create dynamic relocation R_386_32 against local symbol in readonly segment .endif @@ -37,8 +37,8 @@ LIB_DEPENDS= liblzo2.so:archivers/lzo2 \ BUILD_DEPENDS= yasm:devel/yasm \ ${LOCALBASE}/include/linux/input.h:devel/evdev-proto -USES= gmake gl iconv libtool pkgconfig pathfix qmake:no_env qt:5 ssl \ - xorg +USES= compiler:c++11-lang gmake gl iconv libtool pkgconfig pathfix \ + qmake:no_env qt:5 ssl xorg USE_GITHUB= yes GH_ACCOUNT= MythTV USE_GL= gl Added: head/multimedia/mythtv/files/patch-external_FFmpeg_libswscale_ppc_swscale__altivec.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/multimedia/mythtv/files/patch-external_FFmpeg_libswscale_ppc_swscale__altivec.c Tue Dec 29 13:17:29 2020 (r559578) @@ -0,0 +1,55 @@ +--- external/FFmpeg/libswscale/ppc/swscale_altivec.c.orig 2019-08-11 20:06:32 UTC ++++ external/FFmpeg/libswscale/ppc/swscale_altivec.c +@@ -153,13 +153,13 @@ static void yuv2plane1_float_altivec(const int32_t *sr + const int add = (1 << (shift - 1)); + const int clip = (1 << 16) - 1; + const float fmult = 1.0f / 65535.0f; +- const vector uint32_t vadd = (vector uint32_t) {add, add, add, add}; +- const vector uint32_t vshift = (vector uint32_t) vec_splat_u32(shift); +- const vector uint32_t vlargest = (vector uint32_t) {clip, clip, clip, clip}; +- const vector float vmul = (vector float) {fmult, fmult, fmult, fmult}; +- const vector float vzero = (vector float) {0, 0, 0, 0}; +- vector uint32_t v; +- vector float vd; ++ const vec_u32 vadd = (vec_u32) {add, add, add, add}; ++ const vec_u32 vshift = (vec_u32) vec_splat_u32(shift); ++ const vec_u32 vlargest = (vec_u32) {clip, clip, clip, clip}; ++ const vec_f vmul = (vec_f) {fmult, fmult, fmult, fmult}; ++ const vec_f vzero = (vec_f) {0, 0, 0, 0}; ++ vec_u32 v; ++ vec_f vd; + int i; + + yuv2plane1_float_u(src, dest, dst_u, 0); +@@ -186,14 +186,14 @@ static void yuv2plane1_float_bswap_altivec(const int32 + const int add = (1 << (shift - 1)); + const int clip = (1 << 16) - 1; + const float fmult = 1.0f / 65535.0f; +- const vector uint32_t vadd = (vector uint32_t) {add, add, add, add}; +- const vector uint32_t vshift = (vector uint32_t) vec_splat_u32(shift); +- const vector uint32_t vlargest = (vector uint32_t) {clip, clip, clip, clip}; ++ const vec_u32 vadd = (vec_u32) {add, add, add, add}; ++ const vec_u32 vshift = (vec_u32) vec_splat_u32(shift); ++ const vec_u32 vlargest = (vec_u32) {clip, clip, clip, clip}; + const vector float vmul = (vector float) {fmult, fmult, fmult, fmult}; + const vector float vzero = (vector float) {0, 0, 0, 0}; +- const vector uint32_t vswapbig = (vector uint32_t) {16, 16, 16, 16}; +- const vector uint16_t vswapsmall = vec_splat_u16(8); +- vector uint32_t v; ++ const vec_u32 vswapbig = (vec_u32) {16, 16, 16, 16}; ++ const vec_u16 vswapsmall = vec_splat_u16(8); ++ vec_u32 v; + vector float vd; + int i; + +@@ -208,8 +208,8 @@ static void yuv2plane1_float_bswap_altivec(const int32 + vd = vec_ctf(v, 0); + vd = vec_madd(vd, vmul, vzero); + +- vd = (vector float) vec_rl((vector uint32_t) vd, vswapbig); +- vd = (vector float) vec_rl((vector uint16_t) vd, vswapsmall); ++ vd = (vector float) vec_rl((vec_u32) vd, vswapbig); ++ vd = (vector float) vec_rl((vec_u16) vd, vswapsmall); + + vec_st(vd, 0, (float *) &dest[i]); + }