Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 8 Aug 2014 21:36:33 +0000 (UTC)
From:      Joerg Wunsch <joerg@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r364389 - head/graphics/sketch
Message-ID:  <53e542e1.2f21.59ad0fa3@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: joerg
Date: Fri Aug  8 21:36:32 2014
New Revision: 364389
URL: http://svnweb.freebsd.org/changeset/ports/364389
QAT: https://qat.redports.org/buildarchive/r364389/

Log:
  Add staging support.
  
  Require bison, as the sketch.y file contains non-generic-YACC code.

Modified:
  head/graphics/sketch/Makefile

Modified: head/graphics/sketch/Makefile
==============================================================================
--- head/graphics/sketch/Makefile	Fri Aug  8 21:35:07 2014	(r364388)
+++ head/graphics/sketch/Makefile	Fri Aug  8 21:36:32 2014	(r364389)
@@ -6,11 +6,13 @@ PORTVERSION=	0.3.7
 CATEGORIES=	graphics
 MASTER_SITES=	http://www.frontiernet.net/~eugene.ressler/
 
-MAINTAINER=	ports@FreeBSD.org
+MAINTAINER=	joerg@FreeBSD.org
 COMMENT=	3D Scene Description Translator
 
 LICENSE=	GPLv3
 
+BUILD_DEPENDS=	bison:${PORTSDIR}/devel/bison
+
 MAKEFILE=	makefile
 ALL_TARGET=
 USES=		dos2unix gmake perl5 tar:tgz
@@ -18,8 +20,6 @@ USE_PERL5=	build
 
 PLIST_FILES=	bin/sketch
 
-NO_STAGE=	yes
-
 OPTIONS_DEFINE=	DOCS EXAMPLES
 
 .include <bsd.port.options.mk>
@@ -45,23 +45,23 @@ PORTEXAMPLES=	*.sk
 post-patch:
 	@${REINPLACE_CMD} -e 's/^CC =.*//' \
 		-e 's/$$(CC)/$$(CC) $$(CFLAGS)/g' \
-		-e 's/^YACC =.*/YACC = yacc/' ${WRKSRC}/${MAKEFILE}
+		-e 's/^YACC =.*/YACC = bison/' ${WRKSRC}/${MAKEFILE}
 
 do-install:
-	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin/
+	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}/${PREFIX}/bin/
 
 .if ${PORT_OPTIONS:MDOCS}
-	@${MKDIR} ${DOCSDIR}
-	${INSTALL_DATA} ${DOC_FILES1:S|^|${DOCSRCDIR1}/|} ${DOCSDIR}
-	@${MKDIR} ${DOCSDIR2}
-	${INSTALL_DATA} ${DOC_FILES2:S|^|${DOCSRCDIR2}/|} ${DOCSDIR2}
-	@${MKDIR} ${DOCSDIR3}
-	${INSTALL_DATA} ${DOC_FILES3:S|^|${DOCSRCDIR3}/|} ${DOCSDIR3}
+	@${MKDIR} ${STAGEDIR}/${DOCSDIR}
+	${INSTALL_DATA} ${DOC_FILES1:S|^|${DOCSRCDIR1}/|} ${STAGEDIR}/${DOCSDIR}
+	@${MKDIR} ${STAGEDIR}/${DOCSDIR2}
+	${INSTALL_DATA} ${DOC_FILES2:S|^|${DOCSRCDIR2}/|} ${STAGEDIR}/${DOCSDIR2}
+	@${MKDIR} ${STAGEDIR}/${DOCSDIR3}
+	${INSTALL_DATA} ${DOC_FILES3:S|^|${DOCSRCDIR3}/|} ${STAGEDIR}/${DOCSDIR3}
 .endif
 
 .if ${PORT_OPTIONS:MEXAMPLES}
-	@${MKDIR} ${EXAMPLESDIR}
-	cd ${WRKSRC}/Data && ${INSTALL_DATA} ${PORTEXAMPLES} ${EXAMPLESDIR}
+	@${MKDIR} ${STAGEDIR}/${EXAMPLESDIR}
+	cd ${WRKSRC}/Data && ${INSTALL_DATA} ${PORTEXAMPLES} ${STAGEDIR}/${EXAMPLESDIR}
 .endif
 
 .include <bsd.port.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?53e542e1.2f21.59ad0fa3>