head	1.22;
access;
symbols
	RELEASE_8_3_0:1.20
	RELEASE_9_0_0:1.20
	RELEASE_7_4_0:1.20
	RELEASE_8_2_0:1.20
	RELEASE_6_EOL:1.20
	RELEASE_8_1_0:1.20
	RELEASE_7_3_0:1.20
	RELEASE_8_0_0:1.20
	RELEASE_7_2_0:1.20
	RELEASE_7_1_0:1.19
	RELEASE_6_4_0:1.19
	RELEASE_5_EOL:1.18
	RELEASE_7_0_0:1.17
	RELEASE_6_3_0:1.17
	PRE_XORG_7:1.16
	RELEASE_4_EOL:1.16
	RELEASE_6_2_0:1.16
	RELEASE_6_1_0:1.14
	RELEASE_5_5_0:1.14
	RELEASE_6_0_0:1.14
	RELEASE_5_4_0:1.13
	RELEASE_4_11_0:1.13
	RELEASE_5_3_0:1.12
	RELEASE_4_10_0:1.9
	RELEASE_5_2_1:1.8
	RELEASE_5_2_0:1.8
	RELEASE_4_9_0:1.6
	RELEASE_5_1_0:1.6
	RELEASE_4_8_0:1.4
	RELEASE_5_0_0:1.3
	RELEASE_4_7_0:1.2
	RELEASE_4_6_2:1.2
	RELEASE_4_6_1:1.2
	RELEASE_4_6_0:1.2
	RELEASE_5_0_DP1:1.2
	RELEASE_4_5_0:1.2;
locks; strict;
comment	@# @;


1.22
date	2012.11.17.05.58.49;	author svnexp;	state Exp;
branches;
next	1.21;

1.21
date	2012.09.07.23.17.09;	author delphij;	state Exp;
branches;
next	1.20;

1.20
date	2009.01.05.20.36.28;	author pav;	state Exp;
branches;
next	1.19;

1.19
date	2008.08.18.13.36.19;	author pav;	state Exp;
branches;
next	1.18;

1.18
date	2008.03.03.23.39.37;	author linimon;	state Exp;
branches;
next	1.17;

1.17
date	2007.10.03.23.22.02;	author edwin;	state Exp;
branches;
next	1.16;

1.16
date	2006.04.29.13.05.31;	author pav;	state Exp;
branches;
next	1.15;

1.15
date	2006.04.17.13.48.09;	author ru;	state Exp;
branches;
next	1.14;

1.14
date	2005.07.07.18.57.07;	author pav;	state Exp;
branches;
next	1.13;

1.13
date	2004.11.01.21.42.14;	author jdp;	state Exp;
branches;
next	1.12;

1.12
date	2004.08.10.17.44.53;	author jdp;	state Exp;
branches;
next	1.11;

1.11
date	2004.08.02.20.14.08;	author jdp;	state Exp;
branches;
next	1.10;

1.10
date	2004.05.16.17.42.04;	author jdp;	state Exp;
branches;
next	1.9;

1.9
date	2004.02.04.05.21.33;	author marcus;	state Exp;
branches;
next	1.8;

1.8
date	2003.10.08.16.43.14;	author jdp;	state Exp;
branches;
next	1.7;

1.7
date	2003.09.24.09.36.55;	author osa;	state Exp;
branches;
next	1.6;

1.6
date	2003.04.16.02.05.19;	author jdp;	state Exp;
branches;
next	1.5;

1.5
date	2003.04.15.19.04.39;	author jdp;	state Exp;
branches;
next	1.4;

1.4
date	2003.03.07.06.05.30;	author ade;	state Exp;
branches;
next	1.3;

1.3
date	2002.10.30.18.51.10;	author tmm;	state Exp;
branches;
next	1.2;

1.2
date	2002.01.21.21.43.37;	author jdp;	state Exp;
branches;
next	1.1;

1.1
date	2002.01.01.22.23.50;	author jdp;	state Exp;
branches;
next	;


desc
@@


1.22
log
@Switch exporter over
@
text
@# New ports collection makefile for:	ezm3
# Date created:		1 Jan 2002
# Whom:			John Polstra <jdp@@FreeBSD.org>
#
# $FreeBSD: head/lang/ezm3/Makefile 303838 2012-09-07 23:17:09Z delphij $
#

PORTNAME=	ezm3
PORTVERSION=	1.2
PORTREVISION=	1
CATEGORIES=	lang
MASTER_SITES=	ftp://ftp.FreeBSD.org/pub/FreeBSD/development/CVSup/ezm3/:src \
		http://people.freebsd.org/~peter/ezm3-amd64/:amdb \
		ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/local-distfiles/pav/:amdp
DISTFILES=	ezm3-${PORTVERSION}-src.tar.bz2:src
DIST_SUBDIR=	ezm3

MAINTAINER=	ports@@FreeBSD.org
COMMENT=	Easier, more portable Modula-3 distribution for building CVSup

USE_BZIP2=	yes
USE_GMAKE=	yes

.include <bsd.port.pre.mk>

.if ${ARCH} == "amd64"
DISTFILES+=	ezm3-${PORTVERSION}-${TARGET}-boot.tar.bz2:amdb \
		ezm3-amd64-patchset-2.tar.bz2:amdp
.else
DISTFILES+=	ezm3-${PORTVERSION}-${TARGET}-boot.tar.bz2:src
.endif

INSTALL_TARGET=	all
MAKE_ARGS+=	M3OPTIONS="-DBUILD_ALL -DSHIP_ALL"
MAN1=		m3bundle.1
PLIST_SUB+=	ARCH=${ARCH} TARGET=${TARGET} WORDSIZE=${WORDSIZE} \
		ENDIANESS=${ENDIANESS}
SCRIPTS_ENV+=	TARGET=${TARGET}

PROGS=		bin/m3build \
		bin/m3bundle \
		bin/m3ship \
		lib/m3/${TARGET}/m3cgc1

ONLY_FOR_ARCHS=	alpha amd64 i386 sparc64

.if ${ARCH} == "alpha"
TARGET=		FBSD_ALPHA
WORDSIZE=	64
ENDIANESS=	le
PLIST_SUB+=	AMD64="@@comment "
.elif ${ARCH} == "amd64"
MAINTAINER=	bzeeb+freebsdports@@zabbadoz.net
PORTVERSION=	1.1
PORTREVISION=	2
AMD64_PATCHES=	p-amd64-common p-amd64-gcc p-amd64-gcc-321-322 p-amd64-gcchacks \
		p-amd64-gccstatic p-amd64-m3 p-amd64-m3-except-sort p-amd64-newfiles
EXTRA_PATCHES=	${PATCHDIR}/extra-patch-fcntl
TARGET=		FBSD_AMD64
WORDSIZE=	64
ENDIANESS=	le
PLIST_SUB+=	AMD64=""
.elif ${ARCH} == "i386"
TARGET=		FreeBSD4
WORDSIZE=	32
ENDIANESS=	le
PLIST_SUB+=	AMD64="@@comment "
.elif ${ARCH} == "sparc64"
TARGET=		FBSD_SPARC64
WORDSIZE=	64
ENDIANESS=	be
PLIST_SUB+=	AMD64="@@comment "
.endif

# The build fails for -O2 or greater.  Override it with plain -O.
.if defined(CFLAGS) && !empty(CFLAGS:M-O[2-9s]*)
CFLAGS+=	-O
.endif

pre-patch:
.if ${ARCH} == "amd64"
.for f in ${AMD64_PATCHES}
	@@cd ${WRKSRC} && ${PATCH} ${PATCH_ARGS} < ${WRKDIR}/${f}
.endfor
.endif
.if ${OSVERSION} >= 1000012
	@@${FIND} ${WRKSRC} -name 'malloc.c' -exec truncate -s 0 {} +
.endif

do-build:
	@@${ECHO_MSG} "This port does everything in the install step."
	@@${ECHO_MSG} "The build step is a no-op."

pre-install:
	@@${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/check_conflicts

do-install:
	@@${RM} -rf ${WRKSRC}/${TARGET}
	@@(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} \
		${MAKEFILE} ${MAKE_ARGS} ${INSTALL_TARGET})
	@@for i in ${PROGS}; do ${STRIP_CMD} ${PREFIX}/$$i; done
	@@${MKDIR} ${PREFIX}/share/ezm3
	@@${INSTALL_DATA} ${WRKSRC}/src/COPYRIGHT ${PREFIX}/share/ezm3

.include <bsd.port.post.mk>
@


1.21
log
@SVN rev 303838 on 2012-09-07 23:17:09Z by delphij

Unbreak for recent FreeBSD versions by zapping out malloc.c, which is no
longer needed in modern FreeBSD versions.

PORTREVISION intentionally not bumped.
@
text
@d5 1
a5 1
# $FreeBSD$
@


1.20
log
@- Remove conditional checks for FreeBSD 5.x and older
@
text
@d86 3
@


1.19
log
@- Add an extra patch for amd64 that fixes runtime after recent fcntl changes

Submitted by:	jkoshy
@
text
@a86 6
post-patch:
.if ${ARCH} == "sparc64" && ${OSVERSION} < 502107
	@@${REINPLACE_CMD} -E -e 's|(^.*time_t.*=.*)int64_t;|\1int32_t;|' \
		${WRKSRC}/libs/m3core/src/unix/freebsd-4.sparc64/Utypes.i3
.endif

@


1.18
log
@jdp has turned in his commit bit, so reset maintainership.  We thank him
for his many years of work on this port.

While here, reorganize the Makefile a bit to pacify portlint.  (No change
other than MAINTAINER).
@
text
@d55 1
d58 1
@


1.17
log
@Remove support for OSVERSION < 5
@
text
@a11 1

d16 7
a32 4
MAINTAINER=	jdp@@FreeBSD.org
COMMENT=	Easier, more portable Modula-3 distribution for building CVSup

DIST_SUBDIR=	ezm3
a38 2
USE_BZIP2=	yes
USE_GMAKE=	yes
@


1.16
log
@- Reroll amd64 patchset with updated Unix.i3. No functional changes.

Requested by:	ru
@
text
@a46 4
.if ${OSVERSION} < 410000
BROKEN=		Not supported on versions earlier than 4.1-RELEASE
.endif

@


1.15
log
@Fix fcntl(2) support on 64-bit platforms (alpha, amd64, sparc64).
This makes "cvsup -l" work on them in particular.

PR:		ports/75015
Approved by:	jdp
Reviewed by:	bz, jdp
@
text
@d22 1
a22 1
		ezm3-amd64-patchset.tar.bz2:amdp
a38 1
USE_REINPLACE=	yes
a92 3
.elif ${ARCH} == "amd64"
	@@${CP} ${WRKSRC}/libs/m3core/src/unix/freebsd-4.alpha/Unix.i3 \
	    ${WRKSRC}/libs/m3core/src/unix/freebsd-4.amd64/Unix.i3
@


1.14
log
@- Enable ezm3 on amd64 architecture. This is achieved by taking an older
  version, 1.1, and adding a quite massive patchset made by Peter Wemm
  and Bjoern A. Zeeb.
- Bjoern A. Zeeb agreed to take maintainership of this port for amd64 arch
  (read: help endusers solving their problems)

Based on:	bz's patches floating on mailing list
Approved by:	jdp (maintainer)
@
text
@d10 1
d94 3
@


1.13
log
@If -O[2-9] or -Os is in CFLAGS, override it with plain -O.  The ezm3
build fails at elevated optimization levels due to aliasing bugs in
its elderly version of dtoa.c.

PR:		ports/71456
@
text
@d11 14
a24 4
MASTER_SITES=	${MASTER_SITE_FREEBSD_ORG}
MASTER_SITE_SUBDIR=development/CVSup/ezm3
DISTFILES=	ezm3-${PORTVERSION}-${TARGET}-boot.tar.bz2 \
		ezm3-${PORTVERSION}-src.tar.bz2
d45 1
a45 3
.include <bsd.port.pre.mk>

ONLY_FOR_ARCHS=	alpha i386 sparc64
d55 10
d69 1
d74 1
d82 7
@


1.12
log
@Fix an incorrect distfile name for the Alpha.
@
text
@d57 5
@


1.11
log
@Update to ezm3-1.2.
@
text
@d13 1
a13 1
DISTFILES=	${BOOTSTRAP} \
a46 1
BOOTSTRAP=	ezm3-${PORTVERSION}a-${TARGET}-boot.tar.bz2
a50 1
BOOTSTRAP=	ezm3-${PORTVERSION}-${TARGET}-boot.tar.bz2
a54 1
BOOTSTRAP=	ezm3-${PORTVERSION}-${TARGET}-boot.tar.bz2
@


1.10
log
@Fix the ezm3 port to deal with 64-bit time_t on the sparc64 platform.
Two patches were submitted for this.  I opted to use the simpler one
due to the issues described in the PR follow-up.  Bump PORTREVISION.

PR:		ports/66159
Submitted by:	marius
@
text
@d9 1
a9 2
PORTVERSION=	1.1
PORTREVISION=	2
d61 2
a62 2
.if ${ARCH} == "sparc64" && ${OSVERSION} >= 502107
	@@${REINPLACE_CMD} -E -e 's|(^.*time_t.*=.*)int32_t;|\1int64_t;|' \
@


1.9
log
@Bump PORTREVISION on all ports that depend on gettext to aid with upgrading.

(Part 2)
@
text
@d10 1
a10 1
PORTREVISION=	1
d29 1
d59 6
@


1.8
log
@Parameterize the target's byte ordering in the packing list.  This
fixes the package builds for sparc64.

PR:		ports/57265
Submitted by:	Marius Strobl <marius@@alchemy.franken.de>
@
text
@d10 1
@


1.7
log
@Make portlint(1) happy by changing strip to ${STRIP_CMD}

Submitted by:	Oleg Karachevtsev <ok@@etrust.ru>
PR:		56998
@
text
@d23 2
a24 1
PLIST_SUB+=	ARCH=${ARCH} TARGET=${TARGET} WORDSIZE=${WORDSIZE}
d45 1
d50 1
d55 1
@


1.6
log
@I had to roll a new compiler bootstrap for the FreeBSD/alpha
platform because of a last-minute botch generating the original one.
Update the port to use the corrected bootstrap tarball.
@
text
@d66 1
a66 1
	@@for i in ${PROGS}; do strip ${PREFIX}/$$i; done
@


1.5
log
@Upgrade to ezm3 1.1.  This adds support for FreeBSD/sparc64.

Because of an unavoidable API change in this release, CVSup versions
prior to 16.1h probably won't build using this version of ezm3.
@
text
@a31 1
BOOTSTRAP=	ezm3-${PORTVERSION}-${TARGET}-boot.tar.bz2
d44 1
d48 1
d52 1
@


1.4
log
@Clear moonlight beckons.
Requiem mors pacem pkg-comment,
And be calm ports tree.

E Nomini Patri, E Fili, E Spiritu Sancti.
@
text
@d9 1
a9 1
PORTVERSION=	1.0
d23 1
a23 1
PLIST_SUB+=	TARGET=${TARGET} TARGETDIR=${TARGETDIR} WORDSIZE=${WORDSIZE}
d36 9
a44 4
.if ${PORTOBJFORMAT} == "aout"
TARGET=		FreeBSD2
TARGETDIR=	freebsd-2
WORDSIZE=	32
a45 4
.if ${OSVERSION} < 400011
TARGET=		FreeBSD3
TARGETDIR=	freebsd-3
.else
a46 2
TARGETDIR=	freebsd-4
.endif
d48 2
a49 6
.elif ${ARCH} == "alpha"
.if ${OSVERSION} < 400011
BROKEN=		Not supported on older versions of FreeBSD/Alpha
.endif
TARGET=		FBSD_ALPHA
TARGETDIR=	fbsd-alpha
a50 6
.endif

.if !defined(TARGET)
pre-fetch:
	@@${ECHO_MSG} "Cannot determine M3 target for this architecture"
	@@${FALSE}
@


1.3
log
@Fix a construct that causes make errors on platforms that are not
supported by these ports. This fixes 'make readmes' for them on
sparc64 (and by that, release building without NOPORTS).

Approved by:	jdp
@
text
@d17 1
@


1.2
log
@Add a pre-install target which checks for conflicting shared
libraries left over from other Modula-3 ports.
@
text
@d57 1
a57 1
.if empty(TARGET)
@


1.1
log
@Add a port for ezm3, a smaller, more portable distribution of the
Modula-3 compiler and runtime system for people who just want to
build CVSup.  Smaller distfiles!  Faster builds!  No runtime
dependencies!  Less memory usage!  No more RTHeapDepC.c problems!
Smoother skin and glossier fur!  (Well, most of those things.)
@
text
@d67 3
@

