blob: ac1267250892872b990931de801e42c3ac5ab33a (
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
|
# Ports collection makefile for: gnugadu2
# Date created: 12 january 2004
# Whom: smyru@heron.pl
#
# $FreeBSD$
#
PORTNAME= gnugadu2
PORTVERSION= 2.2.4
PORTREVISION= 1
CATEGORIES= polish net
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ggadu
DISTNAME= gg2-${PORTVERSION}
MAINTAINER= smyru@heron.pl
COMMENT= GTK2 based Gadu-Gadu client for X11
LIB_DEPENDS= gadu.3:${PORTSDIR}/polish/ekg \
audiofile.0:${PORTSDIR}/audio/libaudiofile
USE_X_PREFIX= yes
USE_PERL5= yes
USE_GMAKE= yes
USE_GNOME= gtk20
USE_LIBTOOL_VER=15
USE_REINPLACE= yes
INSTALLS_SHLIB= yes
WANT_GNOME= yes
CONFLICTS= qhacc-*
CONFIGURE_ARGS= \
--with-external-libgadu \
--with-static=no \
--without-dbus \
--without-remote
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
.include <bsd.port.pre.mk>
.if (${HAVE_GNOME:Mesound}!="")
WITH_ESOUND= yes
.endif
.if !defined(WITH_GTKSPELL)
CONFIGURE_ARGS+= --without-gtkspell
.else
LIB_DEPENDS+= gtkspell.0:${PORTSDIR}/textproc/gtkspell2
.endif
.if !defined(WITH_DOCKLET)
CONFIGURE_ARGS+= --without-docklet-system-tray
PLIST_SUB+= DOCKLET:="@comment "
.else
PLIST_SUB+= DOCKLET:=""
.endif
.if !defined(WITH_DOCKAPP)
CONFIGURE_ARGS+= --without-docklet_dockapp
PLIST_SUB+= DOCKAPP:="@comment "
.else
PLIST_SUB+= DOCKAPP:=""
.endif
.if !defined(WITH_TLEN)
CONFIGURE_ARGS+= --without-tlen
PLIST_SUB+= TLEN:="@comment "
.else
LIB_DEPENDS+= tlen.1:${PORTSDIR}/polish/libtlen
PLIST_SUB+= TLEN:=""
.endif
.if !defined(WITH_JABBER)
CONFIGURE_ARGS+= --without-jabber
PLIST_SUB+= JABBER:="@comment "
.else
LIB_DEPENDS+= loudmouth-1.0:${PORTSDIR}/net/loudmouth
PLIST_SUB+= JABBER:=""
.endif
.if !defined(WITH_ESOUND)
CONFIGURE_ARGS+= --without-esd
PLIST_SUB+= ESOUND:="@comment "
.else
PKGNAMESUFFIX= -esound
USE_GNOME+= esound
PLIST_SUB+= ESOUND:=""
.endif
.if !defined(WITH_ARTS)
CONFIGURE_ARGS+= --without-arts
PLIST_SUB+= ARTS:="@comment "
.else
LIB_DEPENDS+= artsc.0:${PORTSDIR}/audio/arts
PLIST_SUB+= ARTS:=""
.endif
.if !defined(WITH_XOSD)
CONFIGURE_ARGS+= --without-xosd
PLIST_SUB+= XOSD:="@comment "
.else
LIB_DEPENDS+= xosd.4:${PORTSDIR}/misc/xosd
PLIST_SUB+= XOSD:=""
.endif
.if (${HAVE_GNOME:Mgnomehier}!="")
PLIST_SUB+= GNOME:=""
.else
PLIST_SUB+= GNOME:="@comment "
.endif
.if exists(${LOCALBASE}/lib/libkdecore.so)
PLIST_SUB+= KDE:=""
.else
PLIST_SUB+= KDE:="@comment "
.endif
pre-everything::
.if defined(WITH_TLEN) || defined(WITH_JABBER) || defined(WITH_XOSD) || defined(WITH_DOCLET) || defined(WITH_DOCKAPP) || defined(WITH_ARTS) || defined(WITH_ESOUND) || defined(WITH_GTKSPELL)
@${ECHO_MSG}
@${ECHO_MSG} " You can define following build options:"
@${ECHO_MSG}
.endif
.if !defined(WITH_TLEN)
@${ECHO_MSG} " WITH_TLEN to enable Tlen.pl network plugin"
.endif
.if !defined(WITH_JABBER)
@${ECHO_MSG} " WITH_JABBER to enable Jabber loudmouth plugin"
.endif
.if !defined(WITH_XOSD)
@${ECHO_MSG} " WITH_XOSD to enable On-Screen-Display messages"
.endif
.if !defined(WITH_DOCKLET)
@${ECHO_MSG} " WITH_DOCKLET to enable freedesktop.org docklet plugin"
.endif
.if !defined(WITH_DOCKAPP)
@${ECHO_MSG} " WITH_DOCKAPP to enable WindowMaker dockapp plugin"
.endif
.if !defined(WITH_ARTS)
@${ECHO_MSG} " WITH_ARTS to build with aRts sound server"
.endif
.if !defined(WITH_ESOUND)
@${ECHO_MSG} " WITH_ESOUND to build with esound sound server"
.endif
.if !defined(WITH_GTKSPELL)
@${ECHO_MSG} " WITH_GTKSPELL to enable GTKSpell checker"
.endif
@${ECHO_MSG}
post-patch:
@${REINPLACE_CMD} -e 's,%%PREFIX%%,${PREFIX},' ${WRKSRC}/gg2.desktop
@${REINPLACE_CMD} -e 's| -ldl|| ; s|(libdir)/pkgconfig|(prefix)/libdata/pkgconfig|' ${WRKSRC}/lib/Makefile.in
.if ${OSVERSION} < 500000
@${REINPLACE_CMD} -e 's|stdint.h|inttypes.h|' ${WRKSRC}/src/plugins/gadu_gadu/libgadu/lib/libgadu-config.h.in
.endif
post-install:
.if (${HAVE_GNOME:Mgnomehier}!="")
${INSTALL_DATA} ${WRKSRC}/gg2.desktop ${X11BASE}/share/gnome/apps/Internet
${LN} -sf ${PREFIX}/share/pixmaps/gg2.png ${X11BASE}/share/gnome/pixmaps
.endif
.if exists(${LOCALBASE}/lib/libkdecore.so)
${INSTALL_DATA} ${WRKSRC}/gg2.desktop ${LOCALBASE}/share/applnk/Internet
.endif
.include <bsd.port.post.mk>
|