From 9a8a16479f4a25c97ff7513b51e2de5312e662b4 Mon Sep 17 00:00:00 2001 From: bapt Date: Sun, 9 Feb 2014 23:10:58 +0000 Subject: Support stage --- multimedia/subtools/Makefile | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'multimedia') diff --git a/multimedia/subtools/Makefile b/multimedia/subtools/Makefile index ae6f6fdf736f..aa997e971219 100644 --- a/multimedia/subtools/Makefile +++ b/multimedia/subtools/Makefile @@ -10,6 +10,8 @@ MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}alpha MAINTAINER= ports@FreeBSD.org COMMENT= Command-line tools for movie subtitles in SubRipper format +OPTIONS_DEFINE= DOCS + USE_PYTHON= yes WRKSRC= ${WRKDIR}/${PORTNAME}/src EXECS= srtshift srtrate @@ -17,7 +19,6 @@ PYEXECS= udvd2srt.py udvdshift.py PORTDOCS= CHANGELOG.TXT LICENSE.TXT README.TXT TODO.TXT PLIST_FILES= ${EXECS:S/^/bin\//} ${PYEXECS:S/^/bin\//} -NO_STAGE= yes post-patch: @${REINPLACE_CMD} -e 's, ,,g;s,^.*#!.*python.*$$,#!${PYTHON_CMD},' ${WRKSRC}/* @@ -27,11 +28,9 @@ do-build: .endfor do-install: - ${INSTALL_PROGRAM} ${EXECS:S/^/${WRKSRC}\//} ${PREFIX}/bin/ - ${INSTALL_SCRIPT} ${PYEXECS:S/^/${WRKSRC}\//} ${PREFIX}/bin/ -.ifndef(NOPORTDOCS) - ${INSTALL} -d ${DOCSDIR} - ${INSTALL_DATA} ${PORTDOCS:S/^/${WRKSRC}\//} ${DOCSDIR}/ -.endif + ${INSTALL_PROGRAM} ${EXECS:S/^/${WRKSRC}\//} ${STAGEDIR}${PREFIX}/bin/ + ${INSTALL_SCRIPT} ${PYEXECS:S/^/${WRKSRC}\//} ${STAGEDIR}${PREFIX}/bin/ + ${INSTALL} -d ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${PORTDOCS:S/^/${WRKSRC}\//} ${STAGEDIR}${DOCSDIR}/ .include -- cgit