aboutsummaryrefslogtreecommitdiff
path: root/x11-wm/matchbox/Makefile
blob: f1a1e095d6cf7f801a1f49e150b7467e4c261be6 (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
# New ports collection makefile for:	matchbox
# Date created:				2002-07-14
# Whom:					trevor
#
# $FreeBSD$
#

PORTNAME=	matchbox
PORTVERSION=	1.1
CATEGORIES=	x11-wm
MASTER_SITES=	http://projects.o-hand.com/matchbox/sources/matchbox-window-manager/%SUBDIR%/
MASTER_SITE_SUBDIR=	${PORTVERSION}
DISTNAME=	${PORTNAME}-window-manager-${PORTVERSION}

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Window manager suitable for low-resolution screens

USE_BZIP2=	yes
USE_X_PREFIX=	yes
USE_GNOME=	gnometarget
GNU_CONFIGURE=	yes
CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include" \
		LDFLAGS="-L${LOCALBASE}/lib -L${X11BASE}/lib"

PORTDOCS=	${DOCS}
PLIST_FILES=	bin/matchbox-window-manager bin/matchbox-remote \
		etc/matchbox/kbdconfig
PLIST_DIRS=	etc/matchbox

DOCS=		AUTHORS ChangeLog NEWS README

.include <bsd.port.pre.mk>

.if defined(WITHOUT_XFT)
CONFIGURE_ARGS+=	--enable-standalone
.else
LIB_DEPENDS+=	Xft.2:${PORTSDIR}/x11-fonts/libXft
CONFIGURE_ARGS+=	--enable-standalone-xft
.endif

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/src/matchbox-remote ${PREFIX}/bin
	${INSTALL_PROGRAM} ${WRKSRC}/src/matchbox-window-manager ${PREFIX}/bin
	@${MKDIR} ${PREFIX}/etc/matchbox
	${INSTALL_DATA} ${WRKSRC}/data/kbdconfig ${PREFIX}/etc/matchbox
.if !defined(NOPORTDOCS)
	@${MKDIR} ${DOCSDIR}
.for i in ${DOCS}
	${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
.endfor
.endif

.include <bsd.port.post.mk>