aboutsummaryrefslogtreecommitdiffstats
path: root/emulators/kqemu-kmod
diff options
context:
space:
mode:
authornox <nox@FreeBSD.org>2007-02-07 04:46:29 +0800
committernox <nox@FreeBSD.org>2007-02-07 04:46:29 +0800
commit1253312f6de63e76b1a1d0958d657f00c508647c (patch)
treebd0ccea0b9ff6a68f95be5321009c7c022619af0 /emulators/kqemu-kmod
parenta608665677fad6b726a5ff6e24d6f43f8100845b (diff)
downloadfreebsd-ports-gnome-1253312f6de63e76b1a1d0958d657f00c508647c.tar.gz
freebsd-ports-gnome-1253312f6de63e76b1a1d0958d657f00c508647c.tar.zst
freebsd-ports-gnome-1253312f6de63e76b1a1d0958d657f00c508647c.zip
Update to 1.3.0pre10:
- Changed license to GPL version 2 - x86_64 full virtualization support Approved by: miwi (mentor, implicit)
Diffstat (limited to 'emulators/kqemu-kmod')
-rw-r--r--emulators/kqemu-kmod/Makefile19
-rw-r--r--emulators/kqemu-kmod/distinfo6
-rw-r--r--emulators/kqemu-kmod/files/patch-kqemu-freebsd.c8
3 files changed, 18 insertions, 15 deletions
diff --git a/emulators/kqemu-kmod/Makefile b/emulators/kqemu-kmod/Makefile
index 375f9d4efb70..dce033ddfa5f 100644
--- a/emulators/kqemu-kmod/Makefile
+++ b/emulators/kqemu-kmod/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/distinfo b/emulators/kqemu-kmod/distinfo
index c1ed1398612f..180b7b8a9d8f 100644
--- a/emulators/kqemu-kmod/distinfo
+++ b/emulators/kqemu-kmod/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/files/patch-kqemu-freebsd.c b/emulators/kqemu-kmod/files/patch-kqemu-freebsd.c
index e1f131452ad2..a2b1cb61c380 100644
--- a/emulators/kqemu-kmod/files/patch-kqemu-freebsd.c
+++ b/emulators/kqemu-kmod/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;