summaryrefslogtreecommitdiff
path: root/lang/clisp/Makefile
blob: 5d4258ff2733609f23726f30efa0b69abe7a5181 (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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# $NetBSD: Makefile,v 1.63 2007/06/11 18:28:38 uwe Exp $

DISTNAME=	clisp-2.41
CATEGORIES=	lang
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE:=clisp/}
EXTRACT_SUFX=	.tar.bz2

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	http://clisp.cons.org/
COMMENT=	CLISP, a Common Lisp implementation

# Sparc64 has assembler code problems, see
# http://sourceforge.net/tracker/index.php?func=detail&aid=952681&group_id=1355&atid=101355
NOT_FOR_PLATFORM=	*-*-sparc64

PKG_INSTALLATION_TYPES= overwrite pkgviews

.include "../../mk/bsd.prefs.mk"

.if ${MACHINE_ARCH:Malpha} || ${MACHINE_ARCH:Mamd64} || ${MACHINE_ARCH:Mx86_64} || ${OPSYS} == "DragonFly"
MODULES+=		--disable-mmap
.endif

USE_TOOLS+=		dvipdf
USE_PKGLOCALEDIR=	YES
BUILD_DIRS=		src
CONFIGURE_DIRS=		. modules/i18n modules/syscalls modules/pcre modules/rawsock \
			modules/readline modules/regexp modules/wildcard modules/zlib
CONFIGURE_ENV+=		CC=${CC:Q} CFLAGS=${CFLAGS:M*:Q} CPPFLAGS=${CPPFLAGS:M*:Q}
GNU_CONFIGURE=		YES
UNLIMIT_RESOURCES=	stacksize
USE_LIBTOOL=		YES
USE_GNU_READLINE=	YES
MODULES+=		--with-module=pcre --with-module=rawsock
MODULES+=		--with-module=wildcard --with-module=zlib
CONFIGURE_ARGS+=	${MODULES}
TEST_TARGET=		check
MAKE_ENV+=		TOOLS_PLATFORM.install=${TOOLS_PLATFORM.install:Q}
MAKE_FLAGS+=		mandir=${PREFIX}/${PKGMANDIR}

post-configure:
	cd ${WRKSRC}/src && \
	./makemake --prefix=${PREFIX} --with-readline --with-gettext \
		--with-dynamic-ffi --fsstnd=netbsd ${MODULES} >Makefile

pre-build:
	cd ${WRKSRC}/src/avcall && ${MAKE}
	cd ${WRKSRC}/src/callback && ${MAKE}

.include "../../converters/libiconv/buildlink3.mk"
.include "../../devel/gettext-lib/buildlink3.mk"
BUILDLINK_API_DEPENDS.libsigsegv+=	libsigsegv>=2.4
.include "../../devel/libsigsegv/buildlink3.mk"
.include "../../devel/readline/buildlink3.mk"
.include "../../devel/pcre/buildlink3.mk"
BUILDLINK_API_DEPENDS.zlib+=	zlib>=1.2
.include "../../devel/zlib/buildlink3.mk"

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