blob: abe0b2dda52e841c16ecf30f19d1a98a4905d5a4 (
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
|
# New ports collection makefile for: stumpwm
# Date created: 2008-02-20
# Whom: alepulver
#
# $FreeBSD$
#
PORTNAME= stumpwm
PORTVERSION= 0.9.7
PORTREVISION= 5
CATEGORIES= x11-wm lisp
MASTER_SITES= SAVANNAH
DISTFILES= ${DISTNAME}.tgz
MAINTAINER= ports@FreeBSD.org
COMMENT= A tiling, keyboard driven Window Manager written in Common Lisp
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-contrib-dir=${DATADIR}
MAKE_JOBS_UNSAFE=yes
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
PLIST_FILES= bin/stumpish \
bin/${PORTNAME}
INFO= ${PORTNAME}
PORTEXAMPLES= sample-stumpwmrc.lisp
PORTDATA= *
OPTIONS= SBCL "Build with lang/sbcl (otherwise with lang/clisp)" on
.include <bsd.port.options.mk>
.if defined(WITH_SBCL) || make(makesum) || defined(FETCH_ALL)
MASTER_SITES+= http://common-lisp.net/~abridgewater/dist/clx/:clx
DISTFILES+= clx-0.7.4.tgz:clx
.endif
.if defined(WITH_SBCL)
CONFIGURE_ARGS+= --with-lisp=sbcl
BUILD_DEPENDS+= sbcl:${PORTSDIR}/lang/sbcl
.else
CONFIGURE_ARGS+= --with-lisp=clisp
BUILD_DEPENDS+= clisp:${PORTSDIR}/lang/clisp
.endif
.if !defined(WITH_SBCL)
.if exists(${LOCALBASE}/bin/clisp) && \
!exists(${LOCALBASE}/lib/clisp/full/clx.o)
IGNORE= requires lang/clisp built with CLX_NEW option ON
.endif
.endif
.if defined(WITH_SBCL)
post-extract: .SILENT
${LN} -sf ${WRKDIR}/clx*/*.asd ${WRKSRC}/cl-ppcre/*.asd ${WRKSRC}
post-patch: .SILENT
${REINPLACE_CMD} 's|sbcl_.*OPTS=|& \
--disable-debugger \
--no-userinit \
--no-sysinit \
--eval "(require :asdf)" \
--eval "(pop asdf:*central-registry*)" \
|' ${WRKSRC}/Makefile.in
${REINPLACE_CMD} 's/\(sb-introspect:function-\)arglist/\1lambda-list/' \
${WRKSRC}/manual.lisp
.endif
post-install:
${INSTALL_SCRIPT} ${WRKSRC}/contrib/stumpish ${PREFIX}/bin
.if !defined(NOPORTEXAMPLES)
${MKDIR} ${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/${PORTEXAMPLES} ${EXAMPLESDIR}
.endif
.if !defined(NOPORTDATA)
${MKDIR} ${DATADIR}
${TAR} cf - -C${WRKSRC}/contrib --exclude stumpish\* . \
| ${TAR} xovf - -C${DATADIR}
.endif
.include <bsd.port.mk>
|