# New ports collection makefile for: ipw-firmware-kmod # Date created: Mar 16 2006 # Whom: Florent Thoumie # # $FreeBSD$ # PORTNAME?= ipw-firmware PORTVERSION= ${FWVERSION} PORTREVISION?= 1 CATEGORIES= net MASTER_SITES= ${MASTER_SITE_LOCAL} MASTER_SITE_SUBDIR= flz/ipw PKGNAMESUFFIX= -kmod FWNAME?= ipw2100-fw-${FWVERSION} FWVERSION?= 1.3 DISTFILES= ${FWNAME}.tgz MAINTAINER= flz@FreeBSD.org COMMENT?= Intel PRO/Wireless 2100 Firmware Kernel Module DRIVERNAME?= ipw FIRMWARES?= ${FWNAME:C/fw-//}-i.fw:${DRIVERNAME}_ibss \ ${FWNAME:C/fw-//}-p.fw:${DRIVERNAME}_monitor \ ${FWNAME:C/fw-//}.fw:${DRIVERNAME}_bss WRKSRC= ${WRKDIR} KMODDIR= /boot/modules KMODVERSION= ${FWVERSION:C/^(...)$/\1.0/:S/.//g} PLIST_SUB= DRIVERNAME="${DRIVERNAME}" \ KMODDIR="${KMODDIR}" MAKE_ENV= KMODDIR="${KMODDIR}" CFLAGS+= -D_KERNEL NO_PACKAGE= "this is a modified version of a restricted firmware" .include .if ${OSVERSION} < 700014 IGNORE= needs fresh ${DRIVERNAME}(4), install net/${DRIVERNAME}-firmware instead .endif post-patch: .for i in ${FIRMWARES} @${MKDIR} ${WRKSRC}/${i:C/.*://} @${MV} ${WRKSRC}/${i:C/:.*//} ${WRKSRC}/${i:C/.*://}/${i:C/.*://:S/$/.fw/} @${ECHO_CMD} "KMOD= ${i:C/.*://}" > ${WRKSRC}/${i:C/.*://}/Makefile @${ECHO_CMD} "FIRMWS= ${i:C/.*://:S/$/.fw/}:${i:C/.*://}:${KMODVERSION}" >> \ ${WRKSRC}/${i:C/.*://}/Makefile @${ECHO_CMD} ".include " >> ${WRKSRC}/${i:C/.*://}/Makefile .endfor do-build: .for i in ${FIRMWARES} @cd ${WRKSRC}/${i:C/.*://}; make all ${MAKE_ENV} .endfor do-install: .for i in ${FIRMWARES} @cd ${WRKSRC}/${i:C/.*://}; make install ${MAKE_ENV} .endfor .include