2008-04-25 09:13:39 +02:00
|
|
|
# $NetBSD: Makefile.common,v 1.21 2008/04/25 07:13:39 wiz Exp $
|
2004-12-24 18:16:04 +01:00
|
|
|
|
2008-04-25 09:13:39 +02:00
|
|
|
DISTNAME= ocaml-3.10.2
|
2004-12-24 18:16:04 +01:00
|
|
|
CATEGORIES= lang
|
2007-09-14 17:34:09 +02:00
|
|
|
MASTER_SITES= http://caml.inria.fr/pub/distrib/ocaml-3.10/
|
2005-03-24 12:32:50 +01:00
|
|
|
EXTRACT_SUFX= .tar.bz2
|
2004-12-24 18:16:04 +01:00
|
|
|
|
2005-03-26 17:20:34 +01:00
|
|
|
MAINTAINER= adam@NetBSD.org
|
2004-12-24 18:16:04 +01:00
|
|
|
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
|
|
|
|
|
2005-05-22 22:07:36 +02:00
|
|
|
USE_TOOLS+= gmake
|
2004-12-24 18:16:04 +01:00
|
|
|
HAS_CONFIGURE= yes
|
2006-02-02 21:47:26 +01:00
|
|
|
CONFIGURE_ENV+= BDB_LIBS=${BDB_LIBS:Q}
|
|
|
|
CONFIGURE_ENV+= BDB_BUILTIN=${USE_BUILTIN.${BDB_TYPE}:Q}
|
2008-01-23 21:42:25 +01:00
|
|
|
CONFIGURE_ARGS+= -prefix ${PREFIX}
|
2006-02-02 21:47:26 +01:00
|
|
|
CONFIGURE_ARGS+= -libs ${LDFLAGS:Q}
|
2004-12-24 18:16:04 +01:00
|
|
|
CONFIGURE_ARGS+= -with-pthread
|
2006-10-03 23:06:25 +02:00
|
|
|
CONFIGURE_ARGS+= -host ${MACHINE_GNU_PLATFORM:Q}
|
2006-10-22 07:49:09 +02:00
|
|
|
CONFIGURE_ARGS+= -mandir ${PREFIX}/${PKGMANDIR}
|
2005-06-14 23:00:41 +02:00
|
|
|
CPPFLAGS+= -DDB_DBM_HSEARCH
|
2004-12-24 18:16:04 +01:00
|
|
|
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
2005-05-22 00:35:46 +02:00
|
|
|
.if ${OPSYS} == "Darwin" || ${OPSYS} == "Linux"
|
2004-12-24 18:16:04 +01:00
|
|
|
INSTALL_UNSTRIPPED= yes
|
|
|
|
.endif
|
|
|
|
|
2005-06-14 23:00:41 +02:00
|
|
|
.include "../../mk/bdb.buildlink3.mk"
|
|
|
|
|
2005-01-19 18:43:59 +01:00
|
|
|
post-extract: cp-power-bsd cp-gnu-config
|
2004-12-24 18:16:04 +01:00
|
|
|
|
2006-02-02 21:47:26 +01:00
|
|
|
.PHONY: cp-power-bsd
|
2004-12-24 18:16:04 +01:00
|
|
|
cp-power-bsd:
|
2008-01-23 21:42:25 +01:00
|
|
|
${CP} ${WRKSRC}/asmrun/power-elf.S ${WRKSRC}/asmrun/power-bsd.S
|
2004-12-24 18:16:04 +01:00
|
|
|
|
2006-02-02 21:47:26 +01:00
|
|
|
.PHONY: cp-gnu-config
|
2005-01-19 18:43:59 +01:00
|
|
|
cp-gnu-config:
|
2008-01-23 21:42:25 +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"
|