pkgsrc/lang/clisp/Makefile
jmc 713cf9a1c6 Port to powerpc:
Provide a trampoline implementation that doesn't presume r11 is free (it's not
in dynamically linked programs and the ELF ABI says as much but somehow linux
managed to avoid this it seems). Use r13 for the time being since while gcc
will allocate it, it's the last "local" one allocated so none of the clisp
code hits that (nothing needed 17+ local registers in use ever). Update the
vacall implementation to match the trampoline calls but otherwise for
any assembly use the linux code.

Make these changes specific to netbsd, update the test cases so everything
works.

This now passes all the clisp tests when done/installed.
2002-03-14 07:44:21 +00:00

46 lines
1.5 KiB
Makefile

# $NetBSD: Makefile,v 1.24 2002/03/14 07:44:21 jmc Exp $
DISTNAME= clisp-2.27
CATEGORIES= lang
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=clisp/}
PKGVERSION= 1
EXTRACT_SUFX= .tar.bz2
MAINTAINER= mjl@netbsd.org
HOMEPAGE= http://clisp.cons.org/
COMMENT= CLISP, a Common Lisp implementation
NOT_FOR_PLATFORM= *-*-alpha # severe LP64 problems
USE_BUILDLINK_ONLY= YES
CONFIGURE_ENV+= CC="${CC}" CFLAGS="${CFLAGS}" CPPFLAGS="${CPPFLAGS}"
GNU_CONFIGURE= YES
WRKSRC= ${WRKDIR}/${DISTNAME}/src
UNLIMIT_RESOURCES= stacksize
USE_LIBTOOL= YES
LIBTOOL_OVERRIDE= ${WRKSRC}/avcall/libtool
LIBTOOL_OVERRIDE+= ${WRKSRC}/callback/vacall_r/libtool
LIBTOOL_OVERRIDE+= ${WRKSRC}/callback/libtool
LIBTOOL_OVERRIDE+= ${WRKSRC}/callback/trampoline_r/libtool
LIBTOOL_OVERRIDE+= ${WRKSRC}/libiconv/libcharset/libtool
LIBTOOL_OVERRIDE+= ${WRKSRC}/libiconv/libtool ${WRKSRC}/sigsegv/libtool
post-patch:
cp files/tramp-rs6000-netbsd.o ${WRKSRC}/../ffcall/callback/trampoline_r
cp files/tramp-rs6000-netbsd.s ${WRKSRC}/../ffcall/callback/trampoline_r
cp files/vacall-rs6000-netbsd.s ${WRKSRC}/../ffcall/callback/vacall_r
do-configure:
cd ${WRKSRC}; \
(cd .. ; ${SETENV} ${CONFIGURE_ENV} \
${CONFIGURE_SCRIPT} --host=${MACHINE_GNU_PLATFORM} \
--prefix=${PREFIX}); \
./makemake --prefix=${LOCALBASE} --with-readline --with-gettext \
--with-dynamic-ffi --fsstnd=netbsd >Makefile
pre-build:
cd ${WRKSRC}/avcall && ${MAKE}
cd ${WRKSRC}/callback && ${MAKE}
.include "../../devel/readline/buildlink.mk"
.include "../../mk/bsd.pkg.mk"