diff options
author | agc <agc@pkgsrc.org> | 1998-11-04 16:58:09 +0000 |
---|---|---|
committer | agc <agc@pkgsrc.org> | 1998-11-04 16:58:09 +0000 |
commit | 73892c3c72bcd85e39f9a7d64272c9c63d2c730b (patch) | |
tree | f083a4e3ff3b816c6892282bcdcdc37877c34108 /sysutils/xosview/Makefile | |
parent | 25e8a9ea6a62fd1bb4968067eb00b7f54078f710 (diff) | |
download | pkgsrc-73892c3c72bcd85e39f9a7d64272c9c63d2c730b.tar.gz |
Be a bit smarter with the workaround for the C++ "virtual" keyword.
Diffstat (limited to 'sysutils/xosview/Makefile')
-rw-r--r-- | sysutils/xosview/Makefile | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/sysutils/xosview/Makefile b/sysutils/xosview/Makefile index 99ed56feb03..e9ede98c6a8 100644 --- a/sysutils/xosview/Makefile +++ b/sysutils/xosview/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.18 1998/11/04 16:37:11 agc Exp $ +# $NetBSD: Makefile,v 1.19 1998/11/04 16:58:09 agc Exp $ # DISTNAME= xosview-1.6.2.a @@ -12,14 +12,15 @@ HOMEPAGE= http://lore.ece.utexas.edu/~bgrayson/xosview.html HAS_CONFIGURE= yes CONFIGURE_ARGS+= --prefix=${PREFIX} USE_X11= yes +BUILD_DEFS= UVM +# On arm32, with UVM, pmap.h contains a C++ keyword. Workaround this. pre-build: - mach=`/usr/bin/uname -m`; \ - if [ ! -z "${UVM}" -a -e ${FILESDIR}/$$mach-pmap.h ]; then \ - ${MKDIR} -p ${WRKSRC}/include/machine; \ - ${CP} ${FILESDIR}/$$mach-pmap.h ${WRKSRC}/include/machine/pmap.h; \ + mach=`/usr/bin/uname -m`; \ + if [ $$mach = "arm32" -a ! -z "${UVM}" ]; then \ + ${MKDIR} -p ${WRKSRC}/include/machine; \ + ${SED} -e 's|virtual|virt|' /usr/include/machine/pmap.h \ + > ${WRKSRC}/include/machine/pmap.h; \ fi -BUILD_DEFS= UVM - .include "../../mk/bsd.pkg.mk" |