2005-08-09 15:22:54 +00:00
|
|
|
# $OpenBSD: ocaml.port.mk,v 1.5 2005/08/09 15:22:54 robert Exp $
|
2002-11-13 21:42:15 +00:00
|
|
|
|
2002-11-26 20:11:24 +00:00
|
|
|
# regular file usage for bytecode:
|
|
|
|
# PLIST -- bytecode base files
|
|
|
|
# PFRAG.foo -- bytecode files for FLAVOR == foo
|
|
|
|
# PFRAG.no-foo -- bytecode files for FLAVOR != foo
|
|
|
|
# extended file usage for nativecode:
|
|
|
|
# PFRAG.native -- nativecode base files
|
2005-01-22 14:28:38 +00:00
|
|
|
# PFRAG.foo-native -- nativecode files for FLAVOR == foo
|
|
|
|
# PFRAG.no-foo-native -- nativecode files for FLAVOR != foo
|
2002-11-13 21:42:15 +00:00
|
|
|
|
|
|
|
.if ${MACHINE_ARCH} == "alpha" || ${MACHINE_ARCH} == "i386" || \
|
2004-06-22 18:15:58 +00:00
|
|
|
${MACHINE_ARCH} == "sparc" || ${MACHINE_ARCH} == "amd64" || \
|
2005-08-09 15:22:54 +00:00
|
|
|
${MACHINE_ARCH} == "powerpc"
|
2002-11-13 21:42:15 +00:00
|
|
|
MODOCAML_NATIVE=Yes
|
2002-11-26 20:11:24 +00:00
|
|
|
|
|
|
|
# include nativecode base files
|
2004-09-15 19:10:00 +00:00
|
|
|
PKG_ARGS+=-Dnative=1
|
2002-11-26 20:11:24 +00:00
|
|
|
|
2002-11-13 21:42:15 +00:00
|
|
|
.else
|
2002-11-26 20:11:24 +00:00
|
|
|
|
2002-11-13 21:42:15 +00:00
|
|
|
MODOCAML_NATIVE=No
|
2002-11-22 15:13:42 +00:00
|
|
|
RUN_DEPENDS+= ::lang/ocaml
|
2002-11-26 20:11:24 +00:00
|
|
|
|
|
|
|
# remove native base file entry from PLIST
|
2004-09-15 19:10:00 +00:00
|
|
|
PKG_ARGS+=-Dnative=0
|
2002-11-13 21:42:15 +00:00
|
|
|
.endif
|
|
|
|
|
2002-11-22 15:13:42 +00:00
|
|
|
BUILD_DEPENDS+= ::lang/ocaml
|