aboutsummaryrefslogtreecommitdiffstats
path: root/x11-wm/openbox/Makefile
blob: 0ca2b12c2d0c3c1fec596ed50b101ee8667a4e90 (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
54
55
56
57
58
59
60
61
# New ports collection makefile for:    openbox (based on the blackbox port)
# Date created:             2002-04-28
# Whom:                 Trevor Johnson <trevor@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   openbox
PORTVERSION=    3.5.0
PORTREVISION=   3
CATEGORIES= x11-wm
MASTER_SITES=   http://openbox.org/dist/openbox/

MAINTAINER= novel@FreeBSD.org
COMMENT=    Small, fast, standards compliant, extensible window manager

LICENSE=    GPLv2

GNU_CONFIGURE=  yes
USE_GMAKE=  yes
USE_GNOME=  glib20 libxml2 gnomehack ltverhack
USE_XORG=   xft
USE_AUTOTOOLS=  libtool
USE_LDCONFIG=   yes
CONFIGURE_ENV=  CFLAGS+="-I${LOCALBASE}/include" \
        LDFLAGS+="-L${LOCALBASE}/lib"
MAN1=       openbox.1 openbox-session.1 obxprop.1 \
        openbox-gnome-session.1 openbox-kde-session.1

PLIST_SUB=  VERSION=${PORTVERSION:C/.[0-9]+\$//}

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

.if !defined(WITHOUT_IMLIB)
USE_EFL=    imlib2
.else
CONFIGURE_ARGS+=    --disable-imlib2
.endif

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

.if !defined(WITHOUT_STARTUP_NOTIFICATION)
LIB_DEPENDS+=   startup-notification-1.0:${PORTSDIR}/x11/startup-notification
.else
CONFIGURE_ARGS+=    --disable-startup-notification
.endif

post-configure:
    @${CHMOD} +x ${WRKSRC}/install-sh

.include <bsd.port.mk>