# Makefile -- FreeBSD ports collection Makefile for the MPS
#
# $Id: //info.ravenbrook.com/project/mps/distribution/freebsd-ports/Makefile#3 $
# $FreeBSD$
#
# See "FreeBSD Porter's Handbook"
# <http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/>.
#
# When updating this file:
#
#   - Be sure to replace all occurrences of the version number in both this
#     file and the pkg-* files.
#
#   - Make sure pkg-plist is an accurate list of the files installed by
#     `make install`
#     Consider using the "Automated Package List Creation" procedure here
#     <http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/plist-autoplist.html>.
#
#   - Use `portlint` and `port test` to check your work.
#     See <http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/testing-portlint.html>
#     and <http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/testing-porttools.html>.
#
# The latest version of this file should always be available at
# <http://www.ravenbrook.com/project/mps/distribution/freebsd-ports/>.
#
# 2012-09-28  rb@ravenbrook.com	 Initial version for MPS 1.110.0.
#
# Created by:	Richard Brooksby <rb@ravenbrook.com>
#

PORTNAME=	mps
PORTVERSION=	1.110.0
CATEGORIES=	devel lang
MASTER_SITES=	http://www.ravenbrook.com/project/mps/release/1.110.0/
DISTNAME=	mps-kit-1.110.0

MAINTAINER=	mps-staff+freebsd-ports@ravenbrook.com
COMMENT=	Memory Pool System -- flexible memory management/GC framework

GNU_CONFIGURE=	yes
USE_GMAKE=	yes

ONLY_FOR_ARCHS=	i386 amd64
ONLY_FOR_ARCHS_REASON=\
	The MPS Kit does not have a configuration for this platform out of \
	the box; see \
	http://www.ravenbrook.com/project/mps/version/1.110/manual/build.txt

# See <http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/dads-pthread.html>
# and <http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/slow-patch.html>.
post-patch:
	@${REINPLACE_CMD} -e 's|-pthread|${PTHREAD_LIBS}|' ${WRKSRC}/code/fr*gc.gmk
	@${REINPLACE_CMD} -e 's|^CFLAGS=|CFLAGS+=|' ${WRKSRC}/code/comm.gmk

.include <bsd.port.mk>
