openbsd-ports/emulators/kqemu/Makefile
todd 4a9368455e o compile and install a MP lkm as well
o initial work by brad@, polishing by me
o idea for MP detection shellcode from drahn@

for those with MP systems, pay attention to the MESSAGE shellcode example,
and make sure to modify any existing shellcode you may have in
/etc/rc.securelevel lest you try to load a UP lkm on a MP kernel and have
unpleasant consequences.
2008-04-29 20:38:03 +00:00

56 lines
1.2 KiB
Makefile

# $OpenBSD: Makefile,v 1.5 2008/04/29 20:38:03 todd Exp $
ONLY_FOR_ARCHS= amd64 i386
COMMENT= QEMU accelerator module
DISTNAME= kqemu-1.3.0pre11
PKGNAME= ${DISTNAME}p2
CATEGORIES= emulators
HOMEPAGE= http://fabrice.bellard.free.fr/qemu/
MAINTAINER= Todd T. Fries <todd@openbsd.org>
# GPL
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= ${HOMEPAGE}
BUILD_DEPENDS= ::devel/gmake
CONFIGURE_STYLE= simple
CONFIGURE_ARGS= --prefix=${PREFIX} \
--cc=${CC} \
--host-cc=${CC} \
--make=${MAKE_PROGRAM}
INSTDIR= ${PREFIX}/lib/kqemu
SUBST_VARS= INSTDIR
NO_REGRESS= Yes
FILES= Makefile.openbsd kqemu-openbsd.c
post-extract:
.for _f in ${FILES}
@cp ${FILESDIR}/${_f} ${WRKSRC}
.endfor
@cd ${WRKSRC} && cp kqemu-openbsd.c kqemu-openbsd-mp.c
do-build:
@cd ${WRKBUILD} && ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} \
${MAKE_FLAGS} -f Makefile.openbsd
@cd ${WRKBUILD} && ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} \
${MAKE_FLAGS} -f Makefile.openbsd MP=1
do-install:
${INSTALL_DATA_DIR} ${INSTDIR}
cd ${WRKBUILD} && ${INSTALL_DATA} kqemu.o kqemu_mp.o \
${INSTDIR}
.include <bsd.port.mk>