1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-20 08:27:15 +00:00
freebsd-ports/net/opal3/Makefile
Martin Wilke 64028e9c26 - Chase the merged of speex-devel -> speex
- Drop 4.X support

PR:             110193
Submitted by:   Jean-Baptiste Quenot <jbq@caraldi.com> (maintainer)
2007-03-11 16:48:03 +00:00

56 lines
1.4 KiB
Makefile

# New ports collection makefile for: openh323
# Date created: Thu Feb 17 15:00:48 GMT 2000
# Whom: Roger Hardiman <roger@freebsd.org>
#
# $FreeBSD$
#
PORTNAME= opal
PORTVERSION= 2.2.4
PORTREVISION= 1
CATEGORIES= net
MASTER_SITES= http://www.voxgratia.org/releases/
DISTNAME= ${PORTNAME}-v${PORTVERSION:S/./_/g}-src-
EXTRACT_SUFX= tar.gz
MAINTAINER= jbq@caraldi.com
COMMENT= VoIP abstraction library
LIB_DEPENDS= pt_r.1:${PORTSDIR}/devel/pwlib
WRKSRC= ${WRKDIR}/${PORTNAME}_v${PORTVERSION:S/./_/g}
# In opal's Makefile the default make's target is optshared
ALL_TARGET= optshared
USE_GMAKE= yes
USE_AUTOTOOLS= autoconf:259
USE_GNOME= gnometarget
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include -I${WRKSRC}/include" \
LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib"
PLIST_SUB= PORTVERSION=${PORTVERSION}
.include <bsd.port.pre.mk>
# Avoid build error on 64-bit architectures
.if (${ARCH} == "amd64") || (${ARCH} == "ia64") || (${ARCH} == "sparc64")
CFLAGS+= -fPIC
.endif
.ifdef (WITH_FFMPEG)
LIB_DEPENDS+= avcodec.1:${PORTSDIR}/multimedia/ffmpeg
CONFIGURE_ARGS+= --enable-h263avcodec=${LOCALBASE}/include/ffmpeg
.endif
.ifdef (WITH_SPEEX)
LIB_DEPENDS+= speex.1:${PORTSDIR}/audio/speex
BUILD_DEPENDS+= ${LOCALBASE}/include/speex/speex_echo.h:${PORTSDIR}/audio/speex
CONFIGURE_ARGS+= --enable-localspeex=no
.else
CONFIGURE_ARGS+= --enable-localspeex=yes
.endif
.include <bsd.port.post.mk>