1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-20 04:02:27 +00:00
freebsd-ports/emulators/kqemu-kmod/Makefile

59 lines
1.2 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: kqemu-kmod
# Date created: 2005/10/25
# Whom: nork@FreeBSD.org
#
# $FreeBSD$
#
PORTNAME= kqemu
PORTVERSION= 1.3.0.p9
PORTREVISION= 3
CATEGORIES= emulators
MASTER_SITES= http://qemu.org/
PKGNAMESUFFIX= -kmod
DISTNAME= ${PORTNAME}-${PORTVERSION:C/.p/pre/}
DIST_SUBDIR= kqemu
MAINTAINER= nox@FreeBSD.org
COMMENT= Kernel Acceralator for QEMU CPU Emulator (development version)
ONLY_FOR_ARCHS= i386 amd64
RESTRICTED= Module not redistributable
USE_RC_SUBR= kqemu
.include <bsd.port.pre.mk>
PLIST_FILES= "include/kqemu/kqemu.h"
PLIST_FILES+= "@dirrm include/kqemu"
PLIST_FILES+= "@cwd /"
PLIST_FILES+= ${KMODDIR:C,^/,,}/kqemu.ko
.if ${OSVERSION} >= 500000
PLIST_FILES+= "@unexec kldxref ${KMODDIR}"
.endif
MAKEFILE= Makefile.freebsd
# install where x11/nvidia-driver does also:
.if ${OSVERSION} >= 500000
KMODDIR= /boot/modules
.endif
MAKE_ENV+= KMODDIR="${KMODDIR}"
.if !exists(${SRC_BASE}/sys/Makefile)
IGNORE= kqemu requires kernel source to be installed
.endif
post-install:
@${MKDIR} ${PREFIX}/include/kqemu
@${INSTALL_DATA} ${WRKSRC}/kqemu.h ${PREFIX}/include/kqemu
.if ${OSVERSION} < 500000
if [ ! -e /dev/kqemu ]; then\
mknod /dev/kqemu c 250 0 ; \
fi
${CHMOD} 666 /dev/kqemu
.endif
.include <bsd.port.post.mk>