aboutsummaryrefslogtreecommitdiff
path: root/x11-wm/stumpwm/Makefile
blob: ece0578ca25cfe37c02c1815f211c487db39c6a7 (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
PORTNAME=	stumpwm
DISTVERSION=	22.11-88
DISTVERSIONSUFFIX=	-gbaf5df7
CATEGORIES=	x11-wm lisp
MASTER_SITES+=	https://beta.quicklisp.org/archive/alexandria/2023-10-21/:alexandria \
		https://beta.quicklisp.org/archive/cl-ppcre/2023-06-18/:ppcre \
		https://beta.quicklisp.org/archive/clx/2023-06-18/:clx
DISTFILES+=	alexandria-20231021-git.tgz:alexandria \
		cl-ppcre-20230618-git.tgz:ppcre \
		clx-20230618-git.tgz:clx

MAINTAINER=	jrm@FreeBSD.org
COMMENT=	Tiling, keyboard driven Window Manager written in Common Lisp
WWW=		https://www.nongnu.org/stumpwm/

LICENSE=	GPLv2
LICENSE_FILE=	${WRKSRC}/COPYING

BUILD_DEPENDS=	sbcl:lang/sbcl \
		texinfo>=0:print/texinfo

USES=		autoreconf gmake
USE_GITHUB=	yes
USE_SBCL=	yes

GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--with-module-dir=${DATADIR}/modules \
		--enable-compression

MAKE_ARGS=	destdir=${STAGEDIR}

INFO=		${PORTNAME}
PLIST_FILES=	bin/stumpwm
PORTDOCS=	AUTHORS COPYING HACKING NEWS README.md
PORTEXAMPLES=	sample-stumpwmrc.lisp

OPTIONS_DEFINE=	DOCS EXAMPLES

post-extract:
	${FIND} ${WRKDIR} -type f -name \*.asd -a \! -name stumpwm\*.asd \
		\! -name dynamic-mixins-swm.asd -exec ${LN} -s {} ${WRKSRC} \;

do-build:
	(cd ${WRKSRC} && \
		ASDF_OUTPUT_TRANSLATIONS="/:" \
		sbcl \
		--noinform --non-interactive --no-sysinit --no-userinit \
		--eval "(require :uiop)" \
		--eval "(setf sb-impl::*default-external-format* :UTF-8)" \
		--load ./make-image.lisp)

do-install-DOCS-on:
	${MKDIR} ${STAGEDIR}${DOCSDIR}
	(cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR})

do-install-EXAMPLES-on:
	${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
	${INSTALL_DATA} ${WRKSRC}/${PORTEXAMPLES} ${STAGEDIR}/${EXAMPLESDIR}

.include <bsd.port.mk>