summaryrefslogtreecommitdiff
path: root/net-im/meanwhile-gaim/Makefile
blob: c0a1bfa61ec20344d7946600781ec445bcac6b88 (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
# New ports collection makefile for:	meanwhile-gaim
# Date created:		24 June 2004
# Whom:		 	marcus@FreeBSD.org
#
# $FreeBSD$
#

PORTNAME=	meanwhile
PORTVERSION=	1.2.8
PORTREVISION=	2
CATEGORIES=	net-im
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=	${PORTNAME}
PKGNAMEPREFIX=	gaim-
DISTNAME=	${PKGNAMEPREFIX}${PORTNAME}-${PORTVERSION}

MAINTAINER=	marcus@FreeBSD.org
COMMENT=	Provides Lotus Sametime support for Gaim

BUILD_DEPENDS=	${LOCALBASE}/include/gaim/config.h:${PORTSDIR}/net-im/gaim
LIB_DEPENDS=	meanwhile.1:${PORTSDIR}/net-im/meanwhile
RUN_DEPENDS=	gaim:${PORTSDIR}/net-im/gaim

USE_XLIB=	yes
USE_GMAKE=	yes
USE_GNOME=	gnomeprefix gnomehack gtk20
GNU_CONFIGURE=	yes
CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include" \
		LDFLAGS="-L${LOCALBASE}/lib"

.if defined(WITH_MW_HOST)
CONFIGURE_ARGS+=	--with-host=${WITH_MW_HOST}
.endif

.if defined(WITH_MW_PORT)
CONFIGURE_ARGS+=	--with-port=${WITH_MW_PORT}
.endif

.if defined(WITH_MW_CLIENT)
CONFIGURE_ARGS+=	--with-client=${WITH_MW_CLIENT}
.endif

pre-everything::
	@${ECHO_MSG} ""
	@${ECHO_MSG} "You may use the following build options:"
	@${ECHO_MSG} ""
	@${ECHO_MSG} "	WITH_MW_HOST=host	Define the default Sametime community host server"
	@${ECHO_MSG} "	WITH_MW_PORT=port	Define the default Sametime community port (default: 1533)"
	@${ECHO_MSG} "	WITH_MW_CLIENT=client	Define the default Sametime client identifier (default: mwLogin_MEANWHILE)"
	@${ECHO_MSG} ""

post-patch:
	@${REINPLACE_CMD} -e 's|echo aout|echo elf|' ${WRKSRC}/configure

.include <bsd.port.mk>