head	1.11;
access;
symbols
	RELEASE_8_3_0:1.4
	RELEASE_9_0_0:1.3;
locks; strict;
comment	@# @;


1.11
date	2013.01.24.10.43.46;	author svnexp;	state Exp;
branches;
next	1.10;

1.10
date	2012.12.10.19.24.02;	author svnexp;	state Exp;
branches;
next	1.9;

1.9
date	2012.11.17.05.58.48;	author svnexp;	state Exp;
branches;
next	1.8;

1.8
date	2012.09.07.05.09.41;	author lwhsu;	state Exp;
branches;
next	1.7;

1.7
date	2012.06.27.18.07.16;	author lwhsu;	state Exp;
branches;
next	1.6;

1.6
date	2012.06.13.16.19.08;	author lwhsu;	state Exp;
branches;
next	1.5;

1.5
date	2012.05.28.17.40.27;	author scheidell;	state Exp;
branches;
next	1.4;

1.4
date	2012.02.14.12.45.20;	author mm;	state Exp;
branches;
next	1.3;

1.3
date	2011.11.16.16.14.29;	author miwi;	state Exp;
branches;
next	1.2;

1.2
date	2011.11.07.04.00.32;	author lwhsu;	state Exp;
branches;
next	1.1;

1.1
date	2011.10.14.17.00.39;	author lwhsu;	state Exp;
branches;
next	;


desc
@@


1.11
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/310921
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@# Created by: Jyun-Yan You <jyyou@@cs.nctu.edu.tw>
# $FreeBSD: head/lang/ats/Makefile 310921 2013-01-24 10:06:09Z ak $

PORTNAME=	ats
PORTVERSION=	${ATS_VER}
CATEGORIES=	lang
MASTER_SITES=	SF
MASTER_SITE_SUBDIR=	${PORTNAME}-lang/${PORTNAME}-lang/${ATS_IMPL}-${PORTVERSION}
DISTNAME=	${PORTNAME}-lang-${ATS_IMPL}-${PORTVERSION}
EXTRACT_SUFX=	.tgz

MAINTAINER=	jyyou@@cs.nctu.edu.tw
COMMENT=	Language with a type system rooted in the Applied Type System

ONLY_FOR_ARCHS=	i386 amd64
USE_GMAKE=	yes
GNU_CONFIGURE=	yes
CFLAGS+=	-I${LOCALBASE}/include \
		-L${LOCALBASE}/lib

PORTDOCS=	FAQ.txt
PORTEXAMPLES=	AUP INTRO KernighanRitchie MISC MULTICORE TEST

OPTIONS_DEFINE=		GMP PCRE
OPTIONS_DEFAULT=	GMP PCRE

.include <bsd.port.pre.mk>

.if ${ARCH} == amd64
PLIST_SUB+=	LIBDIR="lib64"
.else
PLIST_SUB+=	LIBDIR="lib"
.endif

.if ${PORT_OPTIONS:MGMP}
LIB_DEPENDS+=	gmp:${PORTSDIR}/math/gmp
.endif

.if ${PORT_OPTIONS:MPCRE}
LIB_DEPENDS+=	pcre:${PORTSDIR}/devel/pcre
.endif

post-patch:
	${SED} -i '' -e 's/gcc/${CC}/' \
	    ${WRKSRC}/ccomp/runtime/GCATS/Makefile \
	    ${WRKSRC}/utils/scripts/Makefile \
	    ${WRKSRC}/libatsdoc/Makefile
	${SED} -i '' -e 's/ATSCCOMP_def "gcc"/ATSCCOMP_def "${CC}"/' \
	    ${WRKSRC}/utils/scripts/basics.dats
	${SED} -i '' -e 's/argv_p = "gcc"/argv_p = "${CC}"/' \
	             -e 's/execvp("gcc", argv)/execvp("${CC}", argv)/' \
	    ${WRKSRC}/utils/scripts/atslib.dats

post-configure:
.if empty(PORT_OPTIONS:MGMP)
	${SED} -i '' -e '/HAVE_GMP_H/d' ${WRKSRC}/config.h
.endif
.if empty(PORT_OPTIONS:MPCRE)
	${SED} -i '' -e '/HAVE_PCRE_H/d' ${WRKSRC}/config.h
.endif

post-install:
.if ${PORT_OPTIONS:MDOCS}
	${MKDIR} ${DOCSDIR}
	cd ${WRKSRC}/doc && \
	${COPYTREE_SHARE} "${PORTDOCS}" ${DOCSDIR}
.endif
.if !defined(NOPORTEXAMPLES)
	${MKDIR} ${EXAMPLESDIR}
	cd ${WRKSRC}/doc/EXAMPLE && \
	${COPYTREE_SHARE} "${PORTEXAMPLES}" ${EXAMPLESDIR}
	${FIND} ${EXAMPLESDIR} -name Makefile \
	    -exec ${SED} -i '' -e 's|^ATSUSRQ=.*|ATSUSRQ="${PREFIX}"|' {} \;
.endif

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


1.10
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/308630
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r308630 | mm | 2012-12-10 19:11:11 +0000 (Mon, 10 Dec 2012) | 4 lines
## SVN ##
## SVN ## Update PCRE to 8.32
## SVN ## Introduces the UTF-32 library pcre32
## SVN ## Bump PORTREVISION in dependent ports
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@d1 2
a2 6
# New ports collection makefile for: ats
# Date created: September 29 2011
# Whom: Jyun-Yan You <jyyou@@cs.nctu.edu.tw>
#
# $FreeBSD: head/lang/ats/Makefile 308630 2012-12-10 19:11:11Z mm $
#
a5 1
PORTREVISION=	1
d13 1
a13 1
COMMENT=	A language with a type system rooted in the Applied Type System
d46 2
a47 1
	    ${WRKSRC}/utils/scripts/Makefile
d63 1
a63 1
.if !defined(NOPORTDOCS)
@


1.9
log
@Switch exporter over
@
text
@d5 1
a5 1
# $FreeBSD: head/lang/ats/Makefile 303803 2012-09-07 05:09:41Z lwhsu $
d10 1
@


1.8
log
@SVN rev 303803 on 2012-09-07 05:09:41Z by lwhsu

- Update to 0.2.8

PR:		ports/171374
Submitted by:	Jyun-Yan You <jyyou@@cs.nctu.edu.tw>
@
text
@d5 1
a5 1
# $FreeBSD$
@


1.7
log
@- use empty() to check if an option is not set

PR:		ports/169052
Submitted by:	Jyun-Yan You <jyyou@@cs.nctu.edu.tw> (maintainer)
@
text
@d25 1
a25 1
PORTDOCS=	FAQ.txt BOOK
@


1.6
log
@- Move ats source to FETCH_DEPENDS to avoid fetch failure in slave ports
- Use the new options framework
- Use COPYTREE_SHARE to install data

PR:		ports/168702
Submitted by:	Jyun-Yan You <jyyou@@cs.nctu.edu.tw>
@
text
@d58 1
a58 1
.if !${PORT_OPTIONS:MGMP}
d61 1
a61 1
.if !${PORT_OPTIONS:MPCRE}
@


1.5
log
@- Update to 0.2.7

PR:		ports/168249
Submitted by:	Jyun-Yan You <jyyou@@cs.nctu.edu.tw> (maintainer)
@
text
@a18 3
OPTIONS=	GMP	"Build with GMP support" on \
		PCRE	"Build with PCRE support" on

d28 3
d39 2
a40 2
.if !defined(WITHOUT_GMP)
LIB_DEPENDS+=	gmp.10:${PORTSDIR}/math/gmp
d43 2
a44 2
.if !defined(WITHOUT_PCRE)
LIB_DEPENDS+=	pcre.1:${PORTSDIR}/devel/pcre
d58 1
a58 1
.if defined(WITHOUT_GMP)
d61 1
a61 1
.if defined(WITHOUT_PCRE)
d68 2
a69 8
.for x in ${PORTDOCS}
	cd ${WRKSRC}/doc; \
	${FIND} ${x} -type d -exec ${INSTALL} -d ${DOCSDIR}/{} \;
.endfor
.for x in ${PORTDOCS}
	cd ${WRKSRC}/doc; \
	${FIND} ${x} -type f -exec ${INSTALL_DATA} {} ${DOCSDIR}/{} \;
.endfor
d73 2
a74 8
.for x in ${PORTEXAMPLES}
	cd ${WRKSRC}/doc/EXAMPLE; \
	${FIND} ${x} -type d -exec ${INSTALL} -d ${EXAMPLESDIR}/{} \;
.endfor
.for x in ${PORTEXAMPLES}
	cd ${WRKSRC}/doc/EXAMPLE; \
	${FIND} ${x} -type f -exec ${INSTALL_DATA} {} ${EXAMPLESDIR}/{} \;
.endfor
@


1.4
log
@Bump pcre library dependency due to 8.30 update
@
text
@a9 1
PORTREVISION=	1
d14 1
d47 10
@


1.3
log
@- Update to 0.2.6

PR:		162575
Submitted by:	Jyun-Yan You <jyyou@@cs.nctu.edu.tw> (maintainer)
Feature safe:	yes
@
text
@d10 1
d44 1
a44 1
LIB_DEPENDS+=	pcre.0:${PORTSDIR}/devel/pcre
@


1.2
log
@- Fix build on i386 [1]
- Change unnecessary "?=" to "="

Noticed by:	pointyhat by erwin [1]
Submitted by:	Jyun-Yan You <jyyou@@cs.nctu.edu.tw> (maintainer)
@
text
@d11 1
a11 1
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
d27 1
a27 1
PORTDOCS=	FAQ.txt BOOK TUTORIAL
@


1.1
log
@Add ats 0.2.5, a language with a type system rooted in the Applied Type
System.

PR:		ports/161575
Submitted by:	Jyun-Yan You <jyyou@@cs.nctu.edu.tw>
@
text
@d10 1
a10 1
CATEGORIES?=	lang
@

