blob: 3b3373ee211787adc941153708f8a1038c0b7250 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
# 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@jelal.kn-bremen.de
COMMENT= Kernel Acceralator for QEMU CPU Emulator (development version)
ONLY_FOR_ARCHS= i386 amd64
NO_PACKAGE= Depends on kernel, and 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 mount |${GREP} ^devfs >/dev/null ; then \
: ; \
else \
if [ ! -e /dev/kqemu ]; then\
mknod /dev/kqemu c 250 0 ; \
fi ; \
${CHMOD} 666 /dev/kqemu ; \
fi
.include <bsd.port.post.mk>
|