blob: a2434222a32b0059f6f463bcbbdc2bb5409a2649 (
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
51
52
53
54
55
56
57
58
59
60
|
# New ports collection makefile for: linphone
# Date created: 30 December 2002
# Whom: Maxim Sobolev <sobomax@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= ${LINPHONE_PORTNAME}
PORTVERSION= ${LINPHONE_PORTVERSION}
PORTREVISION= 1
PORTREVISION= ${LINPHONE_PORTREVISION}
PORTEPOCH= ${LINPHONE_PORTEPOCH}
CATEGORIES= net
MASTER_SITES= ${LINPHONE_MASTER_SITES}
PKGNAMESUFFIX= -base
MAINTAINER= ports@FreeBSD.org
COMMENT= A web phone that supports SIP protocol
LIB_DEPENDS= gsm.1:${PORTSDIR}/audio/gsm \
jack.0:${PORTSDIR}/audio/jack \
samplerate.1:${PORTSDIR}/audio/libsamplerate \
speex.3:${PORTSDIR}/audio/speex \
osip2.3:${PORTSDIR}/net/libosip2
USE_GNOME= glib20 gnomehack gnometarget intlhack pkgconfig
USE_REINPLACE= yes
USE_GMAKE= yes
USE_LIBTOOL_VER= 15
LIBTOOLFILES= configure oRTP/configure
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include ${PTHREAD_CFLAGS}" \
LDFLAGS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}"
CONFIGURE_ARGS= --disable-ipv6 --disable-gtk-doc --enable-gnome_ui=no \
--disable-ewarning --without-ilbc \
--with-speex=${LOCALBASE} --with-osip=${LOCALBASE} \
--with-html-dir=${DOCSDIR}
INSTALLS_SHLIB= yes
MAN1= linphonec.1 sipomatic.1
CFLAGS+= -DPACKAGE_LOCALE_DIR='\"${PREFIX}/share/locale\"' \
-DPACKAGE_DATA_DIR='\"${PREFIX}/share\"' \
-DPACKAGE_SOUND_DIR='\"${DATADIR}/sounds\"'
.include "Makefile.common"
.include <bsd.port.pre.mk>
post-patch:
@${REINPLACE_CMD} -e '/^SUBDIRS =/s|docs||g' ${WRKSRC}/oRTP/Makefile.in
post-install:
${INSTALL_MAN} ${WRKSRC}/share/C/linphonec.1 ${MANPREFIX}/man/man1
${INSTALL_MAN} ${WRKSRC}/share/C/sipomatic.1 ${MANPREFIX}/man/man1
${INSTALL_DATA} ${WRKSRC}/share/linphone.pc ${PREFIX}/libdata/pkgconfig
@${MKDIR} ${DATADIR}/sounds
${INSTALL_DATA} ${WRKSRC}/share/*.wav ${DATADIR}/sounds
@${MKDIR} ${DATADIR}/sounds/rings
${INSTALL_DATA} ${WRKSRC}/share/rings/*.wav ${DATADIR}/sounds/rings
.include <bsd.port.post.mk>
|