2007-11-07 08:40:19 +01:00
|
|
|
# $NetBSD: Makefile,v 1.22 2007/11/07 07:40:19 rillig Exp $
|
2002-04-03 19:54:10 +02:00
|
|
|
|
|
|
|
DISTNAME= onyx-${VERS}
|
2006-02-06 00:08:03 +01:00
|
|
|
PKGREVISION= 2
|
2002-04-03 19:54:10 +02:00
|
|
|
CATEGORIES= lang
|
|
|
|
MASTER_SITES= http://www.canonware.com/download/onyx/
|
2004-01-04 04:08:02 +01:00
|
|
|
EXTRACT_SUFX= .tar.bz2
|
2002-04-03 19:54:10 +02:00
|
|
|
|
2006-03-04 22:28:51 +01:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2004-01-04 04:08:02 +01:00
|
|
|
HOMEPAGE= http://www.canonware.com/onyx/
|
2002-04-03 19:54:10 +02:00
|
|
|
COMMENT= Embeddable stack-based threaded interpreted language
|
|
|
|
|
2002-11-20 12:57:43 +01:00
|
|
|
BUILD_DEPENDS+= cook-[0-9]*:../../devel/cook
|
2002-04-09 15:24:02 +02:00
|
|
|
|
2002-04-03 19:54:10 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2004-01-04 04:08:02 +01:00
|
|
|
CONFIGURE_ARGS+= --with-pcre-prefix=${BUILDLINK_PREFIX.pcre}
|
2002-04-03 19:54:10 +02:00
|
|
|
|
2006-04-06 08:21:32 +02:00
|
|
|
BUILDLINK_API_DEPENDS.pcre?= pcre>=4.0
|
2004-01-04 04:08:02 +01:00
|
|
|
|
2004-06-21 10:48:41 +02:00
|
|
|
VERS= 5.1.1
|
2005-12-05 21:49:47 +01:00
|
|
|
PLIST_SUBST+= VERS=${VERS:Q}
|
2002-04-03 19:54:10 +02:00
|
|
|
|
|
|
|
do-build:
|
2007-11-07 08:05:15 +01:00
|
|
|
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} cook
|
2002-04-03 19:54:10 +02:00
|
|
|
|
|
|
|
do-install:
|
2007-11-07 08:05:15 +01:00
|
|
|
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} cook install
|
2002-04-03 19:54:10 +02:00
|
|
|
|
|
|
|
post-install:
|
2007-11-07 08:05:15 +01:00
|
|
|
strip ${PREFIX}/bin/onyx
|
2002-04-03 19:54:10 +02:00
|
|
|
|
2004-05-02 06:59:23 +02:00
|
|
|
.include "../../devel/pcre/buildlink3.mk"
|
2004-06-21 10:48:41 +02:00
|
|
|
.include "../../mk/pthread.buildlink3.mk"
|
|
|
|
|
2006-10-05 18:07:58 +02:00
|
|
|
.if ${PTHREAD_TYPE} == "pth"
|
|
|
|
.include "../../devel/pthread-sem/buildlink3.mk"
|
|
|
|
LIBS+= -lsemaphore
|
2004-06-21 10:48:41 +02:00
|
|
|
.endif
|
|
|
|
|
2002-04-03 19:54:10 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|