2000-02-21 14:27:29 +01: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-06 00:23:15 +02:00
|
|
|
PORTNAME= opal
|
2006-12-08 08:48:34 +01:00
|
|
|
PORTVERSION= 2.2.3
|
2000-02-21 14:27:29 +01:00
|
|
|
CATEGORIES= net
|
2006-02-05 14:39:41 +01:00
|
|
|
MASTER_SITES= http://www.voxgratia.org/releases/
|
2006-03-14 02:51:49 +01:00
|
|
|
DISTNAME= ${PORTNAME}-v${PORTVERSION:S/./_/g}-src-
|
|
|
|
EXTRACT_SUFX= tar.gz
|
2000-02-21 14:27:29 +01:00
|
|
|
|
2006-04-06 00:23:15 +02:00
|
|
|
MAINTAINER= jbq@caraldi.com
|
|
|
|
COMMENT= VoIP abstraction library
|
2000-02-21 14:27:29 +01:00
|
|
|
|
2006-04-06 00:23:15 +02:00
|
|
|
LIB_DEPENDS= pt_r.1:${PORTSDIR}/devel/pwlib
|
2002-11-12 11:12:06 +01:00
|
|
|
|
2006-12-08 08:48:34 +01:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}_v${PORTVERSION:S/./_/g}
|
2002-01-15 16:06:17 +01:00
|
|
|
|
2006-04-11 04:16:11 +02:00
|
|
|
# In opal's Makefile the default make's target is optshared
|
2006-04-06 07:21:47 +02:00
|
|
|
ALL_TARGET= optshared
|
2000-02-29 09:41:41 +01:00
|
|
|
USE_GMAKE= yes
|
2006-02-05 14:39:41 +01:00
|
|
|
USE_AUTOTOOLS= autoconf:259
|
2006-12-08 08:48:34 +01:00
|
|
|
USE_GNOME= gnometarget
|
2003-08-28 08:56:10 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2006-02-05 14:39:41 +01:00
|
|
|
INSTALLS_SHLIB= yes
|
2006-04-08 07:14:22 +02:00
|
|
|
NO_FILTER_SHLIBS= yes
|
2002-01-15 16:06:17 +01:00
|
|
|
|
2006-03-14 02:51:49 +01:00
|
|
|
CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include -I${WRKSRC}/include" \
|
2006-04-06 00:23:15 +02:00
|
|
|
LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib"
|
2006-07-05 04:44:55 +02:00
|
|
|
PLIST_SUB= PORTVERSION=${PORTVERSION}
|
2006-03-14 02:51:49 +01:00
|
|
|
|
2006-04-08 07:14:22 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2006-04-11 04:16:11 +02: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 04:44:55 +02:00
|
|
|
# Avoid build error on 64-bit architectures
|
|
|
|
.if (${ARCH} == "amd64") || (${ARCH} == "ia64") || (${ARCH} == "sparc64")
|
2006-04-21 15:03:32 +02:00
|
|
|
CFLAGS+= -fPIC
|
|
|
|
.endif
|
|
|
|
|
2006-04-08 07:14:22 +02: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>
|