aboutsummaryrefslogtreecommitdiffstats
path: root/x11-wm/obconf/Makefile
blob: 7f1a17e1d22d36159e7b6c120fe641f699cdc341 (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
# Created by: trevor
# $FreeBSD$

PORTNAME=   obconf
PORTVERSION=    2.0.3
PORTREVISION=   8
CATEGORIES= x11-wm
MASTER_SITES=   http://openbox.org/dist/obconf/

MAINTAINER= novel@FreeBSD.org
COMMENT=    Preferences manager for the Openbox window manager

LIB_DEPENDS=    startup-notification-1.0:${PORTSDIR}/x11/startup-notification \
        obrender.27:${PORTSDIR}/x11-wm/openbox

USES=       pkgconfig
USE_GNOME=  gnomehier libglade2
GNU_CONFIGURE=  yes
CONFIGURE_ENV=  OPENBOX_CFLAGS="`pkg-config --cflags obrender-3.5 obt-3.5`" \
        OPENBOX_LIBS="`pkg-config --libs obrender-3.5 obt-3.5`"
CONFIGURE_ARGS= --sysconfdir=${PREFIX}/etc/openbox
MAKE_ARGS=  mkdir_p='${MKDIR}'

CPPFLAGS+=  -I${LOCALBASE}/include
LDFLAGS+=   -L${LOCALBASE}/lib

PORTDOCS=   ABOUT-NLS AUTHORS README TODO

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MNLS}
USES+=      gettext
PLIST_SUB+=     NLS=""
.else
CONFIGURE_ARGS+=    --disable-nls
PLIST_SUB+=     NLS="@comment "
.endif

post-install:
.if ${PORT_OPTIONS:MDOCS}
    @${MKDIR} ${DOCSDIR}
.for file in ${PORTDOCS}
    ${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
.endfor
.endif

.include <bsd.port.mk>