aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/afbinit
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2014-07-06 23:40:20 +0800
committerbapt <bapt@FreeBSD.org>2014-07-06 23:40:20 +0800
commitaf677bf5a0c5e0c8e0c0a07e720649c486ce6eee (patch)
tree6f1bebf3a5908f5508008da51948d6ba5503326d /sysutils/afbinit
parent677b5216899cba430df290078bfc8e7d12f7e3e6 (diff)
downloadfreebsd-ports-gnome-af677bf5a0c5e0c8e0c0a07e720649c486ce6eee.tar.gz
freebsd-ports-gnome-af677bf5a0c5e0c8e0c0a07e720649c486ce6eee.tar.zst
freebsd-ports-gnome-af677bf5a0c5e0c8e0c0a07e720649c486ce6eee.zip
Support stage
Diffstat (limited to 'sysutils/afbinit')
-rw-r--r--sysutils/afbinit/Makefile22
-rw-r--r--sysutils/afbinit/pkg-plist1
2 files changed, 9 insertions, 14 deletions
diff --git a/sysutils/afbinit/Makefile b/sysutils/afbinit/Makefile
index d8a39b7b35e7..b16a74076cd1 100644
--- a/sysutils/afbinit/Makefile
+++ b/sysutils/afbinit/Makefile
@@ -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>
diff --git a/sysutils/afbinit/pkg-plist b/sysutils/afbinit/pkg-plist
index 92a877c84993..512981086d39 100644
--- a/sysutils/afbinit/pkg-plist
+++ b/sysutils/afbinit/pkg-plist
@@ -1,4 +1,5 @@
sbin/afbinit
+man/man8/afbinit.8.gz
%%DATADIR%%/afb.ucode
@dirrm %%DATADIR%%
%%PORTDOCS%%%%DOCSDIR%%/README