summaryrefslogtreecommitdiff
path: root/chat/psi/Makefile
blob: 25ae670cb45e2f66da99c2ce7b66fb33bf350d1b (plain)
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
# $NetBSD: Makefile,v 1.14 2003/11/18 17:54:48 xtraeme Exp $

DISTNAME=	psi-0.9
PKGREVISION=	3
CATEGORIES=	chat
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE:=psi/}
EXTRACT_SUFX=	.tar.bz2

MAINTAINER=	jdolecek@NetBSD.org
HOMEPAGE=	http://psi.affinix.com/
COMMENT=	PSI Jabber Client

DEPENDS+=	psi-ssl>=2.0:../../chat/psi-ssl

USE_BUILDLINK2=	yes
USE_GMAKE=	yes
USE_LIBTOOL=	yes
USE_X11=	yes
HAS_CONFIGURE=	yes

CONFIGURE_ARGS+= -p ${PREFIX}

post-configure:
	${SED} \
	-e 's:^CHK_DIR_EXISTS *= *$$:CHK_DIR_EXISTS=test -d:' \
	-e "s:^MKDIR *= *$$:MKDIR=${MKDIR}:" \
	-e "s:/bin/true:${TRUE}:" < ${BUILD_DIRS}/Makefile \
		> ${BUILD_DIRS}/Makefile.orig
	${MV} ${BUILD_DIRS}/Makefile.orig ${BUILD_DIRS}/Makefile

do-install:
	cd ${WRKSRC} && ${QTDIR}/bin/lrelease psi.pro
	${INSTALL_DATA_DIR} ${PREFIX}/share/psi
	cd ${WRKSRC} && ${CP} -f -pR image iconsets sound certs lang/*.qm \
		README COPYING \
		${PREFIX}/share/psi/
	cd ${WRKSRC} && ${CP} -f psi ${PREFIX}/bin/psi

.include "../../x11/qt3-libs/buildlink2.mk"
BUILDLINK_DEPENDS.qt3-tools=	qt3-tools>=3.1.2nb2	# need lrelease
.include "../../x11/qt3-tools/buildlink2.mk"

.include "../../mk/bsd.pkg.mk"