diff options
author | dholland <dholland@pkgsrc.org> | 2015-12-25 00:50:45 +0000 |
---|---|---|
committer | dholland <dholland@pkgsrc.org> | 2015-12-25 00:50:45 +0000 |
commit | 2461f147a1ed9e6e1b6074ee73da128580533368 (patch) | |
tree | ad4c46d7e4150784617298c7a88c9e85dce7fd76 /lang/oo2c | |
parent | 513c47ef4537c947e82db8f12a4e7991f6b6807e (diff) | |
download | pkgsrc-2461f147a1ed9e6e1b6074ee73da128580533368.tar.gz |
Fix LP64 detection.
Diffstat (limited to 'lang/oo2c')
-rw-r--r-- | lang/oo2c/Makefile | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/lang/oo2c/Makefile b/lang/oo2c/Makefile index d7f9fb9c760..819dd7f5375 100644 --- a/lang/oo2c/Makefile +++ b/lang/oo2c/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.33 2015/11/25 12:51:17 jperkin Exp $ +# $NetBSD: Makefile,v 1.34 2015/12/25 00:50:45 dholland Exp $ DISTNAME= oo2c_${BITS}-2.0.11 PKGNAME= oo2c-2.0.11 @@ -14,13 +14,6 @@ COMMENT= Optimizing Oberon-2 Compiler DEPENDS+= libtool-base-[0-9]*:../../devel/libtool-base DEPENDS+= libxslt-[0-9]*:../../textproc/libxslt -.if ${MACHINE_ARCH} == alpha || ${MACHINE_ARCH} == sparc64 \ - || ${MACHINE_ARCH} == x86_64 -BITS=64 -.else -BITS=32 -.endif - GNU_CONFIGURE= yes USE_TOOLS+= gmake perl:run USE_LIBTOOL= yes @@ -41,6 +34,15 @@ SUBST_STAGE.pkg-unwrap= post-install SUBST_FILES.pkg-unwrap= ${DESTDIR}${PREFIX}/lib/oo2c/oo2crc.xml SUBST_SED.pkg-unwrap= -e 's,${WRAPPER_DIR},${LOCALBASE},g' +.include "../../mk/bsd.prefs.mk" + +BITS=32 +.for PLAT in ${LP64PLATFORMS} +. if !empty(MACHINE_PLATFORM:M${PLAT}) +BITS=64 +. endif +.endfor + post-install: ${LN} -sf ${PREFIX}/lib/oo2c/oocdoc/html ${DESTDIR}${PREFIX}/share/doc/html/oo2c ${LN} -sf ${PREFIX}/lib/oo2c/emacs ${DESTDIR}${PREFIX}/share/emacs/site-lisp/oo2c |