aboutsummaryrefslogtreecommitdiff
path: root/sysutils/afbinit
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2014-07-06 15:40:20 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2014-07-06 15:40:20 +0000
commitb81ae5b934dc7dac8dd1d5e843b71378c9a29d84 (patch)
tree6f1bebf3a5908f5508008da51948d6ba5503326d /sysutils/afbinit
parent3cbb2fa02ce3562678ab3c217f7283ff0ee04e64 (diff)
downloadports-b81ae5b934dc7dac8dd1d5e843b71378c9a29d84.tar.gz
ports-b81ae5b934dc7dac8dd1d5e843b71378c9a29d84.zip
Notes
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