Fix installation on amd64.

This commit is contained in:
Aleksej Saushev 2010-07-14 09:03:39 +00:00 committed by Thomas Klausner
parent 810a1d4b28
commit 3f21b04cc1
2 changed files with 10 additions and 3 deletions

View file

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.12 2009/11/20 00:50:37 asau Exp $
# $NetBSD: Makefile,v 1.13 2010/07/14 09:03:39 asau Exp $
DISTNAME= gforth-0.7.99
PKGNAME= gforth-0.7.99 # needed because of cvs-package.mk
@ -35,6 +35,13 @@ TEST_TARGET= check
INSTALLATION_DIRS= share/emacs/site-lisp
.include "../../mk/bsd.prefs.mk"
.if $(MACHINE_ARCH) == "amd64" || $(MACHINE_ARCH) == "x86_64"
PLIST_SUBST+= BITS=64
.else
PLIST_SUBST+= BITS=32
.endif
# Change package version to make it consistent with our scheme:
SUBST_CLASSES+= fix-version
SUBST_STAGE.fix-version= post-patch

View file

@ -1,4 +1,4 @@
@comment $NetBSD: PLIST,v 1.14 2010/07/09 18:19:31 asau Exp $
@comment $NetBSD: PLIST,v 1.15 2010/07/14 09:03:39 asau Exp $
bin/gforth
bin/${PKGNAME}
bin/gforth-fast
@ -152,7 +152,7 @@ share/gforth/${PKGVERSION}/kernel/tools.fs
share/gforth/${PKGVERSION}/kernel/toolsext.fs
share/gforth/${PKGVERSION}/kernel/vars.fs
share/gforth/${PKGVERSION}/kernel/xchars.fs
share/gforth/${PKGVERSION}/kernl32l.fi
share/gforth/${PKGVERSION}/kernl${BITS}l.fi
share/gforth/${PKGVERSION}/lib.fs
share/gforth/${PKGVERSION}/libcc.fs
share/gforth/${PKGVERSION}/libffi.fs