aboutsummaryrefslogtreecommitdiffstats
path: root/lang/guile/Makefile
blob: b30cdb5e987f888b36402b34a297a2064bf6ff3a (plain) (blame)
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
# New ports collection makefile for:    guile
# Date created:     2 November 1997
# Whom:         jseger@FreeBSD.org
#
# $FreeBSD$
#

PORTNAME=   guile
PORTVERSION=    1.4.1
PORTREVISION=   2
CATEGORIES= lang
MASTER_SITES=   ${MASTER_SITE_GNU}
MASTER_SITE_SUBDIR= guile

MAINTAINER= ports@FreeBSD.org

LIB_DEPENDS=    ltdl.1:${PORTSDIR}/devel/libtool

USE_REINPLACE=  yes
USE_LIBTOOL=    yes
INSTALLS_SHLIB= yes
LIBTOOLFILES=   configure guile-readline/configure
CONFIGURE_ARGS= --with-threads
CONFIGURE_ENV=  CPPFLAGS="-I${LOCALBASE}/include" \
        LIBS="-L${LOCALBASE}/lib"

PLIST_SUB=  GUILE_VER=${PORTVERSION}

REINPLACE_FILES=    libguile/gc.c libguile/mallocs.c \
            libguile/ports.c libguile/smob.c

post-extract:
    cd ${WRKSRC}; ${CHMOD} u+w ${REINPLACE_FILES}

post-patch:
    cd ${WRKSRC} ; \
      ${REINPLACE_CMD} -e 's|<malloc\.h>|<stdlib.h>|g' ${REINPLACE_FILES}

.include <bsd.port.mk>