pkgsrc/lang/onyx/Makefile
dholland 2bd14a1c55 This probes for and uses libedit, but libedit isn't buildlinked.
Correct that optimistically by including (optimistically) readline.bl3.mk,
in the hopes that readline will work too. If not, someone should revisit
this and explicitly include devel/editline/bl3.mk instead.

Came up on freebsd, where libedit is apparently both builtin and
ancient, so configure rejected it; this caused PLIST divergence.
2014-01-05 04:10:06 +00:00

43 lines
1 KiB
Makefile

# $NetBSD: Makefile,v 1.27 2014/01/05 04:10:06 dholland Exp $
DISTNAME= onyx-${VERS}
PKGREVISION= 2
CATEGORIES= lang
MASTER_SITES= http://www.canonware.com/download/onyx/
EXTRACT_SUFX= .tar.bz2
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.canonware.com/onyx/
COMMENT= Embeddable stack-based threaded interpreted language
BUILD_DEPENDS+= cook-[0-9]*:../../devel/cook
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --with-pcre-prefix=${BUILDLINK_PREFIX.pcre}
BUILDLINK_API_DEPENDS.pcre?= pcre>=4.0
VERS= 5.1.2
PLIST_SUBST+= VERS=${VERS:Q}
MAKE_ENV+= SHELL=/bin/sh
do-build:
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} cook
do-install:
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${INSTALL_ENV} cook install
post-install:
strip ${DESTDIR}${PREFIX}/bin/onyx
.include "../../devel/pcre/buildlink3.mk"
.include "../../mk/readline.buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
.if ${PTHREAD_TYPE} == "pth"
.include "../../devel/pthread-sem/buildlink3.mk"
LIBS+= -lsemaphore
.endif
.include "../../mk/bsd.pkg.mk"