2017-04-10 11:45:22 +00:00
|
|
|
# $OpenBSD: Makefile,v 1.39 2017/04/10 11:45:26 sthen Exp $
|
2010-03-23 21:10:17 +00:00
|
|
|
|
|
|
|
COMMENT= portable tools library
|
|
|
|
|
2014-04-25 11:17:26 +00:00
|
|
|
V= 2.12.9
|
2013-10-02 10:45:25 +00:00
|
|
|
DISTNAME= ptlib-${V}
|
2010-03-23 21:10:17 +00:00
|
|
|
EXTRACT_SUFX= .tar.bz2
|
2013-10-02 10:45:25 +00:00
|
|
|
SUBST_VARS= V
|
2017-02-19 19:04:16 +00:00
|
|
|
REVISION= 10
|
2013-10-02 10:45:25 +00:00
|
|
|
|
2014-04-25 11:17:26 +00:00
|
|
|
SHARED_LIBS= pt 7.0
|
2010-03-23 21:10:17 +00:00
|
|
|
|
|
|
|
CATEGORIES= devel telephony
|
|
|
|
|
|
|
|
HOMEPAGE= http://www.opalvoip.org/
|
|
|
|
|
|
|
|
MAINTAINER= Antoine Jacoutot <ajacoutot@openbsd.org>
|
|
|
|
|
|
|
|
# MPL 1.0
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
|
2013-10-02 10:45:25 +00:00
|
|
|
WANTLIB += SDL c crypto expat lber ldap ldap_r m pthread sasl2
|
2017-04-10 11:45:22 +00:00
|
|
|
WANTLIB += sndio ssl ${LIBCXX} v4l2
|
2010-03-23 21:10:17 +00:00
|
|
|
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=opalvoip/}
|
|
|
|
|
2013-10-02 10:45:25 +00:00
|
|
|
BUILD_DEPENDS= devel/bison
|
|
|
|
|
2010-11-15 19:45:56 +00:00
|
|
|
LIB_DEPENDS= databases/openldap \
|
2016-01-08 10:06:48 +00:00
|
|
|
devel/sdl \
|
|
|
|
multimedia/libv4l
|
2010-03-23 21:10:17 +00:00
|
|
|
|
2013-10-02 10:45:25 +00:00
|
|
|
ALL_TARGET= default #${WRKSRC}/Makefile
|
|
|
|
USE_GMAKE= Yes
|
|
|
|
NO_TEST= Yes
|
|
|
|
|
2010-03-23 21:10:17 +00:00
|
|
|
CONFIGURE_STYLE=gnu
|
2013-10-02 10:45:25 +00:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
2015-05-22 15:16:24 +00:00
|
|
|
LDFLAGS="-L${LOCALBASE}/lib" \
|
|
|
|
PTLIB_CFLAGS="-fPIC"
|
2014-04-25 11:17:26 +00:00
|
|
|
CONFIGURE_ARGS= --enable-plugins \
|
|
|
|
--enable-sndio \
|
|
|
|
--disable-esd \
|
|
|
|
--disable-lua \
|
|
|
|
--disable-oss \
|
2014-05-09 08:05:02 +00:00
|
|
|
--disable-pulse \
|
|
|
|
--disable-v8
|
2013-10-02 10:45:25 +00:00
|
|
|
|
2011-10-26 16:59:09 +00:00
|
|
|
# XXX needs /proc/net/if_inet6
|
|
|
|
CONFIGURE_ARGS+=--disable-ipv6
|
|
|
|
|
2014-04-25 11:17:26 +00:00
|
|
|
# XXX our libpcap is too old
|
|
|
|
CONFIGURE_ARGS+=--disable-pcap
|
2010-03-23 21:10:17 +00:00
|
|
|
|
2013-10-02 10:45:25 +00:00
|
|
|
MAKE_ENV= VERBOSE=1
|
2010-03-23 21:10:17 +00:00
|
|
|
MAKE_FLAGS= MAJOR_VERSION=${LIBpt_VERSION:R} \
|
2014-04-25 11:17:26 +00:00
|
|
|
MINOR_VERSION=${LIBpt_VERSION:E}
|
2010-03-23 21:10:17 +00:00
|
|
|
|
2014-10-18 04:19:31 +00:00
|
|
|
INSTALL_REPLACE = 's/^INSTALL := .*$$/ifdef BSD_INSTALL_SCRIPT\nINSTALL
|
|
|
|
INSTALL_REPLACE += := \$$\(subst -m 755,,\$${BSD_INSTALL_SCRIPT}\)
|
|
|
|
INSTALL_REPLACE += \nelse\nINSTALL := \/usr\/bin\/install -c -o ${BINOWN}
|
|
|
|
INSTALL_REPLACE += -g ${BINGRP}\nendif/'
|
|
|
|
|
2010-03-23 21:10:17 +00:00
|
|
|
pre-configure:
|
2014-04-25 11:17:26 +00:00
|
|
|
mkdir ${WRKSRC}/plugins/sound_sndio
|
|
|
|
cp ${FILESDIR}/{Makefile,sound_sndio.*} ${WRKSRC}/plugins/sound_sndio
|
|
|
|
${SUBST_CMD} ${WRKSRC}/make/unix.mak
|
2017-02-19 19:04:16 +00:00
|
|
|
sed -i 's/__u32/u_int32_t/' \
|
|
|
|
${WRKSRC}/plugins/vidinput_v4l2/vidinput_v4l2.cxx
|
|
|
|
|
2010-03-23 21:10:17 +00:00
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/version.h ${PREFIX}/share/ptlib
|
2014-10-18 01:27:43 +00:00
|
|
|
perl -i -pe ${INSTALL_REPLACE} \
|
|
|
|
${PREFIX}/share/ptlib/make/ptbuildopts.mak
|
2010-03-23 21:10:17 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|