1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-30 05:40:06 +00:00
freebsd-ports/lang/guile/Makefile
Joe Marcus Clarke bdec6bae5a Fix build and execution of guile on ia64:
*  Use continuation->backing_store to determine if we return for the first
   time from getcontext(). This avoids having to depend on non-POSIX semantics
   of the Linux implementation.
*  Avoid using __libc_ia64_register_backing_store_base by hardcoding the base
   of the backing store. The kernel is changed to put the backing store at
   this address. It's not entirely clean, but I want to avoid adding all sorts
   of variables in our libc for this for now.
*  Fix a genuine bug in the ia64 case: the ia64-specific fields are not
   initialized. On FreeBSD this means they have garbage (= 0xd0). Call
   memset() after allocation to make sure the contregs structure is properly
   cleared.  Since this may affect other architectures, this patch will be
   ia64 only.

Submitted by:	marcel
2003-10-20 05:32:13 +00:00

54 lines
1.2 KiB
Makefile

# New ports collection makefile for: guile
# Date created: 2 November 1997
# Whom: jseger@FreeBSD.org
#
# $FreeBSD$
#
PORTNAME= guile
PORTVERSION= 1.6.4
PORTREVISION= 2
CATEGORIES= lang scheme
MASTER_SITES= ${MASTER_SITE_GNU}
MASTER_SITE_SUBDIR= guile
MAINTAINER= gnome@FreeBSD.org
COMMENT= GNU Ubiquitous Intelligent Language for Extension
LIB_DEPENDS= ltdl.4:${PORTSDIR}/devel/libltdl
USE_REINPLACE= yes
USE_GMAKE= yes
GNU_CONFIGURE= yes
INSTALLS_SHLIB= yes
USE_GNOME= gnometarget
CONFIGURE_ARGS= --with-threads
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
GUILE_VER= 1.6
PLIST_SUB= GUILE_VER=${GUILE_VER}
REINPLACE_FILES= libguile/gc.c libguile/mallocs.c \
libguile/ports.c libguile/smob.c
INFO= goops guile-tut guile r5rs
.include <bsd.port.pre.mk>
.if ${ARCH} == "ia64"
EXTRA_PATCHES= ${FILESDIR}/extra-patch-ia64
.endif
post-extract:
cd ${WRKSRC}; ${CHMOD} u+w ${REINPLACE_FILES}
@${FIND} ${WRKSRC}/doc -name "*.info*" -delete
post-patch:
@cd ${WRKSRC} ; \
${REINPLACE_CMD} -e 's|<malloc\.h>|<stdlib.h>|g' ${REINPLACE_FILES}
@${REINPLACE_CMD} -e 's|%%X11BASE%%|${X11BASE}|g ; \
s|%%LOCALBASE%%|${LOCALBASE}|g' ${WRKSRC}/libguile/load.c
.include <bsd.port.post.mk>