summaryrefslogtreecommitdiff
path: root/chat/psi/Makefile
blob: f7ee8ab1a998669b5e242b575f87e30343fc8354 (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
# $NetBSD: Makefile,v 1.17 2004/07/12 05:23:38 jdolecek Exp $

DISTNAME=	psi-0.9
PKGREVISION=	4
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

USE_BUILDLINK3=	yes
USE_GNU_TOOLS+=	make
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/buildlink3.mk"
BUILDLINK_DEPENDS.qt3-tools=	qt3-tools>=3.1.2nb2	# need lrelease
.include "../../x11/qt3-tools/buildlink3.mk"

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