summaryrefslogtreecommitdiff
path: root/emulators/kqemu-kmod-devel
diff options
context:
space:
mode:
authorJuergen Lock <nox@FreeBSD.org>2007-02-06 20:46:29 +0000
committerJuergen Lock <nox@FreeBSD.org>2007-02-06 20:46:29 +0000
commitc8369be915cec631d38643b13050bc0854f81326 (patch)
tree3d286a04d421dacd5b74365b5fa6d35f1119b95d /emulators/kqemu-kmod-devel
parentpropper style to fit into Mk/ directory where I hope it will go verry soon (diff)
Update to 1.3.0pre10:
- Changed license to GPL version 2 - x86_64 full virtualization support Approved by: miwi (mentor, implicit)
Notes
Notes: svn path=/head/; revision=184415
Diffstat (limited to 'emulators/kqemu-kmod-devel')
-rw-r--r--emulators/kqemu-kmod-devel/Makefile19
-rw-r--r--emulators/kqemu-kmod-devel/distinfo6
-rw-r--r--emulators/kqemu-kmod-devel/files/patch-kqemu-freebsd.c8
3 files changed, 18 insertions, 15 deletions
diff --git a/emulators/kqemu-kmod-devel/Makefile b/emulators/kqemu-kmod-devel/Makefile
index 375f9d4efb70..dce033ddfa5f 100644
--- a/emulators/kqemu-kmod-devel/Makefile
+++ b/emulators/kqemu-kmod-devel/Makefile
@@ -6,8 +6,7 @@
#
PORTNAME= kqemu
-PORTVERSION= 1.3.0.p9
-PORTREVISION= 3
+PORTVERSION= 1.3.0.p10
CATEGORIES= emulators
MASTER_SITES= http://qemu.org/
PKGNAMESUFFIX= -kmod
@@ -18,7 +17,10 @@ MAINTAINER= nox@FreeBSD.org
COMMENT= Kernel Acceralator for QEMU CPU Emulator (development version)
ONLY_FOR_ARCHS= i386 amd64
-RESTRICTED= Module not redistributable
+HAS_CONFIGURE= yes
+USE_GMAKE= yes
+USE_GCC= 3.4
+CONFIGURE_ARGS+= --prefix=${PREFIX} --cc=${CC}
USE_RC_SUBR= kqemu
@@ -34,6 +36,10 @@ PLIST_FILES+= "@unexec kldxref ${KMODDIR}"
MAKEFILE= Makefile.freebsd
+.if ${ARCH} == "amd64"
+MAKE_ARGS+= ARCH=x86_64
+.endif
+
# install where x11/nvidia-driver does also:
.if ${OSVERSION} >= 500000
KMODDIR= /boot/modules
@@ -45,7 +51,12 @@ MAKE_ENV+= KMODDIR="${KMODDIR}"
IGNORE= kqemu requires kernel source to be installed
.endif
-post-install:
+do-build:
+ @(cd ${BUILD_WRKSRC}/common; ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} Makefile ${MAKE_ARGS} ${ALL_TARGET})
+ @(cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${ALL_TARGET})
+
+do-install:
+ @(cd ${INSTALL_WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${INSTALL_TARGET})
@${MKDIR} ${PREFIX}/include/kqemu
@${INSTALL_DATA} ${WRKSRC}/kqemu.h ${PREFIX}/include/kqemu
.if ${OSVERSION} < 500000
diff --git a/emulators/kqemu-kmod-devel/distinfo b/emulators/kqemu-kmod-devel/distinfo
index c1ed1398612f..180b7b8a9d8f 100644
--- a/emulators/kqemu-kmod-devel/distinfo
+++ b/emulators/kqemu-kmod-devel/distinfo
@@ -1,3 +1,3 @@
-MD5 (kqemu/kqemu-1.3.0pre9.tar.gz) = 27888c3220844ad360a6a23345fa1bcb
-SHA256 (kqemu/kqemu-1.3.0pre9.tar.gz) = c2759d43bc8bee458b802479b47796b21593ee617f5c4d14cb1bf842d4f4efdc
-SIZE (kqemu/kqemu-1.3.0pre9.tar.gz) = 190070
+MD5 (kqemu/kqemu-1.3.0pre10.tar.gz) = f4cb84be802f4b1eaa22ca8b73c69504
+SHA256 (kqemu/kqemu-1.3.0pre10.tar.gz) = 27fb1da3ba0f951cca04c12a41c977ddc142a8a9ff091fa597114fdcef466207
+SIZE (kqemu/kqemu-1.3.0pre10.tar.gz) = 136272
diff --git a/emulators/kqemu-kmod-devel/files/patch-kqemu-freebsd.c b/emulators/kqemu-kmod-devel/files/patch-kqemu-freebsd.c
index e1f131452ad2..a2b1cb61c380 100644
--- a/emulators/kqemu-kmod-devel/files/patch-kqemu-freebsd.c
+++ b/emulators/kqemu-kmod-devel/files/patch-kqemu-freebsd.c
@@ -1,12 +1,4 @@
Index: kqemu-freebsd.c
-@@ -236,6 +236,7 @@
- };
-
- static int kqemu_ref_count = 0;
-+static int max_locked_pages;
- static struct kqemu_global_state *kqemu_gs = NULL;
-
- #if __FreeBSD_version < 500000
@@ -321,6 +321,9 @@
#if __FreeBSD_version >= 500000
dev->si_drv1 = NULL;