* Re: [PR PATCH] [Updated] x265: add options for altivec and assembly
2019-05-07 15:05 [PR PATCH] x265: add options for altivec and assembly voidlinux-github
@ 2019-05-07 15:09 ` voidlinux-github
2019-05-07 15:09 ` voidlinux-github
` (10 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: voidlinux-github @ 2019-05-07 15:09 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 569 bytes --]
There is an updated pull request by q66 against master on the void-packages repository
https://github.com/void-ppc64/void-packages x265
https://github.com/void-linux/void-packages/pull/11540
x265: add options for altivec and assembly
This lets the user choose whether to build them in. Default to on for altivec on ppc64le (because that's always power8 or better) and off on ppc64 (because we support old hardware), assembly is on for ARM and x86 and off for everything else.
A patch file from https://github.com/void-linux/void-packages/pull/11540.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-x265-11540.patch --]
[-- Type: application/text/x-diff, Size: 2127 bytes --]
From 5b5eb4d64e4796a86c16ed99c925c7026ea960a8 Mon Sep 17 00:00:00 2001
From: q66 <daniel@octaforge.org>
Date: Tue, 7 May 2019 17:02:24 +0200
Subject: [PATCH] x265: add options for altivec and assembly
This lets the user choose whether to build them in. Default to
on for altivec on ppc64le (because that's always power8 or better)
and off on ppc64 (because we support old hardware), assembly is
on for ARM and x86 and off for everything else.
---
srcpkgs/x265/template | 24 +++++++++++++++++++++---
1 file changed, 21 insertions(+), 3 deletions(-)
diff --git a/srcpkgs/x265/template b/srcpkgs/x265/template
index 80561b477a4..e979bc4e29d 100644
--- a/srcpkgs/x265/template
+++ b/srcpkgs/x265/template
@@ -1,11 +1,13 @@
# Template file for 'x265'
pkgname=x265
version=3.0
-revision=1
+revision=2
wrksrc="x265_${version}"
build_wrksrc=source
build_style=cmake
-configure_args="-DENABLE_PIC=1"
+configure_args="-DENABLE_PIC=1 -DENABLE_ASSEMBLY=$(vopt_if assembly ON OFF)
+ -DENABLE_ALTIVEC=$(vopt_if altivec ON OFF)
+ -DCPU_POWER8=$(vopt_if altivec ON OFF)"
hostmakedepends="yasm"
short_desc="Open Source H.265/HEVC video encoder"
maintainer="Juan RP <xtraeme@voidlinux.org>"
@@ -14,8 +16,24 @@ homepage="http://x265.org/"
distfiles="https://bitbucket.org/multicoreware/x265/downloads/x265_${version}.tar.gz"
checksum=c5b9fc260cabbc4a81561a448f4ce9cad7218272b4011feabc3a6b751b2f0662
+build_options="altivec assembly"
+
+desc_option_altivec="Enable AltiVec support on ppc64 (POWER8 and higher only)"
+desc_option_assembly="Enable assembly support on x86/ARM"
+
+case "$XBPS_TARGET_MACHINE" in
+ ppc64le*) build_options_default="altivec" ;;
+ x86_64*|i686*|arm*|aarch64*) build_options_default="assembly" ;;
+ *) ;;
+esac
+
case "$XBPS_TARGET_MACHINE" in
- ppc64|ppc64-musl) configure_args+=" -DCPU_POWER8=OFF -DENABLE_ALTIVEC=OFF";;
+ ppc64*)
+ # altivec does not build without power8 being enabled
+ configure_args+=" -DENABLE_ALTIVEC=$(vopt_if altivec ON OFF)
+ -DCPU_POWER8=$(vopt_if altivec ON OFF)"
+ ;;
+ *) configure_args+=" -DENABLE_ASSEMBLY=$(vopt_if assembly ON OFF)" ;;
esac
pre_configure() {
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PR PATCH] [Updated] x265: add options for altivec and assembly
2019-05-07 15:05 [PR PATCH] x265: add options for altivec and assembly voidlinux-github
2019-05-07 15:09 ` [PR PATCH] [Updated] " voidlinux-github
@ 2019-05-07 15:09 ` voidlinux-github
2019-05-07 15:10 ` voidlinux-github
` (9 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: voidlinux-github @ 2019-05-07 15:09 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 569 bytes --]
There is an updated pull request by q66 against master on the void-packages repository
https://github.com/void-ppc64/void-packages x265
https://github.com/void-linux/void-packages/pull/11540
x265: add options for altivec and assembly
This lets the user choose whether to build them in. Default to on for altivec on ppc64le (because that's always power8 or better) and off on ppc64 (because we support old hardware), assembly is on for ARM and x86 and off for everything else.
A patch file from https://github.com/void-linux/void-packages/pull/11540.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-x265-11540.patch --]
[-- Type: application/text/x-diff, Size: 2127 bytes --]
From 5b5eb4d64e4796a86c16ed99c925c7026ea960a8 Mon Sep 17 00:00:00 2001
From: q66 <daniel@octaforge.org>
Date: Tue, 7 May 2019 17:02:24 +0200
Subject: [PATCH] x265: add options for altivec and assembly
This lets the user choose whether to build them in. Default to
on for altivec on ppc64le (because that's always power8 or better)
and off on ppc64 (because we support old hardware), assembly is
on for ARM and x86 and off for everything else.
---
srcpkgs/x265/template | 24 +++++++++++++++++++++---
1 file changed, 21 insertions(+), 3 deletions(-)
diff --git a/srcpkgs/x265/template b/srcpkgs/x265/template
index 80561b477a4..e979bc4e29d 100644
--- a/srcpkgs/x265/template
+++ b/srcpkgs/x265/template
@@ -1,11 +1,13 @@
# Template file for 'x265'
pkgname=x265
version=3.0
-revision=1
+revision=2
wrksrc="x265_${version}"
build_wrksrc=source
build_style=cmake
-configure_args="-DENABLE_PIC=1"
+configure_args="-DENABLE_PIC=1 -DENABLE_ASSEMBLY=$(vopt_if assembly ON OFF)
+ -DENABLE_ALTIVEC=$(vopt_if altivec ON OFF)
+ -DCPU_POWER8=$(vopt_if altivec ON OFF)"
hostmakedepends="yasm"
short_desc="Open Source H.265/HEVC video encoder"
maintainer="Juan RP <xtraeme@voidlinux.org>"
@@ -14,8 +16,24 @@ homepage="http://x265.org/"
distfiles="https://bitbucket.org/multicoreware/x265/downloads/x265_${version}.tar.gz"
checksum=c5b9fc260cabbc4a81561a448f4ce9cad7218272b4011feabc3a6b751b2f0662
+build_options="altivec assembly"
+
+desc_option_altivec="Enable AltiVec support on ppc64 (POWER8 and higher only)"
+desc_option_assembly="Enable assembly support on x86/ARM"
+
+case "$XBPS_TARGET_MACHINE" in
+ ppc64le*) build_options_default="altivec" ;;
+ x86_64*|i686*|arm*|aarch64*) build_options_default="assembly" ;;
+ *) ;;
+esac
+
case "$XBPS_TARGET_MACHINE" in
- ppc64|ppc64-musl) configure_args+=" -DCPU_POWER8=OFF -DENABLE_ALTIVEC=OFF";;
+ ppc64*)
+ # altivec does not build without power8 being enabled
+ configure_args+=" -DENABLE_ALTIVEC=$(vopt_if altivec ON OFF)
+ -DCPU_POWER8=$(vopt_if altivec ON OFF)"
+ ;;
+ *) configure_args+=" -DENABLE_ASSEMBLY=$(vopt_if assembly ON OFF)" ;;
esac
pre_configure() {
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PR PATCH] [Updated] x265: add options for altivec and assembly
2019-05-07 15:05 [PR PATCH] x265: add options for altivec and assembly voidlinux-github
2019-05-07 15:09 ` [PR PATCH] [Updated] " voidlinux-github
2019-05-07 15:09 ` voidlinux-github
@ 2019-05-07 15:10 ` voidlinux-github
2019-05-07 15:10 ` voidlinux-github
` (8 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: voidlinux-github @ 2019-05-07 15:10 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 569 bytes --]
There is an updated pull request by q66 against master on the void-packages repository
https://github.com/void-ppc64/void-packages x265
https://github.com/void-linux/void-packages/pull/11540
x265: add options for altivec and assembly
This lets the user choose whether to build them in. Default to on for altivec on ppc64le (because that's always power8 or better) and off on ppc64 (because we support old hardware), assembly is on for ARM and x86 and off for everything else.
A patch file from https://github.com/void-linux/void-packages/pull/11540.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-x265-11540.patch --]
[-- Type: application/text/x-diff, Size: 1803 bytes --]
From feff1dc19aa2a9c5ea107379adb1f699adcb6d5b Mon Sep 17 00:00:00 2001
From: q66 <daniel@octaforge.org>
Date: Tue, 7 May 2019 17:02:24 +0200
Subject: [PATCH] x265: add options for altivec and assembly
This lets the user choose whether to build them in. Default to
on for altivec on ppc64le (because that's always power8 or better)
and off on ppc64 (because we support old hardware), assembly is
on for ARM and x86 and off for everything else.
---
srcpkgs/x265/template | 20 ++++++++++++++++++--
1 file changed, 18 insertions(+), 2 deletions(-)
diff --git a/srcpkgs/x265/template b/srcpkgs/x265/template
index 80561b477a4..019456a8595 100644
--- a/srcpkgs/x265/template
+++ b/srcpkgs/x265/template
@@ -1,7 +1,7 @@
# Template file for 'x265'
pkgname=x265
version=3.0
-revision=1
+revision=2
wrksrc="x265_${version}"
build_wrksrc=source
build_style=cmake
@@ -14,8 +14,24 @@ homepage="http://x265.org/"
distfiles="https://bitbucket.org/multicoreware/x265/downloads/x265_${version}.tar.gz"
checksum=c5b9fc260cabbc4a81561a448f4ce9cad7218272b4011feabc3a6b751b2f0662
+build_options="altivec assembly"
+
+desc_option_altivec="Enable AltiVec support on ppc64 (POWER8 and higher only)"
+desc_option_assembly="Enable assembly support on x86/ARM"
+
+case "$XBPS_TARGET_MACHINE" in
+ ppc64le*) build_options_default="altivec" ;;
+ x86_64*|i686*|arm*|aarch64*) build_options_default="assembly" ;;
+ *) ;;
+esac
+
case "$XBPS_TARGET_MACHINE" in
- ppc64|ppc64-musl) configure_args+=" -DCPU_POWER8=OFF -DENABLE_ALTIVEC=OFF";;
+ ppc64*)
+ # altivec does not build without power8 being enabled
+ configure_args+=" -DENABLE_ALTIVEC=$(vopt_if altivec ON OFF)
+ -DCPU_POWER8=$(vopt_if altivec ON OFF)"
+ ;;
+ *) configure_args+=" -DENABLE_ASSEMBLY=$(vopt_if assembly ON OFF)" ;;
esac
pre_configure() {
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PR PATCH] [Updated] x265: add options for altivec and assembly
2019-05-07 15:05 [PR PATCH] x265: add options for altivec and assembly voidlinux-github
` (2 preceding siblings ...)
2019-05-07 15:10 ` voidlinux-github
@ 2019-05-07 15:10 ` voidlinux-github
2019-05-07 15:22 ` voidlinux-github
` (7 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: voidlinux-github @ 2019-05-07 15:10 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 569 bytes --]
There is an updated pull request by q66 against master on the void-packages repository
https://github.com/void-ppc64/void-packages x265
https://github.com/void-linux/void-packages/pull/11540
x265: add options for altivec and assembly
This lets the user choose whether to build them in. Default to on for altivec on ppc64le (because that's always power8 or better) and off on ppc64 (because we support old hardware), assembly is on for ARM and x86 and off for everything else.
A patch file from https://github.com/void-linux/void-packages/pull/11540.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-x265-11540.patch --]
[-- Type: application/text/x-diff, Size: 1803 bytes --]
From feff1dc19aa2a9c5ea107379adb1f699adcb6d5b Mon Sep 17 00:00:00 2001
From: q66 <daniel@octaforge.org>
Date: Tue, 7 May 2019 17:02:24 +0200
Subject: [PATCH] x265: add options for altivec and assembly
This lets the user choose whether to build them in. Default to
on for altivec on ppc64le (because that's always power8 or better)
and off on ppc64 (because we support old hardware), assembly is
on for ARM and x86 and off for everything else.
---
srcpkgs/x265/template | 20 ++++++++++++++++++--
1 file changed, 18 insertions(+), 2 deletions(-)
diff --git a/srcpkgs/x265/template b/srcpkgs/x265/template
index 80561b477a4..019456a8595 100644
--- a/srcpkgs/x265/template
+++ b/srcpkgs/x265/template
@@ -1,7 +1,7 @@
# Template file for 'x265'
pkgname=x265
version=3.0
-revision=1
+revision=2
wrksrc="x265_${version}"
build_wrksrc=source
build_style=cmake
@@ -14,8 +14,24 @@ homepage="http://x265.org/"
distfiles="https://bitbucket.org/multicoreware/x265/downloads/x265_${version}.tar.gz"
checksum=c5b9fc260cabbc4a81561a448f4ce9cad7218272b4011feabc3a6b751b2f0662
+build_options="altivec assembly"
+
+desc_option_altivec="Enable AltiVec support on ppc64 (POWER8 and higher only)"
+desc_option_assembly="Enable assembly support on x86/ARM"
+
+case "$XBPS_TARGET_MACHINE" in
+ ppc64le*) build_options_default="altivec" ;;
+ x86_64*|i686*|arm*|aarch64*) build_options_default="assembly" ;;
+ *) ;;
+esac
+
case "$XBPS_TARGET_MACHINE" in
- ppc64|ppc64-musl) configure_args+=" -DCPU_POWER8=OFF -DENABLE_ALTIVEC=OFF";;
+ ppc64*)
+ # altivec does not build without power8 being enabled
+ configure_args+=" -DENABLE_ALTIVEC=$(vopt_if altivec ON OFF)
+ -DCPU_POWER8=$(vopt_if altivec ON OFF)"
+ ;;
+ *) configure_args+=" -DENABLE_ASSEMBLY=$(vopt_if assembly ON OFF)" ;;
esac
pre_configure() {
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PR PATCH] [Updated] x265: add options for altivec and assembly
2019-05-07 15:05 [PR PATCH] x265: add options for altivec and assembly voidlinux-github
` (3 preceding siblings ...)
2019-05-07 15:10 ` voidlinux-github
@ 2019-05-07 15:22 ` voidlinux-github
2019-05-07 15:22 ` voidlinux-github
` (6 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: voidlinux-github @ 2019-05-07 15:22 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 569 bytes --]
There is an updated pull request by q66 against master on the void-packages repository
https://github.com/void-ppc64/void-packages x265
https://github.com/void-linux/void-packages/pull/11540
x265: add options for altivec and assembly
This lets the user choose whether to build them in. Default to on for altivec on ppc64le (because that's always power8 or better) and off on ppc64 (because we support old hardware), assembly is on for ARM and x86 and off for everything else.
A patch file from https://github.com/void-linux/void-packages/pull/11540.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-x265-11540.patch --]
[-- Type: application/text/x-diff, Size: 2400 bytes --]
From e2f9248319856e07f50a1afadc73430a63f466cf Mon Sep 17 00:00:00 2001
From: q66 <daniel@octaforge.org>
Date: Tue, 7 May 2019 17:02:24 +0200
Subject: [PATCH] x265: add options for altivec and assembly
This lets the user choose whether to build them in. Default to
on for altivec on ppc64le (because that's always power8 or better)
and off on ppc64 (because we support old hardware), assembly is
on for ARM and x86 and off for everything else.
Also use the proper assembler (nasm instead of yasm), x265 does
not take yasm and will just disable the assembly implicitly.
---
srcpkgs/x265/template | 30 +++++++++++++++++++++++++++---
1 file changed, 27 insertions(+), 3 deletions(-)
diff --git a/srcpkgs/x265/template b/srcpkgs/x265/template
index 80561b477a4..217c46167ca 100644
--- a/srcpkgs/x265/template
+++ b/srcpkgs/x265/template
@@ -1,12 +1,11 @@
# Template file for 'x265'
pkgname=x265
version=3.0
-revision=1
+revision=2
wrksrc="x265_${version}"
build_wrksrc=source
build_style=cmake
configure_args="-DENABLE_PIC=1"
-hostmakedepends="yasm"
short_desc="Open Source H.265/HEVC video encoder"
maintainer="Juan RP <xtraeme@voidlinux.org>"
license="GPL-2.0-or-later"
@@ -14,8 +13,33 @@ homepage="http://x265.org/"
distfiles="https://bitbucket.org/multicoreware/x265/downloads/x265_${version}.tar.gz"
checksum=c5b9fc260cabbc4a81561a448f4ce9cad7218272b4011feabc3a6b751b2f0662
+build_options="altivec assembly"
+
+desc_option_altivec="Enable AltiVec support on ppc64 (POWER8 and higher only)"
+desc_option_assembly="Enable assembly support on x86/ARM"
+
+case "$XBPS_TARGET_MACHINE" in
+ ppc64le*) build_options_default="altivec" ;;
+ # on ARM, enabling it currently fails with undefined reference to
+ # x265::setupAssemblyPrimitives(x265::EncoderPrimitives&, int)
+ x86_64*|i686*) build_options_default="assembly" ;;
+ *) ;;
+esac
+
+if [ "$build_option_assembly" ]; then
+ case "$XBPS_TARGET_MACHINE" in
+ x86_64*|i686*) hostmakedepends+=" nasm" ;;
+ *) ;;
+ esac
+fi
+
case "$XBPS_TARGET_MACHINE" in
- ppc64|ppc64-musl) configure_args+=" -DCPU_POWER8=OFF -DENABLE_ALTIVEC=OFF";;
+ ppc64*)
+ # altivec does not build without power8 being enabled
+ configure_args+=" -DENABLE_ALTIVEC=$(vopt_if altivec ON OFF)
+ -DCPU_POWER8=$(vopt_if altivec ON OFF)"
+ ;;
+ *) configure_args+=" -DENABLE_ASSEMBLY=$(vopt_if assembly ON OFF)" ;;
esac
pre_configure() {
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PR PATCH] [Updated] x265: add options for altivec and assembly
2019-05-07 15:05 [PR PATCH] x265: add options for altivec and assembly voidlinux-github
` (4 preceding siblings ...)
2019-05-07 15:22 ` voidlinux-github
@ 2019-05-07 15:22 ` voidlinux-github
2019-05-07 15:24 ` voidlinux-github
` (5 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: voidlinux-github @ 2019-05-07 15:22 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 569 bytes --]
There is an updated pull request by q66 against master on the void-packages repository
https://github.com/void-ppc64/void-packages x265
https://github.com/void-linux/void-packages/pull/11540
x265: add options for altivec and assembly
This lets the user choose whether to build them in. Default to on for altivec on ppc64le (because that's always power8 or better) and off on ppc64 (because we support old hardware), assembly is on for ARM and x86 and off for everything else.
A patch file from https://github.com/void-linux/void-packages/pull/11540.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-x265-11540.patch --]
[-- Type: application/text/x-diff, Size: 2400 bytes --]
From e2f9248319856e07f50a1afadc73430a63f466cf Mon Sep 17 00:00:00 2001
From: q66 <daniel@octaforge.org>
Date: Tue, 7 May 2019 17:02:24 +0200
Subject: [PATCH] x265: add options for altivec and assembly
This lets the user choose whether to build them in. Default to
on for altivec on ppc64le (because that's always power8 or better)
and off on ppc64 (because we support old hardware), assembly is
on for ARM and x86 and off for everything else.
Also use the proper assembler (nasm instead of yasm), x265 does
not take yasm and will just disable the assembly implicitly.
---
srcpkgs/x265/template | 30 +++++++++++++++++++++++++++---
1 file changed, 27 insertions(+), 3 deletions(-)
diff --git a/srcpkgs/x265/template b/srcpkgs/x265/template
index 80561b477a4..217c46167ca 100644
--- a/srcpkgs/x265/template
+++ b/srcpkgs/x265/template
@@ -1,12 +1,11 @@
# Template file for 'x265'
pkgname=x265
version=3.0
-revision=1
+revision=2
wrksrc="x265_${version}"
build_wrksrc=source
build_style=cmake
configure_args="-DENABLE_PIC=1"
-hostmakedepends="yasm"
short_desc="Open Source H.265/HEVC video encoder"
maintainer="Juan RP <xtraeme@voidlinux.org>"
license="GPL-2.0-or-later"
@@ -14,8 +13,33 @@ homepage="http://x265.org/"
distfiles="https://bitbucket.org/multicoreware/x265/downloads/x265_${version}.tar.gz"
checksum=c5b9fc260cabbc4a81561a448f4ce9cad7218272b4011feabc3a6b751b2f0662
+build_options="altivec assembly"
+
+desc_option_altivec="Enable AltiVec support on ppc64 (POWER8 and higher only)"
+desc_option_assembly="Enable assembly support on x86/ARM"
+
+case "$XBPS_TARGET_MACHINE" in
+ ppc64le*) build_options_default="altivec" ;;
+ # on ARM, enabling it currently fails with undefined reference to
+ # x265::setupAssemblyPrimitives(x265::EncoderPrimitives&, int)
+ x86_64*|i686*) build_options_default="assembly" ;;
+ *) ;;
+esac
+
+if [ "$build_option_assembly" ]; then
+ case "$XBPS_TARGET_MACHINE" in
+ x86_64*|i686*) hostmakedepends+=" nasm" ;;
+ *) ;;
+ esac
+fi
+
case "$XBPS_TARGET_MACHINE" in
- ppc64|ppc64-musl) configure_args+=" -DCPU_POWER8=OFF -DENABLE_ALTIVEC=OFF";;
+ ppc64*)
+ # altivec does not build without power8 being enabled
+ configure_args+=" -DENABLE_ALTIVEC=$(vopt_if altivec ON OFF)
+ -DCPU_POWER8=$(vopt_if altivec ON OFF)"
+ ;;
+ *) configure_args+=" -DENABLE_ASSEMBLY=$(vopt_if assembly ON OFF)" ;;
esac
pre_configure() {
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: x265: add options for altivec and assembly
2019-05-07 15:05 [PR PATCH] x265: add options for altivec and assembly voidlinux-github
` (5 preceding siblings ...)
2019-05-07 15:22 ` voidlinux-github
@ 2019-05-07 15:24 ` voidlinux-github
2019-05-07 15:30 ` [PR PATCH] [Updated] " voidlinux-github
` (4 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: voidlinux-github @ 2019-05-07 15:24 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 463 bytes --]
New comment by q66 on void-packages repository
https://github.com/void-linux/void-packages/pull/11540#issuecomment-490127120
Comment:
Looks like arm/aarch64 have a build failure (undefined reference) when assembly is enabled currently. This is also reported in some other distributions, so disabled that for now. Also, the template was hostmakedepending on `yasm`, which is never used. The buildsystem searches for `nasm` instead and only enables assembly then.
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PR PATCH] [Updated] x265: add options for altivec and assembly
2019-05-07 15:05 [PR PATCH] x265: add options for altivec and assembly voidlinux-github
` (6 preceding siblings ...)
2019-05-07 15:24 ` voidlinux-github
@ 2019-05-07 15:30 ` voidlinux-github
2019-05-07 15:30 ` voidlinux-github
` (3 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: voidlinux-github @ 2019-05-07 15:30 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 569 bytes --]
There is an updated pull request by q66 against master on the void-packages repository
https://github.com/void-ppc64/void-packages x265
https://github.com/void-linux/void-packages/pull/11540
x265: add options for altivec and assembly
This lets the user choose whether to build them in. Default to on for altivec on ppc64le (because that's always power8 or better) and off on ppc64 (because we support old hardware), assembly is on for ARM and x86 and off for everything else.
A patch file from https://github.com/void-linux/void-packages/pull/11540.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-x265-11540.patch --]
[-- Type: application/text/x-diff, Size: 2382 bytes --]
From 7ef62eb8ca742ce03d7f1a5452180b02882ab5a0 Mon Sep 17 00:00:00 2001
From: q66 <daniel@octaforge.org>
Date: Tue, 7 May 2019 17:02:24 +0200
Subject: [PATCH] x265: add options for altivec and assembly
This lets the user choose whether to build them in. Default to
on for altivec on ppc64le (because that's always power8 or better)
and off on ppc64 (because we support old hardware), assembly is
on for ARM and x86 and off for everything else.
Also use the proper assembler (nasm instead of yasm), x265 does
not take yasm and will just disable the assembly implicitly.
---
srcpkgs/x265/template | 30 +++++++++++++++++++++++++++---
1 file changed, 27 insertions(+), 3 deletions(-)
diff --git a/srcpkgs/x265/template b/srcpkgs/x265/template
index 80561b477a4..92b6694d685 100644
--- a/srcpkgs/x265/template
+++ b/srcpkgs/x265/template
@@ -1,12 +1,11 @@
# Template file for 'x265'
pkgname=x265
version=3.0
-revision=1
+revision=2
wrksrc="x265_${version}"
build_wrksrc=source
build_style=cmake
configure_args="-DENABLE_PIC=1"
-hostmakedepends="yasm"
short_desc="Open Source H.265/HEVC video encoder"
maintainer="Juan RP <xtraeme@voidlinux.org>"
license="GPL-2.0-or-later"
@@ -14,8 +13,33 @@ homepage="http://x265.org/"
distfiles="https://bitbucket.org/multicoreware/x265/downloads/x265_${version}.tar.gz"
checksum=c5b9fc260cabbc4a81561a448f4ce9cad7218272b4011feabc3a6b751b2f0662
+build_options="altivec assembly"
+
+desc_option_altivec="Enable AltiVec support on ppc64 (POWER8 and higher only)"
+desc_option_assembly="Enable assembly support on x86/ARM"
+
+case "$XBPS_TARGET_MACHINE" in
+ ppc64le*) build_options_default="altivec" ;;
+ # on ARM, enabling it currently fails with undefined reference to
+ # x265::setupAssemblyPrimitives(x265::EncoderPrimitives&, int)
+ x86_64*|i686*) build_options_default="assembly" ;;
+ *) ;;
+esac
+
+if [ "$build_option_assembly" ]; then
+ case "$XBPS_TARGET_MACHINE" in
+ x86_64*|i686*) hostmakedepends+=" nasm" ;;
+ *) ;;
+ esac
+fi
+
case "$XBPS_TARGET_MACHINE" in
- ppc64|ppc64-musl) configure_args+=" -DCPU_POWER8=OFF -DENABLE_ALTIVEC=OFF";;
+ ppc64*)
+ # altivec does not build without power8 being enabled
+ configure_args+=" -DENABLE_ALTIVEC=$(vopt_if altivec ON OFF)
+ -DCPU_POWER8=$(vopt_if altivec ON OFF)"
+ ;;
+ *) configure_args+=" -DENABLE_ASSEMBLY=$(vopt_if assembly ON OFF)" ;;
esac
pre_configure() {
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PR PATCH] [Updated] x265: add options for altivec and assembly
2019-05-07 15:05 [PR PATCH] x265: add options for altivec and assembly voidlinux-github
` (7 preceding siblings ...)
2019-05-07 15:30 ` [PR PATCH] [Updated] " voidlinux-github
@ 2019-05-07 15:30 ` voidlinux-github
2019-05-07 15:30 ` voidlinux-github
` (2 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: voidlinux-github @ 2019-05-07 15:30 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 569 bytes --]
There is an updated pull request by q66 against master on the void-packages repository
https://github.com/void-ppc64/void-packages x265
https://github.com/void-linux/void-packages/pull/11540
x265: add options for altivec and assembly
This lets the user choose whether to build them in. Default to on for altivec on ppc64le (because that's always power8 or better) and off on ppc64 (because we support old hardware), assembly is on for ARM and x86 and off for everything else.
A patch file from https://github.com/void-linux/void-packages/pull/11540.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-x265-11540.patch --]
[-- Type: application/text/x-diff, Size: 2382 bytes --]
From 7ef62eb8ca742ce03d7f1a5452180b02882ab5a0 Mon Sep 17 00:00:00 2001
From: q66 <daniel@octaforge.org>
Date: Tue, 7 May 2019 17:02:24 +0200
Subject: [PATCH] x265: add options for altivec and assembly
This lets the user choose whether to build them in. Default to
on for altivec on ppc64le (because that's always power8 or better)
and off on ppc64 (because we support old hardware), assembly is
on for ARM and x86 and off for everything else.
Also use the proper assembler (nasm instead of yasm), x265 does
not take yasm and will just disable the assembly implicitly.
---
srcpkgs/x265/template | 30 +++++++++++++++++++++++++++---
1 file changed, 27 insertions(+), 3 deletions(-)
diff --git a/srcpkgs/x265/template b/srcpkgs/x265/template
index 80561b477a4..92b6694d685 100644
--- a/srcpkgs/x265/template
+++ b/srcpkgs/x265/template
@@ -1,12 +1,11 @@
# Template file for 'x265'
pkgname=x265
version=3.0
-revision=1
+revision=2
wrksrc="x265_${version}"
build_wrksrc=source
build_style=cmake
configure_args="-DENABLE_PIC=1"
-hostmakedepends="yasm"
short_desc="Open Source H.265/HEVC video encoder"
maintainer="Juan RP <xtraeme@voidlinux.org>"
license="GPL-2.0-or-later"
@@ -14,8 +13,33 @@ homepage="http://x265.org/"
distfiles="https://bitbucket.org/multicoreware/x265/downloads/x265_${version}.tar.gz"
checksum=c5b9fc260cabbc4a81561a448f4ce9cad7218272b4011feabc3a6b751b2f0662
+build_options="altivec assembly"
+
+desc_option_altivec="Enable AltiVec support on ppc64 (POWER8 and higher only)"
+desc_option_assembly="Enable assembly support on x86/ARM"
+
+case "$XBPS_TARGET_MACHINE" in
+ ppc64le*) build_options_default="altivec" ;;
+ # on ARM, enabling it currently fails with undefined reference to
+ # x265::setupAssemblyPrimitives(x265::EncoderPrimitives&, int)
+ x86_64*|i686*) build_options_default="assembly" ;;
+ *) ;;
+esac
+
+if [ "$build_option_assembly" ]; then
+ case "$XBPS_TARGET_MACHINE" in
+ x86_64*|i686*) hostmakedepends+=" nasm" ;;
+ *) ;;
+ esac
+fi
+
case "$XBPS_TARGET_MACHINE" in
- ppc64|ppc64-musl) configure_args+=" -DCPU_POWER8=OFF -DENABLE_ALTIVEC=OFF";;
+ ppc64*)
+ # altivec does not build without power8 being enabled
+ configure_args+=" -DENABLE_ALTIVEC=$(vopt_if altivec ON OFF)
+ -DCPU_POWER8=$(vopt_if altivec ON OFF)"
+ ;;
+ *) configure_args+=" -DENABLE_ASSEMBLY=$(vopt_if assembly ON OFF)" ;;
esac
pre_configure() {
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: x265: add options for altivec and assembly
2019-05-07 15:05 [PR PATCH] x265: add options for altivec and assembly voidlinux-github
` (8 preceding siblings ...)
2019-05-07 15:30 ` voidlinux-github
@ 2019-05-07 15:30 ` voidlinux-github
2019-05-07 15:45 ` voidlinux-github
2019-05-07 16:07 ` [PR PATCH] [Merged]: " voidlinux-github
11 siblings, 0 replies; 13+ messages in thread
From: voidlinux-github @ 2019-05-07 15:30 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 184 bytes --]
New comment by q66 on void-packages repository
https://github.com/void-linux/void-packages/pull/11540#issuecomment-490129984
Comment:
Pushed one last lint fix, now it should be good.
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: x265: add options for altivec and assembly
2019-05-07 15:05 [PR PATCH] x265: add options for altivec and assembly voidlinux-github
` (9 preceding siblings ...)
2019-05-07 15:30 ` voidlinux-github
@ 2019-05-07 15:45 ` voidlinux-github
2019-05-07 16:07 ` [PR PATCH] [Merged]: " voidlinux-github
11 siblings, 0 replies; 13+ messages in thread
From: voidlinux-github @ 2019-05-07 15:45 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 209 bytes --]
New comment by q66 on void-packages repository
https://github.com/void-linux/void-packages/pull/11540#issuecomment-490136135
Comment:
armv7l got stuck during fetch, so nevermind that, otherwise CI passes now
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PR PATCH] [Merged]: x265: add options for altivec and assembly
2019-05-07 15:05 [PR PATCH] x265: add options for altivec and assembly voidlinux-github
` (10 preceding siblings ...)
2019-05-07 15:45 ` voidlinux-github
@ 2019-05-07 16:07 ` voidlinux-github
11 siblings, 0 replies; 13+ messages in thread
From: voidlinux-github @ 2019-05-07 16:07 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 420 bytes --]
There's a merged pull request on the void-packages repository
x265: add options for altivec and assembly
https://github.com/void-linux/void-packages/pull/11540
Description: This lets the user choose whether to build them in. Default to on for altivec on ppc64le (because that's always power8 or better) and off on ppc64 (because we support old hardware), assembly is on for ~~ARM and~~ x86 and off for everything else.
^ permalink raw reply [flat|nested] 13+ messages in thread