aboutsummaryrefslogtreecommitdiffstats
path: root/devel/cl-asdf/Makefile
blob: bb2eb7abe97d9272f4b2457f7a0ae8a041ebcbfa (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
# New ports collection Makefile for:    cl-asdf
# Date created:             10 May 2003
# Whom:                 Henrik Motakef <henrik.motakef@web.de>
#
# $FreeBSD$

PORTNAME=       asdf
PORTVERSION=        2003.05.16
CATEGORIES=     devel
MASTER_SITES=       http://www.henrik-motakef.de/freebsd-distfiles/asdf/
PKGNAMEPREFIX=      cl-

MAINTAINER=     henrik.motakef@web.de
COMMENT=        A system definition facility for Common Lisp

WRKSRC=         ${WRKDIR}/${PORTNAME}
NO_BUILD=       yes # Sources only, see cl-asdf-[cmucl|sbcl|clisp]
CL_LIBDIR=      ${PREFIX}/lib/common-lisp
ASDF_SYSTEM_REGISTRY=   ${CL_LIBDIR}/system-registry

do-install:
    ${MKDIR} ${CL_LIBDIR}/asdf
    ${MKDIR} ${ASDF_SYSTEM_REGISTRY}
    ${INSTALL_DATA} ${WRKSRC}/asdf.lisp ${CL_LIBDIR}/asdf/
    ${INSTALL_DATA} ${WRKSRC}/wild-modules.lisp ${CL_LIBDIR}/asdf/
    ${SED}  -e 's|%%ASDF_PATHNAME%%|${CL_LIBDIR}/asdf/asdf|' \
        -e 's|%%ASDF_SYSTEM_REGISTRY%%|${ASDF_SYSTEM_REGISTRY}|' \
        ${FILESDIR}/asdf-init.lisp > \
        ${PREFIX}/etc/asdf-init.lisp.default
    [ -f ${PREFIX}/etc/asdf-init.lisp ] || \
        ${CP} ${PREFIX}/etc/asdf-init.lisp.default \
        ${PREFIX}/etc/asdf-init.lisp
.if !defined(NOPORTDOCS)
    ${MKDIR} ${PREFIX}/share/doc/cl-asdf/
    ${MKDIR} ${PREFIX}/share/examples/cl-asdf/
    ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/cl-asdf/
    ${INSTALL_DATA} ${WRKSRC}/LICENSE ${PREFIX}/share/doc/cl-asdf/
    ${INSTALL_DATA} ${FILESDIR}/README.FreeBSD ${PREFIX}/share/doc/cl-asdf/
    ${INSTALL_DATA} ${WRKSRC}/test/* ${PREFIX}/share/examples/cl-asdf/
.endif

post-install:
    @${CAT} ${MASTERDIR}/pkg-message

.include <bsd.port.mk>