aboutsummaryrefslogtreecommitdiffstats
path: root/net/kphone/Makefile
blob: 09456461f7aa5b24465ecfdb9b8e3a495e93f564 (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
# New ports collection Makefile for:        kphone
# Date created:                 2004-07-05
# Whom:                     arved
#
# $FreeBSD$

PORTNAME=   kphone
PORTVERSION=    4.0.4
CATEGORIES= net
MASTER_SITES=   http://www.wirlab.net/kphone/

MAINTAINER= ports@FreeBSD.org
COMMENT=    A voice over internet phone

WRKSRC=     ${WRKDIR}/${PORTNAME}

USE_QT_VER= 3
USE_OPENSSL=    yes
USE_REINPLACE=  yes
USE_GMAKE=  yes
GNU_CONFIGURE=  yes
CONFIGURE_ENV=  QTDIR="${QT_PREFIX}"

post-patch:
    ${REINPLACE_CMD} -e "s,-O3,${CFLAGS} ${PTHREAD_CFLAGS}," ${WRKSRC}/configure
    ${REINPLACE_CMD} -e "s,-lresolv,${PTHREAD_LIBS}," ${WRKSRC}/kphone/Makefile.in

do-build:
    cd ${WRKSRC}/dissipate2; ${SETENV} ${MAKE_ENV} ${GMAKE}
    cd ${WRKSRC}/gsm; ${SETENV} ${MAKE_ENV} ${GMAKE}
    cd ${WRKSRC}/ilbc; ${SETENV} ${MAKE_ENV} ${GMAKE}
    cd ${WRKSRC}/kphone; ${SETENV} ${MAKE_ENV} ${GMAKE}

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/kphone/kphone ${PREFIX}/bin
    ${MKDIR} ${DATADIR}/icons
    ${INSTALL_DATA} ${WRKSRC}/icons/*.png ${DATADIR}/icons
    ${MKDIR} ${DATADIR}/translations
    ${INSTALL_DATA} ${WRKSRC}/po/*.qm ${DATADIR}/translations

.include <bsd.port.mk>