head	1.10;
access;
symbols
	RELEASE_8_3_0:1.9
	RELEASE_9_0_0:1.9
	RELEASE_7_4_0:1.6
	RELEASE_8_2_0:1.6
	RELEASE_6_EOL:1.5
	RELEASE_8_1_0:1.1;
locks; strict;
comment	@# @;


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

1.9
date	2011.12.11.21.41.36;	author sahil;	state Exp;
branches;
next	1.8;

1.8
date	2011.10.18.01.50.47;	author sahil;	state Exp;
branches;
next	1.7;

1.7
date	2011.09.23.22.23.46;	author amdmi3;	state Exp;
branches;
next	1.6;

1.6
date	2011.01.23.19.11.41;	author sahil;	state Exp;
branches;
next	1.5;

1.5
date	2010.10.25.03.16.22;	author sahil;	state Exp;
branches;
next	1.4;

1.4
date	2010.10.10.15.40.02;	author sahil;	state Exp;
branches;
next	1.3;

1.3
date	2010.09.12.03.34.28;	author sahil;	state Exp;
branches;
next	1.2;

1.2
date	2010.07.29.02.58.42;	author sahil;	state Exp;
branches;
next	1.1;

1.1
date	2010.04.03.16.52.52;	author itetcu;	state Exp;
branches;
next	;


desc
@@


1.10
log
@Switch exporter over
@
text
@# New ports collection makefile for:	runawk
# Date created:				28 March 2010
# Whom:					Sahil Tandon <sahil@@tandon.net>
#
# $FreeBSD: head/lang/runawk/Makefile 300896 2012-07-14 13:54:48Z beat $
#

PORTNAME=	runawk
PORTVERSION=	1.4.0
CATEGORIES=	lang
MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}

MAINTAINER=	sahil@@FreeBSD.org
COMMENT=	Wrapper for AWK interpreter that implements a modules system

BUILD_DEPENDS=	mk-configure>=0.21.0:${PORTSDIR}/devel/mk-configure

MAKE_ENV+=	SUBPRJ_DFLT="${SUBPRJ_DFLT}"
CPPFLAGS+=	-I${LOCALBASE}/include
LDFLAGS+=	-L${LOCALBASE}/lib -Wl,-rpath -Wl,${LOCALBASE}/lib

MAN1=		${PORTNAME}.1 alt_getopt.1

PLIST_FILES=	bin/${PORTNAME} bin/alt_getopt bin/alt_getopt.sh

SUBPRJ_DFLT=	runawk modules

LICENSE=	MIT

.if !defined(NOPORTDOCS)
PORTDOCS=	*
SUBPRJ_DFLT+=	doc
.endif

.if !defined(NOPORTEXAMPLES)
PORTEXAMPLES=	*
SUBPRJ_DFLT+=	examples
MAKE_ENV+=	EGDIR="${EXAMPLESDIR}"
.endif

do-build:
	@@${SETENV} ${MAKE_ENV} ${LOCALBASE}/bin/mkcmake -C ${WRKSRC}

do-install:
	@@${SETENV} ${MAKE_ENV} ${LOCALBASE}/bin/mkcmake -C ${WRKSRC} ${INSTALL_TARGET}

post-install:
	@@(cd ${DATADIR}; ${FIND} -s . -type f) \
		| ${SED} -ne 's,^,${DATADIR:S,^${PREFIX}/,,}/,p' >> ${TMPPLIST}
	@@${ECHO_CMD} '@@dirrm ${DATADIR:S|${PREFIX}/||}/gawk' >> ${TMPPLIST}
	@@${ECHO_CMD} '@@dirrm ${DATADIR:S|${PREFIX}/||}' >> ${TMPPLIST}

.include <bsd.port.mk>
@


1.9
log
@- Update to 1.4.0

Feature safe:	yes
@
text
@d5 1
a5 1
# $FreeBSD$
@


1.8
log
@- Update to 1.3.2
@
text
@d9 1
a9 1
PORTVERSION=	1.3.2
@


1.7
log
@- Add LDFLAGS to CONFIGURE_ENV and MAKE_ENV (as it was done with LDFLAGS)
- Fix all ports that add {CPP,LD}FLAGS to *_ENV to modify flags instead

PR:		157936
Submitted by:	myself
Exp-runs by:	pav
Approved by:	pav
@
text
@d9 1
a9 1
PORTVERSION=	1.3.1
@


1.6
log
@Update to 1.3.1 and simplify the conditional
installation of examples and documentation.

Feature safe:	yes
@
text
@d18 3
a20 2
MAKE_ENV+=	LDFLAGS="-L${LOCALBASE}/lib -Wl,-rpath -Wl,${LOCALBASE}/lib" \
		CPPFLAGS="-I${LOCALBASE}/include" SUBPRJ_DFLT="${SUBPRJ_DFLT}"
@


1.5
log
@- Update to 1.2.0
- Define LICENSE
- Simplify do-install target
@
text
@d9 1
a9 1
PORTVERSION=	1.2.0
d16 1
a16 1
BUILD_DEPENDS=	mk-configure>=0.20.0:${PORTSDIR}/devel/mk-configure
d19 1
a19 1
		CPPFLAGS="-I${LOCALBASE}/include"
d25 1
a25 2
PORTDOCS=	ChangeLog NEWS README TODO
PORTEXAMPLES=	*
d29 10
a38 1
.include <bsd.port.pre.mk>
a46 8
.if !defined(NOPORTDOCS)
	@@${INSTALL} -o ${DOCOWN} -g ${DOCGRP} -m 555 -d ${DOCSDIR}
	@@${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
.endif
.if !defined(NOPORTEXAMPLES)
	@@${INSTALL} -o ${SHAREOWN} -g ${SHAREGRP} -m 555 -d ${EXAMPLESDIR}
	@@${INSTALL_DATA} ${WRKSRC}/examples/* ${EXAMPLESDIR}
.endif
d52 1
a52 1
.include <bsd.port.post.mk>
@


1.4
log
@- Update to 1.1.0
@
text
@d9 1
a9 1
PORTVERSION=	1.1.0
d16 2
d21 1
a21 2
MAN1=		${PORTNAME}.1
MANCOMPRESSED=	yes
d23 1
a23 1
PLIST_FILES=	bin/${PORTNAME}
d28 2
d32 3
d36 1
a36 5
	@@${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
	@@${MKDIR} ${DATADIR}
	@@${INSTALL_DATA} ${WRKSRC}/modules/*.awk \
		${WRKSRC}/modules/gawk/* ${DATADIR}
	@@${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1.gz ${MANPREFIX}/man/man1
d47 1
a47 1
	@@(cd ${DATADIR}; ${FIND} -s *) \
d49 1
@


1.3
log
@- Update to 1.0.0
@
text
@d9 1
a9 1
PORTVERSION=	1.0.0
d32 2
a33 1
	@@${INSTALL_DATA} ${WRKSRC}/modules/* ${DATADIR}
d45 1
a45 1
	@@(cd ${WRKSRC}/modules; ${FIND} -s *) \
@


1.2
log
@- Update my MAINTAINER address to sahil@@FreeBSD.org
@
text
@d9 1
a9 1
PORTVERSION=	0.21.0
@


1.1
log
@runawk is a small wrapper for AWK that impements a modules
system and helps one to write the standalone AWK programs.

WWW: http://runawk.sourceforge.net/

PR:		ports/145126
Submitted by:	Sahil Tandon <sahil at tandon.net>
@
text
@d13 1
a13 1
MAINTAINER=	sahil@@tandon.net
@

