head	1.22;
access;
symbols
	RELEASE_8_3_0:1.16
	RELEASE_9_0_0:1.16
	RELEASE_7_4_0:1.16
	RELEASE_8_2_0:1.16
	RELEASE_6_EOL:1.15
	RELEASE_8_1_0:1.15
	RELEASE_7_3_0:1.14
	RELEASE_8_0_0:1.12
	RELEASE_7_2_0:1.7
	RELEASE_7_1_0:1.6
	RELEASE_6_4_0:1.6
	RELEASE_5_EOL:1.5
	RELEASE_7_0_0:1.5
	RELEASE_6_3_0:1.5;
locks; strict;
comment	@# @;


1.22
date	2012.12.10.19.24.02;	author svnexp;	state Exp;
branches;
next	1.21;

1.21
date	2012.12.06.07.07.43;	author svnexp;	state Exp;
branches;
next	1.20;

1.20
date	2012.12.06.05.09.43;	author svnexp;	state Exp;
branches;
next	1.19;

1.19
date	2012.11.17.05.58.53;	author svnexp;	state Exp;
branches;
next	1.18;

1.18
date	2012.09.06.05.22.27;	author ohauer;	state Exp;
branches;
next	1.17;

1.17
date	2012.06.01.05.21.19;	author dinoex;	state Exp;
branches;
next	1.16;

1.16
date	2010.12.04.07.32.22;	author ade;	state Exp;
branches;
next	1.15;

1.15
date	2010.03.28.06.38.55;	author dinoex;	state Exp;
branches;
next	1.14;

1.14
date	2010.02.05.11.40.15;	author dinoex;	state Exp;
branches;
next	1.13;

1.13
date	2009.12.18.04.10.16;	author stas;	state Exp;
branches;
next	1.12;

1.12
date	2009.08.11.02.19.32;	author daichi;	state Exp;
branches;
next	1.11;

1.11
date	2009.08.02.19.34.28;	author mezz;	state Exp;
branches;
next	1.10;

1.10
date	2009.07.31.13.53.15;	author dinoex;	state Exp;
branches;
next	1.9;

1.9
date	2009.07.14.08.28.14;	author daichi;	state Exp;
branches;
next	1.8;

1.8
date	2009.06.28.01.39.10;	author wxs;	state Exp;
branches;
next	1.7;

1.7
date	2009.01.05.20.36.31;	author pav;	state Exp;
branches;
next	1.6;

1.6
date	2008.06.06.13.41.11;	author edwin;	state Exp;
branches;
next	1.5;

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

1.4
date	2007.11.08.08.06.22;	author linimon;	state Exp;
branches;
next	1.3;

1.3
date	2007.09.25.13.03.50;	author daichi;	state Exp;
branches;
next	1.2;

1.2
date	2007.08.23.04.33.00;	author daichi;	state Exp;
branches;
next	1.1;

1.1
date	2007.08.21.06.13.33;	author daichi;	state Exp;
branches;
next	;


desc
@@


1.22
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
@# New ports collection makefile for:	The Neko Programming Language
# Date created:		08 August 2007
# Whom:			Masanori OZAWA (ozawa@@ongs.co.jp)
#
# $FreeBSD: head/lang/neko/Makefile 308630 2012-12-10 19:11:11Z mm $
#

PORTNAME=	neko
PORTVERSION=	1.8.2
PORTREVISION=	1
CATEGORIES=	lang
MASTER_SITES=	http://nekovm.org/_media/

MAINTAINER=	ozawa@@ongs.co.jp
COMMENT=	The Neko Programming Language

LIB_DEPENDS=	gc-threaded.1:${PORTSDIR}/devel/boehm-gc-threaded

ONLY_FOR_ARCHS=	i386 amd64

USE_AUTOTOOLS=	libtool:env
USE_GMAKE=	yes
USE_DOS2UNIX=	yes
DOS2UNIX_REGEX= .*(Makefile|\.(c|h|neko|nml))$$

OPTIONS_DEFINE=		APACHE MYSQL SQLITE PCRE GTK2
OPTIONS_DEFAULT=	PCRE GTK2

OPTIONS_SINGLE=		MYSQL
OPTIONS_SINGLE_MYSQL=	MYSQL4 MYSQL5

MYSQL4_DESC=		Build against MySQL 4.1
MYSQL5_DESC=		Build against MySQL 5.1

.include <bsd.port.options.mk>

CFLAGS+=	-I${LOCALBASE}/include
LDFLAGS+=	-L${LOCALBASE}/lib
LIBKEYNAME+=	mod_neko mod_tora

.if ${PORT_OPTIONS:MAPACHE}
USE_APACHE=	22
CFLAGS+=	-I${LOCALBASE}/include/apache22
PLIST_SUB+=	APACHE22=""
.else
LIBKEYNAME+=	mod_neko2 mod_tora2
PLIST_SUB+=	APACHE22="@@comment "
.endif

.if ${PORT_OPTIONS:MMYSQL4}
USE_MYSQL=	41
CFLAGS+=	-I${LOCALBASE}/include/mysql
PLIST_SUB+=	MYSQL4=""
.else
LIBKEYNAME+=	mysql
PLIST_SUB+=	MYSQL4="@@comment "
.endif

.if ${PORT_OPTIONS:MMYSQL5}
USE_MYSQL=	51
CFLAGS+=	-I${LOCALBASE}/include/mysql
PLIST_SUB+=	MYSQL5=""
.else
LIBKEYNAME+=	mysql5
PLIST_SUB+=	MYSQL5="@@comment "
.endif

.if ${PORT_OPTIONS:MSQLITE}
USE_SQLITE=	yes
PLIST_SUB+=	SQLITE3=""
.else
LIBKEYNAME+=	sqlite
PLIST_SUB+=	SQLITE3="@@comment "
.endif

.if ${PORT_OPTIONS:MPCRE}
LIB_DEPENDS+=	pcre:${PORTSDIR}/devel/pcre
PLIST_SUB+=	PCRE=""
.else
LIBKEYNAME+=	regexp
PLIST_SUB+=	PCRE="@@comment "
.endif

.if ${PORT_OPTIONS:MGTK2}
USE_GNOME=	gtk20
PLIST_SUB+=	GTK2=""
.else
LIBKEYNAME+=	ui
PLIST_SUB+=	GTK2="@@comment "
.endif

.if ${ARCH} == "amd64"
CFLAGS+=	-D_64BITS -fPIC
.endif

post-patch:
	@@${REINPLACE_CMD} \
	    -e '/INSTALL_PREFIX/s,/usr/local,${PREFIX},' \
	    -e '/^CFLAGS =/s,.$$, ${CFLAGS},' \
	    -e '/LIBNEKO_LIBS =/s,[-]ldl,${LDFLAGS},' \
	    -e '/LIBNEKO_LIBS =/s,[-]lgc,-lgc-threaded,' \
	    -e '/NEKOVM_FLAGS =/s,[-]lneko,-L${LOCALBASE}/lib -lneko -lgc-threaded,' \
	    -e '/mkdir/s,\(INSTALL_PREFIX[}]/include\),\1/neko,' \
	    -e '/cp vm[/]neko[*][.]h/s,\(INSTALL_PREFIX[}]/include\),\1/neko,' \
	    ${WRKSRC}/Makefile
	@@${REINPLACE_CMD} \
	    -e '/^[#]	include/s,wait.h,sys/wait.h,' \
	    ${WRKSRC}/libs/std/process.c
	@@${REINPLACE_CMD} \
	    -e '/^linkcmd =/s,"ld",cc,' \
	    -e 's/= readline[(][)];/= "s";/' \
	    -e 's,/usr/local/include,${PREFIX}/include,' \
	    -e 's,/usr/local/lib,${PREFIX}/lib,' \
	    ${WRKSRC}/src/tools/install.neko
.if !empty(LIBKEYNAME)
.for LKN in ${LIBKEYNAME}
	@@${REINPLACE_CMD} \
	    -e '/^	${LKN} =[>]/,/^	[}][,]\{0,1\}.$$/d' \
	    ${WRKSRC}/src/tools/install.neko
.endfor
.endif
.if ${PORT_OPTIONS:MAPACHE}
	@@${REINPLACE_CMD} \
	    -e 's,"/usr/include/apache2","${PREFIX}/include/apache22",' \
	    ${WRKSRC}/src/tools/install.neko
.endif
.if ${PORT_OPTIONS:MGTK2}
	@@${REINPLACE_CMD} \
	    -e 's,"/usr/include/gtk-2.0","${PREFIX}/include/gtk-2.0",' \
	    ${WRKSRC}/src/tools/install.neko
	@@${REINPLACE_CMD} \
	    -e 's,NEKO_LINUX,NEKO_BSD,' ${WRKSRC}/libs/ui/ui.c
.endif
.if ${ARCH} == "amd64" && ${PORT_OPTIONS:MMYSQL4}
	@@${ECHO_CMD}
	@@${ECHO_CMD} "======================================================="
	@@${ECHO_CMD}
	@@${ECHO_CMD} " Notice: When not building MYSQL with 'CFLAGS+=-fPIC'"
	@@${ECHO_CMD} " first, It fails in building of a MYSQL module."
	@@${ECHO_CMD}
	@@${ECHO_CMD} "======================================================="
	@@${ECHO_CMD}
.endif

post-install:
.if ${PORT_OPTIONS:MAPACHE}
	@@${ECHO_CMD}
	@@${ECHO_CMD} "======================================================="
	@@${ECHO_CMD}
	@@${ECHO_CMD} " If you want to use Apache with mod_neko, you need "
	@@${ECHO_CMD} " edit the Apache configuration files."
	@@${ECHO_CMD} " Please see 'http://nekovm.org/doc/mod_neko' for details."
	@@${ECHO_CMD}
	@@${ECHO_CMD} "======================================================="
	@@${ECHO_CMD}
.endif

.include <bsd.port.mk>
@


1.21
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/308369
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r308369 | daichi | 2012-12-06 07:05:08 +0000 (Thu, 06 Dec 2012) | 5 lines
## SVN ##
## SVN ## drop PORTREVISION
## SVN ##
## SVN ## Pointedout by:	danfe
## SVN ## Feature safe:	yes
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@d5 1
a5 1
# $FreeBSD: head/lang/neko/Makefile 308369 2012-12-06 07:05:08Z daichi $
d10 1
@


1.20
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/308363
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r308363 | daichi | 2012-12-06 05:07:52 +0000 (Thu, 06 Dec 2012) | 5 lines
## SVN ##
## SVN ## Update to 1.8.2
## SVN ##
## SVN ## Submitted by:	ozawa@@ongs.co.jp
## SVN ## Feature safe:	yes
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@d5 1
a5 1
# $FreeBSD: head/lang/neko/Makefile 308363 2012-12-06 05:07:52Z daichi $
a9 1
PORTREVISION=
@


1.19
log
@Switch exporter over
@
text
@d5 1
a5 1
# $FreeBSD: head/lang/neko/Makefile 303739 2012-09-06 05:22:27Z ohauer $
d9 2
a10 2
PORTVERSION=	1.8.1
PORTREVISION=	4
@


1.18
log
@SVN rev 303739 on 2012-09-06 05:22:27Z by ohauer

- remove apache13 support
- use DOS2UNIX macro
- rewrite for options NG
- use USE_XXX macros instead (BUILD|RUN)_DEPENDS

PR:		170752
Submitted by:	ohauer@@
Approved by:	maintainer timeout
@
text
@d5 1
a5 1
# $FreeBSD$
@


1.17
log
@- update png to 1.5.10
@
text
@d23 2
d26 2
a27 7
OPTIONS=	APACHE13 "Build with mod_neko for Apache 1.3.x" off \
		APACHE22 "Build with mod_neko for Apache 2.2.x" off \
		MYSQL4   "Build with MySQL 4.x library" off \
		MYSQL5   "Build with MySQL 5.x library" off \
		SQLITE3  "Build with Sqlite 3.x SQL library" off \
		PCRE     "Build with PCRE library" on \
		GTK2     "Build with Gtk 2.x UI library" on
d29 7
a35 1
.include <bsd.port.pre.mk>
a38 12
LIBKEYNAME=

.if defined(WITH_APACHE13) && defined(WITH_APACHE22)
IGNORE= option APACHE13 and APACHE22 conflict
.endif

.if defined(WITH_APACHE13)
BUILD_DEPENDS+=	${LOCALBASE}/sbin/apxs:${PORTSDIR}/www/apache13
RUN_DEPENDS+=	${LOCALBASE}/sbin/apxs:${PORTSDIR}/www/apache13
CFLAGS+=	-I${LOCALBASE}/include/apache
PLIST_SUB+=	APACHE13=
.else
a39 2
PLIST_SUB+=	APACHE13="@@comment "
.endif
d41 2
a42 3
.if defined(WITH_APACHE22)
BUILD_DEPENDS+=	${LOCALBASE}/sbin/apxs:${PORTSDIR}/www/apache22
RUN_DEPENDS+=	${LOCALBASE}/sbin/apxs:${PORTSDIR}/www/apache22
d44 1
a44 1
PLIST_SUB+=	APACHE22=
d50 2
a51 7
.if defined(WITH_MYSQL4) && defined(WITH_MYSQL5)
IGNORE= option MYSQL4 and MYSQL5 conflict
.endif

.if defined(WITH_MYSQL4)
BUILD_DEPENDS+=	mysql:${PORTSDIR}/databases/mysql41-client
RUN_DEPENDS+=	mysql:${PORTSDIR}/databases/mysql41-client
d53 1
a53 1
PLIST_SUB+=	MYSQL4=
d59 2
a60 3
.if defined(WITH_MYSQL5)
BUILD_DEPENDS+=	mysql:${PORTSDIR}/databases/mysql51-client
RUN_DEPENDS+=	mysql:${PORTSDIR}/databases/mysql51-client
d62 1
a62 1
PLIST_SUB+=	MYSQL5=
d68 3
a70 4
.if defined(WITH_SQLITE3)
BUILD_DEPENDS+=	sqlite3:${PORTSDIR}/databases/sqlite3
RUN_DEPENDS+=	sqlite3:${PORTSDIR}/databases/sqlite3
PLIST_SUB+=	SQLITE3=
d76 3
a78 4
.if defined(WITH_PCRE)
BUILD_DEPENDS+=	${LOCALBASE}/include/pcre.h:${PORTSDIR}/devel/pcre
RUN_DEPENDS+=	${LOCALBASE}/include/pcre.h:${PORTSDIR}/devel/pcre
PLIST_SUB+=	PCRE=
d84 3
a86 4
.if defined(WITH_GTK2)
BUILD_DEPENDS+=	${LOCALBASE}/include/gtk-2.0:${PORTSDIR}/x11-toolkits/gtk20
RUN_DEPENDS+=	${LOCALBASE}/include/gtk-2.0:${PORTSDIR}/x11-toolkits/gtk20
PLIST_SUB+=	GTK2=
d122 1
a122 6
.if defined(WITH_APACHE13)
	@@${REINPLACE_CMD} \
	    -e 's,"/usr/include/apache-1.3","${PREFIX}/include/apache",' \
	    ${WRKSRC}/src/tools/install.neko
.endif
.if defined(WITH_APACHE22)
d127 1
a127 1
.if defined(WITH_GTK2)
d134 1
a134 1
.if ${ARCH} == "amd64" && defined(WITH_MYSQL4)
d146 1
a146 1
.if defined(WITH_APACHE13) || defined(WITH_APACHE22)
d158 1
a158 1
.include <bsd.port.post.mk>
@


1.16
log
@Sync to new bsd.autotools.mk
@
text
@d10 1
a10 1
PORTREVISION=	3
@


1.15
log
@- update to 1.4.1
Reviewed by:	exp8 run on pointyhat
Supported by:	miwi
@
text
@d21 1
a21 1
USE_AUTOTOOLS=	libtool:22:env
@


1.14
log
@- update to jpeg-8
@
text
@d10 1
a10 1
PORTREVISION=	2
@


1.13
log
@- Use libraries from boehm-gc-threaded instead of building own implementation.
  This fixes build failure after the boehm-gc update.

Reported by:	pav
@
text
@d10 1
a10 1
PORTREVISION=	1
@


1.12
log
@Update for 1.8.1

PR:		137631
Submitted by:	maintainer
@
text
@d10 1
d17 2
d34 2
a35 7
# Neko needs boehm-gc with POSIX thread support.
BC_DIR!=	cd ${PORTSDIR}/devel/boehm-gc && ${MAKE} -V WRKSRC
BC_MAKEARGS=	BATCH=yes WITH_THREADING=true

BC_CFLAGS:=	${CFLAGS}
CFLAGS+=	-I${WRKSRC} -I${LOCALBASE}/include
LDFLAGS+=	-L${BC_DIR}/.libs -L${LOCALBASE}/lib
a113 1
BC_CFLAGS+=	-fPIC
d122 2
a123 1
	    -e '/LIBNEKO_LIBS =/s,[-]lgc,-lnekogc,' \
a170 9
pre-build:
	@@(cd ${PORTSDIR}/devel/boehm-gc/ && \
	    ${MAKE} CFLAGS="${BC_CFLAGS}" ${BC_MAKEARGS} clean all)
	@@${RM} -f ${BC_DIR}/.libs/*.so*
	@@for BLIB in `${LS} ${BC_DIR}/.libs/libgc.*`; do \
	    ${MV} $${BLIB} `echo $${BLIB} | ${SED} -e 's/libgc/libnekogc/'`; \
	done
	@@${LN} -sf ${BC_DIR}/include ${WRKSRC}/gc

a183 3
pre-clean:
	@@(cd ${PORTSDIR}/devel/boehm-gc/ && ${MAKE} clean)

@


1.11
log
@-Repocopy devel/libtool15 -> libtool22 and libltdl15 -> libltdl22.
-Update libtool and libltdl to 2.2.6a.
-Remove devel/libtool15 and devel/libltdl15.
-Fix ports build with libtool22/libltdl22.
-Bump ports that depend on libltdl22 due to shared library version change.
-Explain what to do update in the UPDATING.

It has been tested with GNOME2, XFCE4, KDE3, KDE4 and other many wm/desktop
and applications in the runtime.

With help:	marcus and kwm
Pointyhat-exp:	a few times by pav
Tested by:	pgollucci, "Romain Tartière" <romain@@blogreen.org>, and
		a few MarcusCom CVS users. Also, I might have missed a few.
Repocopy by:	marcus
Approved by:	portmgr
@
text
@d9 1
a9 2
PORTVERSION=	1.8.0
PORTREVISION=	1
d24 1
d40 4
d64 4
d78 10
@


1.10
log
@- bump all port that indirectly depends on libjpeg and have not yet been bumped or updated
Requested by:	edwin
@
text
@d19 1
a19 1
USE_AUTOTOOLS=	libtool:15:env
@


1.9
log
@Fix build problem of lang/neko on tinderbox

PR:		ports/136734
Submitted by:	maintainer
@
text
@d10 1
@


1.8
log
@- Update to 1.8.0
- Don't use ${PREFIX} for dependencies, CFLAGS or LDFLAGS
- This port still doesn't work with a custom PREFIX, it needs some work still.

PR:		ports/135833
Submitted by:	Masanori OZAWA <ozawa@@ongs.co.jp> (maintainer)
@
text
@d116 1
@


1.7
log
@- Remove conditional checks for FreeBSD 5.x and older
@
text
@d9 1
a9 2
PORTVERSION=	1.6.0
PORTREVISION=	2
d34 3
a36 3
BC_CFLAGS:= ${CFLAGS}
CFLAGS=	-I${WRKSRC} -I${PREFIX}/include
LDFLAGS= -L${BC_DIR}/.libs -L${PREFIX}/lib
d45 1
a45 1
LIBKEYNAME+=	mod_neko
d55 1
a55 1
LIBKEYNAME+=	mod_neko2
d62 1
a62 1
CFLAGS+=	-I${PREFIX}/include/mysql
d79 2
a80 2
BUILD_DEPENDS+=	${PREFIX}/include/pcre.h:${PORTSDIR}/devel/pcre
RUN_DEPENDS+=	${PREFIX}/include/pcre.h:${PORTSDIR}/devel/pcre
d88 2
a89 2
BUILD_DEPENDS+=	${PREFIX}/include/gtk-2.0:${PORTSDIR}/x11-toolkits/gtk20
RUN_DEPENDS+=	${PREFIX}/include/gtk-2.0:${PORTSDIR}/x11-toolkits/gtk20
d116 1
d142 10
@


1.6
log
@Bump portrevision due to upgrade of devel/gettext.

The affected ports are the ones with gettext as a run-dependency
according to ports/INDEX-7 (5007 of them) and the ones with USE_GETTEXT
in Makefile (29 of them).

PR:             ports/124340
Submitted by:   edwin@@
Approved by:    portmgr (pav)
@
text
@a30 4
.if ${OSVERSION} < 600000
IGNORE= 	it is supported on FreeBSD 6.x and later
.endif

@


1.5
log
@- Augment previous fix

Reported by:	pointyhat
Approved by:	portmgr (hat)
@
text
@d10 1
a10 1
PORTREVISION=	1
@


1.4
log
@Fix build on cluster by adding a libtool dependency.  This is a hack to
work around the fact that this port reaches over into devel/boehm-gc to
do part of its build.  This isn't the Right Thing.

Approved by:	portmgr (self)
@
text
@d19 1
a19 1
USE_AUTOTOOLS=	libtool:15
@


1.3
log
@neko 1.6.0_1 is for 6.x or over.

  - neko uses socket option that 5.x doesn't have.
    So added ${OSVERSION} check.

Submitted by:	ozawa@@ongs.co.jp (maintainer)
@
text
@d19 1
@


1.2
log
@lang/neko: fixed compile error on amd64 6

  - fixed compile error (6-RELEASE amd64, 7-CURRENT amd64)

PR:		ports/115723
Submitted by:	Masanori OZAWA <ozawa@@ongs.co.jp> (maintainer)
Pointed out by:	via krisbot
@
text
@d30 4
@


1.1
log
@The Neko Programming Language

Neko is a high-level dynamically typed programming language which can
also be used as an embedded scripting language. It has been designed to
provide a common runtime for several different languages.

Neko is not only very easy to learn and use, but also has the flexibility
of being able to extend the language with C libraries. You can even write
generators from your own language to Neko and then use the Neko Runtime to
compile, run, and access existing libraries.

WWW: http://nekovm.org/

Submitted by:	Masanori OZAWA <ozawa@@ongs.co.jp>
@
text
@d10 1
d32 1
d34 1
d97 1
d144 1
a144 1
	    ${MAKE} BATCH=yes WITH_THREADING=true clean all)
@

