aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia
diff options
context:
space:
mode:
Diffstat (limited to 'multimedia')
-rw-r--r--multimedia/openh264/Makefile13
-rw-r--r--multimedia/openh264/files/patch-build_arch.mk11
-rw-r--r--multimedia/openh264/files/patch-codec_common_src_cpu.cpp23
3 files changed, 34 insertions, 13 deletions
diff --git a/multimedia/openh264/Makefile b/multimedia/openh264/Makefile
index 412996d8d96e..5aeaf6df4508 100644
--- a/multimedia/openh264/Makefile
+++ b/multimedia/openh264/Makefile
@@ -3,7 +3,7 @@
PORTNAME= openh264
PORTVERSION= 1.4.0
DISTVERSIONPREFIX=v
-PORTREVISION= 4
+PORTREVISION= 5
CATEGORIES= multimedia
MAINTAINER= gecko@FreeBSD.org
@@ -14,10 +14,12 @@ LICENSE= BSD2CLAUSE
USE_GITHUB= yes
GH_ACCOUNT= cisco
-USES= cpe gmake
+USES= compiler cpe gmake
CPE_VENDOR= cisco
USE_LDCONFIG= yes
+ASFLAGS+= ${ASFLAGS_${CHOSEN_COMPILER_TYPE}}
MAKE_ARGS= OS=freebsd ARCH="${ARCH:S/amd64/x86_64/}" \
+ CCASFLAGS='$$(CFLAGS) ${ASFLAGS}' \
CFLAGS_OPT="" CFLAGS_DEBUG=""
ALL_TARGET= all
@@ -45,6 +47,13 @@ TEST_CFLAGS= -I${LOCALBASE}/include
TEST_MAKE_ARGS= HAVE_GTEST=Yes
TEST_ALL_TARGET=test
+.include <bsd.port.options.mk>
+
+.if ! ${PORT_OPTIONS:MDEBUG} && (${ARCH:Maarch*} || ${ARCH:Marm*} )
+USE_BINUTILS= yes
+ASFLAGS_clang= -no-integrated-as
+.endif
+
post-patch:
${REINPLACE_CMD} -e '/gtest-targets\.mk/d' \
-e '/pkgconfig/s/lib/libdata/' \
diff --git a/multimedia/openh264/files/patch-build_arch.mk b/multimedia/openh264/files/patch-build_arch.mk
deleted file mode 100644
index ae78cca837eb..000000000000
--- a/multimedia/openh264/files/patch-build_arch.mk
+++ /dev/null
@@ -1,11 +0,0 @@
---- build/arch.mk.orig 2015-08-09 21:14:55 UTC
-+++ build/arch.mk
-@@ -1,7 +1,7 @@
- ifneq ($(filter %86 x86_64, $(ARCH)),)
- include $(SRC_PATH)build/x86-common.mk
- endif
--ifneq ($(filter-out arm64, $(filter arm%, $(ARCH))),)
-+ifneq ($(filter-out armv6 arm64, $(filter arm%, $(ARCH))),)
- ifeq ($(USE_ASM), Yes)
- ASM_ARCH = arm
- ASMFLAGS += -I$(SRC_PATH)codec/common/arm/
diff --git a/multimedia/openh264/files/patch-codec_common_src_cpu.cpp b/multimedia/openh264/files/patch-codec_common_src_cpu.cpp
new file mode 100644
index 000000000000..88e9ed40a966
--- /dev/null
+++ b/multimedia/openh264/files/patch-codec_common_src_cpu.cpp
@@ -0,0 +1,23 @@
+--- codec/common/src/cpu.cpp.orig 2015-03-25 07:43:00 UTC
++++ codec/common/src/cpu.cpp
+@@ -276,9 +276,17 @@ uint32_t WelsCPUFeatureDetect (int32_t*
+ * that NEON and all associated features are available. */
+
+ uint32_t WelsCPUFeatureDetect (int32_t* pNumberOfLogicProcessors) {
+- return WELS_CPU_ARMv7 |
+- WELS_CPU_VFPv3 |
+- WELS_CPU_NEON;
++ int flags = 0;
++# if __ARM_ARCH == 7
++ flags |= WELS_CPU_ARMv7;
++# endif
++# ifdef __ARM_VFPV3__
++ flags |= WELS_CPU_VFPv3;
++# endif
++# ifdef __ARM_NEON
++ flags |= WELS_CPU_NEON;
++# endif
++ return flags;
+ }
+ #endif
+ #elif defined(HAVE_NEON_AARCH64)