aboutsummaryrefslogtreecommitdiffstats
path: root/lang/guile2/Makefile
blob: 176e5802eb8b5749a49bb70dbeac63467971b9bd (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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# Created by: Muhammad Moinur Rahman <5u623l20@gmail.com>
# $FreeBSD$

PORTNAME=   guile
PORTVERSION=    2.0.14
CATEGORIES= lang scheme
MASTER_SITES=   GNU
PKGNAMESUFFIX=  2

MAINTAINER= bofh@FreeBSD.org
COMMENT=    GNU Ubiquitous Intelligent Language for Extension

LICENSE=    LGPL21

LIB_DEPENDS=    libgmp.so:math/gmp \
        libltdl.so:devel/libltdl \
        libunistring.so:devel/libunistring \
        libffi.so:devel/libffi

CONFLICTS_INSTALL=  guile-[0-9]*

BROKEN_powerpc64=   Does not build
BROKEN_sparc64= fails to compile: errors in complex.h

USES=       charsetfix gmake libtool makeinfo ncurses pathfix pkgconfig \
        readline
USE_LDCONFIG=   yes
GNU_CONFIGURE=  yes
CPPFLAGS+=  -I${LOCALBASE}/include
LIBS+=      -L${LOCALBASE}/lib
INSTALL_TARGET= install-strip

PLIST_SUB=  GUILE_VER=${PORTVERSION:R}

OPTIONS_DEFINE= NLS THREADS
OPTIONS_DEFAULT=THREADS
OPTIONS_SUB=    yes
NLS_CONFIGURE_ENABLE=   nls
NLS_USES=   gettext
THREADS_CONFIGURE_WITH= threads
THREADS_LIB_DEPENDS=    libgc-threaded.so:devel/boehm-gc-threaded
THREADS_LIB_DEPENDS_OFF=    libgc.so:devel/boehm-gc

REINPLACE_FILES=    libguile/smob.c libguile/filesys.c libguile/gc.c \
            libguile/mallocs.c libguile/eval.c \
            libguile/gc-malloc.c libguile/ports.c

INFO=       guile r5rs

.include <bsd.port.options.mk>

post-patch:
    @cd ${WRKSRC} ; \
      ${REINPLACE_CMD} -e 's|<malloc\.h>|<stdlib.h>|g' ${REINPLACE_FILES}
    @${REINPLACE_CMD} -e 's|sys/time.h sys/timeb.h|sys/time.h |g' \
        ${WRKSRC}/configure
.if ${PORT_OPTIONS:MTHREADS}
    @${REINPLACE_CMD} -e 's|bdw-gc|bdw-gc-threaded|g' ${WRKSRC}/configure
.endif

.include <bsd.port.mk>