2005-10-31 13:42:20 +00:00
|
|
|
# New ports collection makefile for: kqemu-kmod
|
|
|
|
# Date created: 2005/10/25
|
|
|
|
# Whom: nork@FreeBSD.org
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= kqemu
|
2006-06-24 09:39:19 +00:00
|
|
|
PORTVERSION= 1.3.0.p9
|
2006-12-21 22:13:24 +00:00
|
|
|
PORTREVISION= 3
|
2005-10-31 13:42:20 +00:00
|
|
|
CATEGORIES= emulators
|
2006-08-28 22:52:42 +00:00
|
|
|
MASTER_SITES= http://qemu.org/
|
2005-10-31 13:42:20 +00:00
|
|
|
PKGNAMESUFFIX= -kmod
|
2006-04-09 16:57:59 +00:00
|
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION:C/.p/pre/}
|
2005-10-31 13:42:20 +00:00
|
|
|
DIST_SUBDIR= kqemu
|
|
|
|
|
2006-12-23 17:42:42 +00:00
|
|
|
MAINTAINER= nox@FreeBSD.org
|
2006-04-09 16:57:59 +00:00
|
|
|
COMMENT= Kernel Acceralator for QEMU CPU Emulator (development version)
|
2005-10-31 13:42:20 +00:00
|
|
|
|
|
|
|
ONLY_FOR_ARCHS= i386 amd64
|
2007-01-21 00:43:20 +00:00
|
|
|
RESTRICTED= Module not redistributable
|
2005-10-31 13:42:20 +00:00
|
|
|
|
2006-12-15 08:38:11 +00:00
|
|
|
USE_RC_SUBR= kqemu
|
|
|
|
|
2006-08-28 22:52:42 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2005-10-31 13:42:20 +00:00
|
|
|
PLIST_FILES= "include/kqemu/kqemu.h"
|
|
|
|
PLIST_FILES+= "@dirrm include/kqemu"
|
|
|
|
PLIST_FILES+= "@cwd /"
|
|
|
|
PLIST_FILES+= ${KMODDIR:C,^/,,}/kqemu.ko
|
2006-08-28 22:52:42 +00:00
|
|
|
.if ${OSVERSION} >= 500000
|
|
|
|
PLIST_FILES+= "@unexec kldxref ${KMODDIR}"
|
|
|
|
.endif
|
2005-10-31 13:42:20 +00:00
|
|
|
|
|
|
|
MAKEFILE= Makefile.freebsd
|
|
|
|
|
2006-08-28 22:52:42 +00:00
|
|
|
# install where x11/nvidia-driver does also:
|
|
|
|
.if ${OSVERSION} >= 500000
|
|
|
|
KMODDIR= /boot/modules
|
|
|
|
.endif
|
|
|
|
|
2005-11-05 21:14:19 +00:00
|
|
|
MAKE_ENV+= KMODDIR="${KMODDIR}"
|
2005-10-31 13:42:20 +00:00
|
|
|
|
|
|
|
.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
|
2007-01-22 20:56:02 +00:00
|
|
|
.if ${OSVERSION} < 500000
|
|
|
|
if [ ! -e /dev/kqemu ]; then\
|
|
|
|
mknod /dev/kqemu c 250 0 ; \
|
2005-10-31 13:42:20 +00:00
|
|
|
fi
|
2007-01-22 20:56:02 +00:00
|
|
|
${CHMOD} 666 /dev/kqemu
|
|
|
|
.endif
|
2005-10-31 13:42:20 +00:00
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|