81124eaec9
to avoid jemalloc. The simple allocator used by clisp in the NetBSD case appears to use some assumptions, like allocations below sbrk(), which don't hold with jemalloc. We might switch to another allocator later, but as the code looks this needs more work and testing. From Aleksej Saushev per PR pkg/37381; the patch is attributed to Arnaud Degroote. Should also fix PR pkg/37304 from Yakovetsky Vladimir.
65 lines
2 KiB
Makefile
65 lines
2 KiB
Makefile
# $NetBSD: Makefile,v 1.65 2007/11/23 21:59:44 drochner 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 ${OPSYS} == "NetBSD"
|
|
# CLISP doesn't work with jemalloc, which is default in current
|
|
MODULES+= --with-gmalloc
|
|
.endif
|
|
|
|
.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}
|
|
MAKE_JOBS_SAFE= no
|
|
|
|
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"
|