summaryrefslogtreecommitdiff
path: root/net-im/gaim/Makefile
blob: cd6e4c396fb4b5e9b7f8cf34d02ad1b6e7d30d6b (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
# New ports collection makefile for:	gaim
# Date created:			26 Mar 1999
# Whom:				Jim Mock <jim@FreeBSD.org>
# $FreeBSD$
#

PORTNAME=	gaim
PORTVERSION=	0.68
CATEGORIES?=	net
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=	${PORTNAME}

MAINTAINER?=	marcus@FreeBSD.org
COMMENT=	Gtk+-2.0 open-source 'clone' of AOL's Instant Messenger client

USE_X_PREFIX=	yes
USE_GMAKE=	yes
USE_REINPLACE=	yes
USE_GNOME=	gnomeprefix gnomehack gtk20
USE_PERL5=	yes
USE_BZIP2=	yes
INSTALLS_SHLIB=	yes
GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--enable-static=yes
CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include" \
		LDFLAGS="-L${LOCALBASE}/lib -L${X11BASE}/lib"

MAN1=		gaim.1 gaim-remote.1

.include <bsd.port.pre.mk>

.if ${PERL_LEVEL} < 500800
CONFIGURE_ARGS+=	--disable-perl
PLIST_SUB+=		PERL:="@comment "
.else
PLIST_SUB+=		PERL:=""
.endif

.ifndef(WITHOUT_GTKSPELL)
LIB_DEPENDS+=	gtkspell.0:${PORTSDIR}/textproc/gtkspell2
.else
CONFIGURE_ARGS+=	--disable-gtkspell
.endif

.ifndef(WITHOUT_AUDIO)
LIB_DEPENDS+=	ao.3:${PORTSDIR}/audio/libao \
		audiofile.0:${PORTSDIR}/audio/libaudiofile
.else
CONFIGURE_ARGS+=	--disable-audio
.endif

pre-everything::
	@${ECHO_MSG} ""
	@${ECHO_MSG} "Gaim has the following tunable option(s):"
	@${ECHO_MSG} "		WITHOUT_GTKSPELL	Turns off spell checking"
	@${ECHO_MSG} "		WITHOUT_AUDIO		Disable audio support"
	@${ECHO_MSG} ""

post-patch:
	@${REINPLACE_CMD} -e 's|-lpthreads|${PTHREAD_LIBS:S/"//g}|g; \
		s|-lpthread|${PTHREAD_LIBS:S/"//g}|g' ${WRKSRC}/configure
	@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \
		${WRKSRC}/configure

.include <bsd.port.post.mk>