support native code compilation (ocamlopt) on macppc as well, for nordin@
to hack on
This commit is contained in:
parent
c4174aa8a4
commit
a2d7c405b0
@ -1,4 +1,4 @@
|
||||
# $OpenBSD: Makefile,v 1.27 2004/03/05 21:54:35 avsm Exp $
|
||||
# $OpenBSD: Makefile,v 1.28 2004/06/22 18:14:44 avsm Exp $
|
||||
|
||||
COMMENT= "ML language based on complete class-based objective system"
|
||||
|
||||
@ -35,7 +35,8 @@ FAKE_FLAGS= PREFIX=${WRKINST}${PREFIX}
|
||||
USE_GMAKE= Yes
|
||||
|
||||
.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "sparc" || \
|
||||
${MACHINE_ARCH} == "alpha" || ${MACHINE_ARCH} == "amd64"
|
||||
${MACHINE_ARCH} == "alpha" || ${MACHINE_ARCH} == "amd64" || \
|
||||
${MACHINE_ARCH} == "powerpc"
|
||||
ALL_TARGET= world bootstrap opt opt.opt
|
||||
SED_PLIST= |sed -e '/^%%native%%$$/r${PKGDIR}/PFRAG.native' -e '//d'
|
||||
.else
|
||||
@ -47,6 +48,9 @@ NO_REGRESS= Yes
|
||||
|
||||
DOCFILES= ${DISTNAME}-refman.html.tar.gz
|
||||
|
||||
post-extract:
|
||||
@cp ${WRKSRC}/asmrun/power-elf.S ${WRKSRC}/asmrun/power-bsd.S
|
||||
|
||||
post-install:
|
||||
@${INSTALL_DATA_DIR} ${PREFIX}/share/doc/ocaml/html/libref
|
||||
@${INSTALL_DATA} ${WRKDIR}/htmlman/*.{html,gif} \
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $OpenBSD: ocaml.port.mk,v 1.4 2004/03/05 21:54:36 avsm Exp $
|
||||
# $OpenBSD: ocaml.port.mk,v 1.5 2004/06/22 18:14:44 avsm Exp $
|
||||
|
||||
# regular file usage for bytecode:
|
||||
# PLIST -- bytecode base files
|
||||
@ -10,7 +10,8 @@
|
||||
# PFRAG.native.no-foo -- nativecode files for FLAVOR != foo
|
||||
|
||||
.if ${MACHINE_ARCH} == "alpha" || ${MACHINE_ARCH} == "i386" || \
|
||||
${MACHINE_ARCH} == "sparc" || ${MACHINE_ARCH} == "amd64"
|
||||
${MACHINE_ARCH} == "sparc" || ${MACHINE_ARCH} == "amd64" ||
|
||||
${MACHINE_ARCH} == "powerpc"
|
||||
MODOCAML_NATIVE=Yes
|
||||
|
||||
# include nativecode base files
|
||||
|
@ -1,6 +1,6 @@
|
||||
$OpenBSD: patch-configure,v 1.5 2004/03/05 21:54:36 avsm Exp $
|
||||
--- configure.orig 2003-09-25 09:17:13.000000000 +0100
|
||||
+++ configure 2004-03-05 15:44:08.000000000 +0000
|
||||
$OpenBSD: patch-configure,v 1.6 2004/06/22 18:14:44 avsm Exp $
|
||||
--- configure.orig Thu Sep 25 02:17:13 2003
|
||||
+++ configure Tue Jun 22 04:43:09 2004
|
||||
@@ -537,6 +537,7 @@ case "$host" in
|
||||
alpha*-*-freebsd*) arch=alpha; system=freebsd;;
|
||||
alpha*-*-netbsd*) arch=alpha; system=netbsd;;
|
||||
@ -17,7 +17,7 @@ $OpenBSD: patch-configure,v 1.5 2004/03/05 21:54:36 avsm Exp $
|
||||
powerpc-*-rhapsody*) arch=power; model=ppc; system=rhapsody;;
|
||||
powerpc-*-darwin*) arch=power; model=ppc; system=rhapsody;;
|
||||
arm*-*-linux*) arch=arm; system=linux;;
|
||||
@@ -629,8 +631,11 @@ esac
|
||||
@@ -629,8 +631,12 @@ esac
|
||||
cc_profile='-pg'
|
||||
case "$arch,$model,$system" in
|
||||
alpha,*,digital) profiling='prof';;
|
||||
@ -25,11 +25,12 @@ $OpenBSD: patch-configure,v 1.5 2004/03/05 21:54:36 avsm Exp $
|
||||
i386,*,linux_elf) profiling='prof';;
|
||||
i386,*,bsd_elf) profiling='prof';;
|
||||
+ amd64,*,openbsd) profiling='prof';;
|
||||
+ power,*,bsd) profiling='prof';;
|
||||
+ sparc,*,bsd) profiling='prof';;
|
||||
sparc,*,solaris)
|
||||
profiling='prof'
|
||||
case "$nativecc" in gcc*) ;; *) cc_profile='-xpg';; esac;;
|
||||
@@ -654,8 +659,8 @@ if test "$arch" != "none"; then
|
||||
@@ -654,8 +660,8 @@ if test "$arch" != "none"; then
|
||||
echo "$d/objcopy does not support option --redefine-sym, discarded"
|
||||
continue;
|
||||
fi
|
||||
@ -40,7 +41,7 @@ $OpenBSD: patch-configure,v 1.5 2004/03/05 21:54:36 avsm Exp $
|
||||
continue;
|
||||
fi
|
||||
binutils_objcopy="$d/objcopy"
|
||||
@@ -1411,7 +1416,7 @@ fi
|
||||
@@ -1411,7 +1417,7 @@ fi
|
||||
|
||||
(
|
||||
cd ../../camlp4/config
|
||||
|
Loading…
x
Reference in New Issue
Block a user