diff options
author | tv <tv@pkgsrc.org> | 2000-12-14 15:51:25 +0000 |
---|---|---|
committer | tv <tv@pkgsrc.org> | 2000-12-14 15:51:25 +0000 |
commit | e63a20f6d4f4444c5abd3e341d834c2c7797bdd8 (patch) | |
tree | 0bb45281cd9aef4117637d76aeb814de7001e1a7 /emulators/plex86 | |
parent | 6560c4d700ed8c00c7f1f361aae7b39d99fb8cbd (diff) | |
download | pkgsrc-e63a20f6d4f4444c5abd3e341d834c2c7797bdd8.tar.gz |
Do not assume that /usr/src has been set by mk.conf, and DEFINITELY don't
assume blindly that /usr/src is the appropriate kernel source tree. Force
the user to set it explicitly in either the environment or mk.conf.
Diffstat (limited to 'emulators/plex86')
-rw-r--r-- | emulators/plex86/Makefile | 30 |
1 files changed, 17 insertions, 13 deletions
diff --git a/emulators/plex86/Makefile b/emulators/plex86/Makefile index aca5937ee24..6419ed6a3c4 100644 --- a/emulators/plex86/Makefile +++ b/emulators/plex86/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.2 2000/12/14 04:34:40 hubertf Exp $ +# $NetBSD: Makefile,v 1.3 2000/12/14 15:51:25 tv Exp $ # DISTNAME= plex86 @@ -18,32 +18,36 @@ WRKSRC= ${WRKDIR}/plex86 GNU_CONFIGURE= yes CONFIGURE_ARGS+=--with-NetBSD \ --with-netbsd-source=/sys -BSDSRCDIR?= /usr/src USE_GMAKE= yes NO_PKG_REGISTER= yes # ONLY until we really install files!!! NO_PACKAGE= Incomplete # ONLY until we really install files!!! +BSDSRCDIR?= /nonexistent +.include "../../mk/bsd.prefs.mk" + pre-extract: - @if [ ! -f ${BSDSRCDIR}/sys/sys/param.h ]; then \ - ${ECHO_MSG} Need a kernel source tree in ${BSDSRCDIR}/sys ; \ - ${ECHO_MSG} "(set BSDSRCDIR accordingly in /etc/mk.conf!)" ; \ - exit 1 ; \ - fi +.if ${BSDSRCDIR} == "/nonexistent" + @${ECHO_MSG} "Please set BSDSRCDIR in /etc/mk.conf." + @${FALSE} +.endif +.if !exists(${BSDSRCDIR}/sys/sys/param.h) + @${ECHO_MSG} "Need a kernel source tree in ${BSDSRCDIR}/sys." + @${ECHO_MSG} "(Or set BSDSRCDIR correctly in /etc/mk.conf.)" + @${FALSE} +.endif pre-patch: - cd ${WRKSRC} ; \ + cd ${WRKSRC} && \ ${PATCH} ${PATCH_ARGS} <${WRKDIR}/plex86.diff - ${CP} ${WRKDIR}/kernel/host-netbsd.c ${WRKSRC}/kernel - ${CP} ${WRKDIR}/misc/netbsd_post.sh ${WRKSRC}/misc + ${CP} ${WRKDIR}/kernel/host-netbsd.c ${WRKSRC}/kernel + ${CP} ${WRKDIR}/misc/netbsd_post.sh ${WRKSRC}/misc pre-configure: - cd ${WRKSRC} ; autoconf + cd ${WRKSRC} && autoconf do-install: @${CAT} ${MESSAGE_FILE} @${ECHO_MSG} Package NOT recorded as installed! @# Remove the NO_PKG_REGISTER/NO_PACKAGE above if this does something!!! - @# Remove the NO_PKG_REGISTER/NO_PACKAGE above if this does something!!! - @# Remove the NO_PKG_REGISTER/NO_PACKAGE above if this does something!!! .include "../../mk/bsd.pkg.mk" |