View | Details | Raw Unified | Return to bug 252062 | Differences between
and this patch

Collapse All | Expand All

(-)graphics/libyuv/Makefile (-7 / +36 lines)
Lines 1-21 Link Here
1
# Created by: Corey Smith <corsmith@gmail.com>
1
# Created by: Corey Smith <corsmith@gmail.com>
2
# $FreeBSD$
2
# $FreeBSD$
3
#
4
# To update the port:
5
# The stable libyuv version follows the chromium browser:
6
# https://chromereleases.googleblog.com/search/label/Desktop%20Update
7
# search for "The stable channel has been updated to" XX.X.XXXX.XXX
8
#  -> https://github.com/chromium/chromium/blob/87.0.4280.88/DEPS
9
#     -> 'src/third_party/libyuv': '6afd9becdf58822b1da6770598d8597c583ccfad'
10
# https://chromium.googlesource.com/libyuv/libyuv/+/6afd9becdf58822b1da6770598d8597c583ccfad/include/libyuv/version.h
11
#  -> #define LIBYUV_VERSION 1741
3
12
4
PORTNAME=	libyuv
13
PORTNAME=	libyuv
5
DISTVERSION=	0.0.1280
14
DISTVERSION=	0.0.1741
6
CATEGORIES=	graphics
15
CATEGORIES=	graphics
7
MASTER_SITES=	http://files.freeswitch.org/downloads/libs/
16
MASTER_SITES=	LOCAL/mikael/libyuv/:libyuv
17
DISTFILES=	libyuv-${LIBYUV_HASH}.tar.gz:libyuv
8
18
9
MAINTAINER=	corsmith@gmail.com
19
MAINTAINER=	corsmith@gmail.com
10
COMMENT=	Library for freeswitch yuv graphics manipulation
20
COMMENT=	Library for freeswitch yuv graphics manipulation
11
21
12
LICENSE=	BSD3CLAUSE
22
LICENSE=	BSD3CLAUSE
13
23
14
BROKEN_aarch64=		Fails to compile: undefined reference to SplitUVRow_NEON
24
USES=		cmake pkgconfig
15
BROKEN_armv7=		Fails to compile: undefined reference to SplitUVRow_NEON
25
USE_LDCONFIG=	yes
26
SUB_FILES=	libyuv.pc
27
SUB_LIST=	DISTVERSION=${DISTVERSION}
16
28
17
MAKE_JOBS_UNSAFE=	yes
29
LIBYUV_HASH=	6afd9becdf58822b1da6770598d8597c583ccfad
18
CXXFLAGS+=		-fPIC
30
19
USE_LDCONFIG=		yes
31
# sha256 changes everytime you download the archive, need to host it on freefall
32
# To download the distfile: as mikael: make MAINTAINER_MODE=yes fetch
33
.if defined(MAINTAINER_MODE)
34
do-fetch:
35
	${FETCH_CMD} -o ${DISTDIR}/libyuv-${LIBYUV_HASH}.tar.gz \
36
		https://chromium.googlesource.com/libyuv/libyuv.git/+archive/${LIBYUV_HASH}.tar.gz
37
38
. if ${USER} == ${MAINTAINER:C/@.*//}
39
    scp ${DISTDIR}/libyuv-${LIBYUV_HASH} freefall.freebsd.org:public_distfiles/libyuv
40
. endif
41
.endif # defined(MAINTAINER_MODE)
42
43
do-extract:
44
	${MKDIR} ${WRKSRC}
45
	${TAR} -xf ${DISTDIR}/libyuv-${LIBYUV_HASH}.tar.gz  -C ${WRKSRC}
46
47
post-install:
48
	(cd ${WRKDIR} && ${INSTALL_DATA} libyuv.pc ${STAGEDIR}${PREFIX}/libdata/pkgconfig)
20
49
21
.include <bsd.port.mk>
50
.include <bsd.port.mk>
(-)graphics/libyuv/distinfo (-2 / +3 lines)
Lines 1-2 Link Here
1
SHA256 (libyuv-0.0.1280.tar.gz) = 97a30b87cbea5a35222cc1071ecb78562245b7c457baa26f41beba8af85861ef
1
TIMESTAMP = 1608825632
2
SIZE (libyuv-0.0.1280.tar.gz) = 297636
2
SHA256 (libyuv-6afd9becdf58822b1da6770598d8597c583ccfad.tar.gz) = c70f9ca62b217e509f9b72961f95d921362e33fb6cca66e223b030d88ba8629f
3
SIZE (libyuv-6afd9becdf58822b1da6770598d8597c583ccfad.tar.gz) = 453451
(-)graphics/libyuv/files/libyuv.pc.in (+11 lines)
Added Link Here
1
prefix=%%LOCALBASE%%
2
exec_prefix=${prefix}
3
libdir=${exec_prefix}/lib
4
includedir=${exec_prefix}/include
5
6
Name: libyuv
7
Description: YUV conversion and scaling functionality library
8
Version: %%DISTVERSION%%
9
Cflags: -I${includedir}
10
Libs: -L${libdir} -lyuv
11
Libs.private: -ljpeg
(-)graphics/libyuv/files/patch-Makefile (-26 lines)
Removed Link Here
1
--- Makefile.orig	2015-06-19 22:04:28 UTC
2
+++ Makefile
3
@@ -1,9 +1,9 @@
4
 # This is a generic makefile for libyuv for gcc.
5
 # make -f linux.mk CXX=clang++
6
 
7
-PREFIX:=/usr
8
 EXEC_PREFIX:=$(PREFIX)
9
 LIBDIR:=$(PREFIX)/lib/
10
+LIBDATA:=$(PREFIX)/libdata/
11
 INCDIR:=$(PREFIX)/include/
12
 
13
 CXX?=g++
14
@@ -63,10 +63,10 @@ install: libyuv.a libyuv.so libyuv.pc
15
 	install -d -m 755 $(DESTDIR)/$(LIBDIR)
16
 	install -d -m 755 $(DESTDIR)/$(INCDIR)
17
 	install -d -m 755 $(DESTDIR)/$(INCDIR)/libyuv
18
-	install -d -m 755 $(DESTDIR)/$(LIBDIR)/pkgconfig
19
+	install -d -m 755 $(DESTDIR)/$(LIBDATA)/pkgconfig
20
 	install -m 644 libyuv.a $(DESTDIR)/$(LIBDIR)
21
 	install -m 644 libyuv.so $(DESTDIR)/$(LIBDIR)
22
-	install -m 644 libyuv.pc $(DESTDIR)/$(LIBDIR)/pkgconfig
23
+	install -m 644 libyuv.pc $(DESTDIR)/$(LIBDATA)/pkgconfig
24
 	install -m 644 include/libyuv.h $(DESTDIR)/$(INCDIR)
25
 	install -m 644 include/libyuv/* $(DESTDIR)/$(INCDIR)/libyuv
26
 
(-)graphics/libyuv/pkg-plist (+4 lines)
Lines 1-15 Link Here
1
bin/yuvconvert
1
include/libyuv.h
2
include/libyuv.h
2
include/libyuv/basic_types.h
3
include/libyuv/basic_types.h
3
include/libyuv/compare.h
4
include/libyuv/compare.h
5
include/libyuv/compare_row.h
4
include/libyuv/convert.h
6
include/libyuv/convert.h
5
include/libyuv/convert_argb.h
7
include/libyuv/convert_argb.h
6
include/libyuv/convert_from.h
8
include/libyuv/convert_from.h
7
include/libyuv/convert_from_argb.h
9
include/libyuv/convert_from_argb.h
8
include/libyuv/cpu_id.h
10
include/libyuv/cpu_id.h
11
include/libyuv/macros_msa.h
9
include/libyuv/mjpeg_decoder.h
12
include/libyuv/mjpeg_decoder.h
10
include/libyuv/planar_functions.h
13
include/libyuv/planar_functions.h
11
include/libyuv/rotate.h
14
include/libyuv/rotate.h
12
include/libyuv/rotate_argb.h
15
include/libyuv/rotate_argb.h
16
include/libyuv/rotate_row.h
13
include/libyuv/row.h
17
include/libyuv/row.h
14
include/libyuv/scale.h
18
include/libyuv/scale.h
15
include/libyuv/scale_argb.h
19
include/libyuv/scale_argb.h

Return to bug 252062