aboutsummaryrefslogtreecommitdiffstats
path: root/x11/fbpanel/Makefile
blob: 70ce2e05230152de43cce5e40205637185c902c1 (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
# Created by: Tobias Roth <ports@fsck.ch>
# $FreeBSD$

PORTNAME=   fbpanel
PORTVERSION=    6.1
PORTREVISION=   2
CATEGORIES= x11
MASTER_SITES=   SF
EXTRACT_SUFX=   .tbz2

MAINTAINER= nemysis@gmx.ch
COMMENT=    Lightweight, NETWM compliant X11 desktop panel

LICENSE=    MIT

USE_BZIP2=  yes
HAS_CONFIGURE=  yes
CONFIGURE_ARGS= --prefix=${PREFIX}
USE_GMAKE=  yes
USE_GNOME=  gtk20
USE_PKGCONFIG=  build

MAN1=       ${PORTNAME}.1

PORTDOCS=   CHANGELOG CREDITS NOTES README

OPTIONS_DEFINE= DOCS

DESKTOP_ENTRIES="${PORTNAME}" "${PORTNAME} NETWM compliant X11 desktop panel" \
        "${PREFIX}/share/pixmaps/${PORTNAME}.png" \
        "${PORTNAME}" "System;" false

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MDOCS}
PLIST_SUB+= PORTDOCS=""
.else
PLIST_SUB+= PORTDOCS="@comment "
.endif

post-patch:
    @${REINPLACE_CMD} -e 's|bash|sh|' ${WRKSRC}/scripts/install.sh
    @${REINPLACE_CMD} -e 's|@DATADIR@|${DATADIR}|' \
        ${WRKSRC}/data/man/${MAN1}.in

post-install:
    ${INSTALL_MAN} ${WRKSRC}/data/man/${MAN1} ${MAN1PREFIX}/man/man1/
    ${LN} -sf ${DATADIR}/images/logo.png ${PREFIX}/share/pixmaps/${PORTNAME}.png

.if ${PORT_OPTIONS:MDOCS}
    ${MKDIR} ${DOCSDIR}
    ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
.endif

.include <bsd.port.mk>