summaryrefslogtreecommitdiff
path: root/multimedia/mkvalidator/Makefile
blob: b1c4c3f291905cb1df9d4c7834fc19c4cb648281 (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
# $FreeBSD$

PORTNAME=	mkvalidator
PORTVERSION=	0.4.2
CATEGORIES=	multimedia
MASTER_SITES=	SF/matroska/${PORTNAME}/

MAINTAINER=	bapt@FreeBSD.org
COMMENT=	Command line tool to verify Matroska and WebM files

LICENSE=	BSD

USE_BZIP2=	yes
HAS_CONFIGURE=	yes

USES=		iconv gmake

CFLAGS+=	-I${LOCALBASE}/include
LDFLAGS+=	-L${LOCALBASE}/lib ${ICONV_LIB}

MAKE_ENV+=	"LFLAGS=${LDFLAGS}"
MAKEFILE=	GNUmakefile
BUILD_WRKSRC=	${WRKSRC}/${PORTNAME}

PLIST_FILES=	bin/mkvalidator

NO_STAGE=	yes
post-extract:
	@${REINPLACE_CMD} -e "s,/usr/local,${PREFIX},g" ${WRKSRC}/corec/tools/coremake/gcc_mak.inc
	@${RM} ${WRKSRC}/libmatroska2/test/test.proj

.include <bsd.port.pre.mk>

.if ${ARCH} == "sparc64"
BROKEN=		Does not install on sparc64: gmake: GNUmakefile: No such file or directory
.endif

.include <bsd.port.post.mk>