NAME = GNU ZRTP
GARNAME = zrtp
UPSTREAMNAME = libzrtpcpp
GARVERSION = 2.3.2
HOME_URL = http://www.gnutelephony.org/index.php/GNU_ZRTP
DESCRIPTION = A C++ implementation of the ZRTP specification

######################################################################

MASTER_SITES = $(MASTER_GNU)
MASTER_SUBDIR = ccrtp/
DISTFILES = $(DISTNAME).tar.gz
SIGFILES = $(DISTNAME).tar.gz.sig
WORKOBJ = $(WORKDIR)/build-$(GARVERSION)/
CONFIGURE_SCRIPTS = $(WORKSRC)/CMakeLists.txt

BUILDDEPS =  
LIBDEPS = libgcrypt ccrtp

######################################################################

include ../../gar.lib/auto.mk
include config.mk

# CMake seems to ignore most environment variables. In this case, 
# libzrtp requires OpenSSL 0.98, which GSRC does not provide, but 
# since CMake does not seem to honor the PKG_CONFIG_PATH variable
# and since GSRC tries to use its own pkg-build by default, it cannot
# find the library. Here we remove the argument to use GSRC's pkg-config
# so that the thing will at least build. 
CMAKE_CONFIGURE_ARGS =	-DCMAKE_INSTALL_PREFIX=$(prefix) \
			-DSYSCONFDIR=$(sysconfdir) \
			$(CONFIGURE_OPTS)

