Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 Jan 2014 21:17:57 +0000 (UTC)
From:      Antoine Brodin <antoine@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r340480 - head/chinese/reciteword
Message-ID:  <201401202117.s0KLHvnm077899@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: antoine
Date: Mon Jan 20 21:17:57 2014
New Revision: 340480
URL: http://svnweb.freebsd.org/changeset/ports/340480
QAT: https://qat.redports.org/buildarchive/r340480/

Log:
  Stage support

Modified:
  head/chinese/reciteword/Makefile

Modified: head/chinese/reciteword/Makefile
==============================================================================
--- head/chinese/reciteword/Makefile	Mon Jan 20 21:06:55 2014	(r340479)
+++ head/chinese/reciteword/Makefile	Mon Jan 20 21:17:57 2014	(r340480)
@@ -14,6 +14,8 @@ DISTFILES=	${PORTNAME}-${PORTVERSION}.ta
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Education software to help people to study English
 
+LIB_DEPENDS=	libespeak.so:${PORTSDIR}/audio/espeak
+
 GNU_CONFIGURE=	yes
 CONFIGURE_ENV+=	LIBS="-L${LOCALBASE}/lib"
 USE_BZIP2=	yes
@@ -23,24 +25,13 @@ CPPFLAGS+=	"-I${LOCALBASE}/include"
 
 PORTDOCS=	AUTHORS COPYING ChangeLog INSTALL NEWS README TODO readme.txt
 
-XTRACT_AFTER_ARGS+=	--exclude CVS
-
-NO_STAGE=	yes
-.include <bsd.port.options.mk>
-
-LIB_DEPENDS+=	libespeak.so:${PORTSDIR}/audio/espeak
-
 post-patch:
 	@${REINPLACE_CMD} -e 's|/usr|${LOCALBASE}|' ${WRKSRC}/src/readword.cpp
 
 post-install:
-	@${MKDIR} ${DATADIR}
-	(cd ${WRKDIR}/ && ${COPYTREE_SHARE} "books dicts" ${DATADIR})
-.if ${PORT_OPTIONS:MDOCS}
-	@${MKDIR} ${DOCSDIR}
-.for doc in ${PORTDOCS}
-	@${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR}
-.endfor
-.endif
+	@${MKDIR} ${STAGEDIR}${DATADIR}
+	cd ${WRKDIR} && ${COPYTREE_SHARE} "books dicts" ${STAGEDIR}${DATADIR}
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
 
 .include <bsd.port.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201401202117.s0KLHvnm077899>