svn commit: r458725 - head/audio/festival-freebsoft-utils

Alexey Dokuchaev danfe at FreeBSD.org
Thu Jan 11 12:39:24 UTC 2018


Author: danfe
Date: Thu Jan 11 12:39:22 2018
New Revision: 458725
URL: https://svnweb.freebsd.org/changeset/ports/458725

Log:
  - Move some knobs to their standard locations within the Makefile
  - Use option helper target, deobfuscate installation commands, mute
    MKDIR's, wrap overly long lines, use INSTAL_DATA when appropriate
    instead of INSTALL_MAN

Modified:
  head/audio/festival-freebsoft-utils/Makefile

Modified: head/audio/festival-freebsoft-utils/Makefile
==============================================================================
--- head/audio/festival-freebsoft-utils/Makefile	Thu Jan 11 12:29:24 2018	(r458724)
+++ head/audio/festival-freebsoft-utils/Makefile	Thu Jan 11 12:39:22 2018	(r458725)
@@ -9,25 +9,25 @@ MASTER_SITES=	http://www.freebsoft.org/pub/projects/${
 MAINTAINER=	avilla at FreeBSD.org
 COMMENT=	Festival utilities focused on interaction with Speech Dispatcher
 
-OPTIONS_DEFINE=	DOCS
-
 RUN_DEPENDS=	festival:audio/festival \
 		sox:audio/sox
 
 NO_BUILD=	yes
 USES=		iconv
 
+INFO=		${PORTNAME}
 PORTDOCS=	ANNOUNCE NEWS README
 
-INFO=		${PORTNAME}
+OPTIONS_DEFINE=	DOCS
 
 do-install:
-	${MKDIR} ${STAGEDIR}${PREFIX}/share/festival/lib
-	cd ${WRKSRC} && ${INSTALL_DATA} *.scm ${STAGEDIR}${PREFIX}/share/festival/lib
-	cd ${WRKSRC}/doc && ${INSTALL_MAN} ${PORTNAME}.info ${STAGEDIR}${PREFIX}/${INFO_PATH}
-	${MKDIR} ${STAGEDIR}${DOCSDIR}
-.for f in ${PORTDOCS}
-	${INSTALL_MAN} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}
-.endfor
+	@${MKDIR} ${STAGEDIR}${PREFIX}/share/festival/lib
+	${INSTALL_DATA} ${WRKSRC}/*.scm ${STAGEDIR}${PREFIX}/share/festival/lib
+	${INSTALL_DATA} ${WRKSRC}/doc/${PORTNAME}.info \
+		${STAGEDIR}${PREFIX}/${INFO_PATH}
+
+do-install-DOCS-on:
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
 
 .include <bsd.port.mk>


More information about the svn-ports-all mailing list