head	1.7;
access;
symbols
	RELEASE_8_3_0:1.6
	RELEASE_9_0_0:1.6
	RELEASE_7_4_0:1.5
	RELEASE_8_2_0:1.5
	RELEASE_6_EOL:1.5
	RELEASE_8_1_0:1.5
	RELEASE_7_3_0:1.5
	RELEASE_8_0_0:1.4
	RELEASE_7_2_0:1.3
	RELEASE_7_1_0:1.1
	RELEASE_6_4_0:1.1;
locks; strict;
comment	@# @;


1.7
date	2012.11.17.05.58.53;	author svnexp;	state Exp;
branches;
next	1.6;

1.6
date	2011.05.12.06.58.10;	author culot;	state Exp;
branches;
next	1.5;

1.5
date	2009.12.31.10.03.32;	author pav;	state Exp;
branches;
next	1.4;

1.4
date	2009.07.08.21.28.58;	author pav;	state Exp;
branches;
next	1.3;

1.3
date	2009.04.11.13.23.04;	author stas;	state Exp;
branches;
next	1.2;

1.2
date	2009.03.19.22.51.11;	author pav;	state Exp;
branches;
next	1.1;

1.1
date	2008.09.06.04.26.26;	author chinsan;	state Exp;
branches;
next	;


desc
@@


1.7
log
@Switch exporter over
@
text
@# New ports collection makefile for:	mtasc
# Date created:		2008-09-06
# Whom:			Marcin Cieslak <saper@@SYSTEM.PL>
#
# $FreeBSD: head/lang/mtasc/Makefile 300896 2012-07-14 13:54:48Z beat $
#

PORTNAME=	mtasc
PORTVERSION=	1.14
PORTREVISION=	1
CATEGORIES=	lang www
MASTER_SITES=	LOCAL/chinsan

MAINTAINER=	saper@@saper.info
COMMENT=	Motion-Twin ActionScript 2 Compiler

BUILD_DEPENDS=	${LOCALBASE}/lib/ocaml/site-lib/extlib/IO.cmi:${PORTSDIR}/devel/ocaml-extlib

USE_OCAML=	yes
USE_OCAML_FINDLIB=yes

OCAMLLEX?=	${LOCALBASE}/bin/ocamllex
OCAMLOPT?=	${LOCALBASE}/bin/ocamlopt

ZLIB_OPTS=	-cclib "${WRKSRC}/extc/extc_stubs.o" -cclib -lz extc.mli extc.ml
SWFLIB_INC=	-I ${WRKSRC}/extc -I ${WRKSRC}/swflib
SWFLIB_FILES=	as3.mli as3code.ml as3parse.ml swf.ml swfZip.ml actionScript.ml \
		swfParser.ml
MTASC_OBJ=	expr.cmx lexer.cmx parser.cmx typer.cmx class.cmx plugin.cmx\
		genSwf.cmx main.cmx

MAN1=		mtasc.1

WRKSRC=		${WRKDIR}/ocaml

.if !defined(NOPORTDATA)
PORTDATA=	std std8
.endif

.include <bsd.port.pre.mk>

do-build:
	(cd ${WRKSRC}/extc && \
		${OCAMLOPT} ${WRKSRC}/extc/extc_stubs.c  && \
		${OCAMLOPT} -a -o extc.cmxa ${ZLIB_OPTS} )
	(cd ${WRKSRC}/swflib && \
		${OCAMLFIND} ocamlopt -package extlib \
			-a -o swflib.cmxa ${SWFLIB_INC} ${SWFLIB_FILES} )
	(cd ${WRKSRC}/mtasc && \
		${OCAMLLEX} lexer.mll && \
		${OCAMLOPT} -c expr.ml lexer.ml && \
		${OCAMLOPT} -c -pp camlp4o parser.ml && \
		${OCAMLFIND} ocamlopt -package extlib -c ${SWFLIB_INC} \
			      typer.ml class.ml plugin.ml \
			      genSwf.ml main.ml )
	(cd ${WRKSRC}/mtasc && \
		${OCAMLFIND} ocamlopt -package extlib -linkpkg \
			-o ${WRKSRC}/mtasc-bin \
			${WRKSRC}/extc/extc.cmxa \
			${WRKSRC}/swflib/swflib.cmxa \
			${MTASC_OBJ} )

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/mtasc-bin	${PREFIX}/bin/mtasc
.if !defined(NOPORTDATA)
	@@${MKDIR} ${DATADIR}
	(cd ${WRKSRC}/mtasc && ${FIND} ${PORTDATA} -type f | ${CPIO} -pdmu ${DATADIR})
	@@${FIND} ${DATADIR} -type d -exec ${CHMOD} 555 {} \;
	@@${FIND} ${DATADIR} -type f -exec ${CHMOD} 444 {} \;
.endif
.if !defined(NO_INSTALL_MANPAGES)
	${INSTALL_MAN} ${WRKSRC}/mtasc/doc/mtasc.1 ${PREFIX}/man/man1
.endif
.if !defined(NOPORTDOCS)
	@@${MKDIR} ${DOCSDIR}
	${INSTALL_DATA}	${WRKSRC}/mtasc/doc/*.txt ${DOCSDIR}
.endif
.if !defined(NOPORTEXAMPLES)
	@@${MKDIR} ${EXAMPLESDIR}
	${INSTALL_DATA}	${WRKSRC}/mtasc/doc/HelloWorld.as ${EXAMPLESDIR}
.endif

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


1.6
log
@- Update MASTER_SITES
- Remove MD5 sum

PR:		ports/156967
Submitted by:	Marcin Cieslak <saper@@saper.info> (maintainer)
@
text
@d5 1
a5 1
# $FreeBSD$
@


1.5
log
@- Restore maintainership

Submitted by:	Marcin Cieslak <saper@@saper.info>
@
text
@d12 1
a12 1
MASTER_SITES=	http://saper.info/distfiles/ LOCAL/chinsan
@


1.4
log
@- Reset maintainer
<saper@@system.pl>
    (reason: 550 user not found... podany uzytkownik nie istnieje...)
@
text
@d14 1
a14 1
MAINTAINER=	ports@@FreeBSD.org
@


1.3
log
@- Update lang/ocaml to 3.11.0. [1]
- Fix devel/cil build with 3.11.0 by using proper object file name
- Fix devel/deputy build with 3.11.0 by using proper object file name
- Fix lang/mtasc. Ocamlp4 syntax has changed and usage of ';' as delimiters
  is not allowed now.
- Fix usage message in lang/mtasc.
- Implement a FreeBSD specific code for retriving the executable path in lang/mtasc.
- Update devel/omake to 0.9.8.5.
- Fix devel/omake compilation with 3.11 by dropping an unused reference from the code.
- Fix www/geneweb build with 3.11 by not emitting errors for warnings.
- Fix print/advi build. [2]
- Update lang/cduce to 0.5.3 (this fixes build with ocaml 3.11.0).

PR:		ports/130845 [1] [2] (based on)
Submitted by:	Hirohisa Yamaguchi <umq@@ueo.co.jp> [1],
		Tsurutani Naoki <turutani@@scphys.kyoto-u.ac.jp> [2]
@
text
@d14 1
a14 1
MAINTAINER=	saper@@SYSTEM.PL
@


1.2
log
@- Drop -n flag to cpio, it's no-op when used with -p, and our BSD cpio does not
  support it

Suggested by:	kientzle
@
text
@d10 1
@


1.1
log
@Add mtasc 1.14, motion-Twin ActionScript 2 Compiler.

PR:		ports/127130
Submitted by:	Marcin Cieslak <saper at SYSTEM.PL>
@
text
@d66 1
a66 1
	(cd ${WRKSRC}/mtasc && ${FIND} ${PORTDATA} -type f | ${CPIO} -pdmnu ${DATADIR})
@

