summaryrefslogtreecommitdiff
path: root/multimedia/mkclean/Makefile
blob: 5ef1b1d73be172c2a43e08c35f5a3b1ce3ca5929 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
PORTNAME=	mkclean
PORTVERSION=	0.9.0
CATEGORIES=	multimedia

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Clean and optimize Matroska and WebM files

LICENSE=	BSD3CLAUSE

# These may work better now with cmake.
BROKEN_aarch64=	does not install: arm-none-linux-gnueabi-gcc: Command not found
BROKEN_armv6=	does not install: arm-none-linux-gnueabi-gcc: Command not found
BROKEN_armv7=	does not install: arm-none-linux-gnueabi-gcc: Command not found
BROKEN_mips64=	does not install: mipsel-linux-gcc: Command not found
BROKEN_riscv64=	does not compile: cc: invalid arch name 'i486', string must begin with rv32{i,e,g} or rv64{i,g}
BROKEN_sparc64=	does not install: gmake: GNUmakefile: No such file or directory

USES=		cmake compiler:c++11-lang cpe iconv localbase:ldflags

CPE_VENDOR=	matroska

USE_GITHUB=	yes
GH_ACCOUNT=	Matroska-Org
GH_PROJECT=	foundation-source
GH_TAGNAME=	${PORTNAME}-${PORTVERSION}

NO_INSTALL=	yes

post-extract:
	@${REINPLACE_CMD} -e 's/vfs.h/mount.h/' ${WRKSRC}/corec/corec/helpers/file/file_libc.c

LDFLAGS+=	${ICONV_LIB}

PLIST_FILES=	bin/mkclean \
		bin/mkWDclean

post-stage:
	${INSTALL_PROGRAM} ${BUILD_WRKSRC}/${PORTNAME}/mkclean ${STAGEDIR}${LOCALBASE}/bin
	${INSTALL_PROGRAM} ${BUILD_WRKSRC}/${PORTNAME}/mkWDclean ${STAGEDIR}${LOCALBASE}/bin

.include <bsd.port.mk>