Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 6 Jul 2014 15:40:20 +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: r360927 - head/sysutils/afbinit
Message-ID:  <201407061540.s66FeKIv061053@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bapt
Date: Sun Jul  6 15:40:20 2014
New Revision: 360927
URL: http://svnweb.freebsd.org/changeset/ports/360927
QAT: https://qat.redports.org/buildarchive/r360927/

Log:
  Support stage

Modified:
  head/sysutils/afbinit/Makefile
  head/sysutils/afbinit/pkg-plist

Modified: head/sysutils/afbinit/Makefile
==============================================================================
--- head/sysutils/afbinit/Makefile	Sun Jul  6 15:32:47 2014	(r360926)
+++ head/sysutils/afbinit/Makefile	Sun Jul  6 15:40:20 2014	(r360927)
@@ -21,14 +21,13 @@ PATCH_DIST_STRIP=	-p1
 MAINTAINER=		marius@FreeBSD.org
 COMMENT=		Sun AFB aka Sun Elite 3D microcode firmware loader
 
+OPTIONS_DEFINE=		DOCS
+
 ONLY_FOR_ARCHS=		sparc64
 USE_RC_SUBR=		afbinit
 WRKSRC=			${WRKDIR}/${PORTNAME}-${PORTVERSION}.orig
 PKGMESSAGE=		${WRKDIR}/pkg-message
 
-MAN8=			afbinit.8
-
-NO_STAGE=	yes
 post-patch:
 .for i in afbinit.c debian/afbinit.8
 	@${REINPLACE_CMD} -E -e 's|\/usr\/lib|${DATADIR}|g; \
@@ -43,16 +42,11 @@ do-build:
 	@cd ${WRKSRC} && ${CC} ${CFLAGS} -o afbinit afbinit.c
 
 do-install:
-	@${INSTALL_PROGRAM} ${WRKSRC}/afbinit ${PREFIX}/sbin
-	@${INSTALL_MAN} ${WRKSRC}/debian/afbinit.8 ${PREFIX}/man/man8
-	@${INSTALL} -d ${DATADIR}
-	@${INSTALL_DATA} ${WRKDIR}/afb-ucode/afb.ucode ${DATADIR}
-.if !defined(NOPORTDOCS)
-	@${INSTALL} -d ${DOCSDIR}
-	@${INSTALL_DATA} ${WRKDIR}/afb-ucode/README ${DOCSDIR}
-.endif
-
-post-install:
-	@${CAT} ${WRKDIR}/pkg-message
+	@${INSTALL_PROGRAM} ${WRKSRC}/afbinit ${STAGEDIR}${PREFIX}/sbin
+	@${INSTALL_MAN} ${WRKSRC}/debian/afbinit.8 ${STAGEDIR}${PREFIX}/man/man8
+	@${INSTALL} -d ${STAGEDIR}${DATADIR}
+	@${INSTALL_DATA} ${WRKDIR}/afb-ucode/afb.ucode ${STAGEDIR}${DATADIR}
+	@${INSTALL} -d ${STAGEDIR}${DOCSDIR}
+	@${INSTALL_DATA} ${WRKDIR}/afb-ucode/README ${STAGEDIR}${DOCSDIR}
 
 .include <bsd.port.mk>

Modified: head/sysutils/afbinit/pkg-plist
==============================================================================
--- head/sysutils/afbinit/pkg-plist	Sun Jul  6 15:32:47 2014	(r360926)
+++ head/sysutils/afbinit/pkg-plist	Sun Jul  6 15:40:20 2014	(r360927)
@@ -1,4 +1,5 @@
 sbin/afbinit
+man/man8/afbinit.8.gz
 %%DATADIR%%/afb.ucode
 @dirrm %%DATADIR%%
 %%PORTDOCS%%%%DOCSDIR%%/README



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