Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 Jan 2014 11:40:37 +0000 (UTC)
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r341377 - head/devel/avra
Message-ID:  <201401271140.s0RBebNS076387@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bapt
Date: Mon Jan 27 11:40:37 2014
New Revision: 341377
URL: http://svnweb.freebsd.org/changeset/ports/341377
QAT: https://qat.redports.org/buildarchive/r341377/

Log:
  Support stage
  USE_GMAKE -> USES=gmake
  Use options framework

Modified:
  head/devel/avra/Makefile

Modified: head/devel/avra/Makefile
==============================================================================
--- head/devel/avra/Makefile	Mon Jan 27 11:38:19 2014	(r341376)
+++ head/devel/avra/Makefile	Mon Jan 27 11:40:37 2014	(r341377)
@@ -12,10 +12,12 @@ COMMENT=	Macro Assembler for Atmel AVR m
 LICENSE=	GPLv2 GPLv3
 LICENSE_COMB=	dual
 
+OPTIONS_DEFINE=	DOCS EXAMPLES
+
 WRKSRC=		${WRKDIR}/${DISTNAME}/src
 
+USES=		gmake
 USE_BZIP2=	yes
-USE_GMAKE=	yes
 MAKEFILE=	${WRKSRC}/makefiles/Makefile.linux
 MAKE_ARGS=	CC="${CC}" LD="${CC}" CFLAGS="${CFLAGS}" LDFLAGS=""
 
@@ -23,16 +25,11 @@ PORTDOCS=	*
 PORTEXAMPLES=	*
 PLIST_FILES=	bin/avra
 
-NO_STAGE=	yes
 do-install:
-	${INSTALL_PROGRAM} ${WRKSRC}/avra ${PREFIX}/bin
-.if !defined(NOPORTDOCS)
-	@${MKDIR} ${DOCSDIR}
-	@(cd ${WRKSRC}/../doc && ${COPYTREE_SHARE} . ${DOCSDIR})
-.endif
-.if !defined(NOPORTEXAMPLES)
-	@${MKDIR} ${EXAMPLESDIR}
-	@(cd ${WRKSRC}/../examples && ${COPYTREE_SHARE} . ${EXAMPLESDIR})
-.endif
+	${INSTALL_PROGRAM} ${WRKSRC}/avra ${STAGEDIR}${PREFIX}/bin
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	(cd ${WRKSRC}/../doc && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR})
+	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+	(cd ${WRKSRC}/../examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR})
 
 .include <bsd.port.mk>



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