aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2014-02-10 07:10:58 +0800
committerbapt <bapt@FreeBSD.org>2014-02-10 07:10:58 +0800
commit9a8a16479f4a25c97ff7513b51e2de5312e662b4 (patch)
tree76f6161dc37fc1825d5932e7dbbbc888c6d09e92
parent971fe29119a60f4253ec8e6c40afd6f6bf5e82f7 (diff)
downloadfreebsd-ports-gnome-9a8a16479f4a25c97ff7513b51e2de5312e662b4.tar.gz
freebsd-ports-gnome-9a8a16479f4a25c97ff7513b51e2de5312e662b4.tar.zst
freebsd-ports-gnome-9a8a16479f4a25c97ff7513b51e2de5312e662b4.zip
Support stage
-rw-r--r--multimedia/subtools/Makefile13
1 files changed, 6 insertions, 7 deletions
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 <bsd.port.mk>