openbsd-ports/lang/ocaml/Makefile

73 lines
2.0 KiB
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.42 2009/08/10 17:31:07 kili Exp $
NOT_FOR_ARCHS= hppa
1998-02-12 21:09:02 -05:00
COMMENT= ML language based on complete class-based objective system
2004-11-14 07:47:50 -05:00
BASENAME= ocaml-3.11
DISTNAME= ${BASENAME}.1
PKGNAME= ${DISTNAME}p0
1998-02-12 21:09:02 -05:00
CATEGORIES= lang
MASTER_SITES= http://caml.inria.fr/pub/distrib/${BASENAME}/
DOCFILES= ${BASENAME}-refman.html.tar.gz
DISTFILES= ${DISTNAME}.tar.gz ${DOCFILES}
1998-02-12 21:09:02 -05:00
2001-08-21 20:32:00 -04:00
HOMEPAGE= http://www.ocaml.org/
MAINTAINER= Anil Madhavapeddy <avsm@openbsd.org>
1998-02-12 21:09:02 -05:00
2003-12-31 12:05:28 -05:00
# QPL/LGPL
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WANTLIB= X11 c curses m pthread pthread-stubs xcb
MODULES+= lang/tcl x11/tk
VMEM_WARNING= Yes
CONFIGURE_STYLE= simple
CONFIGURE_ARGS+=-tkdefs '-I${MODTCL_INCDIR} -I${MODTK_INCDIR}'
CONFIGURE_ARGS+=-tklibs -L${LOCALBASE}/lib
CONFIGURE_ARGS+=-prefix ${PREFIX}
CONFIGURE_ARGS+=-cc '${CC} ${CFLAGS}'
CONFIGURE_ARGS+=-x11include ${X11BASE}/include -x11lib ${X11BASE}/lib
# ocaml's configure script is too smart for its own good
FAKE_FLAGS= PREFIX=${WRKINST}${PREFIX}
2003-12-31 12:05:28 -05:00
USE_GMAKE= Yes
2006-11-13 06:20:24 -05:00
USE_X11= Yes
BUILD_DEPENDS+= ${MODTK_BUILD_DEPENDS}
RUN_DEPENDS+= ${MODTK_RUN_DEPENDS}
LIB_DEPENDS+= ${MODTK_LIB_DEPENDS}
.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "sparc" || \
${MACHINE_ARCH} == "alpha" || ${MACHINE_ARCH} == "amd64" || \
${MACHINE_ARCH} == "powerpc"
ALL_TARGET= world bootstrap opt opt.opt
PKG_ARGS+=-Dnative=1
.else
ALL_TARGET= world bootstrap
PKG_ARGS+=-Dnative=0
.endif
NO_REGRESS= Yes
1998-02-12 21:09:02 -05:00
post-extract:
@cp ${WRKSRC}/asmrun/power-elf.S ${WRKSRC}/asmrun/power-bsd.S
1998-02-12 21:09:02 -05:00
post-install:
@${INSTALL_DATA_DIR} ${PREFIX}/share/doc/ocaml/html/libref
2003-12-31 12:05:28 -05:00
@${INSTALL_DATA} ${WRKDIR}/htmlman/*.{html,gif} \
${PREFIX}/share/doc/ocaml/html
@${INSTALL_DATA} ${WRKDIR}/htmlman/libref/* \
${PREFIX}/share/doc/ocaml/html/libref
1998-02-12 21:09:02 -05:00
@strip ${PREFIX}/bin/ocamlrun ${PREFIX}/bin/ocamlyacc
@${INSTALL_DATA} ${WRKSRC}/LICENSE ${PREFIX}/share/doc/ocaml
1998-02-12 21:09:02 -05:00
# PFRAG.native was generated from PLIST with:
# egrep '(ocamlopt|\.cmx|\.cmxa|\.cmxs|\.opt|opt\.1|opt.cmi|\.native|\.o)$'
1998-02-12 21:09:02 -05:00
.include <bsd.port.mk>