2005-02-04 22:35:51 +01:00
|
|
|
# $NetBSD: Makefile.common,v 1.3 2005/02/04 21:35:51 adrianp Exp $
|
2004-12-24 18:16:04 +01:00
|
|
|
|
2005-02-04 22:35:51 +01:00
|
|
|
DISTNAME= ocaml-3.08.2
|
2004-12-24 18:16:04 +01:00
|
|
|
CATEGORIES= lang
|
2005-02-04 22:35:51 +01:00
|
|
|
MASTER_SITES= ftp://ftp.inria.fr/INRIA/cristal/ocaml/ocaml-3.08/
|
2004-12-24 18:16:04 +01:00
|
|
|
|
|
|
|
MAINTAINER= tech-pkg@NetBSD.org
|
|
|
|
HOMEPAGE= http://caml.inria.fr/ocaml/
|
|
|
|
COMMENT= The latest implementation of the Caml dialect of ML
|
|
|
|
|
|
|
|
DISTINFO_FILE= ${.CURDIR}/../../lang/ocaml/distinfo
|
|
|
|
PATCHDIR= ${.CURDIR}/../../lang/ocaml/patches
|
|
|
|
|
|
|
|
USE_BUILDLINK3= yes
|
|
|
|
USE_GNU_TOOLS+= make
|
|
|
|
HAS_CONFIGURE= yes
|
|
|
|
CONFIGURE_ARGS+= -prefix ${PREFIX}
|
|
|
|
CONFIGURE_ARGS+= -libs "${LDFLAGS}"
|
|
|
|
CONFIGURE_ARGS+= -with-pthread
|
|
|
|
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
|
|
|
.if ${OPSYS} == "Darwin"
|
|
|
|
INSTALL_UNSTRIPPED= yes
|
2005-02-04 22:35:51 +01:00
|
|
|
# See PR# 28772 as the above should work but it appears to be ignored
|
|
|
|
# so we set it explicitly below not to stip installed binaries.
|
|
|
|
_STRIPFLAG_CC=
|
|
|
|
_STRIPFLAG_INSTALL=
|
2004-12-24 18:16:04 +01:00
|
|
|
.endif
|
|
|
|
|
2005-01-19 18:43:59 +01:00
|
|
|
post-extract: cp-power-bsd cp-gnu-config
|
2004-12-24 18:16:04 +01:00
|
|
|
|
|
|
|
cp-power-bsd:
|
2005-02-04 22:35:51 +01:00
|
|
|
@${CP} ${WRKSRC}/asmrun/power-elf.S ${WRKSRC}/asmrun/power-bsd.S
|
2004-12-24 18:16:04 +01:00
|
|
|
|
2005-01-19 18:43:59 +01:00
|
|
|
cp-gnu-config:
|
2005-02-04 22:35:51 +01:00
|
|
|
@${CP} ${PKGSRCDIR}/mk/gnu-config/config.guess ${WRKSRC}/config/gnu/
|
|
|
|
@${CP} ${PKGSRCDIR}/mk/gnu-config/config.sub ${WRKSRC}/config/gnu/
|
2005-01-19 18:43:59 +01:00
|
|
|
|
2004-12-24 18:16:04 +01:00
|
|
|
.include "../../mk/pthread.buildlink3.mk"
|