summaryrefslogtreecommitdiff
path: root/net/kiax/Makefile
blob: 4d02ac35cc9da36a6c02f5d13f4fe51c4c1c34a6 (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
44
45
46
47
48
49
50
# $NetBSD: Makefile,v 1.16 2010/01/18 09:59:19 wiz Exp $

DISTNAME=	kiax-0.8.51-src
PKGNAME=	${DISTNAME:S/-src//}
PKGREVISION=	2
CATEGORIES=	comms net audio
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE:=kiax/}

MAINTAINER=	reinoud@NetBSD.org
HOMEPAGE=	http://www.kiax.org/
COMMENT=	Open internet telephony system
LICENSE=	gnu-gpl-v2

PKG_DESTDIR_SUPPORT=	user-destdir
INSTALLATION_DIRS=	bin

USE_LIBTOOL=		yes
USE_PKGLOCALEDIR=	yes
USE_TOOLS+=		gmake pkg-config
USE_LANGUAGES=		c c++
HAS_CONFIGURE=		yes
MAKE_JOBS_SAFE=		no
INSTALL_MAKE_FLAGS+=	INSTALL_ROOT=${DESTDIR:Q}

do-configure:
	(cd ${WRKSRC} && ${QTDIR}/bin/qmake -o Makefile qkiax.pro)
	(cd ${WRKSRC}/src && ${QTDIR}/bin/qmake -o Makefile src.pro)

LDFLAGS+=		${LIBOSSAUDIO}

# Fix hardcoded paths
SUBST_CLASSES+=		path
SUBST_MESSAGE.path=	Fixing hardcoded paths.
SUBST_STAGE.path=	pre-configure
SUBST_FILES.path=	src/src.pro bin/Makefile
SUBST_SED.path=		-e 's:/usr/local:${PREFIX}:g'

.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "NetBSD" && exists(/usr/include/sys/pset.h)
RT_LIB_SCHED=		-lrt
.else
RT_LIB_SCHED=		# empty
.endif
LDFLAGS+=		${RT_LIB_SCHED}

.include "../../x11/libXpm/buildlink3.mk"
.include "../../x11/qt3-libs/buildlink3.mk"
.include "../../x11/qt3-tools/buildlink3.mk"
.include "../../mk/oss.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"