blob: 07180bcb482fdc4574d972c4cc4945094b9a9558 (
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
|
# New ports collection makefile for: cairo-dock-plugins
# Date created: 2010-03-19
# Whom: Ivan Klymenko <fidaj@ukr.net>
#
# $FreeBSD$
#
PORTNAME= cairo-dock-plugins
DISTVERSION= 2.3.0~3
PORTREVISION= 4
CATEGORIES= deskutils
MASTER_SITES= http://launchpadlibrarian.net/73753265/ \
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.2:${PORTSDIR}/deskutils/cairo-dock
DATADIR= ${PREFIX}/share/cairo-dock
ICONS_PACKAGE= cairo-dock-plugins-png-icons
GNU_CONFIGURE= yes
USE_GETTEXT= yes
USE_GMAKE= yes
USE_GNOME= gnomehack pkgconfig glib20 gtk20 librsvg2 libxml2
USE_LDCONFIG= yes
USE_PYTHON= yes
USE_XORG= xrender
USE_DOS2UNIX= YES
USE_CMAKE= yes
USE_GCC= 4.6+
MAKE_JOBS_SAFE= YES
PLIST_SUB+= PYVER="${PYTHON_VERSION:S/thon//}"
OPTIONS= GMENU "Common Applications menu" On \
KEYBOARD_INDICATOR "Control the keyboard layout" Off \
TERMINAL "Add a terminal to your dock" On \
WEBLETS "To show an interactive web page" On \
XFCE_INTEGRATION "For XFCE environnement" Off \
ALSA_MIXER "For ALSA compatibility utils" Off
.include <bsd.port.options.mk>
post-patch:
@${CP} -R ${WRKDIR}/${ICONS_PACKAGE}/* ${WRKSRC}
.if defined(WITH_GMENU)
LIB_DEPENDS+= gnome-menu.2:${PORTSDIR}/x11/gnome-menus
CMAKE_ARGS+= -Denable_gmenu:STRING=yes
PLIST_SUB+= GMENU=""
.else
CMAKE_ARGS+= -Denable_gmenu:STRING=no
PLIST_SUB+= GMENU="@comment "
.endif
.if defined(WITH_KEYBOARD_INDICATOR)
LIB_DEPENDS+= exif.12:${PORTSDIR}/graphics/libexif \
xklavier.12:${PORTSDIR}/x11/libxklavier
CMAKE_ARGS+= -Denable_keyboard_indicator:STRING=yes
PLIST_SUB+= KEYBOARD_INDICATOR=""
.else
CMAKE_ARGS+= -Denable_keyboard_indicator:STRING=no
PLIST_SUB+= KEYBOARD_INDICATOR="@comment "
.endif
.if defined(WITH_TERMINAL)
LIB_DEPENDS+= vte.9:${PORTSDIR}/x11-toolkits/vte
CMAKE_ARGS+= -Denable_terminal:STRING=yes
PLIST_SUB+= TERMINAL=""
.else
CMAKE_ARGS+= -Denable_terminal:STRING=no
PLIST_SUB+= TERMINAL="@comment "
.endif
.if defined(WITH_WEBLETS)
LIB_DEPENDS+= webkitgtk-1.0.0:${PORTSDIR}/www/webkit-gtk2
CMAKE_ARGS+= -Denable_weblets:STRING=yes
PLIST_SUB+= WEBLETS=""
.else
CMAKE_ARGS+= -Denable_weblets:STRING=no
PLIST_SUB+= WEBLETS="@comment "
.endif
.if defined(WITH_XFCE_INTEGRATION)
LIB_DEPENDS+= thunar-vfs-1.5:${PORTSDIR}/x11-fm/thunar \
exif.12:${PORTSDIR}/graphics/libexif
CMAKE_ARGS+= -Denable_xfce_integration:STRING=yes
PLIST_SUB+= XFCE_INTEGRATION=""
.else
CMAKE_ARGS+= -Denable_xfce_integration:STRING=no
PLIST_SUB+= XFCE_INTEGRATION="@comment "
.endif
.if defined(WITH_ALSA_MIXER)
LIB_DEPENDS+= asound.2:${PORTSDIR}/audio/alsa-lib
RUN_DEPENDS+= ${LOCALBASE}/lib/alsa-lib/libasound_module_pcm_oss.so:${PORTSDIR}/audio/alsa-plugins
CMAKE_ARGS+= -Denable_alsa_mixer:STRING=yes
PLIST_SUB+= ALSA_MIXER=""
.else
CMAKE_ARGS+= -Denable_alsa_mixer:STRING=no
PLIST_SUB+= ALSA_MIXER="@comment "
.endif
.include <bsd.port.mk>
|