blob: 1621aca8c18cc14d752b560f13404e14c4df45c4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
# $NetBSD: Makefile,v 1.25 2004/03/11 21:12:22 tron Exp $
DISTNAME= ocaml-3.06
PKGREVISION= 5
CATEGORIES= lang
MASTER_SITES= ftp://ftp.inria.fr/INRIA/cristal/ocaml/${DISTNAME}/
MAINTAINER= jschauma@NetBSD.org
HOMEPAGE= http://caml.inria.fr/ocaml/
COMMENT= The latest implementation of the Caml dialect of ML
PKG_INSTALLATION_TYPES= overwrite pkgviews
USE_BUILDLINK3= yes
USE_GNU_TOOLS+= make
HAS_CONFIGURE= yes
CONFIGURE_ARGS+= -prefix ${PREFIX}
CONFIGURE_ARGS+= -tkdefs "${OCAML_CPPFLAGS}"
CONFIGURE_ARGS+= -tklibs "${OCAML_LDFLAGS}"
CONFIGURE_ARGS+= -libs "${OCAML_LIBS}"
OCAML_CPPFLAGS= ${CPPFLAGS}
OCAML_LDFLAGS= ${LDFLAGS:M-L*}
OCAML_LIBS= ${LDFLAGS:N-L*}
FIX_RPATH+= OCAML_LIBS
ALL_TARGET= world
post-extract:
${CP} ${WRKSRC}/asmrun/power-elf.S ${WRKSRC}/asmrun/power-bsd.S
post-build:
if ${TEST} ${MACHINE_ARCH} = 'i386' -o ${MACHINE_ARCH} = 'powerpc' \
-o ${MACHINE_ARCH} = 'sparc' ; then \
cd ${WRKSRC}; \
${GMAKE} opt; \
${GMAKE} opt.opt; \
fi
.include "../../mk/bsd.prefs.mk"
.if (${MACHINE_ARCH} == "i386") || (${MACHINE_ARCH} == "powerpc") || (${MACHINE_ARCH} == "sparc")
PLIST_SRC= ${PKGDIR}/PLIST.opt ${PKGDIR}/PLIST
.else
PLIST_SRC= ${PKGDIR}/PLIST
.endif
PTHREAD_OPTS+= native
.include "../../mk/pthread.buildlink3.mk"
.if defined(PTHREAD_TYPE) && (${PTHREAD_TYPE} != "none")
CONFIGURE_ARGS+= -with-pthread
PLIST_SRC+= ${PKGDIR}/PLIST.threads
PLIST_SUBST+= NATIVE_THREADS="@comment "
.else
PLIST_SUBST+= NATIVE_THREADS=
.endif
PLIST_SRC+= ${PKGDIR}/PLIST.common_end
.include "../../x11/tk/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|