2006-12-26 17:38:35 -05:00
|
|
|
# $OpenBSD: ocaml.port.mk,v 1.8 2006/12/26 22:38:35 avsm Exp $
|
2002-11-13 16:42:15 -05:00
|
|
|
|
2002-11-26 15:11:24 -05: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 09:28:38 -05:00
|
|
|
# PFRAG.foo-native -- nativecode files for FLAVOR == foo
|
|
|
|
# PFRAG.no-foo-native -- nativecode files for FLAVOR != foo
|
2002-11-13 16:42:15 -05:00
|
|
|
|
2006-12-26 17:07:18 -05:00
|
|
|
OCAML_VERSION=3.09.3
|
|
|
|
|
2002-11-13 16:42:15 -05:00
|
|
|
.if ${MACHINE_ARCH} == "alpha" || ${MACHINE_ARCH} == "i386" || \
|
2004-06-22 14:15:58 -04:00
|
|
|
${MACHINE_ARCH} == "sparc" || ${MACHINE_ARCH} == "amd64" || \
|
2005-08-09 11:22:54 -04:00
|
|
|
${MACHINE_ARCH} == "powerpc"
|
2002-11-13 16:42:15 -05:00
|
|
|
MODOCAML_NATIVE=Yes
|
2002-11-26 15:11:24 -05:00
|
|
|
|
|
|
|
# include nativecode base files
|
2004-09-15 15:10:00 -04:00
|
|
|
PKG_ARGS+=-Dnative=1
|
2002-11-26 15:11:24 -05:00
|
|
|
|
2002-11-13 16:42:15 -05:00
|
|
|
.else
|
2002-11-26 15:11:24 -05:00
|
|
|
|
2002-11-13 16:42:15 -05:00
|
|
|
MODOCAML_NATIVE=No
|
2006-12-26 17:38:35 -05:00
|
|
|
RUN_DEPENDS+= :ocaml-${OCAML_VERSION}*:lang/ocaml
|
2002-11-26 15:11:24 -05:00
|
|
|
|
|
|
|
# remove native base file entry from PLIST
|
2004-09-15 15:10:00 -04:00
|
|
|
PKG_ARGS+=-Dnative=0
|
2002-11-13 16:42:15 -05:00
|
|
|
.endif
|
|
|
|
|
2006-12-26 17:38:35 -05:00
|
|
|
BUILD_DEPENDS+= :ocaml-${OCAML_VERSION}*:lang/ocaml
|
2006-05-28 23:44:49 -04:00
|
|
|
MAKE_ENV+= OCAMLFIND_DESTDIR=${DESTDIR}${PREFIX}/lib/ocaml/site-lib
|
|
|
|
|