aboutsummaryrefslogtreecommitdiffstats
path: root/devel/cl-uffi-sbcl/Makefile
blob: d1825ee69a728ff59c6967fc778ec78584d3407c (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:    cl-uffi-sbcl
# Date created:             19 August 2004
# Whom:                 Matthew X. Economou <xenophon+fbsdports@irtnog.org>
#
# $FreeBSD$

PORTNAME=   uffi
PORTVERSION=    1.5.9
CATEGORIES= devel lisp
MASTER_SITES=   # use installed sources from CL_LIBDIR
PKGNAMEPREFIX=  cl-
PKGNAMESUFFIX=  -sbcl
DISTFILES=  # use installed sources from CL_LIBDIR
EXTRACT_ONLY=   # use installed sources from CL_LIBDIR

MAINTAINER= xenophon+fbsdports@irtnog.org
COMMENT=    Universal Foreign Function Interface for Common Lisp (SBCL binaries)

BUILD_DEPENDS=  ${LOCALBASE}/lib/common-lisp/uffi/uffi.asd:${PORTSDIR}/devel/cl-uffi \
        ${LOCALBASE}/lib/common-lisp/asdf/sbclfasl/asdf.fasl:${PORTSDIR}/devel/cl-asdf-sbcl \
        sbcl:${PORTSDIR}/lang/sbcl
RUN_DEPENDS=    ${LOCALBASE}/lib/common-lisp/port/port.asd:${PORTSDIR}/devel/cl-port \
        ${LOCALBASE}/lib/common-lisp/asdf/sbclfasl/asdf.fasl:${PORTSDIR}/devel/cl-asdf-sbcl \
        sbcl:${PORTSDIR}/lang/sbcl

CL_LIBDIR?= ${LOCALBASE}/lib/common-lisp

do-build:
    WRKSRC=${WRKSRC}/ FBSD_ASDF_COMPILE_PORT=t\
    sbcl    --noinform --userinit /dev/null --disable-debugger \
        --eval '#.(load "${LOCALBASE}/etc/asdf-init")' \
        --eval "(asdf:oos 'asdf:compile-op :uffi)" \
        --eval "(quit)"

do-install:
    ${MKDIR} ${CL_LIBDIR}/uffi/src/sbclfasl
    ${INSTALL_DATA} ${WRKSRC}/*.fasl ${CL_LIBDIR}/uffi/src/sbclfasl/

.include <bsd.port.mk>