openbsd-ports/net/opal/Makefile

78 lines
1.9 KiB
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.28 2013/03/12 05:19:57 brad Exp $
SHARED_ONLY= Yes
COMMENT= Open Phone Abstraction Library
2013-03-02 09:05:59 -05:00
DISTNAME= opal-3.10.10
REVISION= 0
2012-04-20 09:28:50 -04:00
2013-03-02 09:05:59 -05:00
SHARED_LIBS= opal 3.1 # 3.10.10
2010-03-23 17:13:37 -04:00
EXTRACT_SUFX= .tar.bz2
CATEGORIES= net devel telephony
2009-05-28 06:00:44 -04:00
HOMEPAGE= http://www.opalvoip.org/
MAINTAINER= Antoine Jacoutot <ajacoutot@openbsd.org>
# MPL 1.0
PERMIT_PACKAGE_CDROM= Yes
2012-11-27 03:13:15 -05:00
WANTLIB += c celt0>=1 crypto gsm m ogg pt spandsp speex
2012-04-20 09:28:50 -04:00
WANTLIB += speexdsp stdc++ theora tiff x264
2011-10-26 12:59:34 -04:00
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=opalvoip/}
2013-03-02 09:05:59 -05:00
LIB_DEPENDS= devel/ptlib>=2.10.10 \
2012-08-25 09:17:54 -04:00
audio/celt \
2011-10-26 12:59:34 -04:00
telephony/spandsp
2012-08-25 09:17:54 -04:00
# dlopen(3) libavcodec.so.X.Y; shows as "Extra:" in check-lib-depends
# but we want to be sure we track ABI and shared lib version changes
WANTLIB+= avcodec
2012-11-27 03:13:15 -05:00
LIB_DEPENDS+= graphics/ffmpeg
2011-10-26 12:59:34 -04:00
ALL_TARGET= default_target
2010-03-23 17:13:37 -04:00
MAKE_ENV= CC=${CC} CPLUS=${CXX} VERBOSE=1
2011-10-26 12:59:34 -04:00
MAKE_FLAGS= RELEASE_LIB_NAME=libopal.so.${LIBopal_VERSION} \
RELEASE_LIB_FILENAME_SHARED_PAT=libopal.so.${LIBopal_VERSION}
USE_GMAKE= Yes
2013-03-11 07:35:43 -04:00
NO_TEST= Yes
2010-03-23 17:13:37 -04:00
MODGNU_CONFIG_GUESS_DIRS= ${WRKSRC} ${WRKSRC}/plugins
CONFIGURE_STYLE=gnu
2011-10-26 12:59:34 -04:00
CONFIGURE_ENV= CPPFLAGS="-I${X11BASE}/include -I${LOCALBASE}/include" \
2012-08-25 09:17:54 -04:00
LDFLAGS="-L${X11BASE}/lib -L${LOCALBASE}/lib" \
ac_cv_path_SWIG= # ruby, java
# internal ilbc (port libilbc?)
CONFIGURE_ARGS= --disable-sbc \
2011-10-26 12:59:34 -04:00
--enable-plugins \
--with-plugin-installdir=opal
2010-03-23 17:13:37 -04:00
2012-08-25 09:17:54 -04:00
# plugins/audio/SILK/ReadMe.txt; not for commercial
# http://developer.skype.com/silk
CONFIGURE_ARGS+= --disable-silk
2010-03-23 17:13:37 -04:00
# XXX
# ekiga:/usr/local/lib/opal-3.6.6/lid/vpb_lid_pwplugin.so:
# undefined symbol '_Z18vpb_set_event_maskit'
# <...>
CONFIGURE_ARGS+= --disable-vpb
2011-10-26 12:59:34 -04:00
pre-configure:
${SUBST_CMD} ${WRKSRC}/plugins/configure
perl -pi -e 's,SUBDIRS\+=\",SUBDIRS=\"\$${SUBDIRS},g' \
2011-10-26 12:59:34 -04:00
${WRKSRC}/plugins/configure
2010-03-23 17:13:37 -04:00
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/opal
${INSTALL_DATA} ${WRKSRC}/opal_inc.mak ${PREFIX}/share/opal
${INSTALL_DATA} ${WRKSRC}/version.h ${PREFIX}/share/opal
.include <bsd.port.mk>