svn commit: r561844 - in head/graphics/libyuv: . files
Steve Wills
swills at FreeBSD.org
Sun Jan 17 17:57:18 UTC 2021
Author: swills
Date: Sun Jan 17 17:57:17 2021
New Revision: 561844
URL: https://svnweb.freebsd.org/changeset/ports/561844
Log:
graphics/libyuv: fix build on aarch64
PR: 252062
Submitted by: mikael
Approved by: maintainer timeout (corsmith at gmail.com, >2 weeks)
Added:
head/graphics/libyuv/files/libyuv.pc.in (contents, props changed)
Deleted:
head/graphics/libyuv/files/patch-Makefile
Modified:
head/graphics/libyuv/Makefile (contents, props changed)
head/graphics/libyuv/distinfo (contents, props changed)
head/graphics/libyuv/pkg-plist (contents, props changed)
Modified: head/graphics/libyuv/Makefile
==============================================================================
--- head/graphics/libyuv/Makefile Sun Jan 17 17:51:41 2021 (r561843)
+++ head/graphics/libyuv/Makefile Sun Jan 17 17:57:17 2021 (r561844)
@@ -1,21 +1,50 @@
# Created by: Corey Smith <corsmith at gmail.com>
# $FreeBSD$
+#
+# To update the port:
+# The stable libyuv version follows the chromium browser:
+# https://chromereleases.googleblog.com/search/label/Desktop%20Update
+# search for "The stable channel has been updated to" XX.X.XXXX.XXX
+# -> https://github.com/chromium/chromium/blob/87.0.4280.88/DEPS
+# -> 'src/third_party/libyuv': '6afd9becdf58822b1da6770598d8597c583ccfad'
+# https://chromium.googlesource.com/libyuv/libyuv/+/6afd9becdf58822b1da6770598d8597c583ccfad/include/libyuv/version.h
+# -> #define LIBYUV_VERSION 1741
PORTNAME= libyuv
-DISTVERSION= 0.0.1280
+DISTVERSION= 0.0.1741
CATEGORIES= graphics
-MASTER_SITES= http://files.freeswitch.org/downloads/libs/
+MASTER_SITES= LOCAL/mikael/libyuv/:libyuv
+DISTFILES= libyuv-${LIBYUV_HASH}.tar.gz:libyuv
MAINTAINER= corsmith at gmail.com
COMMENT= Library for freeswitch yuv graphics manipulation
LICENSE= BSD3CLAUSE
-BROKEN_aarch64= Fails to compile: undefined reference to SplitUVRow_NEON
-BROKEN_armv7= Fails to compile: undefined reference to SplitUVRow_NEON
+USES= cmake pkgconfig
+USE_LDCONFIG= yes
+SUB_FILES= libyuv.pc
+SUB_LIST= DISTVERSION=${DISTVERSION}
-MAKE_JOBS_UNSAFE= yes
-CXXFLAGS+= -fPIC
-USE_LDCONFIG= yes
+LIBYUV_HASH= 6afd9becdf58822b1da6770598d8597c583ccfad
+
+# sha256 changes everytime you download the archive, need to host it on freefall
+# To download the distfile: as mikael: make MAINTAINER_MODE=yes fetch
+.if defined(MAINTAINER_MODE)
+do-fetch:
+ ${FETCH_CMD} -o ${DISTDIR}/libyuv-${LIBYUV_HASH}.tar.gz \
+ https://chromium.googlesource.com/libyuv/libyuv.git/+archive/${LIBYUV_HASH}.tar.gz
+
+. if ${USER} == ${MAINTAINER:C/@.*//}
+ scp ${DISTDIR}/libyuv-${LIBYUV_HASH} freefall.freebsd.org:public_distfiles/libyuv
+. endif
+.endif # defined(MAINTAINER_MODE)
+
+do-extract:
+ ${MKDIR} ${WRKSRC}
+ ${TAR} -xf ${DISTDIR}/libyuv-${LIBYUV_HASH}.tar.gz -C ${WRKSRC}
+
+post-install:
+ (cd ${WRKDIR} && ${INSTALL_DATA} libyuv.pc ${STAGEDIR}${PREFIX}/libdata/pkgconfig)
.include <bsd.port.mk>
Modified: head/graphics/libyuv/distinfo
==============================================================================
--- head/graphics/libyuv/distinfo Sun Jan 17 17:51:41 2021 (r561843)
+++ head/graphics/libyuv/distinfo Sun Jan 17 17:57:17 2021 (r561844)
@@ -1,2 +1,3 @@
-SHA256 (libyuv-0.0.1280.tar.gz) = 97a30b87cbea5a35222cc1071ecb78562245b7c457baa26f41beba8af85861ef
-SIZE (libyuv-0.0.1280.tar.gz) = 297636
+TIMESTAMP = 1608825632
+SHA256 (libyuv-6afd9becdf58822b1da6770598d8597c583ccfad.tar.gz) = c70f9ca62b217e509f9b72961f95d921362e33fb6cca66e223b030d88ba8629f
+SIZE (libyuv-6afd9becdf58822b1da6770598d8597c583ccfad.tar.gz) = 453451
Added: head/graphics/libyuv/files/libyuv.pc.in
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/graphics/libyuv/files/libyuv.pc.in Sun Jan 17 17:57:17 2021 (r561844)
@@ -0,0 +1,11 @@
+prefix=%%LOCALBASE%%
+exec_prefix=${prefix}
+libdir=${exec_prefix}/lib
+includedir=${exec_prefix}/include
+
+Name: libyuv
+Description: YUV conversion and scaling functionality library
+Version: %%DISTVERSION%%
+Cflags: -I${includedir}
+Libs: -L${libdir} -lyuv
+Libs.private: -ljpeg
Modified: head/graphics/libyuv/pkg-plist
==============================================================================
--- head/graphics/libyuv/pkg-plist Sun Jan 17 17:51:41 2021 (r561843)
+++ head/graphics/libyuv/pkg-plist Sun Jan 17 17:57:17 2021 (r561844)
@@ -1,15 +1,19 @@
+bin/yuvconvert
include/libyuv.h
include/libyuv/basic_types.h
include/libyuv/compare.h
+include/libyuv/compare_row.h
include/libyuv/convert.h
include/libyuv/convert_argb.h
include/libyuv/convert_from.h
include/libyuv/convert_from_argb.h
include/libyuv/cpu_id.h
+include/libyuv/macros_msa.h
include/libyuv/mjpeg_decoder.h
include/libyuv/planar_functions.h
include/libyuv/rotate.h
include/libyuv/rotate_argb.h
+include/libyuv/rotate_row.h
include/libyuv/row.h
include/libyuv/scale.h
include/libyuv/scale_argb.h
More information about the svn-ports-all
mailing list