Lines 1-9
Link Here
|
1 |
# New ports collection makefile for: kqemu-kmod |
1 |
# Created by: nork@FreeBSD.org |
2 |
# Date created: 2005/10/25 |
|
|
3 |
# Whom: nork@FreeBSD.org |
4 |
# |
5 |
# $FreeBSD$ |
2 |
# $FreeBSD$ |
6 |
# |
|
|
7 |
|
3 |
|
8 |
PORTNAME= kqemu |
4 |
PORTNAME= kqemu |
9 |
PORTVERSION= 1.4.0.p1 |
5 |
PORTVERSION= 1.4.0.p1 |
Lines 20-25
Link Here
|
20 |
MAINTAINER= nox@FreeBSD.org |
16 |
MAINTAINER= nox@FreeBSD.org |
21 |
COMMENT= Kernel Accelerator for QEMU CPU Emulator (development version) |
17 |
COMMENT= Kernel Accelerator for QEMU CPU Emulator (development version) |
22 |
|
18 |
|
|
|
19 |
LICENSE= GPLv2 |
20 |
LICENSE_FILE= ${WRKSRC}/COPYING |
21 |
|
23 |
ONLY_FOR_ARCHS= i386 amd64 |
22 |
ONLY_FOR_ARCHS= i386 amd64 |
24 |
HAS_CONFIGURE= yes |
23 |
HAS_CONFIGURE= yes |
25 |
USE_GMAKE= yes |
24 |
USE_GMAKE= yes |
Lines 37-42
Link Here
|
37 |
PLIST_FILES+= "@cwd /" |
36 |
PLIST_FILES+= "@cwd /" |
38 |
PLIST_FILES+= ${KMODDIR:C,^/,,}/kqemu.ko |
37 |
PLIST_FILES+= ${KMODDIR:C,^/,,}/kqemu.ko |
39 |
PLIST_FILES+= "@unexec kldxref ${KMODDIR}" |
38 |
PLIST_FILES+= "@unexec kldxref ${KMODDIR}" |
|
|
39 |
PLIST_FILES+= "@cwd ${PREFIX}" |
40 |
|
40 |
|
41 |
MAKEFILE= Makefile.freebsd |
41 |
MAKEFILE= Makefile.freebsd |
42 |
|
42 |
|
Lines 56-83
Link Here
|
56 |
IGNORE= requires kernel source to be installed |
56 |
IGNORE= requires kernel source to be installed |
57 |
.endif |
57 |
.endif |
58 |
|
58 |
|
59 |
.if ${OSVERSION} >= 700024 && ${OSVERSION} < 700053 && !defined(NOKSE) |
59 |
CFLAGS+= ${DEBUG_FLAGS} |
60 |
# XXX this is wrong if you have `nooption KSE' in your kernel config, |
|
|
61 |
# please define NOKSE in that case (no longer a problem after attilio's |
62 |
# Sun Jul 22 21:35:44 2007 UTC commit removing the KSE ABI incompatiblity) |
63 |
CFLAGS+= -DKSE |
64 |
.endif |
65 |
|
60 |
|
66 |
CFLAGS+= ${DEBUG_FLAGS} |
|
|
67 |
|
68 |
post-extract: |
69 |
.if ${OSVERSION} >= 700024 && ${OSVERSION} < 700053 && !defined(NOKSE) |
70 |
@${ECHO_MSG} "Compiling with -DKSE." |
71 |
@${ECHO_MSG} "If this is wrong (i.e. you have \`nooption KSE' in your kernel config)," |
72 |
@${ECHO_MSG} "then please define NOKSE." |
73 |
.endif |
74 |
|
75 |
# 7.1 and head have seperate gdts also on amd64 now so the tss fixup code |
76 |
# is no longer needed there |
77 |
post-patch: |
61 |
post-patch: |
78 |
.if ${OSVERSION} >= 701100 && (${OSVERSION} < 800000 || ${OSVERSION} >= 800046) |
|
|
79 |
@cd ${WRKSRC} && ${PATCH} -R --quiet < ${FILESDIR}/patch-tssworkaround |
80 |
.endif |
81 |
# Apply extra patches from the qemu-devel list; in the unlikely case that |
62 |
# Apply extra patches from the qemu-devel list; in the unlikely case that |
82 |
# these cause regressions please define WITHOUT_EXTRA_PATCHES and post |
63 |
# these cause regressions please define WITHOUT_EXTRA_PATCHES and post |
83 |
# details about your host _and_ guest on freebsd-emulation@freebsd.org |
64 |
# details about your host _and_ guest on freebsd-emulation@freebsd.org |
Lines 87-92
Link Here
|
87 |
${PATCH} -d ${WRKSRC} --quiet <$$i;\ |
68 |
${PATCH} -d ${WRKSRC} --quiet <$$i;\ |
88 |
done |
69 |
done |
89 |
.endif |
70 |
.endif |
|
|
71 |
@${REINPLACE_CMD} -e '/CC=/s,gcc,${CC},' ${WRKSRC}/common/Makefile |
90 |
|
72 |
|
91 |
do-build: |
73 |
do-build: |
92 |
@(cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} beforedepend && ${LN} -sfh @/sys sys) |
74 |
@(cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} beforedepend && ${LN} -sfh @/sys sys) |
Lines 97-103
Link Here
|
97 |
@(cd ${INSTALL_WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${INSTALL_TARGET}) |
79 |
@(cd ${INSTALL_WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${INSTALL_TARGET}) |
98 |
${MKDIR} ${PREFIX}/include/kqemu |
80 |
${MKDIR} ${PREFIX}/include/kqemu |
99 |
${INSTALL_DATA} ${WRKSRC}/kqemu.h ${PREFIX}/include/kqemu |
81 |
${INSTALL_DATA} ${WRKSRC}/kqemu.h ${PREFIX}/include/kqemu |
100 |
.if !defined(NOPORTDOCS) |
82 |
.if ${PORT_OPTIONS:MDOCS} |
101 |
${MKDIR} ${DOCSDIR} |
83 |
${MKDIR} ${DOCSDIR} |
102 |
${INSTALL_DATA} ${WRKSRC}/kqemu-doc.html ${WRKSRC}/kqemu-tech.html \ |
84 |
${INSTALL_DATA} ${WRKSRC}/kqemu-doc.html ${WRKSRC}/kqemu-tech.html \ |
103 |
${DOCSDIR} |
85 |
${DOCSDIR} |