pkgsrc/devel/ocaml-findlib/Makefile

50 lines
1.5 KiB
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.8 2011/11/27 19:13:50 marino Exp $
#
Update OCaml findlib to 1.2.6 Changes: - 1.2.5: Fix: Again CR deletion... Turns out some OS do not understand '\r' but only '\015' (thanks to Isaiah Weiner) Support for Win64 (untested; thanks to David Allsopp) ocamlfind no longer emits auto-generated -ccopt options. These tend to accumulate, and it is possible that for large projects the maximum command line length is exceeded. Current versions of the O'Caml compilers do not need these extra -ccopt anyway, so this code is completely dropped. - 1.2.4: Fix: Bigarray needs unix (Thanks to Markus Mottl) Fix: In the version of camlp4 provided by O'Caml 3.11 various libraries do not contain dynlink anymore. Because of this, dynlink becomes a prerequisite of camlp4. (Thanks to Martin Jambon) Attempt: Fixing the space issue for paths (Win32). It is unclear whether it is solved. (Thanks to Christophe Troestler) - 1.2.3: Solving the CR deletion differently, to make OS X happy. - 1.2.2: Fix: Problem with CR character (Cygwin) (Thanks to David Allsopp) Fix: Case-insensitive filesystems (partially solved) (Thanks to David Allsopp) Fix: File name with backslashes at the end (Win32; thanks to Dmitry Grebeniuk) - 1.2.1: Fix: Camlp4 rules now activate the stream parser extension - 1.2: Fix in build scripts: Prepending $(prefix) when installing safe_camlp4 (thanks to Daniel Janus) Non-existing -I directories are ignored (thanks to Nicolas Pouillard) A script to create a MacOS X package (thanks to Pietro Abate) Better support for Windows (with help from Robert Roessler and David Allsopp) Support for camlp4 on O'Caml 3.10 Fix: "ocamlfind install" with "-patch" option writes now correct META file for the case that subpackages occur Adding environment variable OCAMLFIND_IGNORE_DUPS_IN to reduce the number of warnings ocamlfind emits
2010-08-21 17:27:31 +02:00
DISTNAME= findlib-1.2.6
PKGNAME= ocaml-${DISTNAME}
CATEGORIES= devel
2009-05-28 23:22:35 +02:00
MASTER_SITES= http://download.camlcity.org/download/
MAINTAINER= pkgsrc-users@NetBSD.org
2009-05-28 23:22:35 +02:00
HOMEPAGE= http://www.camlcity.org/
COMMENT= Library finder for OCaml
PKG_DESTDIR_SUPPORT= user-destdir
2007-12-21 17:48:30 +01:00
USE_TOOLS+= gmake m4
USE_PKGLOCALEDIR= yes
HAS_CONFIGURE= yes
MAKE_JOBS_SAFE= no
CONFIGURE_ARGS+= -bindir ${PREFIX}/bin
CONFIGURE_ARGS+= -mandir ${PREFIX}/${PKGMANDIR}
CONFIGURE_ARGS+= -config ${PKG_SYSCONFDIR}/ocamlfind.conf
EGDIR= ${PREFIX}/share/examples/ocaml-findlib
Update OCaml findlib to 1.2.6 Changes: - 1.2.5: Fix: Again CR deletion... Turns out some OS do not understand '\r' but only '\015' (thanks to Isaiah Weiner) Support for Win64 (untested; thanks to David Allsopp) ocamlfind no longer emits auto-generated -ccopt options. These tend to accumulate, and it is possible that for large projects the maximum command line length is exceeded. Current versions of the O'Caml compilers do not need these extra -ccopt anyway, so this code is completely dropped. - 1.2.4: Fix: Bigarray needs unix (Thanks to Markus Mottl) Fix: In the version of camlp4 provided by O'Caml 3.11 various libraries do not contain dynlink anymore. Because of this, dynlink becomes a prerequisite of camlp4. (Thanks to Martin Jambon) Attempt: Fixing the space issue for paths (Win32). It is unclear whether it is solved. (Thanks to Christophe Troestler) - 1.2.3: Solving the CR deletion differently, to make OS X happy. - 1.2.2: Fix: Problem with CR character (Cygwin) (Thanks to David Allsopp) Fix: Case-insensitive filesystems (partially solved) (Thanks to David Allsopp) Fix: File name with backslashes at the end (Win32; thanks to Dmitry Grebeniuk) - 1.2.1: Fix: Camlp4 rules now activate the stream parser extension - 1.2: Fix in build scripts: Prepending $(prefix) when installing safe_camlp4 (thanks to Daniel Janus) Non-existing -I directories are ignored (thanks to Nicolas Pouillard) A script to create a MacOS X package (thanks to Pietro Abate) Better support for Windows (with help from Robert Roessler and David Allsopp) Support for camlp4 on O'Caml 3.10 Fix: "ocamlfind install" with "-patch" option writes now correct META file for the case that subpackages occur Adding environment variable OCAMLFIND_IGNORE_DUPS_IN to reduce the number of warnings ocamlfind emits
2010-08-21 17:27:31 +02:00
INSTALL_MAKE_FLAGS+= OCAMLFIND_CONF=${EGDIR}/ocamlfind.conf
INSTALLATION_DIRS= libexec bin
CONF_FILES= ${EGDIR}/ocamlfind.conf ${PKG_SYSCONFDIR}/ocamlfind.conf
USE_TOOLS+= fgrep:run sh:run
SUBST_CLASSES+= ofr
SUBST_STAGE.ofr= pre-configure
SUBST_FILES.ofr= ocaml-findlib-register.sh
SUBST_SED.ofr= -e 's,@SH@,'${SH:Q}','
SUBST_SED.ofr+= -e 's,@PREFIX@,${PREFIX},'
SUBST_SED.ofr+= -e 's,@FGREP@,'${FGREP:Q}','
SUBST_CLASSES+= pathes
SUBST_STAGE.pathes= post-install
SUBST_FILES.pathes= ${DESTDIR}${PREFIX}/lib/ocaml/site-lib/findlib/Makefile.config
SUBST_SED.pathes= -e 's,^\(OCAML_CORE_BIN=\).*,\1'${PREFIX:Q}/bin','
post-extract:
${CP} ${FILESDIR}/ocaml-findlib-register.sh ${WRKSRC}
post-install:
${INSTALL_SCRIPT} ${WRKSRC}/ocaml-findlib-register.sh ${DESTDIR}${PREFIX}/libexec/ocaml-findlib-register
.include "../../lang/ocaml/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"