36 lines
880 B
Makefile
36 lines
880 B
Makefile
# $NetBSD: Makefile,v 1.6 2014/02/19 19:00:14 drochner Exp $
|
|
#
|
|
|
|
DISTNAME= microcode-20140122
|
|
PKGNAME= intel-microcode-netbsd-20140122
|
|
CATEGORIES= sysutils
|
|
MASTER_SITES= http://downloadmirror.intel.com/23574/eng/
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
MAINTAINER= drochner@NetBSD.org
|
|
HOMEPAGE= http://downloadcenter.intel.com/Detail_Desc.aspx?DwnldID=23574
|
|
COMMENT= Firmware updates for Intel x86 processors
|
|
#LICENSE= # TODO: (see mk/license.mk)
|
|
|
|
ONLY_FOR_PLATFORM+= NetBSD-6.99.*-i386
|
|
ONLY_FOR_PLATFORM+= NetBSD-6.99.*-x86_64
|
|
|
|
WRKSRC= ${WRKDIR}
|
|
USE_LANGUAGES= c
|
|
|
|
FWDIR= libdata/firmware/cpu_x86_intel1
|
|
INSTALLATION_DIRS+= ${FWDIR}
|
|
|
|
RCD_SCRIPTS+= intel-microcode
|
|
|
|
post-extract:
|
|
${CP} ${FILESDIR}/extract.c ${WRKSRC}
|
|
|
|
do-build:
|
|
cd ${WRKSRC} && ${CC} extract.c -o extract
|
|
|
|
do-install:
|
|
cd ${DESTDIR}${PREFIX}/${FWDIR} && \
|
|
${WRKSRC}/extract ${WRKSRC}/microcode.dat
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|