Commit graph

298 commits

Author SHA1 Message Date
minskim
db8aa9bcb3 Fix PLIST on Darwin-11.*-x86_64. 2011-07-28 07:50:05 +00:00
abs
28eb2c35cf Fix native dynamic detection on amd64 - thanks riastradh@ for pointer 2011-07-26 21:00:24 +00:00
riastradh
c97a0751ef Enable native dynamic loading support on NetBSD/{i386,amd64}.
Bump pkgrevision.

While I'm here: add a comment to patch-at explaining what it does.

Tested by

$ make install
$ cd work/ocaml-3.12.0/testsuite && gmake one DIR=tests/lib-dynlink-native

(Not in a build-env because that uses the wrappers, which don't let the
test suite see the installed OCaml files.)

This is only a workaround on NetBSD/{i386,amd64} for the problems of
OCaml PR#5049 <http://caml.inria.fr/mantis/view.php?id=5049>.  (E.g.,
this workaround makes Coccinelle build on those platforms -- but it
still won't build on platforms with native compilation but no native
dynamic loading.  Need to hack everything that uses dynlink to have
four compile-time cases -- {yes,no} {byte,nat}dynlink.)
2011-07-20 14:10:09 +00:00
adam
dac1bf9a95 Pass CFLAGS and LDFLAGS to the compiler (fixes problems e.g. on Mac OS X); pkglint clean-up 2011-03-29 13:45:01 +00:00
is
8a6b18dc6c - Enable native compilation for arm.
- to do this, and make the result runnable on pre-thumb arm, change
  upstreams assembler snippets and stubs to use "mov pc,reg" instead
  of the return/call-to-thumb-friendly "bx reg", which is not available
  in non-thumb-enabled arm CPUs. Whether this is the way to go, or a
  seperate "armt" architecture for ocaml is needed, needs to be discussed
  with upstream.

Resulting compiler, when running its selftest suite, has 6 errors less than
the same on i386. Unison compiled natively with this passes its self-test.
2010-12-19 08:27:17 +00:00
is
e422238213 Make this package work again on architectures where we don't compile
natively (that is, only to byte-code).

This consists of two parts:

a) a patch to ocamldoc/Makefile to make it create the man pages using
the interpreted ocamldoc - this exists for both types of architectures,
so is safe. (This will be sent up-stream).

b) move a common shared library file to the common PLIST, and a lot of
files (natively compiled versions of the ML modules and natively compiled
versions of a few binaries) to PLIST.opt.

This has been build-tested on i386 (cross-compiled from amd64) and on
arm. unison builds and works.

"make test" shows the same amount of passed and failed tests (mostly
non-found libraries) as before; but this needs more investigation.

An additional issue to solve (with upstream) is that there's no easy way
to run the part of the test suite that would work on byte-code-only
architectures.
2010-11-28 08:41:33 +00:00
tonio
4aad313922 Add PLIST support for natdynlink
This unbreaks make package for darwin and linux
2010-10-28 20:46:07 +00:00
wiz
b58aaf5711 Unlimit stacksize, needed at least on my 5.99.38/amd64. 2010-08-21 15:02:14 +00:00
asau
204621bf62 Update to O'Caml 3.12.0, add test target.
Some of the highlights in release 3.12 are:

  * Polymorphic recursion is supported, using explicit type
    declarations on the recursively-defined identifiers.
  * First-class modules: module expressions can be embedded as
    values of the core language, then manipulated like any other
    first-class value, then projected back to the module level.
  * New operator to modify a signature a posteriori: S with type
    t := tau denotes signature S where the t type component is
    removed and substituted by the type tau elsewhere.
  * New notations for record expressions and record patterns:
    { lbl } as shorthand for { lbl = lbl }, and { ...; _ } marks
    record patterns where some labels were intentionally omitted.
  * Local open let open ... in ... now supported by popular demand.
  * Type variables can be bound as type parameters to functions;
    such types are treated like abstract types within the
    function body, and like type variables (possibly generalized)
    outside.
  * The module type of construct enables to recover the module
    type of a given module.
  * Explicit method override using the method! keyword, with
    associated warnings and errors.
2010-08-19 08:06:53 +00:00
wiz
e51b4bef1e Remove patch that was removed from distinfo during update to 3.11.2. 2010-04-22 07:01:13 +00:00
zafer
68b35a89f3 update ocaml to 3.11.2
Changelog:
Bug fixes:
- PR#4151: better documentation for min and max w.r.t. NaN
- PR#4421: ocamlbuild uses wrong compiler for C files
- PR#4710, PR#4720: ocamlbuild does not use properly configuration information
- PR#4750: under some Windows installations, high start-up times for Unix lib
- PR#4777: problem with scanf and CRLF
- PR#4783: ocamlmklib problem under Windows
- PR#4810: BSD problem with socket addresses, e.g. in Unix.getnameinfo
- PR#4813: issue with parsing of float literals by the GNU assembler
- PR#4816: problem with modules and private types
- PR#4818: missed opportunity for type-based optimization of bigarray accesses
- PR#4821: check for duplicate method names in classes
- PR#4823: build problem on Mac OS X
- PR#4836: spurious errors raised by Unix.single_write under Windows
- PR#4841, PR#4860, PR#4930: problem with ocamlopt -output-obj under Mac OS X
- PR#4847: C compiler error with ocamlc -output-obj under Win64
- PR#4856: ocamlbuild uses ocamlrun to execute a native plugin
- PR#4867, PR#4760: ocamlopt -shared fails on Mac OS X 64bit
- PR#4873: ocamlbuild ignores "thread" tag when building a custom toplevel
- PR#4890: ocamlbuild tries to use native plugin on bytecode-only arch
- PR#4896: ocamlbuild should always pass -I to tools for external libraries
- PR#4900: small bug triggering automatic compaction even if max_overhead = 1M
- PR#4902: bug in %.0F printf format
- PR#4910: problem with format concatenation
- PR#4922: ocamlbuild recompiles too many files
- PR#4923: missing \xff for scanf %S
- PR#4933: functors not handling private types correctly
- PR#4940: problem with end-of-line in DOS text mode, tentative fix
- PR#4953: problem compiling bytecode interpreter on ARM in Thumb mode.
- PR#4955: compiler crash when typing recursive type expression with constraint
- Module Printf: the simple conversion %F (without width indication) was not
           treated properly.
- Makefile: problem with cygwin, flexdll, and symbolic links
- Various build problems with ocamlbuild under Windows with msvc

Feature wishes:
- PR#9: (tentative implementation) make ocamldebug use #linenum annotations
- PR#123, PR#4477: custom exception printers
- PR#3456: Obj.double_field and Obj.set_double_field functions
- PR#4003: destination directory can be given to Filename.[open_]temp_file
- PR#4647: Buffer.blit function
- PR#4685: access to Filename.dir_sep
- PR#4703: support for debugging embedded applications
- PR#4723: "clear_rules" function to empty the set of ocamlbuild rules
- PR#4921: configure option to help cross-compilers
2010-04-21 23:08:49 +00:00
minskim
dfe1d46da1 ocaml's stub libraries are also built on 64-bit Darwin 10. 2009-11-19 03:18:58 +00:00
minskim
053d08687e Let ocaml's configure recognize 64-bit Darwin 10. 2009-11-19 03:05:57 +00:00
tonio
a0676d2f2b Fix PR pkg/42190
Use #ifdef SIN6_LEN to know whether we have a 4.3 bsd or 4.4 bsd sockaddr
structure.
2009-10-18 12:47:53 +00:00
dmcmahill
5164c25eb5 gcc44 fix 2009-10-08 01:24:51 +00:00
tonio
f0243bd501 Fix build with db4 [PR pkg/42061] 2009-09-22 20:19:30 +00:00
sno
2871950077 fix choosing pkgsrc provided compiler 2009-09-19 22:37:03 +00:00
tonio
6a6b0260b9 Remove useless patches, and fix PLIST issues on freebsd x86_64 2009-09-12 18:44:40 +00:00
tonio
39081e1f1a Fix x11/labltk for ocaml 3.11.1 [PR pkg/42017] 2009-09-08 18:35:46 +00:00
tonio
23ea6c6ec0 Update lang/ocaml to 3.11.1 [PR pkg/41695]
(Changes that can break existing programs are marked with a "*"  )
Language features:
- Addition of lazy patterns: "lazy <pat>" matches suspensions whose values,
  after forcing, match the pattern <pat>.
- Introduction of private abbreviation types "type t = private <type-expr>",
  for abstracting the actual manifest type in type abbreviations.
- Subtyping is now allowed between a private abbreviation and its definition,
  and between a polymorphic method and its monomorphic instance.

Compilers:
- The file name for a compilation unit should correspond to a valid
  identifier (Otherwise dynamic linking and other things can fail, and
  a warning is emitted.)
* Revised -output-obj: the output name must now be provided; its
  extension must be one of .o/.obj, .so/.dll, or .c for the
  bytecode compiler. The compilers can now produce a shared library
  (with all the needed -ccopts/-ccobjs options) directly.
- -dtypes renamed to -annot, records (in .annot files) which function calls
  are tail calls.
- All compiler error messages now include a file name and location, for
  better interaction with Emacs' compilation mode.
- Optimized compilation of "lazy e" when the argument "e" is
  already evaluated.
- Optimized compilation of equality tests with a variant constant constructor.
- The -dllib options recorded in libraries are no longer ignored when
  -use_runtime or -use_prims is used (unless -no_auto_link is
  explicitly used).
- Check that at most one of -pack, -a, -shared, -c, -output-obj is
  given on the command line.
- Optimized compilation of private types as regular manifest types
  (e.g. abbreviation to float, float array or record types with only
   float fields).

Native-code compiler:
- New port: Mac OS X / Intel in 64-bit mode (configure with -cc "gcc -m64").
- A new option "-shared" to produce a plugin that can be dynamically
  loaded with the native version of Dynlink.
- A new option "-nodynlink" to enable optimizations valid only for code
  that is never dynlinked (no-op except for AMD64).
- More aggressive unboxing of floats and boxed integers.
- Can select which assembler and asm options to use at configuration time.

Run-time system:
- New implementation of the page table describing the heap (two-level
  array in 32 bits, sparse hashtable in 64 bits), fixes issues with address
  space randomization on 64-bit OS (PR#4448).
- New "generational" API for registering global memory roots with the GC,
  enables faster scanning of global roots.
  (The functions are caml_*_generational_global_root in <caml/memory.h>.)
- New function "caml_raise_with_args" to raise an exception with several
  arguments from C.
- Changes in implementation of dynamic linking of C code:
  under Win32, use Alain Frisch's flexdll implementation of the dlopen
  API; under MacOSX, use dlopen API instead of MacOSX bundle API.
- Programs may now choose a first-fit allocation policy instead of
  the default next-fit.  First-fit reduces fragmentation but is
  slightly slower in some cases.

Standard library:
- Parsing library: new function "set_trace" to programmatically turn
  on or off the printing of a trace during parsing.
- Printexc library: new functions "print_backtrace" and "get_backtrace"
  to obtain a stack backtrace of the most recently raised exception.
  New function "record_backtrace" to turn the exception backtrace mechanism
  on or off from within a program.
- Scanf library: fine-tuning of meta format implementation;
  fscanf behaviour revisited: only one input buffer is allocated for any
  given input channel;
  the %n conversion does not count a lookahead character as read.

Other libraries:
- Dynlink: on some platforms, the Dynlink library is now available in
  native code. The boolean Dynlink.is_native allows the program to
  know whether it has been compiled in bytecode or in native code.
- Bigarrays: added "unsafe_get" and "unsafe_set"
  (non-bound-checking versions of "get" and "set").
- Bigarrays: removed limitation "array dimension < 2^31".
- Labltk: added support for TK 8.5.
- Num: added conversions between big_int and int32, nativeint, int64.
  More efficient implementation of Num.quo_num and Num.mod_num.
- Threads: improved efficiency of mutex and condition variable operations;
  improved interaction with Unix.fork (PR#4577).
- Unix: added getsockopt_error returning type Unix.error.
  Added support for TCP_NODELAY and IPV6_ONLY socket options.
- Win32 Unix: "select" now supports all kinds of file descriptors.
  Improved emulation of "lockf" (PR#4609).

Tools:
- ocamldebug now supported under Windows (MSVC and Mingw ports),
  but without the replay feature.  (Contributed by Dmitry Bely
  and Sylvain Le Gall at OCamlCore with support from Lexifi.)
- ocamldoc: new option -no-module-constraint-filter to include functions
  hidden by signature constraint in documentation.
- ocamlmklib and ocamldep.opt now available under Windows ports.
- ocamlmklib no longer supports the -implib option.
- ocamlnat: an experimental native toplevel (not built by default).

Camlp4:
* programs linked with camlp4lib.cma now also need dynlink.cma.
2009-09-07 21:48:13 +00:00
joerg
76039544d1 Remove @dirrm related logic. 2009-06-14 22:57:58 +00:00
joerg
edbc2fac64 Replace @exec/@unexec with @pkgdir or drop it. 2009-06-14 20:34:12 +00:00
joerg
62d1ba2bac Remove @dirrm entries from PLISTs 2009-06-14 18:03:28 +00:00
rillig
79a38fed91 cleanup: replaced _PKG_SILENT and _PKG_DEBUG with RUN. 2009-05-16 07:22:01 +00:00
joerg
2d1ba244e9 Simply and speed up buildlink3.mk files and processing.
This changes the buildlink3.mk files to use an include guard for the
recursive include. The use of BUILDLINK_DEPTH, BUILDLINK_DEPENDS,
BUILDLINK_PACKAGES and BUILDLINK_ORDER is handled by a single new
variable BUILDLINK_TREE. Each buildlink3.mk file adds a pair of
enter/exit marker, which can be used to reconstruct the tree and
to determine first level includes. Avoiding := for large variables
(BUILDLINK_ORDER) speeds up parse time as += has linear complexity.
The include guard reduces system time by avoiding reading files over and
over again. For complex packages this reduces both %user and %sys time to
half of the former time.
2009-03-20 19:23:50 +00:00
he
ca97e06d2e Add a patch so that this package builds for our powerpc ports
as well.  In this case, we fall into the SYS_elf branch together
with Linux, but we need a few other specifics to access registers
in the sigcontext.
2009-01-22 01:00:33 +00:00
joerg
d8bdf1b388 Fix PLIST of ocaml-graphics for architectures not using the optimiser.
Add amd64 to that list. Bump revision of ocaml-graphics. Make ocaml
itself and ocaml-graphics destdir safe.
2008-12-22 20:04:07 +00:00
wiz
1f79816e33 Update to 3.10.2:
Objective Caml 3.10.2:
----------------------

Bug fixes:
- PR#1217 (partial) Typo in ocamldep man page
- PR#3952 (partial) ocamlopt: allocation problems on ARM
- PR#4339 (continued) ocamlopt: problems on HPPA
- PR#4455 str.mli not installed under Windows
- PR#4473 crash when accessing float array with polymorphic method
- PR#4480 runtime would not compile without gcc extensions
- PR#4481 wrong typing of exceptions with object arguments
- PR#4490 typo in error message
- Random crash on 32-bit when major_heap_increment >= 2^22
- Big performance bug in Weak hashtables
- Small bugs in the make-package-macosx script
- Bug in typing of polymorphic variants (reported on caml-list)
2008-04-25 07:13:39 +00:00
dbj
dc747b8033 include opt and stubs on intel darwin leopard 2008-02-11 00:56:42 +00:00
rillig
a2a1bacc66 Added x86_64-*-solaris to the list of supported platforms. This fixes
PR 37890.
2008-01-29 01:05:13 +00:00
adam
7850bf281d Changes 3.10.1:
* Bug fixes
* New features:
  - made configure script work on PlayStation 3
  - ARM port: brought up-to-date for Debian 4.0 (Etch)
  - many other small changes and bugfixes in camlp4, ocamlbuild, labltk,
    emacs files
2008-01-23 20:42:25 +00:00
joerg
e1b6509e3c Include stub libraries on Linux as well. From PR 37584. 2007-12-21 17:02:53 +00:00
rillig
f93798ba6b Added MAKE_JOBS_SAFE as suggested in PR 37234. 2007-11-03 22:38:12 +00:00
adam
320d962801 Fix for PR#37051. Please test. 2007-10-04 05:19:16 +00:00
dmcmahill
6461be475e Set SHELL explicitly on the install make invocation when on solaris.
By using /bin/ksh (${SH}), we get the desired value of $CWD in on of the
scripts called by the programs install procedure.

Fixes installation under solaris, other platforms unaffected.
2007-09-26 03:10:54 +00:00
adam
84ffc00e61 Changes 3.10.0:
- New language features
- New tools
- Faster type-checking of functor applications.
- Referencing an interface compiled with -rectypes from a module
    not compiled with -rectypes is now an error.
- Revised the "fragile matching" warning.
- Print a stack backtrace on an uncaught exception.
- Stack overflow detection on MS Windows 32 bits.
- Stack overflow detection on MacOS X PPC and Intel.
- Intel/AMD 64 bits: generate position-independent code by default.
- Fixed bug involving -for-pack and missing .cmx files.
- Fixed bug causing duplication of literals.
- C/Caml interface functions take "char const *" arguments
  instead of "char *" when appropriate.
- Faster string comparisons (fast case if strings are ==).
- Other
2007-09-14 15:34:09 +00:00
dmcmahill
b6dae05cef In the configure script match sparc-*-solaris2 instead of sparc-*-solaris2.
since the former is what pkgsrc sets MACHINE_GNU_PLATFORM to.  This fixes
builds on the aformentioned systems.
2007-01-06 00:11:43 +00:00
joerg
5e43280b23 Replace mk/bsd.prefs.mk includes with bsd.fast.prefs.mk includes.
The redundant parsing of bsd.prefs.mk is mostly avoided now and
parse time e.g. for x11/kdebase3 gets reduced by up to 10%.
2006-12-12 21:52:34 +00:00
minskim
566815697e Stub libraries are built on Darwin/powerpc only, not on Darwin/i386. 2006-12-01 04:12:20 +00:00
rillig
3691c228a8 Fixed PKGMANDIR. 2006-10-22 05:49:09 +00:00
adam
4617c32db7 Changes 3.09.3:
Bug fixes:
- ocamldoc: -using modtype constraint to filter module elements displayed in doc
- ocamldoc: error in merging of top dependencies of modules
- ocamldoc: -dot-colors has no effect
- ocamdloc: missing crossref in text from intro files
- compilers: segfault with recursive modules
- compilers: infinite loop when compiling objects
- compilers: bad error message when signature mismatch
- compilers: infinite loop with -rectypes
- compilers: contravariance bug in private rows
- compilers: unsafe cast with polymorphic exception
- native compiler: bad assembly code generated for AMD64
- native compiler: stack alignment problems on MacOSX/i386
- stdlib: crash in marshalling
- stdlib: crash when closing a channel twice
- stdlib: memory leak in Sys.readdir
- C interface: better definition of CAMLreturn
- otherlibs/unix: crash in gethostbyname
- tools: subtle problem with unset in makefile
- camlp4: install pa_o_fast.o
- camlp4: install more modules

New features:
- ocamldoc: name resolution in cross-referencing {!name}: if name is not
    found, then it is searched in the parent module/class, and in the parent
    of the parent, and so on until it is found.
- ocamldoc: new option -short-functors to use a short form to display
    functors in html generator
- ocamlprof: added "-version" option
2006-10-03 21:06:25 +00:00
dmcmahill
06fdc5d4b1 fix PLIST for solaris 2006-10-02 21:19:22 +00:00
joerg
610bedcae9 Include stublibs on FreeBSD as well. Bump revision. 2006-08-26 15:33:28 +00:00
jlam
c16221a4db Change the format of BUILDLINK_ORDER to contain depth information as well,
and add a new helper target and script, "show-buildlink3", that outputs
a listing of the buildlink3.mk files included as well as the depth at
which they are included.

For example, "make show-buildlink3" in fonts/Xft2 displays:

	zlib
	fontconfig
	    iconv
	    zlib
	    freetype2
	    expat
	freetype2
	Xrender
	    renderproto
2006-07-08 23:10:35 +00:00
jlam
9430e49307 Track information in a new variable BUILDLINK_ORDER that informs us
of the order in which buildlink3.mk files are (recursively) included
by a package Makefile.
2006-07-08 22:38:58 +00:00
rillig
c6dc5aec0e Fixed pkglint warnings. 2006-05-20 09:10:51 +00:00
joerg
a685ea6200 Add back a patch fragment which got lost during the update.
Bump revision, since the thread support was not built on DragonFly.
2006-04-30 17:03:19 +00:00
hiramatsu
0ba7d34a9d Update lang/ocaml to 3.09.2.
Changes from 3.09.1:
----
Bug fixes:
- Makefile: problem with "make world.opt"
- compilers: problem compiling several modules with one command line
- compilers,ocamldoc: error message that Emacs cannot parse
- compilers: crash when printing type error
- compilers: -dtypes wrong for monomorphic type variables
- compilers: wrong warning on optional arguments
- compilers: crash when wrong use of type constructor in let rec
- compilers: better wording of "statement never returns" warning
- runtime: inefficiency of signal handling
- runtime: crashes with I/O in multithread programs
- camlp4: empty file name in error messages
- camlp4: stack overflow
- otherlibs/labltk: ocamlbrowser ignores its command line options
- otherlibs/unix: Unix.times wrong under Mac OS X
- otherlibs/unix: wrong doc for execvp and execvpe
- otherlibs/win32unix: random crash in Unix.stat
- stdlib: update_mod not found under Windows
- stdlib: Filename.dirname/basename wrong on Win32
- stdlib: incomplete documentation of Pervasives.abs
- stdlib: Printf bugs
- tools/checkstack.c missing include
- yacc: crash when given argument "-"

New features:
- ported to MacOS X on Intel
- configure: added support for GNU Hurd
2006-04-25 04:58:32 +00:00
reed
5abef9be14 Over 1200 files touched but no revisions bumped :)
RECOMMENDED is removed. It becomes ABI_DEPENDS.

BUILDLINK_RECOMMENDED.foo becomes BUILDLINK_ABI_DEPENDS.foo.

BUILDLINK_DEPENDS.foo becomes BUILDLINK_API_DEPENDS.foo.

BUILDLINK_DEPENDS does not change.

IGNORE_RECOMMENDED (which defaulted to "no") becomes USE_ABI_DEPENDS
which defaults to "yes".

Added to obsolete.mk checking for IGNORE_RECOMMENDED.

I did not manually go through and fix any aesthetic tab/spacing issues.

I have tested the above patch on DragonFly building and packaging
subversion and pkglint and their many dependencies.

I have also tested USE_ABI_DEPENDS=no on my NetBSD workstation (where I
have used IGNORE_RECOMMENDED for a long time). I have been an active user
of IGNORE_RECOMMENDED since it was available.

As suggested, I removed the documentation sentences suggesting bumping for
"security" issues.

As discussed on tech-pkg.

I will commit to revbump, pkglint, pkg_install, createbuildlink separately.

Note that if you use wip, it will fail!  I will commit to pkgsrc-wip
later (within day).
2006-04-06 06:21:32 +00:00
jlam
7a5f8df6e2 Reorder PLIST components so that directories are removed in the correct
order.  Remove "@unexec rmdir" lines made redundant by the reordering.
Also, use a more succinct way to match ${OPSYS} + ${MACHINE_ARCH} by
just checking ${MACHINE_PLATFORM}.
2006-04-04 14:33:27 +00:00
jlam
12b8b2a420 Ensure that the main PLIST component file is part of PLIST_SRC for
platforms other than i386, powerpc, and sparc.  Problem noted and fix
suggested by Olaf Seibert on pkgsrc-users@.  Bump PKGREVISION for PLIST
changes.
2006-04-04 14:22:48 +00:00
joerg
5911def816 Recursive revision bump / recommended bump for gettext ABI change. 2006-02-05 23:08:03 +00:00
rillig
1ba91f86d9 Added support for dynamic loading on NetBSD. Bumped PKGREVISION.
Fixed almost all pkglint -Wall warnings.
2006-02-02 20:47:26 +00:00
tonio
157eae4b8e Do not use the wrapper for ocaml (the wrapper is incorrect then, it tries to pass -cclib as argument, but this is not an argument for ocaml)
Instead, create a symlink for ocaml
(this was causing problems in coq configure, which runs ocaml to detect its version)
2006-01-27 19:03:16 +00:00
adam
50f21fdec0 Changes 3.09.1:
* Bug fixes
* New features:
- otherlibs/labltk: browser uses menu bars instead of menu buttons


Changes 3.09.0:

Language features:
- Introduction of private row types, for abstracting the row in object
  and variant types.

Type checking:
- Polymorphic variants with at most one constructor [< `A of t] are no
  longer systematically promoted to the exact type [`A of t]. This was
  more confusing than useful, and created problems with private row
  types.

Native-code compiler (ocamlopt):
* Revised implementation of the -pack option (packing of several compilation
  units into one).  The .cmx files that are to be packed with
  "ocamlopt -pack -o P.cmx" must be compiled with "ocamlopt -for-pack P".
  In exchange for this additional constraint, ocamlopt -pack is now
  available on all platforms (no need for binutils).
* Fixed wrong evaluation order for arguments to certain inlined functions.

* Other (see 'Changes')
2006-01-16 09:41:48 +00:00
joerg
eaa963de93 DragonFly needs the stublib PLIST fragment as well. Bump revision.
Fix another place where a ocaml script is installed with
BSD_INSTALL_PROGRAM, which doesn't work on DragonFly, since strip
bails out.
2005-12-22 14:37:17 +00:00
rillig
b71a1d488b Fixed pkglint warnings. The warnings are mostly quoting issues, for
example MAKE_ENV+=FOO=${BAR} is changed to MAKE_ENV+=FOO=${BAR:Q}. Some
other changes are outlined in

    http://mail-index.netbsd.org/tech-pkg/2005/12/02/0034.html
2005-12-05 20:49:47 +00:00
joerg
3a640b1f0c - add DragonFly cases for configure
- assume !WIN32 ~= ANSI C for the purpose of errno.h
- ocamldoc is not an ELF binary, use BSD_INSTALL_SCRIPT like for ocamlc
2005-11-29 07:02:47 +00:00
tonio
15fbd5e2bd Support for profiling on sparc machine is not available only for netbsd, but
supported on SunOS (the failure of bulk build comes from somewhere else).
2005-10-25 08:13:23 +00:00
tonio
d26375efd9 profiling support is not available for sparc, so do not include PLIST.prof on
sparc (showed by bulk build, and documented at
http://caml.inria.fr/pub/docs/manual-ocaml/manual025.html)
2005-10-25 08:03:17 +00:00
tonio
89e6a33da1 profiling support is not available for solaris/i386 2005-10-20 19:32:29 +00:00
tonio
a29fc99cb1 Updating lang/ocaml to 3.08.4 (PR 31128)
This is mainly a bug fix release, fixing code generation under amd64 and some
OO compilation problems, among many others

approved by adam@
2005-09-04 13:57:50 +00:00
jlam
2a6b4461d4 Move some files that were mis-listed in PLIST into PLIST.opt. Those
files are only built and installed if "opt" is passed as a build
target.  This fixes installation on platforms on which the native-code
compiler is not supported, e.g. NetBSD/amd64.
2005-06-20 07:41:49 +00:00
minskim
7fa28f3c06 Let x11/labltk use bdb if native ndbm is not available. 2005-06-14 21:00:41 +00:00
minskim
ab8bad3336 Make ocaml build with pkgsrc bdb. 2005-06-07 00:59:48 +00:00
jlam
585534220c Remove USE_GNU_TOOLS and replace with the correct USE_TOOLS definitions:
USE_GNU_TOOLS	-> USE_TOOLS
	awk		-> gawk
	m4		-> gm4
	make		-> gmake
	sed		-> gsed
	yacc		-> bison
2005-05-22 20:07:36 +00:00
minskim
3945866014 Do not strip commands on Linux, where some of them are not regular binaries. 2005-05-21 22:35:46 +00:00
tv
f816d81489 Remove USE_BUILDLINK3 and NO_BUILDLINK; these are no longer used. 2005-04-11 21:44:48 +00:00
adam
4b64a429f0 New maintainer, new distfile 2005-03-26 16:20:34 +00:00
adam
28f4ad71a7 Changes 3.08.3:
New features:
- support for ocamlopt -pack under Mac OS X (PR#2634, PR#3320)
- ignore unknown warning options for forward and backward compatibility
- runtime: export caml_compare_unordered (PR#3479)
- camlp4: install argl.* files (PR#3439)
- ocamldoc: add -man-section option
- labltk: add the "solid" relief option (PR#3343)
- compiler: ocamlc -i now prints variance annotations

Bug fixes:
- typing: fix unsoundness in type declaration variance inference.
    Type parameters which are constrained must now have an explicit variant
    annotation, otherwise they are invariant. This is not backward
    compatible, so this might break code which either uses subtyping or
    uses the relaxed value restriction (i.e. was not typable before 3.07)
- typing: erroneous partial match warning for polymorphic variants (PR#3424)
- runtime: handle the case of an empty command line (PR#3409, PR#3444)
- stdlib: make Sys.executable_name an absolute path in native code (PR#3303)
- runtime: fix memory leak in finalise.c
- runtime: auto-trigger compaction even if gc is called manually (PR#3392)
- stdlib: fix segfault in Obj.dup on zero-sized values (PR#3406)
- camlp4: correct parsing of the $ identifier (PR#3310, PR#3469)
- windows (MS tools): use link /lib instead of lib (PR#3333)
- windows (MS tools): change default install destination
- autoconf: better checking of SSE2 instructions (PR#3329, PR#3330)
- graphics: make close_graph close the X display as well as the window (PR#3312)
- num: fix big_int_of_string (empty string) (PR#3483)
- num: fix big bug on 64-bit architecture (PR#3299)
- str: better documentation of string_match and string_partial_match (PR#3395)
- unix: fix file descriptor leak in Unix.accept (PR#3423)
- unix: miscellaneous clean-ups
- unix: fix documentation of Unix.tm (PR#3341)
- graphics: fix problem when allocating lots of images under Windows (PR#3433)
- compiler: fix error message with -pack when .cmi is missing (PR#3028)
- cygwin: fix problem with compilation of camlheader (PR#3485)
- stdlib: Filename.basename doesn't return an empty string any more (PR#3451)
- stdlib: better documentation of Open_excl flag (PR#3450)
- ocamlcp: accept -thread option (PR#3511)
- ocamldep: handle spaces in file names (PR#3370)
- compiler: remove spurious warning in pattern-matching on variants (PR#3424)
- windows: better handling of InterpreterPath registry entry (PR#3334, PR#3432)
2005-03-24 11:32:50 +00:00
tv
271889de03 With mk/ fix for PR pkg/29031, the _STRIPFLAG_* hack is no longer needed. 2005-03-18 18:17:07 +00:00
agc
475ab002d7 Add RMD160 digests 2005-02-24 09:03:05 +00:00
adrianp
faf56eaad9 - Fix for patch-ah on Darwin, problem spotted by Antoine Reilles in
private email.
2005-02-06 15:25:35 +00:00
wiz
2cc8b0b8a6 Edit down patch-ah so it does not include an RCS Id. 2005-02-05 00:49:34 +00:00
adrianp
1bb208ba9c fix broken patch from last update - ride the recent update 2005-02-05 00:26:18 +00:00
adrianp
a8d392cc46 fix broken patch from last update - ride the recent update 2005-02-05 00:04:20 +00:00
adrianp
b9d22b116c remove obsolete patches for recent update 2005-02-04 23:25:50 +00:00
adrianp
da24824e10 - Update from 3.06 to 3.08.2
- Lots of changes/bugfixes - see Changes for all the details
2005-02-04 21:35:51 +00:00
tv
20a8ec28f1 Recognize Interix as a valid platform. 2005-01-24 21:18:16 +00:00
tv
f0b07e06e5 Override config.guess and config.sub manually, since GNU_CONFIGURE is not
correct here (and thus automatic overriding doesn't work).
2005-01-19 17:43:59 +00:00
jmmv
ef29c0de9c Looks like the rpath problem is a bit more serious than I initially thought
(it currently affects packages using X11, but I guess it will also cause
problems when using pkgviews, for example).

So, instead of fixing it on a package basis, create some wrappers in the
buildlink directory that parse CFLAGS and LDFLAGS contents and convert them
to ocaml flags (basically, prepend -ccopt to each of them).
2004-12-24 18:49:09 +00:00
jmmv
feea677000 Do not depend on Tk nor X11. Two new packages will be added to provide
the missing bits, namely labltk and ocaml-graphics, respectively.  To
simplify this, add a Makefile.common.  Bump PKGREVISION to 8.

Per discussion with wiz@ a while ago.
2004-12-24 17:16:04 +00:00
uebayasi
f518154a16 This is configured with -with-thread. Include pthread.buildlink3.mk
here explicitly.
2004-12-10 00:48:40 +00:00
jmmv
1da918991d Print a comment for the removal of the lib/ocaml directory in packages
depending on this one.
2004-12-04 20:31:29 +00:00
wiz
6e02d7ee41 Rename ALL_TARGET to BUILD_TARGET for consistency with other *_TARGETs.
Suggested by Roland Illig, ok'd by various.
2004-12-03 15:14:50 +00:00
dmcmahill
44c3c8d998 move a few files from PLIST to PLIST.opt 2004-11-27 01:34:09 +00:00
tv
c487cb967a Libtool fix for PR pkg/26633, and other issues. Update libtool to 1.5.10
in the process.  (More information on tech-pkg.)

Bump PKGREVISION and BUILDLINK_DEPENDS of all packages using libtool and
installing .la files.

Bump PKGREVISION (only) of all packages depending directly on the above
via a buildlink3 include.
2004-10-03 00:12:51 +00:00
wiz
6ef1244cbb Unused. 2004-07-01 13:45:08 +00:00
danw
5f9bd44f70 Two Darwin fixes:
- split out the profiled libraries in the PLIST, because they
	  don't get built on Darwin.
	- set INSTALL_UNSTRIPPED on Darwin for both ocaml itself and
	  anything that directly depends on it, because the ocaml compiler
	  generates binaries that don't strip properly.
2004-04-24 14:45:15 +00:00
tron
79f90101fa Include buildlink code for "tk" package because this package depends
on the "tk" package.
2004-04-24 08:06:10 +00:00
danw
dcba77c780 de-fuzz 2004-04-23 03:06:02 +00:00
jschauma
8d232afe14 Drop maintainership. (I kind of semi-voluntarily inherited this package
from groo, but really can't maintain it responsibly.)
2004-04-22 12:44:30 +00:00
tron
c6c65c01f0 Fix patch problem caused by embedded CVS Id. 2004-04-22 09:27:49 +00:00
tron
65fe8e9b94 Fix various issues with this package:
- split patches files
- always enable threading which has various advantages
  - it fixes the build of the Tk library
  - it greatly simplifies the package list handling
  - it provides threading support under NetBSD 1.6/1.6.x
- correct default dependence in "buildlink2.mk" to "build"
Bump package revision because of all these changes.
2004-04-22 09:18:34 +00:00
seb
1fdaf2d1c4 Avoid ECHO_N for the pkgsrc-2004Q1 branch benefit. 2004-04-12 18:02:52 +00:00
seb
fce4d20d97 Partialy revert previous and use {TCL,TK}CONFIG_SH's content to pass
more accurate data to configure.

Fix -again now that revision 1.4 of mk/pthread.buildlink3.mk had been
reverted- build with threaded Tcl/Tk packages.
2004-04-12 14:43:39 +00:00
seb
538875526b Just pass all CPPFLAGS, CFLAGS and LDFLAGS to configure as
${CC} with options or '-libs' specification.

This fix the build of the package with threaded tcl/tk libraries
from the tcl/tk packages.

While here remove FIX_RPATH, bl3 framework takes care of that for us.
2004-03-30 14:01:30 +00:00
tron
647f9a06d8 Use Tcl 8.4.x, bump package version. 2004-03-11 21:12:22 +00:00
minskim
2827f5b2d8 Enable tk84 and replace x11/tk with x11/tk83. Packages compatible
with 8.4 will be updated to depend on x11/tk after Tk update.
2004-03-08 20:27:13 +00:00
jlam
9ff0e10340 Reorder location and setting of BUILDLINK_PACKAGES to match template
buildlink3.mk file in revision 1.101 of bsd.buildlink3.mk.
2004-03-05 19:25:06 +00:00
minskim
c9eae9cc89 Make ocalm build with tk-8.4. 2004-03-04 06:27:45 +00:00
wiz
ce010af32c Sort. 2004-02-17 14:56:12 +00:00
grant
f1ab3f4ed4 replace deprecated USE_GMAKE with USE_GNU_TOOLS+=make. 2004-01-24 13:51:13 +00:00
jlam
a7d877ca6a Append to BUILDLINK_DEPENDS.<pkg> instead of setting a default value. In
the normal case when BUILDLINK_DEPENDS.<pkg> isn't specified, it receives
a value only once due to the multiple inclusion protection in the
bulldlink3.mk files.  In the case where a package includes several
buildlink3.mk files that each want a slightly different version of another
dependency, having BUILDLINK_DEPENDS.<pkg> be a list allows for the
strictest <pkg> dependency to be matched.
2004-01-24 03:26:45 +00:00
jlam
22645a942c bl3ify 2004-01-05 11:28:07 +00:00
jlam
d279e6f535 Use S/+$// instead of C/\+$// to save a backslash. Very highly
recommended by seb :)
2004-01-05 11:05:44 +00:00
jlam
47bb2aae5f Re-arrange to match example buildlink3.mk file in bsd.buildlink3.mk. 2004-01-04 23:34:04 +00:00
jlam
339cd13cb2 Initial sprinkling of work-in-progress buildlink3.mk files for using the
buildlink3 framework.
2004-01-03 23:06:43 +00:00
dmcmahill
0e25f843b1 make sure that the platforms which don't support the optizations still
get the base PLIST.  Fixes recently noted problems on alpha bulk builds
that resulted in empty packages.
2003-11-10 23:12:47 +00:00
martti
ee90b572a6 COMMENT should start with a capital letter. 2003-07-21 16:45:54 +00:00
grant
0155927c43 s/netbsd.org/NetBSD.org/ 2003-07-17 21:41:05 +00:00
jtb
dcd0c0a985 Regen. 2003-07-11 08:24:41 +00:00
jtb
f0caf3dcde Remove unnecessary register store in the profiling prologue. 2003-07-11 07:47:44 +00:00
jtb
148937e759 Missed change of .mcount to __mcount in PROFILE_C. 2003-07-10 12:28:55 +00:00
jtb
ce3fe082f3 * Add support for the profiler on powerpc
* Fix i386 profiling. NetBSD calls __mcount while FreeBSD calls .mcount
2003-07-10 07:44:01 +00:00
jtb
c436359bb4 * Use ".L" instead of "L" as label prefix on sparc
* For consistency use SYS_bsd for system type
  on powerpc.  We differ from SYS_elf (presumably Linux) on
  a few points here anyway.
* Fix signal handling on powerpc which caused a
  seg fault when compiling native code version of coq.
* Install ocamllex.opt, camlp4o.opt and camlp4r.opt too.
2003-06-29 23:04:18 +00:00
jtb
1623b75909 Enable native code compilers on powerpc and sparc.
Bump PKGREVISION.
2003-06-23 20:15:16 +00:00
cjep
b0562fb22d Add NetBSD RCS tags. 2003-05-26 13:20:23 +00:00
hubertf
6bff168050 Add support for native threads, per PR 20526.
Test-compiled on 1.6.1 and -current.
2003-05-22 23:58:21 +00:00
seb
bcc1d137ee Master site's tree had been reorganised, fix MASTER_SITES. 2003-05-14 23:11:32 +00:00
jmmv
f1446ddf2b Drop trailing whitespace. Ok'ed by wiz. 2003-05-06 17:40:18 +00:00
jschauma
94c25d9db6 Use BSD_INSTALL_* rather than 'mkdir' and 'cp' to install the files, so that
it's not a problem if root has a more stringent umask.  Bump PKGREVISION.
2003-04-19 00:16:58 +00:00
jlam
3ef633718c (1) Publicly export the value of _OPSYS_RPATH_NAME as RPATH_FLAG;
Makefiles simply need to use this value often, for better or for
    worse.

(2) Create a new variable FIX_RPATH that lists variables that should
    be cleansed of -R or -rpath values if ${_USE_RPATH} is "no".  By
    default, FIX_RPATH contains LIBS, X11_LDFLAGS, and LDFLAGS, and
    additional variables may be appended from package Makefiles.
2003-03-14 19:37:30 +00:00
dillo
7208881213 add buildink2.mk 2002-10-16 16:25:10 +00:00
jschauma
cc16cda692 Update lang/ocaml to 3.06, using patch supplied by Martin Weber
(ephaeton at gmx dot net) in PR pkg/18023.  Besten Dank!

Changes from 3.04 to 3.05 (abbreviated list, full list available at
http://caml.inria.fr/archives/200207/msg00558.html):
 Language features:
	- Support for polymorphic methods and record fields.
	- Allows _ separators in integer and float literals, e.g. 1_000_000.
 Type-checker:
	- Fixed subtle typing bug with higher-order functors.
	- Fixed several complexity problems;
	- Fixed various bugs with objects and polymorphic variants.
 Bytecode compiler:
	- Fixed issue with ocamlc.opt and dynamic linking.
 Native-code compiler:
	- Fixed GC bug related to constant constructors of polymorphic variant types.
	- Fixed compilation bug for top-level "include" statements.
 Toplevel interactive system:
	- ocamlmktop: minimized possibility of name clashes with user-provided modules.
 Run-time system:
	- Better support for lazy data in the garbage collector.
	- Support for float formats that are neither big-endian nor little-endian
	- Fixed bug in callback*_exn functions in the exception-catching case.
 Standard library:
	- Protect against integer overflow in sub-string and sub-array bound checks.
	- New module Complex implementing arithmetic over complex numbers.
	- New module Scanf implementing format-based scanning a la scanf() in C.
	- various fixes and enhancements to existing modules
 Tools:
	- ocamldoc part of distribution
	- Debugger: now supports the option -I +dir.
	- ocamllex: supports the same identifiers as ocamlc;

Changes from 3.05 to 3.06:
 Type-checking:
 - Apply value restriction to polymorphic record fields.
Run-time system:
 - Fixed GC bug affecting lazy values.
Both compilers:
 - Added option "-version" to print just the version number.
 - Fixed wrong dependencies in .cmi generated with the -pack option.
Native-code compiler:
 - Fixed wrong return value for inline bigarray assignments.
Libraries:
 - Unix.getsockopt: make sure result is a valid boolean.
Tools:
 - ocamlbrowser: improved error reporting;
2002-08-22 02:56:51 +00:00
jschauma
82f26389a3 Beautify: correct tab-stops. 2002-08-16 02:50:02 +00:00
jschauma
c9e26a52a6 Actually doing the commit:
> Update to version 3.04 based on patches submitted in PR#16896 by
> Marko Schuetz (MarcoSchuetz at web dot de) with minor modification by
> me, closing that PR.

(Pointed out by Takahiro Kambe)
2002-06-19 02:23:41 +00:00
jschauma
f1273c4492 Update to version 3.04 based on patches submitted in PR#16896 by
Marko Schuetz (MarcoSchuetz at web dot de) with minor modification by
me, closing that PR.

Changes since 3.01:
Too much to list here - see http://caml.inria.fr/ocaml/Changes
Note that this release includes camlp4, thus rendering that package
redundant.
2002-06-18 20:06:01 +00:00
jmc
e74073c33a Add powerpc/macppc support 2002-03-13 08:37:52 +00:00
wiz
cff42f8efd Fix MASTER_SITES path.
XXX: 3.04 is out.
2002-01-14 18:10:29 +00:00
wiz
cb57fb6078 Add one (from bulk build leftover list). 2002-01-14 18:10:08 +00:00
zuntum
98cf373d36 Move pkg/ files into package's toplevel directory 2001-11-01 00:32:23 +00:00
zuntum
a437fd43cc Move pkg/ files into package's toplevel directory 2001-11-01 00:20:13 +00:00
wulf
754cd47bbc Updated ocaml to version 3.01: Bugfix release 2001-07-15 14:43:35 +00:00
wulf
462832fd7f Updated ocaml to 3.01: Bugfix release 2001-07-13 16:22:55 +00:00
jlam
022d07a536 Mechanical changes of tk DEPENDS:
tk-8.3.2  -> tk>=8.3.2
	tk-[0-9]* -> tk>=8.0
	tk-8.*    -> tk>=8.0
2001-05-05 19:51:13 +00:00
agc
8118fe36ae Move to sha1 digests, and add distfile sizes. 2001-04-19 15:00:47 +00:00
agc
fb467f5ac2 + move the distfile digest/checksum value from files/md5 to distinfo
+ move the patch digest/checksum values from files/patch-sum to distinfo
2001-04-17 11:22:34 +00:00
agc
82acd159f7 Move the COMMENT from being in its own file to a definition in the
package Makefile.
2001-02-17 09:06:56 +00:00
jwise
85faafcab7 Adapt this package to tk-8.3.2. 2000-08-31 14:43:49 +00:00
wiz
a11951fe0e Move all compilation steps into the build phase.
Man pages for optimized binaries are installed unconditionally, so move
them to the default PLIST.
2000-08-24 22:32:34 +00:00
wiz
790a779a8c add bin/ocamlopt 2000-08-22 02:55:40 +00:00
wiz
0acb021e57 sort 2000-08-22 02:54:54 +00:00
wiz
8c4c3585b4 add .opt man pages to PLIST.opt. 2000-07-04 01:40:33 +00:00
wulf
9d0cf0d68a Changed ${MAKE} in pre-install to ${GMAKE} too... 2000-06-12 15:17:45 +00:00
wulf
b2dbf2143c Package needs 'gmake' as it otherwise will not build.
Added support for native-code compiler for i386 architecture.
2000-06-12 14:43:21 +00:00
wulf
98d6717e20 Added support for native-code compiler for i386 architecture. 2000-06-12 14:42:21 +00:00
groo
0eab2059fc Objective Caml is the latest implementation of the Caml dialect of ML. The main
novelties compared with its ancestor, Caml Light, are:

     * Full support for objects and classes -- here combined for the first time
        with ML-style type reconstruction.
     * A powerful module calculus in the style of Standard ML (but retaining
        separate compilation).
     * A high-performance native code compiler (in addition to a Caml
        Light-style bytecode compiler).


TO BE DONE: install emacs mode, get native compiler working on ARCHs that
support it.
2000-05-05 04:56:56 +00:00