freebsd-ports/sysutils/afbinit/Makefile
Marius Strobl ac259703cc - Ever since this port was converted to use a rc.d startup it announces
the uploading of the microcode. Printing this out via the framebuffer
  turned out to sometimes being delayed until during the upload of the
  microcode to it, resulting in a concurrent access which freezes the
  machine. So change afbinit(8) to no longer announce the upload. Of
  course the proper way to solve this would be to do the upload in the
  kernel with proper locking, if the licenses of both the afbinit(8)
  code and the microcode allowed.
- Re-read the board type after uploading the microcode so the right one
  is displayed.
- Fix GCC4 warnings.

Approved by:	netchild
2007-12-11 22:10:55 +00:00

52 lines
1.3 KiB
Makefile

# Ports collection makefile for: afbinit
# Date created: 15 September 2003
# Whom: marius@alchemy.franken.de
#
# $FreeBSD$
#
PORTNAME= afbinit
PORTVERSION= 1.0
PORTREVISION= 3
CATEGORIES= sysutils graphics
MASTER_SITES= ${MASTER_SITE_DEBIAN}
MASTER_SITE_SUBDIR= pool/contrib/a/afbinit
DISTNAME= ${PORTNAME}_${PORTVERSION}.orig
PATCH_SITES= ${MASTER_SITES}
PATCH_SITE_SUBDIR= ${MASTER_SITE_SUBDIR}
PATCHFILES= ${PORTNAME}_${PORTVERSION}-1.diff.gz
PATCH_DIST_STRIP= -p1
MAINTAINER= marius@FreeBSD.org
COMMENT= Sun AFB aka Sun Elite 3D microcode firmware loader
ONLY_FOR_ARCHS= sparc64
USE_RC_SUBR= afbinit.sh
WRKSRC= ${WRKDIR}/${DISTNAME:S/_/-/}
PKGMESSAGE= ${WRKDIR}/pkg-message
MAN8= afbinit.8
post-patch:
.for i in afbinit.c debian/afbinit.8
@${REINPLACE_CMD} -E -e 's|\/usr\/lib|${DATADIR}|g; \
s|(\/dev\/fb\[)[0-3]+(\])|\10-7\2|g; \
s|\/etc\/init.d\/afb|${PREFIX}/etc/rc.d/afbinit\{,.sh\}|g' \
${WRKSRC}/${i}
.endfor
@${SED} 's|%%DATADIR%%|${DATADIR}|g' ${PKGDIR}/pkg-message > \
${WRKDIR}/pkg-message
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}
post-install:
@${CAT} ${WRKDIR}/pkg-message
.include <bsd.port.mk>