aboutsummaryrefslogtreecommitdiffstats
path: root/lang/gcl/Makefile
blob: 3281bde05bdc17d44f7fa57798a1aa2fb9fc0b9c (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
# New ports collection makefile for:    gcl
# Date created:             Feb  8 1995
# Whom:                 hsu
#
# $FreeBSD$
#

PORTNAME=   gcl
PORTVERSION=    2.6.7
PORTREVISION=   5
CATEGORIES= lang tcl tk
MASTER_SITES=   ${MASTER_SITE_GNU}
MASTER_SITE_SUBDIR= gcl

MAINTAINER= ports@FreeBSD.org
COMMENT=    GNU Common Lisp

LIB_DEPENDS=    gmp:${PORTSDIR}/math/libgmp4

ONLY_FOR_ARCHS= i386

USE_TK= 84
GNU_CONFIGURE=  yes
USE_GMAKE=  yes
USE_XORG=   x11
CONFIGURE_ARGS=--prefix=${PREFIX} \
    --enable-ansi \
    --enable-debug \
    --enable-machine=FreeBSD \
    --enable-info=${PREFIX}/info \
    --enable-tkconfig=${LOCALBASE}/lib/tk${TCL_VER} \
    --enable-tclconfig=${LOCALBASE}/lib/tcl${TCL_VER} \
    --with-x \
    --disable-dlopen \
    --disable-dynsysbfd \
    --disable-statsysbfd \
    --disable-locbfd \
    --enable-custreloc
CONFIGURE_ENV=  CFLAGS="${CFLAGS} -I${LOCALBASE}/include" C_INCLUDE_PATH=${PREFIX}/include LIBRARY_PATH=${PREFIX}/lib
MAKEFILE=   makefile

INFO=   gcl-si gcl-tk

PLIST_SUB=  GCL_VER=${PORTVERSION}

.include <bsd.port.pre.mk>

pre-configure:
    ${SED} -i '' \
        -e 's|@@CFLAGS@@|${CFLAGS} -I${LOCALBASE}/include|' \
        -e 's|@@LOCALLIBS@@|-lreadline -lm -L${LOCALBASE}/lib -lgmp|' \
        ${WRKSRC}/h/FreeBSD.defs

.include <bsd.port.post.mk>