From 141785335b59c7c7034c1a8ef39b94880ef96ead Mon Sep 17 00:00:00 2001 From: "Vanilla I. Shu" Date: Mon, 30 Jun 2014 14:11:41 +0000 Subject: [PATCH] Stagify. Approved by: portmgr@ (blanket approval) --- sysutils/vobcopy/Makefile | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/sysutils/vobcopy/Makefile b/sysutils/vobcopy/Makefile index 82fadf9cda79..49f0f42ae71a 100644 --- a/sysutils/vobcopy/Makefile +++ b/sysutils/vobcopy/Makefile @@ -19,14 +19,12 @@ CONFIGURE_ARGS= --with-lfs --with-dvdread-libs=${LOCALBASE} ALL_TARGET= ${PORTNAME} -MAN1= vobcopy.1 - -PLIST_FILES= bin/vobcopy +PLIST_FILES= bin/vobcopy man/man1/vobcopy.1.gz PORTDOCS= COPYING Changelog README TODO \ alternative_programs.txt +OPTIONS_DEFINE= DOCS -NO_STAGE= yes -.include +.include post-extract: @${CHMOD} a+x ${WRKSRC}/${CONFIGURE_SCRIPT} @@ -58,14 +56,14 @@ post-configure: ${WRKSRC}/Makefile do-install: - @${INSTALL_PROGRAM} ${WRKSRC}/vobcopy ${PREFIX}/bin/vobcopy + @${INSTALL_PROGRAM} ${WRKSRC}/vobcopy ${STAGEDIR}${PREFIX}/bin/vobcopy @${INSTALL_MAN} ${WRKSRC}/vobcopy.1${MAN1_SUFX} \ - ${MANPREFIX}/man/man1/vobcopy.1 + ${STAGEDIR}${MANPREFIX}/man/man1/vobcopy.1 post-install: -.if !defined(NOPORTDOCS) - @${INSTALL} -d ${DOCSDIR} - @cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR} +.if ${PORT_OPTIONS:MDOCS} + @${INSTALL} -d ${STAGEDIR}${DOCSDIR} + @cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR} .endif -.include +.include