diff options
author | jlam <jlam@pkgsrc.org> | 2001-01-17 23:57:52 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2001-01-17 23:57:52 +0000 |
commit | 45d1055ef1edef51e8f910f2dbdf665ea1a38ddf (patch) | |
tree | 6a59d2fed87a1e5988a75cb4c2a47f66ed35d918 /sysutils/aperture/Makefile | |
parent | d47db8b8f7bc295eafaa8871113cba87dd27c320 (diff) | |
download | pkgsrc-45d1055ef1edef51e8f910f2dbdf665ea1a38ddf.tar.gz |
Update aperture to 2.0nb1. This is now taken from the xfree86-4.0.2 sources,
but is virtually the same as the xfree86-3.3.6 one except some of the pkgsrc
changes were included.
* Add a bug fix for MTRR support on K6 processors, taken from OpenBSD. This
was apparently fixed in their tree in March 2000.
* The package Makefile now uses BSDSRCDIR to find the kernel sources instead
of requiring a symlinks /sys --> kernel sources.
* Become the maintainer since I originally committed this package, and am
upgrading it.
Diffstat (limited to 'sysutils/aperture/Makefile')
-rw-r--r-- | sysutils/aperture/Makefile | 50 |
1 files changed, 24 insertions, 26 deletions
diff --git a/sysutils/aperture/Makefile b/sysutils/aperture/Makefile index 2fa663b6b9b..2ecbe37fbcc 100644 --- a/sysutils/aperture/Makefile +++ b/sysutils/aperture/Makefile @@ -1,42 +1,40 @@ -# $NetBSD: Makefile,v 1.8 2000/12/26 17:33:52 dmcmahill Exp $ +# $NetBSD: Makefile,v 1.9 2001/01/17 23:57:52 jlam Exp $ DISTNAME= apNetBSD -PKGNAME= aperture-2.0 +PKGNAME= aperture-2.0nb1 CATEGORIES= sysutils x11 -MASTER_SITES= ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-current/xsrc/xc/programs/Xserver/hw/xfree86/etc/ +MASTER_SITES= ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-current/xsrc/xfree/xc/programs/Xserver/hw/xfree86/etc/ EXTRACT_SUFX= .shar -MAINTAINER= packages@netbsd.org +MAINTAINER= jlam@netbsd.org -EXTRACT_CMD= ${SH} ${DISTDIR}/${DIST_SUBDIR}/${DISTNAME}${EXTRACT_SUFX} +DIST_SUBDIR= ${PKGNAME} +NO_WRKSUBDIR= # defined +NO_CONFIGURE= # defined + +EXTRACT_CMD= ${SH} ${DOWNLOADED_DISTFILE} ALL_TARGET= cleandir depend all INSTALL_TARGET= dirs includes install -NO_WRKSUBDIR= yes -NO_CONFIGURE= yes -DIST_SUBDIR= ${PKGNAME} -OSVERSION_SPECIFIC= yes +OSVERSION_SPECIFIC= # defined ONLY_FOR_PLATFORM= NetBSD-*-i386 +BSDSRCDIR?= /nonexistent # to override <bsd.own.mk>, MUST be + # set this way BEFORE bsd.prefs.mk .include "../../mk/bsd.prefs.mk" -.if ${OPSYS} == "NetBSD" -pre-fetch: - @if [ ! -f /sys/lib/libkern/libkern.h ]; then \ - ${ECHO_MSG} "==================================================="; \ - ${ECHO_MSG} " Kernel sources for the version of the kernel"; \ - ${ECHO_MSG} " you are running are required to build LKMs."; \ - ${ECHO_MSG} " Please fetch them and make a link from /sys"; \ - ${ECHO_MSG} " to the kernel source directory (typically"; \ - ${ECHO_MSG} " /usr/src/sys)."; \ - ${ECHO_MSG}; \ - ${ECHO_MSG} " Information for fetching kernel sources may be"; \ - ${ECHO_MSG} " found at the following URL:"; \ - ${ECHO_MSG}; \ - ${ECHO_MSG} " http://www.netbsd.org/Documentation/"; \ - ${ECHO_MSG} "==================================================="; \ - ${FALSE}; \ - fi +pre-extract: +.if ${BSDSRCDIR} == "/nonexistent" + @${ECHO_MSG} "Please set BSDSRCDIR in /etc/mk.conf, pointing it" + @${ECHO_MSG} "to a directory that contains sources that match" + @${ECHO_MSG} "your currently running system (esp. kernel), e.g." + @${ECHO_MSG} "/usr/src." + @${FALSE} +.endif +.if !exists(${BSDSRCDIR}/sys/lib/libkern/libkern.h) + @${ECHO_MSG} "Need a kernel source tree in ${BSDSRCDIR}/sys." + @${ECHO_MSG} "(Or set BSDSRCDIR correctly in /etc/mk.conf.)" + @${FALSE} .endif .include "../../mk/bsd.pkg.mk" |