2013-09-20 23:05:58 +00:00
|
|
|
# Created by: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
|
2006-01-03 01:19:15 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= vstrip
|
|
|
|
DISTVERSION= 0.8f
|
2014-05-13 10:17:04 +00:00
|
|
|
PORTREVISION= 6
|
2006-01-03 01:19:15 +00:00
|
|
|
CATEGORIES= sysutils
|
|
|
|
MASTER_SITES= http://files.digital-digest.com/downloads/files/encode/
|
|
|
|
DISTNAME= vStrip_${DISTVERSION:C/\.//g}
|
|
|
|
|
2007-04-01 07:57:39 +00:00
|
|
|
MAINTAINER= multimedia@FreeBSD.org
|
2012-08-03 15:54:35 +00:00
|
|
|
COMMENT= VOB de-multiplexing tool, splitter, and VOB/IFO files processor
|
2006-01-03 01:19:15 +00:00
|
|
|
|
2010-06-13 12:41:33 +00:00
|
|
|
LICENSE= GPLv2
|
2013-10-20 18:08:52 +00:00
|
|
|
|
|
|
|
LDFLAGS+= -lm
|
|
|
|
|
|
|
|
PLIST_FILES= bin/${PORTNAME}
|
2010-06-13 12:41:33 +00:00
|
|
|
|
2014-03-10 17:01:36 +00:00
|
|
|
USES= zip
|
2006-01-03 01:19:15 +00:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
do-install:
|
2013-10-20 18:08:52 +00:00
|
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
|
2006-01-03 01:19:15 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|