Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
47 lines (37 sloc) 1.49 KB
# $NetBSD: Makefile,v 1.11 2012/10/02 20:11:46 asau Exp $
#
DISTNAME= ocamlduce-3.12.1.0
CATEGORIES= lang
MASTER_SITES= http://forge.ocamlcore.org/frs/download.php/644/
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
# we need the OCaml sources too
DISTFILES+= ocaml-3.12.1.tar.bz2
SITES.ocaml-3.12.1.tar.bz2= http://caml.inria.fr/pub/distrib/ocaml-3.12/
MAINTAINER= jaapb@kerguelen.org
HOMEPAGE= http://ocamlduce.forge.ocamlcore.org/
COMMENT= Library to integrate XML features into OCaml
DEPENDS+= ocaml-findlib-[0-9]*:../../devel/ocaml-findlib
USE_TOOLS+= gmake patch
BUILD_TARGET= all
INSTALL_TARGET= installbyte
MAKE_JOBS_SAFE= no
MAKE_ENV+= BINDIR=${PREFIX}/bin LIBDIR=${PREFIX}/lib/ocaml/site-lib
INSTALL_MAKE_FLAGS+= BINDIR=${DESTDIR}${PREFIX}/bin \
LIBDIR=${DESTDIR}${PREFIX}/lib/ocaml/site-lib
PLIST_SRC= PLIST
.if (${MACHINE_ARCH} == "i386") || (${MACHINE_ARCH} == "powerpc") || \
(${MACHINE_ARCH} == "sparc") || (${MACHINE_ARCH} == "x86_64")
BUILD_TARGET= world.opt
INSTALL_TARGET+= installopt
PLIST_SRC+= PLIST.opt
.else
BUILD_TARGET= world
.endif
BUILDLINK_API_DEPENDS.ocaml+= ocaml>=3.12.1
pre-configure:
cd ${WRKSRC} && DISTDIR=${DISTDIR} make prepare
cd ${WRKSRC}/ocaml-3.12.1 && ${PATCH} < ${FILESDIR}/ocaml-configure.diff
cd ${WRKSRC}/ocaml-3.12.1 && ./configure -prefix ${PREFIX} -libs ${LDFLAGS:Q} -with-pthread -host ${MACHINE_GNU_PLATFORM:Q} -mandir ${PREFIX}/${PKGMANDIR} -no-tk
.include "../../lang/ocaml/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
Jump to Line
Something went wrong with that request. Please try again.