blob: 0fe9376ddeaa939c5a77a1d8b1f0eb5d276d2f1d (
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
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
|
# New ports collection makefile for: amule-devel
# Date created: Wed Nov 05 09:30:00 UTC 2003
# Whom: Ganael LAPLANCHE <ganael.laplanche@martymac.org>
#
# $FreeBSD$
#
PORTNAME= amule
PORTVERSION= 10390
CATEGORIES= net-p2p
MASTER_SITES= http://amule.sourceforge.net/tarballs/
PKGNAMESUFFIX= -devel
DISTNAME= aMule-SVN-r${PORTVERSION}
MAINTAINER= swell.k@gmail.com
COMMENT= The all-platform eMule p2p client
BUILD_DEPENDS= ${FLEX}:${PORTSDIR}/textproc/flex \
${LOCALBASE}/lib/libcryptopp.a:${PORTSDIR}/security/cryptopp
CONFLICTS= amule-[0-9]*
USE_BZIP2= yes
USE_GNOME= pkgconfig
USE_GMAKE= yes
USE_KDE4= # empty
USE_QT_VER= 4
USE_WX= 2.8
WX_CONF_ARGS= absolute
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-denoise-level=0
CONFIGURE_ENV= LEX="${FLEX}" PKG_CONFIG="${PKG_CONFIG}" \
docdir='$${prefix}/${DOCSDIR_REL}' \
LDFLAGS="${LDFLAGS}"
CPPFLAGS+= -I${LOCALBASE}/include
CFLAGS+= ${PTHREAD_CFLAGS}
LDFLAGS+= ${PTHREAD_LIBS} -L${LOCALBASE}/lib
OPTIONS= ALC "Compile aMule Link Creator for GUI" on \
ALCC "Compile aMule Link Creator for console" on \
AMULECMD "Compile aMule command line client" on \
AMULEDAEMON "Compile aMule daemon version" on \
AMULEGUI "Compile aMule remote GUI" on \
CAS "Compile aMule Statistics for console" on \
ED2K "Compile aMule ed2k links handler" on \
FILEVIEW "Compile file viewer for console (EXPERIMENTAL)" on \
GEOIP "Enable GeoIP IP2Country support" off \
MMAP "Enable using mapped memory" off \
MONOLITHIC "Compile monolithic aMule" on \
PLASMAMULE "Compile aMule plasma applet and engine" off \
UPNP "Enable Universal Plug and Play support" off \
WEBSERVER "Compile aMule WebServer" on \
WXCAS "Compile aMule Statistics for GUI" on \
WXUNICODE "Enable Unicode support" on \
XAS "Install XChat2 plugin" on
PORTDOCS= ABOUT-NLS Changelog EC_Protocol.txt \
ED2K-Links.HOWTO INSTALL README TODO \
amule-win32.HOWTO.txt amulesig.txt license.txt socks4.protocol
FLEX?= ${LOCALBASE}/bin/flex
PKG_CONFIG?= ${LOCALBASE}/bin/pkg-config
.include <bsd.port.pre.mk>
.if !defined(WITH_DEBUG)
CONFIGURE_ARGS+=--disable-debug
.endif
.if !defined(WITHOUT_NLS)
USE_GETTEXT= yes
PLIST_SUB+= NLS=""
.else
CONFIGURE_ARGS+= --disable-nls
PLIST_SUB+= NLS="@comment "
.endif
.if !defined(WITHOUT_ALC)
CONFIGURE_ARGS+= --enable-alc
PLIST_SUB+= ALC=""
.else
CONFIGURE_ARGS+= --disable-alc
PLIST_SUB+= ALC="@comment "
.endif
.if !defined(WITHOUT_ALCC)
CONFIGURE_ARGS+= --enable-alcc
PLIST_SUB+= ALCC=""
.else
CONFIGURE_ARGS+= --disable-alcc
PLIST_SUB+= ALCC="@comment "
.endif
.if !defined(WITHOUT_AMULECMD)
CONFIGURE_ARGS+= --enable-amulecmd
PLIST_SUB+= AMULECMD=""
.else
CONFIGURE_ARGS+= --disable-amulecmd
PLIST_SUB+= AMULECMD="@comment "
.endif
.if !defined(WITHOUT_AMULEDAEMON)
CONFIGURE_ARGS+= --enable-amule-daemon
PLIST_SUB+= AMULEDAEMON=""
USE_RC_SUBR= amuled.sh
.else
CONFIGURE_ARGS+= --disable-amule-daemon
PLIST_SUB+= AMULEDAEMON="@comment "
.endif
.if !defined(WITHOUT_AMULEGUI)
CONFIGURE_ARGS+= --enable-amule-gui
PLIST_SUB+= AMULEGUI=""
.else
CONFIGURE_ARGS+= --disable-amule-gui
PLIST_SUB+= AMULEGUI="@comment "
.endif
.if !defined(WITHOUT_CAS)
CONFIGURE_ARGS+= --enable-cas
LIB_DEPENDS+= gd.4:${PORTSDIR}/graphics/gd
PLIST_SUB+= CAS=""
.else
CONFIGURE_ARGS+= --disable-cas
PLIST_SUB+= CAS="@comment "
.endif
.if !defined(WITHOUT_ED2K)
CONFLICTS+= ed2k-hash*
CONFIGURE_ARGS+= --enable-ed2k
PLIST_SUB+= ED2K=""
.else
CONFIGURE_ARGS+= --disable-ed2k
PLIST_SUB+= ED2K="@comment "
.endif
.if !defined(WITHOUT_FILEVIEW)
CONFIGURE_ARGS+= --enable-fileview
PLIST_SUB+= FILEVIEW=""
.else
CONFIGURE_ARGS+= --disable-fileview
PLIST_SUB+= FILEVIEW="@comment "
.endif
.if !defined(WITHOUT_GEOIP)
CONFIGURE_ARGS+= --enable-geoip
LIB_DEPENDS+= GeoIP.5:${PORTSDIR}/net/GeoIP
.else
CONFIGURE_ARGS+= --disable-geoip
.endif
.if !defined(WITHOUT_MMAP)
CONFIGURE_ARGS+= --enable-mmap
.else
CONFIGURE_ARGS+= --disable-mmap
.endif
.if !defined(WITHOUT_MONOLITHIC)
CONFIGURE_ARGS+= --enable-monolithic
PLIST_SUB+= MONOLITHIC=""
.else
CONFIGURE_ARGS+= --disable-monolithic
PLIST_SUB+= MONOLITHIC="@comment "
.endif
.if !defined(WITHOUT_PLASMAMULE)
CONFIGURE_ENV+= ac_cv_path_KDE4_CONFIG=${KDE4_PREFIX}/bin/kde4-config \
KBUILDSYCOCA=${KDE4_PREFIX}/bin/kbuildsycoca4 \
UPDATE_MIME_DATABASE=/usr/bin/true
CONFIGURE_ARGS+= --enable-plasmamule
USE_KDE4+= kdelibs
QT_COMPONENTS+= dbus gui moc_build
PLIST_SUB+= PLASMAMULE=""
.else
CONFIGURE_ARGS+= --disable-plasmamule
PLIST_SUB+= PLASMAMULE="@comment "
.endif
.if !defined(WITHOUT_UPNP)
LIB_DEPENDS+= upnp.4:${PORTSDIR}/devel/upnp
.else
CONFIGURE_ARGS+= --disable-upnp
.endif
.if !defined(WITHOUT_WEBSERVER)
CONFIGURE_ARGS+= --enable-webserver
PLIST_SUB+= WEBSERVER=""
.else
CONFIGURE_ARGS+= --disable-webserver
PLIST_SUB+= WEBSERVER="@comment "
.endif
.if !defined(WITHOUT_WXCAS)
CONFIGURE_ARGS+= --enable-wxcas
PLIST_SUB+= WXCAS=""
.else
CONFIGURE_ARGS+= --disable-wxcas
PLIST_SUB+= WXCAS="@comment "
.endif
.if !defined(WITHOUT_WXUNICODE)
WX_UNICODE= yes
.endif
.if !defined(WITHOUT_XAS)
CONFIGURE_ARGS+= --enable-xas
PLIST_SUB+= XAS=""
.else
CONFIGURE_ARGS+= --disable-xas
PLIST_SUB+= XAS="@comment "
.endif
# Man pages management
.include "Makefile.man"
post-patch: .SILENT
${REINPLACE_CMD} -e '/LDFLAGS/s/-lpthread/${PTHREAD_LIBS}/' \
-e 's/test.*-print-file-name.*`/true/' \
-e '/if.*test/s/==/=/' \
${WRKSRC}/configure
.if defined(NOPORTDOCS)
${REINPLACE_CMD} 's/install-data-am:.*/install-data-am:/' \
${WRKSRC}/docs/Makefile.in
.endif
.if !defined(WITHOUT_PLASMAMULE)
${REINPLACE_CMD} -e 's|@prefix@|${KDE4_PREFIX}|' \
-e 's|LDFLAGS =|& -L${KDE4_PREFIX}/lib |' \
-e '/plasma.*feeder.*LDFLAGS/s/=/& -lQtDBus /' \
${WRKSRC}/src/utils/plasmamule/Makefile.in
.endif
post-install:
.if !defined(WITHOUT_FILEVIEW)
${INSTALL_PROGRAM} ${WRKSRC}/src/utils/fileview/mulefileview ${PREFIX}/bin
.endif
.if !defined(WITHOUT_PLASMAMULE)
-update-desktop-database ${KDE4_PREFIX}/share/applications
-update-mime-database ${KDE4_PREFIX}/share/mime
.endif
-update-desktop-database ${PREFIX}/share/applications
.include <bsd.port.post.mk>
|