Lines 2-11
Link Here
|
2 |
# $FreeBSD$ |
2 |
# $FreeBSD$ |
3 |
|
3 |
|
4 |
PORTNAME= libvpx |
4 |
PORTNAME= libvpx |
5 |
PORTVERSION= 1.4.0 |
5 |
DISTVERSIONPREFIX= v |
|
|
6 |
DISTVERSION= 1.4.0-488 # tracking www/firefox |
7 |
DISTVERSIONSUFFIX= -ge67d45d |
6 |
CATEGORIES= multimedia |
8 |
CATEGORIES= multimedia |
7 |
MASTER_SITES= DEBIAN |
|
|
8 |
DISTNAME= ${PORTNAME}_${DISTVERSION}.orig |
9 |
|
9 |
|
10 |
MAINTAINER= ashish@FreeBSD.org |
10 |
MAINTAINER= ashish@FreeBSD.org |
11 |
COMMENT= VP8/VP9 Codec SDK |
11 |
COMMENT= VP8/VP9 Codec SDK |
Lines 15-21
LICENSE_FILE= ${WRKSRC}/LICENSE
Link Here
|
15 |
|
15 |
|
16 |
BUILD_DEPENDS= yasm:${PORTSDIR}/devel/yasm |
16 |
BUILD_DEPENDS= yasm:${PORTSDIR}/devel/yasm |
17 |
|
17 |
|
18 |
USES= cpe gmake perl5 shebangfix tar:bzip2 |
18 |
USE_GITHUB= yes |
|
|
19 |
GH_ACCOUNT= webmproject |
20 |
|
21 |
USES= compiler cpe gmake perl5 shebangfix tar:bzip2 |
19 |
CPE_VENDOR= john_koleszar |
22 |
CPE_VENDOR= john_koleszar |
20 |
HAS_CONFIGURE= yes |
23 |
HAS_CONFIGURE= yes |
21 |
USE_PERL5= build |
24 |
USE_PERL5= build |
Lines 28-34
POSTPROC_DESC= Enable postprocessing
Link Here
|
28 |
RUNTIME_DESC= Enable runtime CPU detection |
31 |
RUNTIME_DESC= Enable runtime CPU detection |
29 |
SHARED_DESC= Enable shared-library support |
32 |
SHARED_DESC= Enable shared-library support |
30 |
|
33 |
|
31 |
WRKSRC= ${WRKDIR}/${PORTNAME}-${DISTVERSION} |
|
|
32 |
ALL_TARGET= |
34 |
ALL_TARGET= |
33 |
CONFIGURE_ARGS+=--prefix=${PREFIX} \ |
35 |
CONFIGURE_ARGS+=--prefix=${PREFIX} \ |
34 |
--disable-install-docs \ |
36 |
--disable-install-docs \ |
Lines 51-68
SHEBANG_FILES= build/make/ads2gas.pl
Link Here
|
51 |
|
53 |
|
52 |
.include <bsd.port.options.mk> |
54 |
.include <bsd.port.options.mk> |
53 |
|
55 |
|
54 |
.if ${OSVERSION} < 900000 |
|
|
55 |
.if ${ARCH} == "amd64" |
56 |
USE_GCC= yes |
57 |
.endif |
58 |
.endif |
59 |
|
60 |
# Workaround for GCC in 9.x post r260075 |
61 |
# OSVERSION taken from r260135, the closest OSVERSION |
62 |
.if ${OSVERSION} > 902505 && ${OSVERSION} < 1000000 |
63 |
CFLAGS+= -flax-vector-conversions |
64 |
.endif |
65 |
|
66 |
.if ${OSVERSION} >= 1000000 |
56 |
.if ${OSVERSION} >= 1000000 |
67 |
CONFIGURE_ARGS+= --disable-unit-tests |
57 |
CONFIGURE_ARGS+= --disable-unit-tests |
68 |
.endif |
58 |
.endif |
Lines 77-82
CONFIGURE_ARGS+= --target=ia64-linux-gcc
Link Here
|
77 |
CONFIGURE_ARGS+= --target=ppc32-linux-gcc |
67 |
CONFIGURE_ARGS+= --target=ppc32-linux-gcc |
78 |
.elif ${ARCH} == "powerpc64" |
68 |
.elif ${ARCH} == "powerpc64" |
79 |
CONFIGURE_ARGS+= --target=ppc64-linux-gcc |
69 |
CONFIGURE_ARGS+= --target=ppc64-linux-gcc |
|
|
70 |
.elif ${ARCH} == "sparc64" |
71 |
CONFIGURE_ARGS+= --target=sparc64-linux-gcc |
72 |
USES:= ${USES:Ncompiler*} compiler:c++11-lib |
80 |
.elif ${ARCH} == "armv6" |
73 |
.elif ${ARCH} == "armv6" |
81 |
CONFIGURE_ARGS+= --target=armv6-linux-gcc --cpu=armv6 |
74 |
CONFIGURE_ARGS+= --target=armv6-linux-gcc --cpu=armv6 |
82 |
EXTRA_PATCHES+= ${FILESDIR}/extra-patch-build_make_Makefile |
75 |
EXTRA_PATCHES+= ${FILESDIR}/extra-patch-build_make_Makefile |
Lines 84-91
EXTRA_PATCHES+= ${FILESDIR}/extra-patch-build_make
Link Here
|
84 |
IGNORE= no support for ${ARCH} the moment. testing/patches are welcome |
77 |
IGNORE= no support for ${ARCH} the moment. testing/patches are welcome |
85 |
.endif |
78 |
.endif |
86 |
|
79 |
|
|
|
80 |
.include <bsd.port.pre.mk> |
81 |
|
82 |
# Workaround for GCC in 9.x post r260075 |
83 |
# OSVERSION taken from r260135, the closest OSVERSION |
84 |
.if ${OPSYS} == FreeBSD && ${OSVERSION} > 902505 |
85 |
. if ${COMPILER_TYPE} == gcc && ${COMPILER_VERSION} == 42 |
86 |
CFLAGS+= -flax-vector-conversions |
87 |
. endif |
88 |
.endif |
89 |
|
87 |
post-patch: |
90 |
post-patch: |
88 |
@${REINPLACE_CMD} 's|\(link_with_cc\)=gcc|\1=$${CC}|' \ |
91 |
@${REINPLACE_CMD} 's|\(link_with_cc\)=gcc|\1=$${CC}|' \ |
89 |
${WRKSRC}/build/make/configure.sh |
92 |
${WRKSRC}/build/make/configure.sh |
90 |
|
93 |
|
91 |
.include <bsd.port.mk> |
94 |
post-install: |
|
|
95 |
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/vpx* |
96 |
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libvpx.so.*.*.* |
97 |
|
98 |
.include <bsd.port.post.mk> |