2006-01-11 02:31:12 +00:00
|
|
|
# New ports collection makefile for: subtools
|
2006-05-10 19:28:50 +00:00
|
|
|
# Date created: 10 January 2006
|
2006-05-08 21:41:11 +00:00
|
|
|
# Whom: Andrew Pantyukhin <infofarmer@FreeBSD.org>
|
2006-01-11 02:31:12 +00:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= subtools
|
2006-05-10 19:28:50 +00:00
|
|
|
PORTVERSION= 20060508
|
|
|
|
DISTVERSIONSUFFIX= alpha
|
2006-01-11 02:31:12 +00:00
|
|
|
CATEGORIES= multimedia
|
2009-09-02 15:01:56 +00:00
|
|
|
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}alpha
|
2006-01-11 02:31:12 +00:00
|
|
|
|
2008-09-07 00:19:05 +00:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2006-01-11 02:31:12 +00:00
|
|
|
COMMENT= Command-line tools for movie subtitles in SubRipper format
|
|
|
|
|
2006-05-10 19:28:50 +00:00
|
|
|
USE_PYTHON= yes
|
2006-01-11 02:31:12 +00:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}/src
|
|
|
|
EXECS= srtshift srtrate
|
2006-05-10 19:28:50 +00:00
|
|
|
PYEXECS= udvd2srt.py udvdshift.py
|
2006-01-11 02:31:12 +00:00
|
|
|
PORTDOCS= CHANGELOG.TXT LICENSE.TXT README.TXT TODO.TXT
|
2006-05-10 19:28:50 +00:00
|
|
|
PLIST_FILES= ${EXECS:S/^/bin\//} ${PYEXECS:S/^/bin\//}
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's,
,,g;s,^.*#!.*python.*$$,#!${PYTHON_CMD},' ${WRKSRC}/*
|
2006-01-11 02:31:12 +00:00
|
|
|
|
|
|
|
do-build:
|
|
|
|
.for EXEC in ${EXECS}
|
|
|
|
cd ${WRKSRC} && ${CC} ${CFLAGS} -D${EXEC:U} -o ${EXEC} ${PORTNAME}.c
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${EXECS:S/^/${WRKSRC}\//} ${PREFIX}/bin/
|
2006-05-10 19:28:50 +00:00
|
|
|
${INSTALL_SCRIPT} ${PYEXECS:S/^/${WRKSRC}\//} ${PREFIX}/bin/
|
2006-01-11 02:31:12 +00:00
|
|
|
.ifndef(NOPORTDOCS)
|
|
|
|
${INSTALL} -d ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${PORTDOCS:S/^/${WRKSRC}\//} ${DOCSDIR}/
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|