head	1.31;
access;
symbols
	RELEASE_8_3_0:1.27
	RELEASE_9_0_0:1.27
	RELEASE_7_4_0:1.25
	RELEASE_8_2_0:1.25
	RELEASE_6_EOL:1.25
	RELEASE_8_1_0:1.25
	RELEASE_7_3_0:1.25
	RELEASE_8_0_0:1.25
	RELEASE_7_2_0:1.22
	RELEASE_7_1_0:1.20
	RELEASE_6_4_0:1.20
	RELEASE_5_EOL:1.19
	RELEASE_7_0_0:1.16
	RELEASE_6_3_0:1.16
	PRE_XORG_7:1.14
	RELEASE_4_EOL:1.13
	RELEASE_6_2_0:1.12
	RELEASE_6_1_0:1.8
	RELEASE_5_5_0:1.8;
locks; strict;
comment	@# @;


1.31
date	2013.03.22.23.30.08;	author svnexp;	state Exp;
branches;
next	1.30;

1.30
date	2012.12.10.19.24.02;	author svnexp;	state Exp;
branches;
next	1.29;

1.29
date	2012.11.17.05.58.51;	author svnexp;	state Exp;
branches;
next	1.28;

1.28
date	2012.10.04.07.15.25;	author gahr;	state Exp;
branches;
next	1.27;

1.27
date	2011.05.02.07.58.11;	author gahr;	state Exp;
branches;
next	1.26;

1.26
date	2011.04.11.19.57.46;	author ade;	state Exp;
branches;
next	1.25;

1.25
date	2009.08.17.18.28.24;	author gahr;	state Exp;
branches;
next	1.24;

1.24
date	2009.08.16.21.26.23;	author pav;	state Exp;
branches;
next	1.23;

1.23
date	2009.08.03.15.43.40;	author gahr;	state Exp;
branches;
next	1.22;

1.22
date	2009.03.17.05.25.02;	author linimon;	state Exp;
branches;
next	1.21;

1.21
date	2009.01.05.20.36.30;	author pav;	state Exp;
branches;
next	1.20;

1.20
date	2008.08.14.05.27.52;	author perky;	state Exp;
branches;
next	1.19;

1.19
date	2008.05.20.22.35.49;	author miwi;	state Exp;
branches;
next	1.18;

1.18
date	2008.05.19.05.43.18;	author miwi;	state Exp;
branches;
next	1.17;

1.17
date	2008.01.02.23.43.00;	author mnag;	state Exp;
branches;
next	1.16;

1.16
date	2007.10.04.01.25.16;	author edwin;	state Exp;
branches;
next	1.15;

1.15
date	2007.09.21.20.21.27;	author mnag;	state Exp;
branches;
next	1.14;

1.14
date	2007.04.06.18.28.44;	author mnag;	state Exp;
branches;
next	1.13;

1.13
date	2006.12.05.13.28.59;	author mnag;	state Exp;
branches;
next	1.12;

1.12
date	2006.09.25.18.27.34;	author stas;	state Exp;
branches;
next	1.11;

1.11
date	2006.06.30.02.53.12;	author leeym;	state Exp;
branches;
next	1.10;

1.10
date	2006.05.04.15.05.33;	author perky;	state Exp;
branches;
next	1.9;

1.9
date	2006.05.04.14.38.20;	author perky;	state Exp;
branches;
next	1.8;

1.8
date	2006.01.30.04.17.32;	author perky;	state Exp;
branches;
next	1.7;

1.7
date	2006.01.19.23.46.15;	author kris;	state Exp;
branches;
next	1.6;

1.6
date	2005.12.25.16.39.49;	author perky;	state Exp;
branches;
next	1.5;

1.5
date	2005.12.17.03.17.19;	author perky;	state Exp;
branches;
next	1.4;

1.4
date	2005.12.07.08.06.29;	author perky;	state Exp;
branches;
next	1.3;

1.3
date	2005.12.07.04.07.53;	author perky;	state Exp;
branches;
next	1.2;

1.2
date	2005.11.29.11.19.47;	author perky;	state Exp;
branches;
next	1.1;

1.1
date	2005.11.04.13.36.08;	author perky;	state Exp;
branches;
next	;


desc
@@


1.31
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/314960
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@# Created by: Hye-Shik Chang
# $FreeBSD: head/lang/io/Makefile 314960 2013-03-22 20:06:14Z makc $

PORTNAME=	io
PORTVERSION=	2011.09.12
PORTREVISION=	1
CATEGORIES=	lang

MAINTAINER=	gahr@@FreeBSD.org
COMMENT=	Small prototype-based programming language

LICENSE=	BSD

USE_GITHUB=	yes
GH_ACCOUNT=	stevedekorte
GH_COMMIT=	23afbcc

USE_LDCONFIG=	yes
USES=		cmake:outsource
CMAKE_ARGS+=	-DCMAKE_BUILD_TYPE=release

PORTDOCS=	*
PORTEXAMPLES=	*

.include "${.CURDIR}/Makefile.addons"

post-patch:
	${REINPLACE_CMD} -e 's/^[ ]*add_subdirectory/#&/' \
		${WRKSRC}/addons/CMakeLists.txt
.for addon in ${ADDONS}
	${ECHO} "add_subdirectory(${addon})" >> ${WRKSRC}/addons/CMakeLists.txt
.endfor
	${FIND} ${WRKSRC}/addons -name "*.bak" -o -name "*.orig" -delete

post-install:
.if !defined(NOPORTDOCS)
	${MKDIR} ${DOCSDIR}
	cd ${WRKSRC}/docs && ${COPYTREE_SHARE} . ${DOCSDIR}
.endif
.if !defined(NOPORTEXAMPLES)
	${MKDIR} ${EXAMPLESDIR}
	cd ${WRKSRC}/samples && ${COPYTREE_SHARE} . ${EXAMPLESDIR}
.endif

.include <bsd.port.mk>
@


1.30
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
@d2 1
a2 1
# $FreeBSD: head/lang/io/Makefile 308630 2012-12-10 19:11:11Z mm $
d19 1
a19 2
USE_CMAKE=	yes
CMAKE_OUTSOURCE=yes
@


1.29
log
@Switch exporter over
@
text
@d2 1
a2 1
# $FreeBSD: head/lang/io/Makefile 305235 2012-10-04 07:15:25Z gahr $
d6 1
@


1.28
log
@SVN rev 305235 on 2012-10-04 07:15:25Z by gahr

- Update to 2011.09.12
- Convert to OptionsNG
- Put addons that have dependencies into OPTIONS
@
text
@d2 1
a2 1
# $FreeBSD$
@


1.27
log
@- Update to 0.0.2010.06.07

PR:		156727
Submitted by:	Chris Rees <utisoft@@gmail.com>
@
text
@d1 1
a1 4
# New ports collection makefile for:	io
# Date created:		4 Nov 2005
# Whom:			Hye-Shik Chang
#
a2 1
#
d5 1
a5 1
PORTVERSION=	0.0.2010.06.07
a6 4
MASTER_SITES=	http://www.bayofrum.net/dist/${PORTNAME}/ \
		${MASTER_SITE_LOCAL} \
    		http://people.freebsd.org/~gahr/distfiles/
DISTNAME=	io-${PORTVERSION:S/0.0.//}
d11 1
a11 3
USE_ZIP=	yes
USE_CMAKE=	yes
USE_LDCONFIG=	yes
d13 3
a15 1
WRKSRC=		${WRKDIR}/stevedekorte-io-f641230
d17 4
a20 7
# All addons that do not require extra dependencies
# Additional addons may be added as separate ports with some
# makefile hacking in a manner similar to Qt4 ports
DEFAULT_ADDONS=	AsyncRequest Blowfish Box CGI ContinuedFraction Curses \
		EditLine Flux Fnmatch LZO Loki MD5 \
		NotificationCenter Random Range Rational ReadLine SHA1 \
		SqlDatabase Syslog SystemCall Thread User Zlib
d25 1
a25 12
OPTIONS=	SQLITE3	"SQLite3 support"	off

.include <bsd.port.pre.mk>

.if defined(WITH_SQLITE3)
USE_SQLITE=	3
DEFAULT_ADDONS+=SQLite3
PLIST_SUB+=	SQLITE3=""
SQLITE_LIB=	${LOCALBASE}/lib/libsqlite${SQLITE_VER}.so
.else
PLIST_SUB+=	SQLITE3="@@comment "
.endif
d28 1
a28 1
	${REINPLACE_CMD} -e 's/^add_subdirectory/#&/' \
d30 1
a30 1
.for addon in ${DEFAULT_ADDONS}
d33 1
a33 23
.if defined(WITH_SQLITE3)
	${REINPLACE_CMD} -e 's#.{SQLITE_LIBRARIES}#${SQLITE_LIB}#' \
		${WRKSRC}/addons/SQLite3/CMakeLists.txt
.endif

do-install:
.for bin in io io_static
	${INSTALL_PROGRAM} ${WRKSRC}/_build/binaries/${bin} ${PREFIX}/bin
.endfor
.for lib in libbasekit libgarbagecollector libcoroutine libiovmall
	${INSTALL_LIB} ${WRKSRC}/_build/dll/${lib}.so ${PREFIX}/lib
.endfor
	${MKDIR} ${PREFIX}/lib/${PORTNAME}
.for addon in ${DEFAULT_ADDONS}
# Regex saves problems of -path not working in this macro and
# reduces the number of necessary primaries; we don't want anything
# Makefile-ish installed
	cd ${WRKSRC}/addons && \
	    ${COPYTREE_SHARE} ${addon} ${PREFIX}/lib/${PORTNAME} \
			"! -regex .*[Mm]ake[_FfL].*"
.endfor
	${MKDIR} ${PREFIX}/include/io
	${INSTALL_DATA} ${WRKSRC}/_build/headers/* ${PREFIX}/include/io
d35 1
d45 1
a45 1
.include <bsd.port.post.mk>
@


1.26
log
@Tag the one gmake-3.82 casualty as broken.
@
text
@d9 1
a9 1
PORTVERSION=	0.0.2009.08.03
d11 2
a12 1
MASTER_SITES=	${MASTER_SITE_LOCAL} \
d19 2
a20 4
BROKEN=		Fails in interesting ways with GNU make 3.82

USE_GMAKE=	yes
CFLAGS+=	-fPIC
d23 1
a23 2
WRKSRC=		${WRKDIR}/${DISTNAME}
MAKE_ENV=	INSTALL_PREFIX="${PREFIX}"
d29 1
a29 1
		EditLine Flux Fnmatch LZO Loki MD5 NetworkAdapter \
d36 2
d40 9
d50 8
a57 15
	@@cd ${WRKSRC}/addons && for addon in *; do \
		if ! ${ECHO_CMD} ${DEFAULT_ADDONS} | ${GREP} $$addon > /dev/null; then \
			${RM} -fr $$addon; \
		fi; \
	done

	@@${REINPLACE_CMD} -e 's|CFLAGS = $$(OPTIMIZE)|CFLAGS +=|' \
		${WRKSRC}/Makefile.lib
	@@${REINPLACE_CMD} -e '/CC = gcc/ d' \
		${WRKSRC}/libs/basekit/source/simd_cph/test/Makefile
	@@${REINPLACE_CMD} -e '/cp _build\/dll\/.*\/bin/ d' ${WRKSRC}/Makefile
.if ${ARCH} == "amd64"
	@@${REINPLACE_CMD} -e 's|^CFLAGS =|CFLAGS = -fPIC|' \
	    ${WRKSRC}/Makefile.lib \
	    ${WRKSRC}/libs/basekit/Makefile.lib
d60 16
a75 1
post-install:
d81 1
a81 1
	@@cd ${WRKSRC}/docs && ${COPYTREE_SHARE} . ${DOCSDIR}
d85 1
a85 1
	@@cd ${WRKSRC}/samples && ${COPYTREE_SHARE} . ${EXAMPLESDIR}
@


1.25
log
@- Fix build on amd64

Tested by:	miwi
Many thanks to:	miwi
@
text
@d18 2
@


1.24
log
@- Mark BROKEN on amd64: does not link

Reported by:	pointyhat
@
text
@a37 4
.if ${ARCH} == "amd64"
BROKEN=		does not link
.endif

d50 5
@


1.23
log
@- Update to snapshot of 2009-08-03
- Unbreak on sparc64
- Take maintainship
@
text
@d36 6
d68 1
a68 1
.include <bsd.port.mk>
@


1.22
log
@Mark as broken on sparc64.
@
text
@d9 1
a9 1
PORTVERSION=	0.0.2008.01.20
d11 3
a13 3
MASTER_SITES=	http://io.urbanape.com/release/ \
		http://www.sigusr1.org/~steve/
DISTNAME=	Io-${PORTVERSION:S/0.0.//:S/./-/g}
d15 1
a15 1
MAINTAINER=	ports@@FreeBSD.org
d62 1
a62 7
.include <bsd.port.pre.mk>

.if ${ARCH} == "sparc64"
BROKEN=		Does not compile on sparc64: dumps core
.endif

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


1.21
log
@- Remove conditional checks for FreeBSD 5.x and older
@
text
@d62 7
a68 1
.include <bsd.port.mk>
@


1.20
log
@Release maintainership.
@
text
@a35 6
.include <bsd.port.pre.mk>

.if ${OSVERSION} < 600000
LIB_DEPENDS+=  edit.6:${PORTSDIR}/devel/libedit
.endif

d62 1
a62 1
.include <bsd.port.post.mk>
@


1.19
log
@- Fix build on 5.X

Submitted by:	pavbot
@
text
@d15 1
a15 1
MAINTAINER=	perky@@FreeBSD.org
@


1.18
log
@- Update to 0.0.2008.01.20

PR:		120333
Submitted by:	Dmitry Marakasov <amdmi3@@amdmi3.ru>
Approved by:	maintainer timeout
@
text
@d38 4
@


1.17
log
@- Bump PORTREVISION since devel/libevent are updated.
@
text
@d9 1
a9 2
PORTVERSION=	0.0.2006.05.02
PORTREVISION=	4
d13 1
a13 1
DISTNAME=	IoFull-${PORTVERSION:S/0.0.//:S/./-/g}
a17 3
LIB_DEPENDS=	pcre.0:${PORTSDIR}/devel/pcre \
		event-1.3e:${PORTSDIR}/devel/libevent

d19 2
d22 2
a23 3
WRKSRC=		${WRKDIR}/release/${DISTNAME}/
MAKE_ENV=	INCS="-I${LOCALBASE}/include" LIBLOCAL="-L${LOCALBASE}/lib"
BINDINGS_DEACTIVATE=	Font Image ObjcBridge OpenGL SGML SQLite SQLite3
d25 7
a31 1
.include <bsd.port.pre.mk>
d33 2
a34 3
.if ${ARCH} == "ia64" || ${ARCH} == "sparc64"
BROKEN=		Does not compile on ia64 or sparc64
.endif
d36 1
a36 2
pre-patch:
	${FIND} ${WRKSRC} -name '.DS_Store*' -delete
d38 4
a41 3
	cd ${WRKSRC}/libs && for mod in *; do \
		if [ $$mod != "zlib" ]; then \
			${RM} -fr $$mod; \
a43 17
	cd ${WRKSRC}/bindings; ${RM} -fr ${BINDINGS_DEACTIVATE}

	for mkf in `${FIND} ${WRKSRC} -iname Makefile`; do \
		${REINPLACE_CMD} \
			-e 's,^CFLAGS.*$$,CFLAGS+=-g $${INCS} $${INCLUDE},g' \
			-e 's,^\(LFLAGS.*\)$$,\1 $${LIBLOCAL},g' \
			-e 's,^CC=\(.*\)$$,CC?=\1,g' \
			$$mkf; \
	done

	${REINPLACE_CMD} \
		-e 's,^\( *options := "\).*$$,\1${CFLAGS} -I${LOCALBASE}/include -DSANE_POPEN -DIOBINDINGS",' \
		-e 's,\( -lIoVM\), -L${LOCALBASE}/lib \1 -lncurses ,' \
		${WRKSRC}/_build.io

	${ECHO_CMD} 'Binding clone do (dependsOnLib("z"))' \
		> ${WRKSRC}/bindings/Zlib/_build.io
d45 9
a53 15
post-patch:
	${FIND} ${WRKSRC} -name '*.orig' -delete

do-install:
.for fname in vm/io2c vm/io binaries/ioDesktop binaries/ioServer
	${INSTALL_PROGRAM} ${WRKSRC}/${fname} ${PREFIX}/bin
.endfor

	${INSTALL_DATA} ${WRKSRC}/vm/_libs/libIoVM.a ${PREFIX}/lib
	${INSTALL_DATA} ${WRKSRC}/bindings/*/*.a ${PREFIX}/lib

.for incldir in . SkipDB base
	${MKDIR} ${PREFIX}/include/io/${incldir}
	${INSTALL_DATA} ${WRKSRC}/vm/_include/${incldir}/*.h ${PREFIX}/include/io/${incldir}
.endfor
d57 5
a61 11
	${TAR} -C ${WRKSRC}/_docs -cf - . | ${TAR} -C ${DOCSDIR} -xf -
	@@${FIND} ${DOCSDIR}/ -type f -exec ${CHMOD} ${SHAREMODE} {} \;
	@@${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${DOCSDIR}

.for subdir in ioCode sampleCode docgen unitTests
	${MKDIR} ${EXAMPLESDIR}/${subdir}
	${TAR} -C ${WRKSRC}/vm/_${subdir} -cf - . | \
		${TAR} -C ${EXAMPLESDIR}/${subdir} -xf -
.endfor
	@@${FIND} ${EXAMPLESDIR}/ -type f -exec ${CHMOD} ${SHAREMODE} {} \;
	@@${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${EXAMPLESDIR}
@


1.16
log
@Remove always-false/true conditions based on OSVERSION 500000
@
text
@d10 1
a10 1
PORTREVISION=	3
d20 1
a20 1
		event-1.3d:${PORTSDIR}/devel/libevent
@


1.15
log
@- Change libevent lib and bump PORTREVISION since devel/libevent are updated.
@
text
@a33 4
.if ${OSVERSION} < 500000
USE_GCC=	3.4+
.endif

a61 3
.if ${OSVERSION} < 500000
	@@cd ${WRKSRC} && ${REINPLACE_CMD} -e 's/<stdint.h>/<inttypes.h>/' vm/base/_new/Array/Array.h vm/base/_new/Data.h vm/base/Common.h vm/base/NEW_stdint.h
.endif
@


1.14
log
@- Bump PORTREVISION and change LIB_DEPENDS to reflect libevent update.
@
text
@d10 1
a10 1
PORTREVISION=	2
d20 1
a20 1
		event-1.3b:${PORTSDIR}/devel/libevent
@


1.13
log
@- Bump PORT_REVISION and change LIB_DEPENDS to reflect update in devel/libevent
- Fix many wrong BUILD_DEPENDS. Thanks to ldd(1)
@
text
@d10 1
a10 1
PORTREVISION=	1
d20 1
a20 1
		event-1.2a:${PORTSDIR}/devel/libevent
@


1.12
log
@- Guararantee file permissions
- Fix pkg-plist in case of NOPORTDOCS was specified

Approved by:	perky (maintainer), sem (mentor)
@
text
@d10 1
d20 1
a20 1
		event-1.2.1:${PORTSDIR}/devel/libevent
@


1.11
log
@- update dependencies for libevent-1.2
@
text
@d85 2
d93 2
@


1.10
log
@Update 0.0.2006.05.02
@
text
@d19 1
a19 1
		event-1.1a.1:${PORTSDIR}/devel/libevent
@


1.9
log
@Fix portlint warnings.

PR:		95830
Submitted by:	Alexander Botero-Lowry <alex@@foxybanana.com>
@
text
@d9 1
a9 1
PORTVERSION=	0.0.2006.01.27
a39 1
	${RM} ${WRKSRC}/vm/base/DynLib_OSX.c
d86 1
a86 1
.for subdir in ioCode new sampleCode docgen unitTests
@


1.8
log
@Update to release of 2006-01-27.
@
text
@a21 1
USE_REINPLACE=	yes
d30 1
a30 1
BROKEN=		"Does not compile on ia64 or sparc64"
a69 1

@


1.7
log
@BROKEN on ia64 and sparc64: Does not compile
@
text
@d9 1
a9 1
PORTVERSION=	0.0.2005.12.21
d62 3
d87 1
a87 1
	${INSTALL_DATA} ${WRKSRC}/_docs/* ${DOCSDIR}
@


1.6
log
@Update to Release of 2005.12.21.
@
text
@d30 4
@


1.5
log
@- Update to Release of 2005/12/11
- Fix build on 4-STABLE [1]

Submitted by:	vs [1]
@
text
@d9 1
a9 1
PORTVERSION=	0.0.2005.12.11
@


1.4
log
@Add a patch that enables to press Ctrl-D to exit.

Obtained from:	quag on freenode#io
@
text
@d9 1
a9 2
PORTVERSION=	0.0.2005.12.05
PORTREVISION=	1
d28 6
d47 1
a47 1
			-e 's,^CFLAGS.*$$,CFLAGS+=$${INCS} $${INCLUDE},g' \
d60 4
d89 1
a89 1
.include <bsd.port.mk>
@


1.3
log
@Update to Release of 2005-12-15.
@
text
@d10 1
d53 3
@


1.2
log
@Include bin/ioServer and bin/ioDesktop to the distribution which
are executable instances for servers and desktops respectively.
@
text
@d9 1
a9 2
PORTVERSION=	0.0.2005.10.17
PORTREVISION=	1
d29 2
d49 1
a49 1
		-e 's,\( -lIoVM\),\1 -lncurses ,' \
d69 1
a69 1
.for subdir in ioCode new sampleCode docgen tests unitTests
@


1.1
log
@Add new port for io snapshot of 2005-10-17:

Io is small prototype-based programming language. The ideas in Io
are mostly inspired by Smalltalk (all values are objects), Self
(prototype-based), NewtonScript (differential inheritance), Act1
(actors and futures for concurrency), LISP (code is a runtime
inspectable/modifiable tree) and Lua (small, embeddable).

WWW:	http://www.iolanguage.com/
@
text
@d10 1
d52 3
a54 2
	${INSTALL_PROGRAM} ${WRKSRC}/vm/io ${PREFIX}/bin
	${INSTALL_PROGRAM} ${WRKSRC}/vm/io2c ${PREFIX}/bin
@

