9ef00e534c
This is mainly a bug-fix release, with a handful of configuration fixes and a GC fix backported from 4.10.0.
57 lines
1.6 KiB
Text
57 lines
1.6 KiB
Text
# $NetBSD: Makefile.common,v 1.60 2020/04/15 09:50:54 jaapb Exp $
|
|
|
|
# used by x11/labltk/Makefile
|
|
DISTNAME= ocaml-4.09.1
|
|
CATEGORIES= lang
|
|
MASTER_SITES= http://caml.inria.fr/pub/distrib/ocaml-4.09/
|
|
#EXTRACT_SUFX= .tar.bz2
|
|
|
|
MAINTAINER= jaapb@NetBSD.org
|
|
HOMEPAGE= https://ocaml.org/
|
|
COMMENT= The latest implementation of the Caml dialect of ML
|
|
LICENSE= gnu-gpl-v2
|
|
|
|
USE_LANGUAGES+= c99
|
|
USE_TOOLS+= gmake
|
|
GNU_CONFIGURE= yes
|
|
#CONFIGURE_ENV+= BDB_LIBS=${BDB_LINK:Q}
|
|
#CONFIGURE_ENV+= BDB_BUILTIN=${USE_BUILTIN.${BDB_TYPE}:Q}
|
|
#CONFIGURE_ENV+= LDFLAGS=${LDFLAGS:Q}
|
|
#CONFIGURE_ARGS+= -prefix ${PREFIX}
|
|
#CONFIGURE_ARGS+= -with-pthread
|
|
#CONFIGURE_ARGS+= -host ${MACHINE_GNU_PLATFORM:Q}
|
|
#CONFIGURE_ARGS+= -mandir ${PREFIX}/lib/ocaml/${PKGMANDIR}
|
|
#CPPFLAGS+= -DDB_DBM_HSEARCH
|
|
|
|
#DISTINFO_FILE= ${.CURDIR}/../../lang/ocaml/distinfo
|
|
#PATCHDIR= ${.CURDIR}/../../lang/ocaml/patches
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
.if ${OPSYS} == "Linux"
|
|
INSTALL_UNSTRIPPED= yes
|
|
.endif
|
|
|
|
#.if ${OPSYS} == "Darwin"
|
|
#CONFIGURE_ENV+= CC="${CC} -arch ${MACHINE_ARCH} ${CFLAGS}"
|
|
#CONFIGURE_ENV+= ASPP="${CC} -arch ${MACHINE_ARCH} -c"
|
|
#CONFIGURE_ENV+= AS="as -arch ${MACHINE_ARCH}"
|
|
#.else
|
|
#CONFIGURE_ENV+= CC="${CC} ${CFLAGS}"
|
|
#.endif
|
|
|
|
.include "../../mk/bdb.buildlink3.mk"
|
|
|
|
#BDB_LINK= ${BDB_LIBS}
|
|
#.if empty(BDBBASE:M/usr)
|
|
#BDB_LINK+= -L${BDBBASE}/lib ${COMPILER_RPATH_FLAG}${BDBBASE}/lib
|
|
#.endif
|
|
|
|
#post-extract: cp-gnu-config
|
|
|
|
#.PHONY: cp-gnu-config
|
|
#cp-gnu-config:
|
|
# ${CP} ${PKGSRCDIR}/mk/gnu-config/config.guess ${WRKSRC}/config/gnu/
|
|
# ${CP} ${PKGSRCDIR}/mk/gnu-config/config.sub ${WRKSRC}/config/gnu/
|
|
|
|
.include "../../mk/pthread.buildlink3.mk"
|