blob: 747b038dbe4573bdf3c0aab716878f41e4702f94 (
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
|
# Ports collection makefile for: kadu
# Date created: 17 July 2003
# Whom: Jacek Pelka <jacek@combit.com.pl>
#
# $FreeBSD$
#
PORTNAME= kadu
PORTVERSION= 0.6.0
PORTEPOCH= 1
CATEGORIES= polish net-im
MASTER_SITES= http://www.kadu.net/download/stable/:kadu \
http://www.kadu.net/download/additions/:additions \
http://www.kadu.net/download/modules_extra/spellchecker/:aspell \
http://www.kadu.net/download/modules_mirror/:modules \
http://kadu.net/~arvenil/tabs/download/${PORTVERSION}/:modtab
DISTFILES= ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX}:kadu
DIST_SUBDIR= kadu
EXTRACT_ONLY= ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX}
MAINTAINER= mwisnicki+freebsd@gmail.com
COMMENT= QT Gadu-Gadu client
LIB_DEPENDS= gadu.3:${PORTSDIR}/polish/libgadu\
sndfile.1:${PORTSDIR}/audio/libsndfile
TABS_MOD_DISTFILE= kadu-tabs-1.1.5.tar.bz2
ASPELL_MOD_DISTFILE= spellchecker-20071230.tar.bz2
GG6_EMOTS_DISTFILE= kompatybilne_z_GG6.tar.gz
GG7_EMOTS_DISTFILE= dodatkowe_emoty_GG7.tar.gz
USE_AUTOTOOLS= autoconf:261
USE_BZIP2= yes
USE_GMAKE= yes
USE_OPENSSL= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --with-existing-libgadu="${LOCALBASE}" \
--with-includes="${LOCALBASE}/include ${X11BASE}/include" \
--with-libs="${LOCALBASE}/lib ${X11BASE}/lib" \
--program-transform-name='' \
--disable-autodownload
CONFIGURE_ENV= QTDIR="${QT_PREFIX}"
USE_QT_VER= 3
QT_NONSTANDARD= yes
WANT_GNOME= yes
INSTALLS_ICONS= yes
WRKSRC= ${WRKDIR}/${PORTNAME}
OPTIONS= ASPELL "Build spell checking module" off \
ARTS "Build aRts sound module" off \
ESOUND "Build Esound module" off \
GG_EMOTS "Install GG-compatible emoticons" off \
PHEADERS "Use precompiled headers to speed up build" on \
TABS "Build tabs module" off
.include <bsd.port.pre.mk>
.if defined(WITH_ASPELL)
LIB_DEPENDS+= aspell.16:${PORTSDIR}/textproc/aspell
PLIST_SUB+= ASPELL_MOD=""
DISTFILES+= ${ASPELL_MOD_DISTFILE}:aspell
KADU_SHARED_MODULES+= spellchecker
.else
PLIST_SUB+= ASPELL_MOD="@comment "
.endif
.if defined(WITH_ARTS)
LIB_DEPENDS+= artsc.0:${PORTSDIR}/audio/arts
PLIST_SUB+= ARTS_MOD=""
KADU_SHARED_MODULES+= arts_sound
.else
PLIST_SUB+= ARTS_MOD="@comment "
.endif
.if defined(WITH_ESOUND)
USE_GNOME+= esound
PLIST_SUB+= ESOUND_MOD=""
KADU_SHARED_MODULES+= esd_sound
.else
PLIST_SUB+= ESOUND_MOD="@comment "
.endif
.if defined(WITH_GG_EMOTS)
PLIST_SUB+= GG_EMOTS=""
DISTFILES+= ${GG6_EMOTS_DISTFILE}:additions \
${GG7_EMOTS_DISTFILE}:additions
.else
PLIST_SUB+= GG_EMOTS="@comment "
.endif
.if !defined(WITHOUT_PHEADERS)
CONFIGURE_ARGS+= --enable-pheaders
USE_GCC= 3.4+
.endif
.if defined(WITH_TABS)
PLIST_SUB+= TABS_MOD=""
DISTFILES+= ${TABS_MOD_DISTFILE}:modtab
KADU_SHARED_MODULES+= tabs
.else
PLIST_SUB+= TABS_MOD="@comment "
.endif
KADU_DISABLED_MODULES= alsa_sound
post-patch:
.for module in ${KADU_DISABLED_MODULES}
@${REINPLACE_CMD} -e 's|module_${module}=.|module_${module}=n|g' ${WRKSRC}/.config
.endfor
.for module in ${KADU_SHARED_MODULES}
@${REINPLACE_CMD} -e 's|module_${module}=.|module_${module}=m|g' ${WRKSRC}/.config
.endfor
.for module in ${KADU_STATIC_MODULES}
@${REINPLACE_CMD} -e 's|module_${module}=.|module_${module}=y|g' ${WRKSRC}/.config
.endfor
.if defined(WITH_ASPELL)
@cd ${WRKSRC}/modules && ${TAR} -zxf ${_DISTDIR}/${ASPELL_MOD_DISTFILE}
.endif
.if defined(WITH_GG_EMOTS)
@${REINPLACE_CMD} -e 's|emoticons_gg6_compatible=n|emoticons_gg6_compatible=y|g' ${WRKSRC}/.config
@cd ${WRKSRC}/varia/themes/emoticons && \
${TAR} -zxf ${_DISTDIR}/${GG6_EMOTS_DISTFILE} && \
${MV} kompatybilne_z_GG6 gg6_compatible && \
cd gg6_compatible && ${TAR} -zxf ${_DISTDIR}/${GG7_EMOTS_DISTFILE}
.endif
.if defined(WITH_TABS)
@cd ${WRKSRC}/modules && ${TAR} -zxf ${_DISTDIR}/${TABS_MOD_DISTFILE}
.endif
post-install:
${MKDIR} ${PREFIX}/share/applications
${INSTALL_DATA} ${WRKSRC}/kadu-core/kadu.desktop ${PREFIX}/share/applications
.include <bsd.port.post.mk>
|