2000-02-21 13:27:29 +00:00
|
|
|
# New ports collection makefile for: openh323
|
|
|
|
# Date created: Thu Feb 17 15:00:48 GMT 2000
|
|
|
|
# Whom: Roger Hardiman <roger@freebsd.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2006-04-05 22:23:15 +00:00
|
|
|
PORTNAME= opal
|
2006-12-08 07:48:34 +00:00
|
|
|
PORTVERSION= 2.2.3
|
2000-02-21 13:27:29 +00:00
|
|
|
CATEGORIES= net
|
2006-02-05 13:39:41 +00:00
|
|
|
MASTER_SITES= http://www.voxgratia.org/releases/
|
2006-03-14 01:51:49 +00:00
|
|
|
DISTNAME= ${PORTNAME}-v${PORTVERSION:S/./_/g}-src-
|
|
|
|
EXTRACT_SUFX= tar.gz
|
2000-02-21 13:27:29 +00:00
|
|
|
|
2006-04-05 22:23:15 +00:00
|
|
|
MAINTAINER= jbq@caraldi.com
|
|
|
|
COMMENT= VoIP abstraction library
|
2000-02-21 13:27:29 +00:00
|
|
|
|
2006-04-05 22:23:15 +00:00
|
|
|
LIB_DEPENDS= pt_r.1:${PORTSDIR}/devel/pwlib
|
2002-11-12 10:12:06 +00:00
|
|
|
|
2006-12-08 07:48:34 +00:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}_v${PORTVERSION:S/./_/g}
|
2002-01-15 15:06:17 +00:00
|
|
|
|
2006-04-11 02:16:11 +00:00
|
|
|
# In opal's Makefile the default make's target is optshared
|
2006-04-06 05:21:47 +00:00
|
|
|
ALL_TARGET= optshared
|
2000-02-29 08:41:41 +00:00
|
|
|
USE_GMAKE= yes
|
2006-02-05 13:39:41 +00:00
|
|
|
USE_AUTOTOOLS= autoconf:259
|
2006-12-08 07:48:34 +00:00
|
|
|
USE_GNOME= gnometarget
|
2003-08-28 06:56:10 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2006-02-05 13:39:41 +00:00
|
|
|
INSTALLS_SHLIB= yes
|
2006-04-08 05:14:22 +00:00
|
|
|
NO_FILTER_SHLIBS= yes
|
2002-01-15 15:06:17 +00:00
|
|
|
|
2006-03-14 01:51:49 +00:00
|
|
|
CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include -I${WRKSRC}/include" \
|
2006-04-05 22:23:15 +00:00
|
|
|
LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib"
|
2006-07-05 02:44:55 +00:00
|
|
|
PLIST_SUB= PORTVERSION=${PORTVERSION}
|
2006-03-14 01:51:49 +00:00
|
|
|
|
2006-04-08 05:14:22 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2006-04-11 02:16:11 +00:00
|
|
|
.if ${OSVERSION} < 500000
|
|
|
|
BROKEN= Does not build on FreeBSD 4.x, if you manage to make it work, please send a patch to the maintainer: ${MAINTAINER}
|
|
|
|
.endif
|
|
|
|
|
2006-07-05 02:44:55 +00:00
|
|
|
# Avoid build error on 64-bit architectures
|
|
|
|
.if (${ARCH} == "amd64") || (${ARCH} == "ia64") || (${ARCH} == "sparc64")
|
2006-04-21 13:03:32 +00:00
|
|
|
CFLAGS+= -fPIC
|
|
|
|
.endif
|
|
|
|
|
2006-04-08 05:14:22 +00:00
|
|
|
.ifdef (WITH_FFMPEG)
|
|
|
|
LIB_DEPENDS+= avcodec.1:${PORTSDIR}/multimedia/ffmpeg
|
|
|
|
CONFIGURE_ARGS+= --enable-h263avcodec=${LOCALBASE}/include/ffmpeg
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.ifdef (WITH_SPEEX)
|
|
|
|
LIB_DEPENDS+= speex.3:${PORTSDIR}/audio/speex-devel
|
|
|
|
BUILD_DEPENDS+= ${LOCALBASE}/include/speex/speex_echo.h:${PORTSDIR}/audio/speex-devel
|
|
|
|
CONFIGURE_ARGS+= --enable-localspeex=no
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --enable-localspeex=yes
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|