summaryrefslogtreecommitdiff
path: root/x11-wm/openbox/Makefile
blob: 70e7f58a6c3273af19679c32eb1f1d1624635c16 (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
36
37
38
39
40
41
42
43
44
45
46
# New ports collection makefile for:	openbox
# Date created:				2002-04-28
# Whom:					trevor
# based on the blackbox port
#
# $FreeBSD$
#

PORTNAME=	openbox
PORTVERSION=	3.3.1
PORTREVISION=	1
CATEGORIES=	x11-wm
MASTER_SITES=	http://offload1.icculus.org/openbox/releases/

MAINTAINER=	redchrom@gmail.com
COMMENT=	A standards compliant, fast, light-weight, extensible window manager

LIB_DEPENDS=	Xft.2:${PORTSDIR}/x11-fonts/libXft

GNU_CONFIGURE=	yes
USE_GMAKE=	yes
USE_GNOME=	glib20 libxml2
USE_X_PREFIX=	yes
USE_LDCONFIG=	yes
CONFIGURE_ENV=	CFLAGS="-I${LOCALBASE}/include" \
		LDFLAGS="-L${LOCALBASE}/lib"

.if !defined(WITHOUT_NLS)
USE_GETTEXT=	yes
PLIST_SUB+=	NLS=""
.else
CONFIGURE_ARGS+=	--disable-nls
PLIST_SUB+=	NLS="@comment "
.endif

.if !defined(WITHOUT_PANGO)
USE_GNOME+=	pango
.else
CONFIGURE_ARGS+=	--disable-pango
.endif

post-patch:
	@${REINPLACE_CMD} -e 's|(libdir)/pkgconfig|(prefix)/libdata/pkgconfig|g' \
		${WRKSRC}/Makefile.in

.include <bsd.port.mk>