summaryrefslogtreecommitdiff
path: root/lang/swi-prolog/Makefile
blob: eeef0d9071f7a00a1290b231ad809c5e00ca809d (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
34
35
36
# $NetBSD: Makefile,v 1.3 2001/03/20 13:43:26 jtb Exp $

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

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

DEPENDS+=		readline-[0-9]*:../../devel/readline
BUILD_DEPENDS+=		${LOCALBASE}/bin/autoconf:../../devel/autoconf

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

USE_CURSES=		#defined
REPLACE_NCURSES=	${WRKSRC}/src/configure

GNU_CONFIGURE=		#defined
CONFIGURE_ENV+=		"BUILDARCH=${MACHINE_PLATFORM}"
SWIPL=			swi-prolog
CONFIGURE_ENV+=		"PL=${SWIPL}"
CPPFLAGS+=		-D__unix__=1
EVAL_PREFIX+=		READLINE_PREFIX=readline
CPPFLAGS+=		-I${READLINE_PREFIX}/include
CONFIGURE_ENV+=		"CPPFLAGS=${CPPFLAGS}"

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

pre-configure:
	cd ${WRKSRC}/src && ${LOCALBASE}/bin/autoconf

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