openbsd-ports/lang/ocaml/Makefile

64 lines
1.8 KiB
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.28 2004/06/22 18:14:44 avsm Exp $
COMMENT= "ML language based on complete class-based objective system"
1998-02-12 21:09:02 -05:00
2003-12-31 12:05:28 -05:00
DISTNAME= ocaml-3.07
PKGNAME= ${DISTNAME}pl2
1998-02-12 21:09:02 -05:00
CATEGORIES= lang
MASTER_SITES= http://caml.inria.fr/distrib/${DISTNAME}/
2003-12-31 12:05:28 -05:00
DISTFILES= ${PKGNAME}.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= Nikolay Sturm <sturm@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
CONFIGURE_STYLE= simple
CONFIGURE_ARGS+=-tkdefs '-I${LOCALBASE}/include/tk8.4 -I${LOCALBASE}/include/tcl8.4'
CONFIGURE_ARGS+=-tklibs -L${LOCALBASE}/lib
CONFIGURE_ARGS+=-prefix ${PREFIX}
CONFIGURE_ARGS+=-cc '${CC} ${CFLAGS}'
CONFIGURE_ARGS+=-x11include ${X11BASE}/include -x11lib ${X11BASE}/lib
LIB_DEPENDS= tcl84::lang/tcl/8.4 \
tk84::x11/tk/8.4
# 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
.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "sparc" || \
${MACHINE_ARCH} == "alpha" || ${MACHINE_ARCH} == "amd64" || \
${MACHINE_ARCH} == "powerpc"
ALL_TARGET= world bootstrap opt opt.opt
SED_PLIST= |sed -e '/^%%native%%$$/r${PKGDIR}/PFRAG.native' -e '//d'
.else
ALL_TARGET= world bootstrap
SED_PLIST= |sed -e '/^%%native%%$$/d'
.endif
NO_REGRESS= Yes
1998-02-12 21:09:02 -05:00
DOCFILES= ${DISTNAME}-refman.html.tar.gz
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
.include <bsd.port.mk>