aboutsummaryrefslogtreecommitdiff
path: root/x11-wm/berry/Makefile
blob: 99dba73d04df6a15dcc3df51fa6d17686aa8a4f3 (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
PORTNAME=	berry
DISTVERSION=	0.1.12
PORTREVISION=	1
CATEGORIES=	x11-wm

MAINTAINER=	lcook@FreeBSD.org
COMMENT=	Byte-sized, Xlib-based window manager
WWW=		https://berrywm.org/

LICENSE=	MIT
LICENSE_FILE=	${WRKSRC}/LICENSE

LIB_DEPENDS=	libfontconfig.so:x11-fonts/fontconfig \
		libfreetype.so:print/freetype2

USES=		gmake pkgconfig xorg
USE_GITHUB=	yes
GH_ACCOUNT=	JLErvin
USE_XORG=	x11 xft xinerama

HAS_CONFIGURE=	yes
CONFIGURE_ARGS=	--mandir=${PREFIX}/share/man \
		--prefix=${PREFIX}

PLIST_FILES=	bin/${PORTNAME} \
		bin/${PORTNAME}c \
		share/man/man1/${PORTNAME}.1.gz \
		share/man/man1/${PORTNAME}c.1.gz
PORTDOCS=	README.md
PORTEXAMPLES=	autostart sxhkdrc xephyr.sh

OPTIONS_DEFINE=	DOCS EXAMPLES

post-patch:
	@${REINPLACE_CMD} -e 's,va_copy(,__&,' \
		${WRKSRC}/utils.c
	@${REINPLACE_CMD} -e '/^#!/s,bash,sh,' \
		${WRKSRC}/examples/autostart \
		${WRKSRC}/examples/xephyr.sh

post-install-DOCS-on:
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} \
		${STAGEDIR}${DOCSDIR}

post-install-EXAMPLES-on:
	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
	${INSTALL_DATA} ${PORTEXAMPLES:S,^,${WRKSRC}/examples/,} \
		${STAGEDIR}${EXAMPLESDIR}

.include <bsd.port.mk>