blob: 247e2c1c25e76e1bd07f8c637ec8e833b7b2a3a6 (
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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
|
# Created by: Charlie & <root@ws.ipfw.ru>
# $FreeBSD$
PORTNAME= ekiga
PORTVERSION= 4.0.1
PORTREVISION= 2
CATEGORIES= net-im
MASTER_SITES= GNOME
#MASTER_SITES= http://www.ekiga.org/admin/downloads/latest/sources/ekiga_${PORTVERSION}/
#DISTNAME= ekiga-${PORTVERSION}
DIST_SUBDIR= gnome3
MAINTAINER= gnome@FreeBSD.org
COMMENT= VoIP and video conferencing application
BUILD_DEPENDS= v4l_compat>=0:${PORTSDIR}/multimedia/v4l_compat \
gnome-icon-theme>=3.0.0:${PORTSDIR}/misc/gnome-icon-theme
LIB_DEPENDS= libboost_signals.so:${PORTSDIR}/devel/boost-libs \
libopal.so:${PORTSDIR}/net/opal \
libv4l2.so:${PORTSDIR}/multimedia/libv4l
RUN_DEPENDS= gnome-icon-theme>=3.0.0:${PORTSDIR}/misc/gnome-icon-theme
USE_XZ= yes
GNU_CONFIGURE= yes
USES= gettext gmake pathfix perl5 pkgconfig
USE_XORG= xv
USE_GNOME= gtk20 intltool libxml2
INSTALLS_OMF= yes
INSTALLS_ICONS= yes
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -I${LOCALBASE}/lib
OPTIONS_DEFINE= LDAP NOTIFY EVOLUTION GCONF DBUS AVAHI GNOMEHELP
OPTIONS_DEFAULT=NOTIFY DBUS GCONF AVAHI
EVOLUTION_DESC= Evolution data server support
GNOMEHELP_DESC= Build Ekiga help files
#OPTIONS_GROUP= EXP
#OPTIONS_GROUP_EXP= KDE KAB GSTREAMER XCAP LOUDMOUTH
EXP_DESC= Experimental features
KDE_DESC= KDE 4 support
KAB_DESC= KAddressBook support (implies KDE option)
GSTREAMER_DESC= Gstreamer support
XCAP_DESC= Remote contact storage via HTTP in xml format
LOUDMOUTH_DESC= XMPP (jabber) support
# Note that h.323 support is enabled when opal is build with it.
.include <bsd.port.options.mk>
PLIST_SUB+= VERSION=${PORTVERSION}
.if ${PORT_OPTIONS:MKDE} || ${PORT_OPTIONS:MKAB}
USE_KDE4= kdehier kdelibs
USE_QT4= corelib
CONFIGURE_ARGS+=--enable-kde
#CONFIGURE_ENV+=KDE_CFLAGS="-I${KDE4_PREFIX}/include -I${QT_INCDIR} \
# -I${LOCALBASE}/include" KDE_LIBS="-L${KDE4_PREFIX}/lib"
CPPFLAGS+= -I${KDE4_PREFIX}/include
LDFLAGS+= -L${KDE4_PREFIX}/lib
.else
CONFIGURE_ARGS+=--disable-kde
.endif
.if ${PORT_OPTIONS:MKAB}
CONFIGURE_ARGS+=--enable-kab
USE_KDE4+= pimlibs
.else
CONFIGURE_ARGS+=--disable-kab
.endif
.if ${PORT_OPTIONS:MGSTREAMER}
CONFIGURE_ARGS+=--enable-gstreamer
USE_GSTREAMER= yes
.else
CONFIGURE_ARGS+=--disable-gstreamer
.endif
.if ${PORT_OPTIONS:MXCAP}
CONFIGURE_ARGS+=--enable-xcap
LIB_DEPENDS+= libsoup-2.4.so:${PORTSDIR}/devel/libsoup
.else
CONFIGURE_ARGS+=--disable-xcap
.endif
.if ${PORT_OPTIONS:MLOUDMOUTH}
CONFIGURE_ARGS+=--enable-loudmouth
LIB_DEPENDS+= libloudmouth-1.so:${PORTSDIR}/net-im/loudmouth
.else
CONFIGURE_ARGS+=--disable-loudmouth
.endif
.if ${PORT_OPTIONS:MLDAP}
USE_OPENLDAP= yes
LIB_DEPENDS+= libsasl2.so:${PORTSDIR}/security/cyrus-sasl2
CONFIGURE_ARGS+=--enable-ldap --with-ldap-dir="${LOCALBASE}" --with-libsasl2-dir="${LOCALBASE}"
PLIST_SUB+= LDAP=""
WITH_PLUGINS= 1
.else
CONFIGURE_ARGS+=--disable-ldap
PLIST_SUB+= LDAP="@comment "
.endif
.if defined(WITH_PLUGINS)
PLIST_SUB+= PLUGINS=""
.else
PLIST_SUB+= PLUGINS="@comment "
.endif
.if ${PORT_OPTIONS:MNOTIFY}
LIB_DEPENDS+= libnotify.so:${PORTSDIR}/devel/libnotify
CONFIGURE_ARGS+=--enable-notify
PLIST_SUB+= NOTIFY=""
WITH_PLUGINS= 1
.else
CONFIGURE_ARGS+=--disable-notify
PLIST_SUB+= NOTIFY="@comment "
.endif
.if ${PORT_OPTIONS:MDBUS}
LIB_DEPENDS+= libdbus-1.so:${PORTSDIR}/devel/dbus
CONFIGURE_ARGS+=--enable-dbus --enable-dbus-service
PLIST_SUB+= DBUS=""
.else
CONFIGURE_ARGS+=--disable-dbus --disable-dbus-service
PLIST_SUB+= DBUS="@comment "
.endif
.if ${PORT_OPTIONS:MGCONF}
USE_GNOME+= gconf2
CONFIGURE_ARGS+=--enable-gconf
GCONF_SCHEMAS= ekiga.schemas
PLIST_SUB+= GCONF="@comment "
.else
CONFIGURE_ARGS+=--disable-gconf
PLIST_SUB+= GCONF=""
.endif
.if ${PORT_OPTIONS:MEVOLUTION}
USE_GNOME+= evolutiondataserver
CONFIGURE_ARGS+=--enable-eds
PLIST_SUB+= EVOLUTION=""
WITH_PLUGINS= 1
.else
CONFIGURE_ARGS+=--disable-eds
PLIST_SUB+= EVOLUTION="@comment "
.endif
.if ${PORT_OPTIONS:MAVAHI}
CONFIGURE_ARGS+=--enable-avahi
LIB_DEPENDS+= libavahi-client.so:${PORTSDIR}/net/avahi-app
PLIST_SUB+= AVAHI=""
WITH_PLUGINS= 1
.else
CONFIGURE_ARGS+=--disable-avahi
PLIST_SUB+= AVAHI="@comment "
.endif
.if ${PORT_OPTIONS:MGNOMEHELP}
PLIST_SUB+= GNOMEHELP=""
USE_GNOME+= gnomedocutils
.else
CONFIGURE_ARGS+=--disable-gdu
PLIST_SUB+= GNOMEHELP="@comment "
.endif
post-install:
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/ekiga/${PORTVERSION}/libekiga.so
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/ekiga/${PORTVERSION}/plugins/*.so
.include <bsd.port.mk>
|