aboutsummaryrefslogtreecommitdiffstats
path: root/x11/wbar/Makefile
blob: 612ef19531287a22912f3c3074e9f7ea4c8928b2 (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
62
63
64
65
66
67
# Created by: Nicola Vitale <nivit@FreeBSD.org>
# $FreeBSD$

PORTNAME=   wbar
PORTVERSION=    2.3.4
PORTREVISION=   0
CATEGORIES= x11
MASTER_SITES=   ${MASTER_SITE_GOOGLE_CODE}
EXTRACT_SUFX=   .tgz

MAINTAINER= nivit@FreeBSD.org
COMMENT=    A quick launch bar for fluxbox, WindowMaker, Xfce, etc

LICENSE=    GPLv3

CONFIGURE_ARGS= --exec-prefix=${PREFIX}

USES=       pkgconfig

GNU_CONFIGURE=  yes

MAN1=   ${PORTNAME}.1
MANLANG=    "" es

OPTIONS_DEFINE= NLS WBARCONFIG
OPTIONS_DEFAULT=    NLS WBARCONFIG

WBARCONFIG_DESC=    Build the GTK+ configuration interface

NO_STAGE=   yes
.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MNLS}
CONFIGURE_ARGS+=    --enable-nls
CONFIGURE_ENV=  LIBS=-lintl
PLIST_SUB=  NLS=""
.else
CONFIGURE_ARGS+=    --disable-nls
PLIST_SUB=  NLS="@comment "
# The configure script has a couple of bugs...
post-patch:
    ${REINPLACE_CMD} -e "s,install-data-@USE_NLS@,install-data-no,g" ${WRKSRC}/po/Makefile.in.in
.endif

.if ${PORT_OPTIONS:MWBARCONFIG}
CONFIGURE_ARGS+=    --enable-wbar-config
PLIST_SUB+= WBARCONFIG=""
MAN1+=  ${PORTNAME}-config.1
USE_GNOME=  libglade2
.else
CONFIGURE_ARGS+=    --disable-wbar-config
PLIST_SUB+= WBARCONFIG="@comment "
.endif

USE_EFL=    imlib2
USES+=      gettext
USE_GMAKE=  yes
USE_GNOME+= desktopfileutils intltool

WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}

PLIST_SUB+= DESKTOPDIR=${DESKTOPDIR:S,${PREFIX}/,,}

post-install:
    ${MV} ${PREFIX}/etc/wbar.d/wbar.desktop ${DESKTOPDIR}/wbar.desktop

.include <bsd.port.mk>