summaryrefslogtreecommitdiff
path: root/sysutils/vstrip/Makefile
blob: c4efd9edf21a140afb8e8d37e987253462e738eb (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
42
43
# Created by: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
# $FreeBSD$

PORTNAME=	vstrip
DISTVERSION=	0.8f
PORTREVISION=	4
CATEGORIES=	sysutils
MASTER_SITES=	http://files.digital-digest.com/downloads/files/encode/
DISTNAME=	vStrip_${DISTVERSION:C/\.//g}

MAINTAINER=	multimedia@FreeBSD.org
COMMENT=	VOB de-multiplexing tool, splitter, and VOB/IFO files processor

LIB_DEPENDS=	dvdread.4:${PORTSDIR}/multimedia/libdvdread

LICENSE=	GPLv2
LICENSE_FILE=	${WRKSRC}/license.txt

USE_ZIP=	yes
WRKSRC=		${WRKDIR}/${PORTNAME}

NO_STAGE=	yes
post-extract:
	@${FIND} ${WRKSRC} -type f -print0 | \
		${XARGS} -0 -x -n 10 \
		${REINPLACE_CMD} -E \
			-e 's|[[:cntrl:]]$$||'
post-patch:
	@${REINPLACE_CMD} -E \
		-e 's|malloc.h|stdlib.h|' \
		-e 's|<io.h>|<unistd.h>|' \
		-e 's|__int64[[:space:]]+fposition[[:space:]]*=[[:space:]]*_filelengthi64\(fp\);|off_t fposition=lseek(fp, 0, SEEK_END);|' \
		${WRKSRC}/*.c \
		${WRKSRC}/*.h

LDFLAGS+=	-lm

PLIST_FILES=	bin/${PORTNAME}

do-install:
	@${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin

.include <bsd.port.mk>