openbsd-ports/net/opal/Makefile
ajacoutot 8d4be5a389 Import opal-2.2.11
OPAL is an open-source class library for the development of applications
that wish to use the SIP and H.323 protocols for multi-media
communications over packet based networks.
2008-04-29 07:01:18 +00:00

54 lines
1.2 KiB
Makefile

# $OpenBSD: Makefile,v 1.1.1.1 2008/04/29 07:01:18 ajacoutot Exp $
SHARED_ONLY= Yes
COMMENT= Open Phone Abstraction Library
DISTNAME= opal-2.2.11
SHARED_LIBS= opal 0.0 # .2.2.11
CATEGORIES= net devel
HOMEPAGE= http://www.ekiga.org/
MAINTAINER= Antoine Jacoutot <ajacoutot@openbsd.org>
# MPL 1.0
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= ${HOMEPAGE}/admin/downloads/latest/sources/sources/
WANTLIB= crypto expat ossaudio ssl
LIB_DEPENDS= speex.>=4::audio/speex \
pt.>=2::devel/pwlib
.if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "sparc64" \
|| ${MACHINE_ARCH} == "alpha"
CFLAGS+= -fPIC
.endif
ALL_TARGET= optshared
OPAL_FILE= libopal.so
MAKE_ENV= CC=${CC} CPLUS=${CXX} BUILDSELF="1"
MAKE_FLAGS= OPAL_FILE=${OPAL_FILE} \
LIB_SONAME=${OPAL_FILE}.${LIBopal_VERSION} \
LIBNAME_PAT=${OPAL_FILE}.${LIBopal_VERSION}
USE_GMAKE= Yes
NO_REGRESS= Yes
CONFIGURE_STYLE=gnu
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
CONFIGURE_ARGS= --disable-localspeex
pre-configure:
@perl -pi -e 's,!!PREFIX!!,${PREFIX},g' \
${WRKSRC}/opal_inc.mak.in
.include <bsd.port.mk>