aboutsummaryrefslogtreecommitdiffstats
path: root/x11-wm/obconf/Makefile
blob: 522f456d44c05bbfca66f5ce21d74bceed639732 (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
# New ports collection makefile for:    obconf
# Date created:             2002-10-13
# Whom:                 trevor
#
# $FreeBSD$
#

PORTNAME=   obconf
PORTVERSION=    1.5
PORTREVISION=   5
CATEGORIES= x11-wm
MASTER_SITES=   http://icculus.org/openbox/obconf/

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

BUILD_DEPENDS=  openbox:${PORTSDIR}/x11-wm/openbox
LIB_DEPENDS=    startup-notification-1.0:${PORTSDIR}/x11/startup-notification

CONFIGURE_ARGS= --datadir=${PREFIX}/share/openbox --prefix=${PREFIX} \
        --sysconfdir=${PREFIX}/etc/openbox
CONFIGURE_ENV+= LDFLAGS="${LDFLAGS} -export-dynamic"
DOCS=       ABOUT-NLS AUTHORS COPYING README TODO
GNU_CONFIGURE=  yes
PLIST=      ${WRKDIR}/pkg-plist
USE_GMAKE=  yes
USE_GNOME=  gtk20 libglade2
USE_X_PREFIX=   yes

pre-install:
    ${ECHO_CMD} bin/obconf > ${PLIST}
    ${ECHO_CMD} share/openbox/applications/obconf.desktop >> ${PLIST}
    ${ECHO_CMD} share/openbox/obconf/obconf.glade >> ${PLIST}
.if !defined(NOPORTDOCS)
.for ii in ${DOCS}
    ${ECHO_CMD} share/openbox/obconf/${ii} >> ${PLIST}
.endfor
.endif
.for ii in share/openbox/applications share/openbox/obconf
    ${ECHO_CMD} @dirrm ${ii} >> ${PLIST}
.endfor

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/src/obconf ${PREFIX}/bin
    ${MKDIR} ${PREFIX}/share/openbox/applications \
        ${PREFIX}/share/openbox/obconf
.if !defined(NOPORTDOCS)
.for ii in ${DOCS}
    ${INSTALL_DATA} ${WRKSRC}/${ii} ${PREFIX}/share/openbox/obconf
.endfor
.endif
    ${INSTALL_DATA} ${WRKSRC}/obconf.desktop \
        ${PREFIX}/share/openbox/applications
    ${INSTALL_DATA} ${WRKSRC}/src/obconf.glade \
        ${PREFIX}/share/openbox/obconf

.include <bsd.port.mk>