head	1.42;
access;
symbols
	pkgsrc-2026Q1:1.42.0.2
	pkgsrc-2026Q1-base:1.42
	pkgsrc-2025Q4:1.41.0.6
	pkgsrc-2025Q4-base:1.41
	pkgsrc-2025Q3:1.41.0.4
	pkgsrc-2025Q3-base:1.41
	pkgsrc-2025Q2:1.41.0.2
	pkgsrc-2025Q2-base:1.41
	pkgsrc-2025Q1:1.40.0.4
	pkgsrc-2025Q1-base:1.40
	pkgsrc-2024Q4:1.40.0.2
	pkgsrc-2024Q4-base:1.40
	pkgsrc-2024Q3:1.39.0.14
	pkgsrc-2024Q3-base:1.39
	pkgsrc-2024Q2:1.39.0.12
	pkgsrc-2024Q2-base:1.39
	pkgsrc-2024Q1:1.39.0.10
	pkgsrc-2024Q1-base:1.39
	pkgsrc-2023Q4:1.39.0.8
	pkgsrc-2023Q4-base:1.39
	pkgsrc-2023Q3:1.39.0.6
	pkgsrc-2023Q3-base:1.39
	pkgsrc-2023Q2:1.39.0.4
	pkgsrc-2023Q2-base:1.39
	pkgsrc-2023Q1:1.39.0.2
	pkgsrc-2023Q1-base:1.39
	pkgsrc-2022Q4:1.38.0.4
	pkgsrc-2022Q4-base:1.38
	pkgsrc-2022Q3:1.38.0.2
	pkgsrc-2022Q3-base:1.38
	pkgsrc-2022Q2:1.37.0.20
	pkgsrc-2022Q2-base:1.37
	pkgsrc-2022Q1:1.37.0.18
	pkgsrc-2022Q1-base:1.37
	pkgsrc-2021Q4:1.37.0.16
	pkgsrc-2021Q4-base:1.37
	pkgsrc-2021Q3:1.37.0.14
	pkgsrc-2021Q3-base:1.37
	pkgsrc-2021Q2:1.37.0.12
	pkgsrc-2021Q2-base:1.37
	pkgsrc-2021Q1:1.37.0.10
	pkgsrc-2021Q1-base:1.37
	pkgsrc-2020Q4:1.37.0.8
	pkgsrc-2020Q4-base:1.37
	pkgsrc-2020Q3:1.37.0.6
	pkgsrc-2020Q3-base:1.37
	pkgsrc-2020Q2:1.37.0.4
	pkgsrc-2020Q2-base:1.37
	pkgsrc-2020Q1:1.37.0.2
	pkgsrc-2020Q1-base:1.37
	pkgsrc-2019Q4:1.36.0.4
	pkgsrc-2019Q4-base:1.36
	pkgsrc-2019Q3:1.34.0.28
	pkgsrc-2019Q3-base:1.34
	pkgsrc-2019Q2:1.34.0.26
	pkgsrc-2019Q2-base:1.34
	pkgsrc-2019Q1:1.34.0.24
	pkgsrc-2019Q1-base:1.34
	pkgsrc-2018Q4:1.34.0.22
	pkgsrc-2018Q4-base:1.34
	pkgsrc-2018Q3:1.34.0.20
	pkgsrc-2018Q3-base:1.34
	pkgsrc-2018Q2:1.34.0.18
	pkgsrc-2018Q2-base:1.34
	pkgsrc-2018Q1:1.34.0.16
	pkgsrc-2018Q1-base:1.34
	pkgsrc-2017Q4:1.34.0.14
	pkgsrc-2017Q4-base:1.34
	pkgsrc-2017Q3:1.34.0.12
	pkgsrc-2017Q3-base:1.34
	pkgsrc-2017Q2:1.34.0.8
	pkgsrc-2017Q2-base:1.34
	pkgsrc-2017Q1:1.34.0.6
	pkgsrc-2017Q1-base:1.34
	pkgsrc-2016Q4:1.34.0.4
	pkgsrc-2016Q4-base:1.34
	pkgsrc-2016Q3:1.34.0.2
	pkgsrc-2016Q3-base:1.34
	pkgsrc-2016Q2:1.26.0.2
	pkgsrc-2016Q2-base:1.26
	pkgsrc-2016Q1:1.24.0.28
	pkgsrc-2016Q1-base:1.24
	pkgsrc-2015Q4:1.24.0.26
	pkgsrc-2015Q4-base:1.24
	pkgsrc-2015Q3:1.24.0.24
	pkgsrc-2015Q3-base:1.24
	pkgsrc-2015Q2:1.24.0.22
	pkgsrc-2015Q2-base:1.24
	pkgsrc-2015Q1:1.24.0.20
	pkgsrc-2015Q1-base:1.24
	pkgsrc-2014Q4:1.24.0.18
	pkgsrc-2014Q4-base:1.24
	pkgsrc-2014Q3:1.24.0.16
	pkgsrc-2014Q3-base:1.24
	pkgsrc-2014Q2:1.24.0.14
	pkgsrc-2014Q2-base:1.24
	pkgsrc-2014Q1:1.24.0.12
	pkgsrc-2014Q1-base:1.24
	pkgsrc-2013Q4:1.24.0.10
	pkgsrc-2013Q4-base:1.24
	pkgsrc-2013Q3:1.24.0.8
	pkgsrc-2013Q3-base:1.24
	pkgsrc-2013Q2:1.24.0.6
	pkgsrc-2013Q2-base:1.24
	pkgsrc-2013Q1:1.24.0.4
	pkgsrc-2013Q1-base:1.24
	pkgsrc-2012Q4:1.24.0.2
	pkgsrc-2012Q4-base:1.24
	pkgsrc-2012Q3:1.23.0.6
	pkgsrc-2012Q3-base:1.23
	pkgsrc-2012Q2:1.23.0.4
	pkgsrc-2012Q2-base:1.23
	pkgsrc-2012Q1:1.23.0.2
	pkgsrc-2012Q1-base:1.23
	pkgsrc-2011Q4:1.22.0.16
	pkgsrc-2011Q4-base:1.22
	pkgsrc-2011Q3:1.22.0.14
	pkgsrc-2011Q3-base:1.22
	pkgsrc-2011Q2:1.22.0.12
	pkgsrc-2011Q2-base:1.22
	pkgsrc-2011Q1:1.22.0.10
	pkgsrc-2011Q1-base:1.22
	pkgsrc-2010Q4:1.22.0.8
	pkgsrc-2010Q4-base:1.22
	pkgsrc-2010Q3:1.22.0.6
	pkgsrc-2010Q3-base:1.22
	pkgsrc-2010Q2:1.22.0.4
	pkgsrc-2010Q2-base:1.22
	pkgsrc-2010Q1:1.22.0.2
	pkgsrc-2010Q1-base:1.22
	pkgsrc-2009Q4:1.21.0.4
	pkgsrc-2009Q4-base:1.21
	pkgsrc-2009Q3:1.21.0.2
	pkgsrc-2009Q3-base:1.21
	pkgsrc-2009Q2:1.19.0.14
	pkgsrc-2009Q2-base:1.19
	pkgsrc-2009Q1:1.19.0.12
	pkgsrc-2009Q1-base:1.19
	pkgsrc-2008Q4:1.19.0.10
	pkgsrc-2008Q4-base:1.19
	pkgsrc-2008Q3:1.19.0.8
	pkgsrc-2008Q3-base:1.19
	cube-native-xorg:1.19.0.6
	cube-native-xorg-base:1.19
	pkgsrc-2008Q2:1.19.0.4
	pkgsrc-2008Q2-base:1.19
	cwrapper:1.19.0.2
	pkgsrc-2008Q1:1.18.0.2
	pkgsrc-2008Q1-base:1.18
	pkgsrc-2007Q4:1.17.0.8
	pkgsrc-2007Q4-base:1.17
	pkgsrc-2007Q3:1.17.0.6
	pkgsrc-2007Q3-base:1.17
	pkgsrc-2007Q2:1.17.0.4
	pkgsrc-2007Q2-base:1.17
	pkgsrc-2007Q1:1.17.0.2
	pkgsrc-2007Q1-base:1.17
	pkgsrc-2006Q4:1.16.0.6
	pkgsrc-2006Q4-base:1.16
	pkgsrc-2006Q3:1.16.0.4
	pkgsrc-2006Q3-base:1.16
	pkgsrc-2006Q2:1.16.0.2
	pkgsrc-2006Q2-base:1.16
	pkgsrc-2006Q1:1.15.0.2
	pkgsrc-2006Q1-base:1.15
	pkgsrc-2005Q4:1.13.0.2
	pkgsrc-2005Q4-base:1.13
	pkgsrc-2005Q3:1.11.0.4
	pkgsrc-2005Q3-base:1.11
	pkgsrc-2005Q2:1.11.0.2
	pkgsrc-2005Q2-base:1.11
	pkgsrc-2005Q1:1.8.0.8
	pkgsrc-2005Q1-base:1.8
	pkgsrc-2004Q4:1.8.0.6
	pkgsrc-2004Q4-base:1.8
	pkgsrc-2004Q3:1.8.0.4
	pkgsrc-2004Q3-base:1.8
	pkgsrc-2004Q2:1.8.0.2
	pkgsrc-2004Q2-base:1.8
	pkgsrc-2004Q1:1.6.0.2
	pkgsrc-2004Q1-base:1.6
	pkgsrc-2003Q4:1.4.0.2
	pkgsrc-2003Q4-base:1.4
	pkgsrc-base:1.1.1.1
	TNF:1.1.1;
locks; strict;
comment	@# @;


1.42
date	2026.02.26.13.44.42;	author ryoon;	state Exp;
branches;
next	1.41;
commitid	CuXXniOgeNVviTvG;

1.41
date	2025.06.15.13.53.33;	author ryoon;	state Exp;
branches;
next	1.40;
commitid	cwkVMrD3gsuHzZYF;

1.40
date	2024.12.09.14.07.09;	author ryoon;	state Exp;
branches;
next	1.39;
commitid	DSb3abjJMXj4HPAF;

1.39
date	2023.02.25.17.58.39;	author ryoon;	state Exp;
branches;
next	1.38;
commitid	Phe72LzlNzEQXVeE;

1.38
date	2022.09.16.19.45.07;	author he;	state Exp;
branches;
next	1.37;
commitid	cYIHzvS5vtMLK7UD;

1.37
date	2020.01.26.17.31.32;	author rillig;	state Exp;
branches;
next	1.36;
commitid	4fBBvoSLJaGd0eUB;

1.36
date	2019.11.03.19.04.08;	author rillig;	state Exp;
branches;
next	1.35;
commitid	puQpdVbj8afCdrJB;

1.35
date	2019.10.12.20.52.53;	author he;	state Exp;
branches;
next	1.34;
commitid	twQwGcqOMJ3EwCGB;

1.34
date	2016.07.03.19.38.27;	author dholland;	state Exp;
branches;
next	1.33;
commitid	lZoJmKNGQc6QyUcz;

1.33
date	2016.07.03.19.35.13;	author dholland;	state Exp;
branches;
next	1.32;
commitid	3YcyByYGIvxHxUcz;

1.32
date	2016.07.03.19.26.35;	author dholland;	state Exp;
branches;
next	1.31;
commitid	ecaiseQ7RrMMuUcz;

1.31
date	2016.07.03.19.21.44;	author dholland;	state Exp;
branches;
next	1.30;
commitid	Zap0loJrVN67tUcz;

1.30
date	2016.07.03.19.18.46;	author dholland;	state Exp;
branches;
next	1.29;
commitid	UQxIPqziDOS2sUcz;

1.29
date	2016.07.03.19.16.03;	author dholland;	state Exp;
branches;
next	1.28;
commitid	67UFjNPpZ3L7rUcz;

1.28
date	2016.07.03.19.15.02;	author dholland;	state Exp;
branches;
next	1.27;
commitid	9R3bfc0nhL7NqUcz;

1.27
date	2016.07.03.19.08.22;	author dholland;	state Exp;
branches;
next	1.26;
commitid	PUtRuOtqPJNxoUcz;

1.26
date	2016.04.14.22.10.06;	author dholland;	state Exp;
branches;
next	1.25;
commitid	wlSK0XFymZrkYD2z;

1.25
date	2016.04.14.21.58.22;	author dholland;	state Exp;
branches;
next	1.24;
commitid	A8z3eldkCdjUTD2z;

1.24
date	2012.10.02.20.11.53;	author asau;	state Exp;
branches;
next	1.23;

1.23
date	2012.01.29.20.48.48;	author asau;	state Exp;
branches;
next	1.22;

1.22
date	2010.02.07.03.14.36;	author asau;	state Exp;
branches;
next	1.21;

1.21
date	2009.09.22.15.07.23;	author asau;	state Exp;
branches;
next	1.20;

1.20
date	2009.09.22.14.48.47;	author asau;	state Exp;
branches;
next	1.19;

1.19
date	2008.05.26.02.13.21;	author joerg;	state Exp;
branches;
next	1.18;

1.18
date	2008.03.04.16.38.13;	author jlam;	state Exp;
branches;
next	1.17;

1.17
date	2007.01.23.06.08.31;	author rillig;	state Exp;
branches;
next	1.16;

1.16
date	2006.05.18.20.32.22;	author wiz;	state Exp;
branches;
next	1.15;

1.15
date	2006.02.05.23.09.48;	author joerg;	state Exp;
branches;
next	1.14;

1.14
date	2006.01.04.04.29.07;	author schmonz;	state Exp;
branches;
next	1.13;

1.13
date	2005.12.26.23.39.32;	author schmonz;	state Exp;
branches;
next	1.12;

1.12
date	2005.12.08.09.52.15;	author rillig;	state Exp;
branches;
next	1.11;

1.11
date	2005.06.16.06.58.01;	author jlam;	state Exp;
branches;
next	1.10;

1.10
date	2005.05.22.20.08.11;	author jlam;	state Exp;
branches;
next	1.9;

1.9
date	2005.04.11.21.46.16;	author tv;	state Exp;
branches;
next	1.8;

1.8
date	2004.06.06.04.38.29;	author snj;	state Exp;
branches;
next	1.7;

1.7
date	2004.04.09.23.19.37;	author snj;	state Exp;
branches;
next	1.6;

1.6
date	2004.01.24.13.51.15;	author grant;	state Exp;
branches;
next	1.5;

1.5
date	2004.01.20.12.19.17;	author agc;	state Exp;
branches;
next	1.4;

1.4
date	2003.07.01.23.10.32;	author jtb;	state Exp;
branches;
next	1.3;

1.3
date	2003.03.29.12.41.32;	author jmmv;	state Exp;
branches;
next	1.2;

1.2
date	2003.03.21.22.54.38;	author wiz;	state Exp;
branches;
next	1.1;

1.1
date	2003.03.21.22.20.55;	author wiz;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	2003.03.21.22.20.55;	author wiz;	state Exp;
branches;
next	;


desc
@@


1.42
log
@lang/smlnj: Update to 110.99.9

Changelog:
Version 110.99.9

## Summary

This release fixes a number of bugs and enables running on macOS 26 (Tahoe).

## Details

### Runtime System

  * Ported various fixes from the development repository.

### SML/NJ Library

  * Added a number of operations to the MONO_HASH_SET interface to make it more
    compatible with the ORD_SET interface.

  * Added LEB128 module, which implements packed encoding and decoding of
    integer and word types using the Little Endian Base 128 encoding.

  * moved the JSON structure from the JSON Library to the Util Library. This
    change was made to allow code to produce/consume JSON values without
    depending on the JSON library.

### Bugs

Here is a list of the issues that are fixed (or closed) with this release. We
include the original bug numbers for bugs that were reported using the gforge
bug tracker.

Issue                           Description                             Gforge
                                                                         Bug
356   Problem with Real.fromString evaluating non-whole number strings n.a.
      on 32-bit systems

360   Incorrect values returned by Real.fromString on strings with     n.a.
      many digits

362   Real.fromString on negative inf/infinity returns positive        n.a.
      infinity

363   "default word size" in the documentation for Util/Random         n.a.

366   SockUtil.recvVec behaviour does not match documentation          n.a.

367   Compile error on Fedora 40 64-bit                                n.a.

370   Int32 operations do not properly raise Overflow                  n.a.

372   Int32.toString can generate an Overflow exception                n.a.

  * Merged fix for the inverse power-of-five table from the development branch
    (see Pull Request #306).

  * Merged fix for the IntBinarySet structure from the development branch (see
    Pull Request #308 and Issue #310).

  * Merged fix for development repository Issue #319 (Nondeterministic import
    order).

  * Merged fix for development repository Pull Request #322 (Fix heap export
    inconsistency caused by pair arena offsets).

  * Merged fix for development repository Pull Request #323 (Fix memory leaks
    in the runtime system).

  * Merged fix for development repository Pull Request #325 (setPosOut should
    return an outstream).
@
text
@# $NetBSD: Makefile,v 1.41 2025/06/15 13:53:33 ryoon Exp $
#

DISTNAME=	boot.${BOX}-unix
PKGNAME=	smlnj-${SML_VERSION}
CATEGORIES=	lang
MASTER_SITES=	http://smlnj.cs.uchicago.edu/dist/working/${SML_VERSION}/
DISTFILES=	MLRISC.tgz			\
		boot.${BOX}-unix.tgz		\
		ckit.tgz			\
		cm.tgz				\
		cml.tgz				\
		compiler.tgz			\
		config.tgz			\
		doc.tgz				\
		eXene.tgz			\
		ml-burg.tgz			\
		ml-lex.tgz			\
		nlffi.tgz			\
		ml-yacc.tgz			\
		old-basis.tgz			\
		runtime.tgz			\
		smlnj-lib.tgz			\
		system.tgz			\
		ml-lpt.tgz			\
		pgraph.tgz			\
		trace-debug-profile.tgz		\
		heap2asm.tgz			\
		smlnj-c.tgz

MAINTAINER=	richards+netbsd@@CS.Princeton.EDU
HOMEPAGE=	https://www.smlnj.org/index.html
COMMENT=	Popular functional language from Bell Labs

SML_VERSION=	110.99.9

WRKSRC=		${WRKDIR}
DIST_SUBDIR=	smlnj-${SML_VERSION}
USE_TOOLS+=	gmake pax

# previous versions of the package had an additional '-'
CONFLICTS=	sml-nj-[0-9]*

SML_BASE=	${PREFIX}/lib/smlnj
SML_LIBDIR=	${SML_BASE}/lib
SML_BINDIR=	${SML_BASE}/bin
SML_SCRIPTS=	_link-sml _run-sml _ml-build _ml-makedepend

# -ansi does not know 'inline' keyword.
BUILDLINK_TRANSFORM+=	rm:-ansi
.include "../../mk/dlopen.buildlink3.mk"
BUILDLINK_TRANSFORM+=   opt:-ldl:${BUILDLINK_LDADD.dl:Q}

# while building, the work directory is the "installation"
BUILD_ENV+=	SMLNJ_HOME="${WRKDIR}"

# the build uses patch directly (yuk)
BUILD_ENV+=	PATCH=${PATCH:Q} PATCH_ARGS=${PATCH_ARGS:Q}

# useful for debugging
#CFLAGS+=	-Wall

# note that this includes bsd.prefs.mk
.include "../../lang/smlnj/Makefile.common"

BOXES=	amd64 x86 ppc sparc

.if make(distinfo) || make(makesum) || make(mdi)
.  for B in ${BOXES}
DISTFILES+=	boot.${B}-unix.tgz
.  endfor
.endif

#
# For smlnj reasons the runtime system needs to be unpacked twice, once
# in work/src and once in work/base.
#
# As of 20160624, instead of inconsistently patching one copy or the
# other and hoping, or patching both and duplicating all the patches,
# we'll patch only work/src, and then *after* patching clone work/src
# into work/base.
#

# create parent directories for the runtime system
pre-extract:
	${MKDIR} ${WRKDIR}/src || ${TRUE}
	${MKDIR} ${WRKDIR}/base || ${TRUE}

# make it easier to patch the runtime system
do-extract:
	${RUN} extract_file="${_DISTDIR}/config.tgz";	\
		export extract_file;			\
		cd ${WRKDIR}; ${EXTRACT_CMD}
	${RUN} extract_file="${_DISTDIR}/runtime.tgz";	\
		export extract_file;			\
		cd ${WRKDIR}/src; ${EXTRACT_CMD}

# symlink the rest of the distfiles
# also copy in new configs
post-extract:
	cd ${WRKDIR} && ${LN} -sf ${_DISTDIR}/* .
	cp ${FILESDIR}/mk.* ${WRKDIR}/src/runtime/objs/

# make the necessary copy of the runtime, _after_ patching src
post-patch:
	cd ${WRKDIR}/src && pax -rw runtime ${WRKDIR}/base/

# resolve definition of SML_BASE
SUBST_CLASSES+=		smlbase
SUBST_STAGE.smlbase=	pre-configure
SUBST_MESSAGE.smlbase=	Setting SML_BASE
SUBST_FILES.smlbase=	${SML_SCRIPTS:S/^/config\//}
SUBST_VARS.smlbase=	SML_BASE

# resolve definition of CFLAGS in patched files
# (note that we need to do this in both src/runtime and base/runtime)
SUBST_CLASSES+=		cflags
SUBST_STAGE.cflags=	pre-configure
SUBST_MESSAGE.cflags=	Setting CFLAGS
SUBST_FILES.cflags=	src/runtime/objs/* base/runtime/objs/*
SUBST_VARS.cflags=	CFLAGS

# use the proper shell
SUBST_CLASSES+=		shell
SUBST_STAGE.shell=	pre-configure
SUBST_MESSAGE.shell=	Choosing the right shell
SUBST_FILES.shell=	config/install.sh
SUBST_VARS.shell=	CONFIG_SHELL

# nothing here any more
do-configure:
	${DO_NADA}

# The build target needs to run $WRKDIR/config/install.sh
do-build:
	cd ${WRKDIR} && unset PWD && ${SETENV} ${BUILD_ENV} \
		${CONFIG_SHELL} ./config/install.sh

# install target
# (see ftp://ftp.research.bell-labs.com/dist/smlnj/working/110.38/INSTALL)
# 1. create installation directories
# 2. copy the ./bin and ./lib directories across
# 3. install links to executables in $PREFIX/bin
INSTALLATION_DIRS=	bin
do-install:
	${INSTALL_DATA_DIR} ${DESTDIR}${SML_BASE}
	cd ${WRKDIR} && pax -rw -pam bin lib ${DESTDIR}${SML_BASE}
	cd ${DESTDIR}${PREFIX}/bin && ${LN} -sf ../lib/smlnj/bin/* .

.include "../../mk/bsd.pkg.mk"
@


1.41
log
@lang/smlnj: Update to 110.99.8

Changelog:
110.99.8:
Summary
This release fixes a number of bugs,

Details

Compiler
  * Fixed several bugs (including Issues #340 and #341) in the contraction of numeric conversions. Also added some missing fusion rules for conversions via the IntInf.int type.

  * Moved the support for word/real bit casts to the MLRisc code generator.

  * Made the translation of built-in numeric types to FLINT primitive types more consistent.

  * Added the CheckCPS module, which implements some basic invariant checking on the CPS IR.

Basis Library
  * Added numGens and nurserySizeInBytes functions to the SMLofNJ.Internals.GC structure, with corresponding runtime-system support.

Bugs
Here is a list of the issues that are fixed (or closed) with this release. We include the original bug numbers for bugs that were reported using the gforge bug tracker.
Issue 	Description 	Gforge Bug

337	compiler bug aborts build of istari	n.a.
340	 Word.toInt does not raise an exception when out of range	n.a.
341	Incorrect constant folding of word equality	n.a.
347	Unsafe.cast causes Compiler bug	n.a.
348	PPAbsyn raises exception when pattern matching on infix constructor	n.a.
349	PackReal64Big and PackReal64Little export internals	n.a.
351	Fix Word8Buffer.contents to return an object with ByteVector representation	n.a.
354	Problem with Real.fromString on 32-bit systems	n.a.
355	Word8.toLargeInt produces incorrect results on 32-bit platforms	n.a.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.40 2024/12/09 14:07:09 ryoon Exp $
d35 1
a35 1
SML_VERSION=	110.99.8
@


1.40
log
@lang/smlnj: Update to 110.99.6.1

Changelog:
[2024-10-25] Version 110.99.6.1 is released. This p[atch release fixes a serious bug in 110.99.6. See the README for details.
[2024-09-18] Version 110.99.6 is released. This version is primarily a bugfix release with some additional improvements. See the README for details.
[2024-03-14] Version 110.99.5 is released. This version is primarily a bugfix release with some additional improvements. See the README for details.
[2023-08-01] Version 110.99.4 is released. This version is primarily a bugfix release, but it does include a small number of enhancements as well as support for macOS 14 (Sonoma). See the README for details.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.39 2023/02/25 17:58:39 ryoon Exp $
d35 1
a35 1
SML_VERSION=	110.99.6.1
@


1.39
log
@smlnj: Update to 110.99.3

* CHangelog is too long, it includes adding amd64 support.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.38 2022/09/16 19:45:07 he Exp $
d35 1
a35 1
SML_VERSION=	110.99.3
@


1.38
log
@lang/smlnj: remove the powerpc nlffi section.

This no longer had any effect, and therefore caused the build to fail.
The build and install now succeeds on NetBSD/macppc.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.37 2020/01/26 17:31:32 rillig Exp $
d15 1
d21 1
d35 1
a35 2
SML_VERSION=	110.73
PKGREVISION=	3
d49 5
d66 1
a66 1
BOXES=	x86 ppc sparc
@


1.37
log
@all: migrate homepages from http to https

pkglint -r --network --only "migrate"

As a side-effect of migrating the homepages, pkglint also fixed a few
indentations in unrelated lines. These and the new homepages have been
checked manually.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.36 2019/11/03 19:04:08 rillig Exp $
a101 14
# Turn of nlffi on powerpc (I guess it doesn't work?)
#
# XXX: this switch doesn't work any more as the line in question doesn't
# exist in the current version. Someone with a PPC build machine,
# please check it out and either change it to match the file if still
# needed, or get rid of it.
.if ${MACHINE_ARCH} == "powerpc"
SUBST_CLASSES+=		nlffi
SUBST_STAGE.nlffi=	pre-configure
SUBST_MESSAGE.nlffi=	Turning off nlffi
SUBST_FILES.nlffi=	config/targets
SUBST_SED.nlffi=	-e '/^request nlffi$$/d'
.endif # powerpc

@


1.36
log
@lang: align variable assignments

pkglint -Wall -F --only aligned --only indent -r

No manual corrections.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.35 2019/10/12 20:52:53 he Exp $
d30 1
a30 1
HOMEPAGE=	http://www.smlnj.org/index.html
d93 1
a93 1
# also copy in new configs 
@


1.35
log
@Various updates to smlnj so it builds on NetBSD/powerpc again:
 * Modernize the powerpc entry in signal-sysdep.h to use the
   various _UC_MACHINE_ macros.
 * mk.ppc-netbsd: don't pass an empty RANLIB variable, causing build failure.

Also make checksums of all the three arch-specific distfiles ("boxes"),
for sparc, x86 and ppc.

Bump PKGREVISION.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.34 2016/07/03 19:38:27 dholland Exp $
d60 1
a60 1
BOXES= x86 ppc sparc
d63 3
a65 3
.for B in ${BOXES}
DISTFILES+=    boot.${B}-unix.tgz
.endfor
@


1.34
log
@Bump PKGREVISION for patches.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.33 2016/07/03 19:35:13 dholland Exp $
d34 1
a34 1
PKGREVISION=	2
d60 8
@


1.33
log
@Patch up some compiler warnings in the hope of fixing the crashy build.
No such luck though...
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.32 2016/07/03 19:26:35 dholland Exp $
d34 1
a34 1
PKGREVISION=	1
@


1.32
log
@Store brand new configs in ${FILESDIR}, not as patches.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.31 2016/07/03 19:21:44 dholland Exp $
d54 3
@


1.31
log
@Don't pass FILESDIR into the build; it isn't used and isn't appropriate.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.30 2016/07/03 19:18:46 dholland Exp $
d82 1
d85 1
@


1.30
log
@Honor the pkgsrc configure shell instead of using /bin/sh, as on some
platforms /bin/sh gets one something uselessly broken.

Also, don't set MAKE to Solaris's make on Solaris; while this might be
necessary building standalone, in pkgsrc it's foolish.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.29 2016/07/03 19:16:03 dholland Exp $
a53 3
# not sure why this is needed (XXX?)
BUILD_ENV+=	FILESDIR=${FILESDIR}

@


1.29
log
@Use BUILD_ENV properly.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.28 2016/07/03 19:15:02 dholland Exp $
d121 7
d134 2
a135 1
	cd ${WRKDIR} && unset PWD && ${SETENV} ${BUILD_ENV} ./config/install.sh
@


1.28
log
@Use SUBST instead of manual seddery.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.27 2016/07/03 19:08:22 dholland Exp $
d48 9
d127 1
a127 3
	cd ${WRKDIR} && unset PWD && \
	FILESDIR=${FILESDIR} PATCH=${PATCH:Q} PATCH_ARGS=${PATCH_ARGS:Q} \
		SMLNJ_HOME="${WRKDIR}" ./config/install.sh
@


1.27
log
@Generate the base/ copy of the runtime from the src/ copy after
patching, instead of extracting twice.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.26 2016/04/14 22:10:06 dholland Exp $
d48 1
d83 30
a112 1
# resolve definition of SML_BASE, CFLAGS in patched files
d114 1
a114 20
	set -e;							\
	if [ ${MACHINE_ARCH} = "powerpc" ]; then		\
		${AWK} '(! /^request nlffi$$/) { print }'	\
		< ${WRKDIR}/config/targets			\
		> ${WRKDIR}/temp;				\
		${MV} ${WRKDIR}/temp ${WRKDIR}/config/targets;	\
	fi
	set -e;						\
	cd ${WRKDIR}/config;				\
	for f in ${SML_SCRIPTS}; do			\
		${CP} "$${f}" "$${f}.tmp";		\
		${SED} -e 's|@@SML_BASE@@|${SML_BASE}|g'	\
			< "$${f}.tmp" > "$${f}";	\
	done;						\
	cd ${WRKDIR}/src/runtime/objs;			\
	for f in *; do					\
		${CP} "$${f}" "$${f}.tmp";		\
		${SED} -e 's|@@CFLAGS@@|'${CFLAGS:Q}'|g'	\
			< "$${f}.tmp" > "$${f}";	\
	done
@


1.26
log
@pkglint
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.25 2016/04/14 21:58:22 dholland Exp $
d50 11
a60 1
# create parent directory for the runtime system
d63 1
d67 2
a68 1
	${RUN} extract_file="${_DISTDIR}/config.tgz"; export extract_file;	\
d70 2
a71 1
	${RUN} extract_file="${_DISTDIR}/runtime.tgz"; export extract_file;	\
a72 2
	${RUN} extract_file="${_DISTDIR}/runtime.tgz"; export extract_file;	\
		mkdir ${WRKDIR}/base; cd ${WRKDIR}/base; ${EXTRACT_CMD}
d74 1
a74 1
# make symlinks to the dist files
d76 5
a80 1
	cd ${WRKDIR} && ${LN} -sf ${_DISTDIR}/*  .
@


1.25
log
@Use struct timeval instead of blithely assuming that some private
struct declaration is always bit compatible with it. (Because it
isn't.) My patches from PR 40954 circa 2009, which it turns out is
still relevant even after the last couple updates. (Just for some
reason it had stopped crashing.)

This does not make smlnj build for me, but it gets further than it
used to.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.24 2012/10/02 20:11:53 asau Exp $
d69 1
d71 1
a71 1
		${AWK} '(! /^request nlffi$$/) { print }' \
d76 1
d86 1
a86 1
		${SED} -e 's|@@CFLAGS@@|${CFLAGS}|g'	\
d93 1
a93 1
	FILESDIR="${FILESDIR}" PATCH="${PATCH}" PATCH_ARGS="${PATCH_ARGS}" \
@


1.24
log
@Drop superfluous PKG_DESTDIR_SUPPORT, "user-destdir" is default these days.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.23 2012/01/29 20:48:48 asau Exp $
d34 1
@


1.23
log
@Update to SML/NJ 110.73


SML/NJ 110.73 provides a number of new library features,
including a new library for working with HTML 4, as well
as many bug fixes.

Details:

CM:
   + Added boolean literals (true and false) to the
     conditional-expression syntax in CM. Thus, you can write

         #if true structure Foo #endif

     in a CM file. This change is meant to make it easier to use
     autoconf to configure the build process of an SML
     application.
ML-Yacc:
   + Fixed ml-yacc examples to respect the changed signatures
     with respect to TextIO.inputLine.

SML/NJ Library:
   + Added findExe function to PathUtil module.
   + Modified the implementation of GetOpt.usageInfo so that if
     the help string has embedded newlines, then the extra lines
     are properly indented.
   + Changed the interface of JSONStreamParser to support both
     parsing files and TextIO.instreams.
   + Added HTML4 library.
   + Fixed bug in hashed cons library (bug #55).
   + Added array iterators to DynamicArray module.
Concurrent ML:
   + The paths used to specify the CML versions of libraries in
     a CM file have been rationalized (bug #68)

         $cml/basis.cm -- the CML version of $/basis.cm
         $cml/cml.cm -- core CML features
         $cml/cml-lib.cm -- CML library code
         $cml/trace-cml.cm -- TraceCML library for debugging
         $cml/smlnj-lib.cm -- CML version of the $/smlnj-lib.cm library
         $cml/inet-lib.cm -- CML version of the $/inet-lib.cm library
         $cml/unix-lib.cm -- CML version of the $/unix-lib.cm library

     Note that the old naming scheme is still supported, but may
     be removed in some future version.
   + Added Barriers module to CML.
   + Fixed the Win32 socket and polling implementation to work
     correctly with CML. Signature of poll was wrong and didn't
     handle sockets at all.
MLRISC:
   + Added support for the RTDSC and RTDSCP instructions to the
     amd64 code generator.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.22 2010/02/07 03:14:36 asau Exp $
a34 2
PKG_DESTDIR_SUPPORT=	user-destdir

@


1.22
log
@Update to SML/NJ 110.72, bug fix release.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.21 2009/09/22 15:07:23 asau Exp $
d33 1
a33 1
SML_VERSION=	110.72
@


1.21
log
@Remove comment about outdated mirror.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.20 2009/09/22 14:48:47 asau Exp $
d22 6
a27 1
		system.tgz
d33 1
a33 1
SML_VERSION=	110.71
@


1.20
log
@Update to SML/NJ 110.71.
Numerous changes since version 110.42 include AMD64 support and loads of bug fixes,
detailed list of changes is at http://www.smlnj.org/dist/working/110.71/NOTES/HISTORY
@
text
@d1 1
a1 1
# $NetBSD$
a31 3
# Other mirror sites that generally carry only released versions of SML
# 	ftp://rodin.stanford.edu/pub/smlnj/release/

@


1.19
log
@Second round of explicit pax dependencies. As reminded by tnn@@,
many packages used to use ${PAX}. Use the common way of directly calling
pax, it is created as tool after all.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.18 2008/03/04 16:38:13 jlam Exp $
a5 1
PKGREVISION=	3
d7 1
a7 3
MASTER_SITES=	ftp://flint.cs.yale.edu/pub/smlnj/working/${SML_VERSION}/ \
		http://smlnj.cs.uchicago.edu/dist/working/${SML_VERSION}/ \
		ftp://flint.cs.yale.edu/pub/smlnj/working/${SML_VERSION}/
d18 1
a18 2
		ml-nlffi-lib.tgz		\
		ml-nlffigen.tgz			\
d28 1
a28 1
SML_VERSION=	110.42
a33 2
# 	ftp://ftp.cl.cam.ac.uk/MIRRORED/smlnj/release/
# 	ftp://ftp.ntua.gr/pub/lang/smlnj/release/
a48 2
INSTALLATION_DIRS+=	bin

d55 1
a55 2
	${_PKG_SILENT}${_PKG_DEBUG}					\
	extract_file="${_DISTDIR}/config.tgz"; export extract_file;	\
d57 1
a57 2
	${_PKG_SILENT}${_PKG_DEBUG}					\
	extract_file="${_DISTDIR}/runtime.tgz"; export extract_file;	\
d59 2
d68 6
a73 1
	${CPP} ${FILESDIR}/targets > ${WRKSRC}/config/targets.customized
a92 3
post-build:
	chmod -R go-w ${WRKSRC}

d98 1
@


1.18
log
@Mechanical changes to add DESTDIR support to packages that install
their files via a custom do-install target.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.17 2007/01/23 06:08:31 rillig Exp $
d43 1
a43 1
USE_TOOLS+=	gmake
d106 1
a106 1
	cd ${WRKDIR} && ${PAX} -rw -pam bin lib ${DESTDIR}${SML_BASE}
@


1.17
log
@Fixed group-writable files. PKGREVISION++
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.16 2006/05/18 20:32:22 wiz Exp $
d34 2
d105 3
a107 3
	${INSTALL_DATA_DIR} ${SML_BASE}
	cd ${WRKDIR} && ${PAX} -rw -pam bin lib ${SML_BASE}
	cd ${PREFIX}/bin && ${LN} -sf ../lib/smlnj/bin/* .
@


1.16
log
@Remove BROKEN_IN, builds in current 3.0 bulk builds.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.15 2006/02/05 23:09:48 joerg Exp $
d6 1
a6 1
PKGREVISION=	2
d94 3
@


1.15
log
@Recursive revision bump / recommended bump for gettext ABI change.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.14 2006/01/04 04:29:07 schmonz Exp $
a31 2
BROKEN_IN=	pkgsrc-2005Q4

@


1.14
log
@Express these packages' brokenness with BROKEN_IN=pkgsrc-2005Q4
rather than PKG_FAIL_REASON, so that they provide useful error
messages in build logs, and so that they continue to work on platforms
where they aren't broken.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.13 2005/12/26 23:39:32 schmonz Exp $
d6 1
a6 1
PKGREVISION=	1
@


1.13
log
@Mark packages for pkgsrc-2005Q4 that don't build on NetBSD/i386
3.0. If one of these is important to you, please fix it in time
for pkgsrc-2006Q1, or it may be removed.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.12 2005/12/08 09:52:15 rillig Exp $
d32 1
a32 2
PKG_FAIL_REASON+=	"Broken on NetBSD/i386 3.0 in pkgsrc-2005Q4"
PKG_FAIL_REASON+=	"Will be removed in pkgsrc-2006Q1 unless fixed"
@


1.12
log
@Bumped the PKGREVISION of the packages that have been broken by the recent
"pkglint --autofix" change.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.11 2005/06/16 06:58:01 jlam Exp $
d32 3
@


1.11
log
@Create directories before installing files into them.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.10 2005/05/22 20:08:11 jlam Exp $
d6 1
@


1.10
log
@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
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.9 2005/04/11 21:46:16 tv Exp $
d52 2
@


1.9
log
@Remove USE_BUILDLINK3 and NO_BUILDLINK; these are no longer used.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.8 2004/06/06 04:38:29 snj Exp $
d40 1
a40 1
USE_GNU_TOOLS+=	make
@


1.8
log
@Revert to smlnj-110.42, as 110.45 is troublesome.  While doing so, keep it
using buildlink3, fetchable, and buildable with gcc3.

Requested by the package's maintainer.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.6 2004/01/24 13:51:15 grant Exp $
a39 1
USE_BUILDLINK3=	YES
@


1.7
log
@Update to smlnj-110.45.

"The latest working version (110.45) fixes some installation problems
caused by incompatibilities with GCC 3.3. Earlier, 110.44 brought our
implementation of the Basis library closer to the specification, fixed
several important bugs, and provided support for Mac OS X 10.3
(Panther).  The previous working release (110.43) offered an operational
win32 port, added IntInf support to compiler and Basis library, and also
updated many interfaces of the Basis according to the latest draft of
the specification."

Provided by Jesper Louis Andersen in PR pkg/24586.

Also fixes PR pkg/23480.
@
text
@d2 1
d7 1
a7 1
MASTER_SITES=	http://www.smlnj.org/dist/working/${SML_VERSION}/ \
d31 1
a31 1
SML_VERSION=	110.45
@


1.6
log
@replace deprecated USE_GMAKE with USE_GNU_TOOLS+=make.
@
text
@d1 1
a1 2
# $NetBSD: Makefile,v 1.5 2004/01/20 12:19:17 agc Exp $
#
d30 1
a30 1
SML_VERSION=	110.42
d39 1
@


1.5
log
@Move WRKSRC definition away from the first paragraph in a Makefile.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.4 2003/07/01 23:10:32 jtb Exp $
d40 1
a40 1
USE_GMAKE=	yes
@


1.4
log
@Make this work on powerpc.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.3 2003/03/29 12:41:32 jmmv Exp $
a5 1
WRKSRC=		${WRKDIR}
d38 1
@


1.3
log
@Place WRKSRC where it belongs, to make pkglint happy; ok'ed by wiz.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.2 2003/03/21 22:54:38 wiz Exp $
d71 1
@


1.2
log
@Update to 110.42, from Christopher Richards in connection with PR 18678.
Changes:
A number of small, but important bug fixes.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.1.1.1 2003/03/21 22:20:55 wiz Exp $
d6 1
a39 1
WRKSRC=		${WRKDIR}
@


1.1
log
@Initial revision
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.13 2002/09/29 15:03:19 wiz Exp $
d7 2
a8 1
MASTER_SITES=	ftp://ftp.research.bell-labs.com/dist/smlnj/working/${SML_VERSION}/ \
d27 2
a28 2
MAINTAINER=	packages@@netbsd.org
HOMEPAGE=	http://cm.bell-labs.com/cm/cs/what/smlnj/index.html
d31 1
a31 6
SML_VERSION=	110.41

# smlnj also supports hppa, sparc, ppc, mlrisc & alpha
# pkg support for those platforms, and say, solaris-x86
# is left as an (easy) exercise for the reader.
ONLY_FOR_PLATFORM=	NetBSD-*-i386 SunOS-*-sparc NetBSD-*-sparc
d38 1
a38 1
DIST_SUBDIR=	sml-nj-${SML_VERSION}
d48 1
d50 1
a50 14
.include "../../mk/bsd.prefs.mk"

.if ${OPSYS} == "SunOS" && ${MACHINE_ARCH} == "sparc"
BOX=		sparc
OS=		${LOWER_OPSYS}
.elif ${OPSYS} == "NetBSD" && ${MACHINE_ARCH} == "i386"
BOX=		x86
OS=		bsd
.elif ${OPSYS} == "NetBSD" && ${MACHINE_ARCH} == "sparc"
BOX=		sparc
OS=		bsd
.endif

PLIST_SUBST+=	BOX=${BOX} OS=${OS}
d69 15
d88 1
a88 1
		./config/install.sh
d94 1
a94 2
# 3. edit scripts to override BIN_DIR and CM_PATHCONFIG
# 4. install links to executables in $PREFIX/bin
d97 2
a98 9
	(cd ${WRKDIR} && ${PAX} -rw -pam bin lib ${SML_BASE})
.for script in .link-sml .run-sml ml-build ml-makedepend
	${RM} -f ${SML_BINDIR}/${script}
	${SED} -e "s,^BIN_DIR=.*\$$,BIN_DIR=${SML_BINDIR}," \
	       -e "s,^exec,CM_PATHCONFIG=${SML_LIBDIR}/pathconfig exec," \
		${WRKDIR}/bin/${script} > ${SML_BINDIR}/${script}
	${CHMOD} ${BINMODE} ${SML_BINDIR}/${script}
.endfor
	(cd ${PREFIX}/bin && ${LN} -sf ${SML_BINDIR}/* .)
@


1.1.1.1
log
@Reimport sml-nj as smlnj, which is the name commonly used by the community.
Suggested by Christopher Richards in connection with PR 18678.
@
text
@@
