aboutsummaryrefslogtreecommitdiff
path: root/x11-wm/subtle/Makefile
blob: 0b97c2ee287d63651c9476844edeb8c554428e65 (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
# Created by: Alexey Dokuchaev <danfe@FreeBSD.org>
# $FreeBSD$

PORTNAME=	subtle
PORTVERSION=	0.11.3224
CATEGORIES=	x11-wm ruby
MASTER_SITES=	https://subtle.subforge.org/attachments/download/81/
DISTNAME=	${PORTNAME}-${PORTVERSION}-xi

MAINTAINER=	danfe@FreeBSD.org
COMMENT=	Grid-based manual tiling window manager

LICENSE=	GPLv2

BUILD_DEPENDS=	rake:devel/rubygem-rake

USES=		compiler:c11 pkgconfig tar:tbz2 xorg
USE_RUBY=	yes
USE_XORG=	x11 xft xinerama xpm xrandr xtst

MAKE_CMD=	rake -v
MAKEFILE=	Rakefile
ALL_TARGET=	build

post-patch:
	@${REINPLACE_CMD} -e 1d ${WRKSRC}/data/subtler/runner.rb
	@${REINPLACE_CMD} -e 's,/etc/xdg,${LOCALBASE}&,' \
		${WRKSRC}/src/subtle/ruby.c

do-configure:
	@cd ${WRKSRC} && ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} config

.include <bsd.port.mk>