1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-05 01:55:52 +00:00
freebsd-ports/net-im/libjingle/Makefile
Baptiste Daroussin 9346b215f0 new devel/pkgconf added to replace devel/pkg-config. new version of pkg-config
are no more self hosting so we are stuck with 0.25 version while pkgconf provide
the same set of features as 0.27 and a compatible frontend. A symlink to
pkg-config has been added for convenience and compatibility

This also introduces a new macro to use pkgconf in your ports:
USE_PKGCONFIG

it can take the following arguments:
 - yes (meaning build only dep)
 - build (meaning build only dep)
 - run (meaning run only dep)
 - both (meaning run and build dep)

From now USE_GNOME= pkgconfig is deprecated in favour of USE_PKGCONFIG
The old gnome macro has been modified to use pkgconf but still the sameway: run
and build dep to avoid large breakage.

While here fix some ports relying on pkg-config but not specifying it, fix some
ports broken because testing wrong .pc files, and fix ports using pkg-config
--version to determine pkg-config version instead of
pkg-config --modversion pkg-config like recommanded by pkg-config

With Hat:	portmgr
Exp-runs by:	bapt (pointhat-west), beat (pointyhat)
2012-07-26 05:40:22 +00:00

100 lines
2.5 KiB
Makefile

# New ports collection makefile for: libjingle
# Date created: Wed Feb 22 01:33:20 UTC 2006
# Whom: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= libjingle
PORTVERSION= 0.4.0
PORTREVISION= 1
CATEGORIES= net-im
MASTER_SITES= SF
MAINTAINER= ports@FreeBSD.org
COMMENT= Google Talk's implementation of Jingle and Jingle-Audio
LIB_DEPENDS= speex.1:${PORTSDIR}/audio/speex \
ilbc.0:${PORTSDIR}/net/ilbc \
ortp.8:${PORTSDIR}/net/linphone-base \
expat.6:${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]*
USE_GNOME= glib20
USE_OPENSSL= yes
USE_AUTOTOOLS= libtool
USE_DOS2UNIX= README
USE_PKGCONFIG= yes
USE_GMAKE= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-ilbc=${LOCALBASE} \
--with-speex=${LOCALBASE}
CONFIGURE_ENV= PKG_CONFIG="${PKG_CONFIG}" \
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)"
CPPFLAGS+= -I${LOCALBASE}/include -I${OPENSSLINC} ${PTHREAD_CFLAGS} -g
MAKE_JOBS_SAFE= yes
DOC_FILES= AUTHORS \
ChangeLog \
DOCUMENTATION \
NEWS \
README
.ifndef(NOPORTDOCS)
PORTDOCS= ${DOC_FILES}
.endif
PLIST_FILES+= bin/login \
bin/pcp \
bin/relayserver \
bin/stunserver \
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
post-install:
.ifndef(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
.for file in ${PORTDOCS}
@${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
.endfor
.endif
@${CAT} ${PKGMESSAGE}
.include <bsd.port.pre.mk>
.if ${ARCH} != "i386"
BROKEN= does not compile
.endif
LDFLAGS+=-L${LOCALBASE}/lib -L${OPENSSLLIB} ${PTHREAD_LIBS}
PKG_CONFIG?=${LOCALBASE}/bin/pkg-config
.include <bsd.port.post.mk>