1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-24 00:45:52 +00:00
freebsd-ports/net-im/libjingle/Makefile
Tijl Coosemans c5f5a1d39d - Move net/linphone-base to replace net/linphone and update to version 3.7.0
- Adjust ports that depended on linphone-base to depend on net/ortp or
  net/mediastreamer instead
- Mark net-im/libjingle deprecated (part of Google Talk)

Approved by:	portmgr (implicit, PORTREVISION bump of unstaged port)
2014-07-14 10:29:38 +00:00

99 lines
2.5 KiB
Makefile

# Created by: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
# $FreeBSD$
PORTNAME= libjingle
PORTVERSION= 0.4.0
PORTREVISION= 2
CATEGORIES= net-im
MASTER_SITES= SF
MAINTAINER= ports@FreeBSD.org
COMMENT= Google Talk's implementation of Jingle and Jingle-Audio
LICENSE= BSD
LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libspeex.so:${PORTSDIR}/audio/speex \
libilbc.so:${PORTSDIR}/net/ilbc \
libortp.so:${PORTSDIR}/net/ortp \
libexpat.so:${PORTSDIR}/textproc/expat2
CONFLICTS= krb4-[0-9]* krb5-[0-9]* heimdal-[0-9]* srp-[0-9]* \
clusterit-[0-9]* pcp-[0-9]* synce-librapi2-[0-9]*
DEPRECATED= Upstream defunct and broken with clang
EXPIRATION_DATE=2014-08-31
USES= pkgconfig dos2unix gmake
DOS2UNIX_FILES= README
USE_GNOME= glib20
USE_OPENSSL= yes
USE_AUTOTOOLS= libtool
CONFIGURE_ENV= EXPAT_CFLAGS="-I${LOCALBASE}/include" \
EXPAT_LIBS="-L${LOCALBASE}/lib -lexpat" \
GLIB_CFLAGS="$$(pkg-config --cflags glib-2.0)" \
GLIB_LIBS="$$(pkg-config --libs glib-2.0)" \
ILBC_CFLAGS="-I${LOCALBASE}/include/ilbc" \
ILBC_LIBS="-L${LOCALBASE}/lib -lilbc" \
SPEEX_CFLAGS="$$(pkg-config --cflags speex)" \
SPEEX_LIBS="$$(pkg-config --libs speex)"
CONFIGURE_ARGS= --with-ilbc=${LOCALBASE} \
--with-speex=${LOCALBASE}
CPPFLAGS+= -I${OPENSSLINC} -I${LOCALBASE}/include -g
LDFLAGS+= -L${OPENSSLLIB} -L${LOCALBASE}/lib -pthread
PORTDOCS= AUTHORS \
ChangeLog \
DOCUMENTATION \
NEWS \
README
PLIST_FILES+= bin/login \
bin/pcp \
bin/relayserver \
bin/stunserver \
NO_STAGE= yes
OPTIONS_DEFINE= DOCS
.include <bsd.port.options.mk>
post-configure:
# force glib
# force ilbc
# force speex
@${REINPLACE_CMD} -E \
-e 's|^.+(HAVE_GLIB)[[:space:]].*$$|#define \1 1|' \
-e 's|^.+(HAVE_ILBC_DECODE_H)[[:space:]].*$$|#define \1 1|' \
-e 's|^.+(HAVE_ILBC)[[:space:]].*$$|#define \1 1|' \
-e 's|^.+(HAVE_SPEEX_H)[[:space:]].*$$|#define \1 1|' \
-e 's|^.+(HAVE_SPEEX)[[:space:]].*$$|#define \1 1|' \
${CONFIGURE_WRKSRC}/config.h
# configure does not handle OSS support
# force oss
.for feature in \
HAVE_SYS_SOUNDCARD_H
@${ECHO_CMD} \
'#define ${feature} 1' >> \
${CONFIGURE_WRKSRC}/config.h
.endfor
@${REINPLACE_CMD} -e \
'/^int main/s|char\* argv|char** argv|' \
${WRKSRC}/talk/base/virtualsocket_unittest.cc
@${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${REINPLACE_CMD} -e \
's|`pkg-config --cflags gtk+-2.0`|| ; \
s|-lpthread|-pthread|'
post-install:
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
.for f in ${PORTDOCS}
@${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
.endfor
.endif
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>