summaryrefslogtreecommitdiff
path: root/lang/swi-prolog/Makefile
blob: eca93f8adc1db51a5c630b82af414f8a155461ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# $NetBSD: Makefile,v 1.11 2001/06/17 14:32:28 jtb Exp $

DISTNAME=		pl-lite-4.0.7
PKGNAME=		swi-prolog-4.0.7
CATEGORIES=		lang
MASTER_SITES=		http://www.swi.psy.uva.nl/cgi-bin//nph-download/SWI-Prolog/

MAINTAINER=		packages@netbsd.org
HOMEPAGE=		http://www.swi.psy.uva.nl/projects/SWI-Prolog/
COMMENT=		ISO/Edinburgh-style Prolog compiler

DEPENDS+=		readline>=4.0:../../devel/readline

WRKSRC=			${WRKDIR}/${DISTNAME:S,-lite,,}
DIST_SUBDIR=		swi-prolog

GNU_CONFIGURE=		yes

USE_CURSES=		yes
REPLACE_NCURSES=	${WRKSRC}/src/configure

SWIPL=			swi-prolog
CONFIGURE_ENV+=		PL="${SWIPL}"
CPPFLAGS+=		-D__unix__=1

READLINE_PREFIX_DEFAULT=${LOCALBASE}
EVAL_PREFIX+=		READLINE_PREFIX=readline
CPPFLAGS+=		-I${READLINE_PREFIX}/include

PLIST_SUBST+=		SWIPL=${SWIPL}
PLIST_SUBST+=		SWILIBDIR=${DISTNAME:S,pl-lite,'${SWIPL}',}

.include "../../mk/bsd.pkg.mk"