aboutsummaryrefslogtreecommitdiffstats
path: root/deskutils/cairo-dock-plugins/Makefile
blob: 4e5a5e69822140f5f08ab04cd0c83692c011e2bf (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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
# $FreeBSD$

PORTNAME=   cairo-dock-plugins
DISTVERSION=    3.2.1
CATEGORIES= deskutils
MASTER_SITES=   https://launchpadlibrarian.net/137290159/ \
        http://pazzle.otdux.com.ua/
DISTFILES=  ${DISTNAME}${EXTRACT_SUFX} ${ICONS_PACKAGE}${EXTRACT_SUFX}

MAINTAINER= fidaj@ukr.net
COMMENT=    Cairo-Dock-Plugins for Cairo-Dock

RUN_DEPENDS=    wget:${PORTSDIR}/ftp/wget
LIB_DEPENDS=    etpan:${PORTSDIR}/mail/libetpan \
        gldi.3:${PORTSDIR}/deskutils/cairo-dock

DATADIR=    ${PREFIX}/share/cairo-dock

ICONS_PACKAGE=  cairo-dock-plugins-png-icons
GNU_CONFIGURE=  yes
USE_GMAKE=  yes
USE_GNOME=  gnomehack glib20 gtk20 librsvg2 libxml2
USE_LDCONFIG=   yes
USE_PYTHON= yes
USE_XORG=   xrender
USE_DOS2UNIX=   YES
USES=       cmake gettext pkgconfig
LDFLAGS+=   -L${LOCALBASE}/lib
MAKE_JOBS_SAFE= YES
PLIST_SUB+= PYVER="${PYTHON_VERSION:S/thon//}"
CMAKE_ARGS+=    -Dinstall-pc-path:STRING="${LOCALBASE}/libdata/pkgconfig"

OPTIONS_DEFINE=     XFCE_INTEGRATION ALSA_MIXER GMENU \
            KEYBOARD_INDICATOR IMPULSE \
            SOUND_EFFECTS WEBLETS
OPTIONS_DEFAULT=    GMENU WEBLETS
XFCE_INTEGRATION_DESC=  XFCE integration support
ALSA_MIXER_DESC=    Alsa-Mixer applet
GMENU_DESC=     GMenu applet
KEYBOARD_INDICATOR_DESC=     Keyboard-indicator applet
IMPULSE_DESC=       Impulse applet
SOUND_EFFECTS_DESC= Sound Effects applet
TERMINAL_DESC=      Terminal applet
WEBLETS_DESC=       Weblets applet

OPTIONS_SUB=    yes

.include <bsd.port.options.mk>

post-patch:
    @${CP} -R ${WRKDIR}/${ICONS_PACKAGE}/* ${WRKSRC}
    @${FIND} ${WRKSRC} -type f -name "*" | ${XARGS} ${REINPLACE_CMD} -i.orig -e \
        's|/bin/bash|${LOCALBASE}/bin/bash|g; \
         s|/usr/bin/python|${LOCALBASE}/bin/python|g; \
         s|/usr/bin/ruby|${LOCALBASE}/bin/ruby|g; \
         s|/usr/share/applications|${LOCALBASE}/share/applications|g; \
         s|/usr/share/cairo-dock|${LOCALBASE}/share/cairo-dock|g'

.if ${PORT_OPTIONS:MXFCE_INTEGRATION}
LIB_DEPENDS+=   thunar-vfs-1:${PORTSDIR}/x11-fm/thunar-vfs \
        exif:${PORTSDIR}/graphics/libexif
CMAKE_ARGS+=    -Denable-xfce-integration:BOOL=TRUE
.else
CMAKE_ARGS+=    -Denable-xfce-integration:BOOL=FALSE
.endif

.if ${PORT_OPTIONS:MALSA_MIXER}
LIB_DEPENDS+=   asound:${PORTSDIR}/audio/alsa-lib
RUN_DEPENDS+=   ${LOCALBASE}/lib/alsa-lib/libasound_module_pcm_oss.so:${PORTSDIR}/audio/alsa-plugins
CMAKE_ARGS+=    -Denable-alsa-mixer:BOOL=TRUE
.else
CMAKE_ARGS+=    -Denable-alsa-mixer:BOOL=FALSE
.endif

.if ${PORT_OPTIONS:MGMENU}
LIB_DEPENDS+=   gnome-menu:${PORTSDIR}/x11/gnome-menus
CMAKE_ARGS+=    -Denable-gmenu:BOOL=TRUE
.else
CMAKE_ARGS+=    -Denable-gmenu:BOOL=FALSE
.endif

.if ${PORT_OPTIONS:MKEYBOARD_INDICATOR}
LIB_DEPENDS+=   exif:${PORTSDIR}/graphics/libexif \
        xklavier:${PORTSDIR}/x11/libxklavier
CMAKE_ARGS+=    -Denable-keyboard-indicator:BOOL=TRUE
.else
CMAKE_ARGS+=    -Denable-keyboard-indicator:BOOL=FALSE
.endif

.if ${PORT_OPTIONS:MIMPULSE}
LIB_DEPENDS+=   pulse:${PORTSDIR}/audio/pulseaudio
CMAKE_ARGS+=    -Denable-impulse:BOOL=TRUE
.else
CMAKE_ARGS+=    -Denable-impulse:BOOL=FALSE
.endif

.if ${PORT_OPTIONS:MSOUND_EFFECTS}
LIB_DEPENDS+=   asound:${PORTSDIR}/audio/alsa-lib
RUN_DEPENDS+=   ${LOCALBASE}/lib/alsa-lib/libasound_module_pcm_oss.so:${PORTSDIR}/audio/alsa-plugins
CMAKE_ARGS+=    -Denable-sound-effects:BOOL=TRUE
.else
CMAKE_ARGS+=    -Denable-sound-effects:BOOL=FALSE
.endif

# Needs newer vte
#.if ${PORT_OPTIONS:MTERMINAL}
#LIB_DEPENDS+=  vte:${PORTSDIR}/x11-toolkits/vte
#CMAKE_ARGS+=   -Denable-terminal:BOOL=TRUE
#.else
#CMAKE_ARGS+=   -Denable-terminal:BOOL=FALSE
#.endif

.if ${PORT_OPTIONS:MWEBLETS}
LIB_DEPENDS+=   webkitgtk-1.0:${PORTSDIR}/www/webkit-gtk2
CMAKE_ARGS+=    -Denable-weblets:BOOL=TRUE
.else
CMAKE_ARGS+=    -Denable-weblets:BOOL=FALSE
.endif

.include <bsd.port.mk>