summaryrefslogtreecommitdiffstats
path: root/x11-wm/flwm/Makefile
blob: 89bf8bcc30f2ee89cddc5b418a29dc795bcdb7fd (plain)
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
# Created by: Dima Sivachenko <dima@chg.ru>
# $FreeBSD$

PORTNAME=	flwm
PORTVERSION=	1.14
PORTREVISION=	2
CATEGORIES=	x11-wm

MAINTAINER=	ports@FreeBSD.org
COMMENT=	The Fast Light Window Manager

LICENSE=	GPLv2 # or later

LIB_DEPENDS=	libfltk.so:${PORTSDIR}/x11-toolkits/fltk-devel

USES=		autoreconf gmake
GNU_CONFIGURE=	yes
USE_XORG=	x11 xt

USE_GITHUB=	yes
GH_ACCOUNT=	bbidulock

CXXFLAGS+=	-DFL_LIBRARY -I${LOCALBASE}/include/fltk-devel

PLIST_FILES=	bin/flwm \
		man/man1/flwm.1.gz

post-patch:
	${REINPLACE_CMD} -e 's|^LIBS =.*|LIBS = `${LOCALBASE}/bin/fltk-devel/fltk-config --ldflags`|' ${WRKSRC}/Makefile

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/flwm ${STAGEDIR}${PREFIX}/bin
	${INSTALL_DATA} ${WRKSRC}/flwm.1 ${STAGEDIR}${PREFIX}/man/man1

.include <bsd.port.mk>
OpenPOWER on IntegriCloud