4 MASTER_SITES= SF/matroska/${PORTNAME}/
6 MAINTAINER= ports@FreeBSD.org
7 COMMENT= Command line tool to verify Matroska and WebM files
8 WWW= https://www.matroska.org/downloads/mkvalidator.html
10 LICENSE= BSD3CLAUSE BSD4CLAUSE GPLv2
13 BROKEN_mips= fails to build: gmake[3]: mipsel-linux-gcc: Command not found
14 BROKEN_mips64= fails to build: gmake[3]: mipsel-linux-gcc: Command not found
15 BROKEN_powerpc64= does not compile: mkvtree.c: error: dereferencing pointer to incomplete type
16 BROKEN_sparc64= build broken on big endian architectures
18 BUILD_WRKSRC= ${WRKSRC}/${PORTNAME}
20 USES= cpe gmake iconv localbase tar:bzip2
28 PLIST_FILES= bin/mkvalidator bin/mkvtree
32 .include <bsd.port.options.mk>
34 .if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400091 || ( ${OSVERSION} >= 1302507 && ${OSVERSION} < 1400000 ))
35 CFLAGS+= -Wno-error=incompatible-function-pointer-types
39 @${REINPLACE_CMD} -e \
40 '/STRIP/s|strip|${STRIP_CMD:T}| ; \
41 /CCFLAGS/s|-O3 .* -W|-W|' \
42 ${WRKSRC}/corec/tools/coremake/gcc_linux*.build
43 @${REINPLACE_CMD} -e \
44 's|/usr/local|$$(DESTDIR)$$(PREFIX)|g' \
45 ${WRKSRC}/corec/tools/coremake/gcc_mak.inc
46 @${REINPLACE_CMD} -e \
47 's|arm-none-linux-gnueabi-gcc|${CC}| ; \
48 s|arm-none-linux-gnueabi-g++|${CXX}| ; \
49 s|arm-none-linux-gnueabi-ar|${AR}| ; \
50 s|arm-none-linux-gnueabi-strip|${STRIP_CMD}|' \
51 ${WRKSRC}/corec/tools/coremake/gcc_linux_arm.build
53 .include <bsd.port.mk>