aboutsummaryrefslogtreecommitdiff
path: root/net/vyqchat/Makefile
blob: ce6ad579a764a4e4f62a412efab42fed473ba7c0 (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
# New ports collection makefile for:	vyqchat
# Date created:				25 August 2005
# Whom:					vic_semionov
#
# $FreeBSD$
#

PORTNAME=	vyqchat
PORTVERSION=	0.2.8
PORTREVISION=	6
CATEGORIES=	net
MASTER_SITES=	http://linux.bydg.org/~yogin/

MAINTAINER=	ports@FreeBSD.org
COMMENT=	A Qt LAN chat, compatible with Vypress Chat

USE_QT_VER=	3
USE_GMAKE=	yes
GNU_CONFIGURE=	yes
QTCFGLIBS=	${PTHREAD_LIBS}

CONFIGURE_ARGS=	--with-Qt-dir=${QT_PREFIX}

.if !defined(WITHOUT_ARTS)
LIB_DEPENDS+=	artsc:${PORTSDIR}/audio/arts
.else
CONFIGURE_ARGS+=--without-arts
.endif

.if defined(WITH_LIBAO)
LIB_DEPENDS+=	ao:${PORTSDIR}/audio/libao
.else
CONFIGURE_ARGS+=--without-libao
.endif

.if !defined(WITHOUT_ARTS) || defined(WITH_LIBAO)
LIB_DEPENDS+=	sndfile:${PORTSDIR}/audio/libsndfile
.endif

.include <bsd.port.pre.mk>

post-patch:
	@${REINPLACE_CMD} -e 's,Settings::getUUID,getUUID,' \
		${WRKSRC}/src/settings.h
	@${REINPLACE_CMD} -e 's,Sound::error,error,' \
		${WRKSRC}/src/sound.h
	@${REINPLACE_CMD} -e 's,User::setStatus,setStatus,' \
		${WRKSRC}/src/user.h

.include <bsd.port.post.mk>