2008-04-29 07:42:45 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.8 2008/04/29 11:42:45 ajacoutot Exp $
|
2007-04-25 07:12:26 -04:00
|
|
|
|
|
|
|
SHARED_ONLY= Yes
|
|
|
|
|
2007-09-15 22:52:56 -04:00
|
|
|
COMMENT= portable Windows library
|
2007-04-25 07:12:26 -04:00
|
|
|
|
2008-03-15 13:38:07 -04:00
|
|
|
V= 1_12_0
|
|
|
|
DISTNAME= ptlib-v${V}
|
2008-04-29 07:42:45 -04:00
|
|
|
PKGNAME= pwlib-${V:S/_/./g}p0
|
2007-04-25 07:12:26 -04:00
|
|
|
CATEGORIES= devel
|
|
|
|
|
2008-03-15 13:38:07 -04:00
|
|
|
EXTRACT_SUFX= -src.tar.gz
|
2007-04-25 07:12:26 -04:00
|
|
|
|
2008-03-15 13:38:07 -04:00
|
|
|
SHARED_LIBS= pt 2.0 # 1.12.0
|
2007-04-25 07:12:26 -04:00
|
|
|
|
2008-03-15 13:38:07 -04:00
|
|
|
HOMEPAGE= http://www.h323plus.org/
|
2007-04-25 07:12:26 -04:00
|
|
|
|
|
|
|
MAINTAINER= Antoine Jacoutot <ajacoutot@openbsd.org>
|
|
|
|
|
2008-03-15 13:38:07 -04:00
|
|
|
# MPL
|
2007-04-25 07:12:26 -04:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
2008-03-15 13:38:07 -04:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=h323plus/}
|
2007-04-25 07:12:26 -04:00
|
|
|
|
|
|
|
WANTLIB= crypto expat ossaudio ssl
|
|
|
|
|
|
|
|
BUILD_DEPENDS= ::devel/bison
|
2008-04-29 07:42:45 -04:00
|
|
|
LIB_DEPENDS= esd.>=2::audio/esound
|
2007-04-25 07:12:26 -04:00
|
|
|
|
|
|
|
WRKDIST= ${WRKDIR}/${DISTNAME:S/-/_/}
|
|
|
|
NO_REGRESS= Yes
|
|
|
|
|
2008-04-21 11:03:12 -04:00
|
|
|
.if ${MACHINE_ARCH} == "alpha"
|
|
|
|
STDCCFLAGS+= -fPIC
|
|
|
|
.endif
|
|
|
|
|
2007-04-25 07:12:26 -04:00
|
|
|
USE_GMAKE= Yes
|
|
|
|
ALL_TARGET= optshared
|
2007-05-06 09:24:32 -04:00
|
|
|
MAKE_ENV+= STDCCFLAGS="${STDCCFLAGS} -I${X11BASE}/include \
|
|
|
|
-I${LOCALBASE}/include" \
|
2007-04-25 07:12:26 -04:00
|
|
|
CC=${CC} CPLUS=${CXX}
|
2008-03-15 13:38:07 -04:00
|
|
|
MAKE_FLAGS= LIB_MAJOR_VERSION=${LIBpt_VERSION:R} \
|
|
|
|
LIB_MINOR_VERSION=${LIBpt_VERSION:E}
|
2007-04-25 07:12:26 -04:00
|
|
|
|
|
|
|
CONFIGURE_STYLE=gnu
|
2007-05-04 05:56:02 -04:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${X11BASE}/include -I${LOCALBASE}/include" \
|
|
|
|
LDFLAGS="-L${X11BASE}/lib -L${LOCALBASE}/lib"
|
2007-04-25 07:12:26 -04:00
|
|
|
CONFIGURE_ARGS= --enable-plugins \
|
|
|
|
--enable-oss \
|
2008-04-29 07:42:45 -04:00
|
|
|
--enable-esd \
|
2007-04-25 07:12:26 -04:00
|
|
|
--enable-bsdvideo \
|
2008-03-15 13:38:07 -04:00
|
|
|
--disable-sunaudio \
|
2007-04-25 07:12:26 -04:00
|
|
|
--disable-alsa \
|
|
|
|
--disable-avc \
|
2008-03-15 13:38:07 -04:00
|
|
|
--disable-dc \
|
|
|
|
--disable-odbc
|
2007-04-25 07:12:26 -04:00
|
|
|
|
2008-04-29 07:42:45 -04:00
|
|
|
# XXX sys/videoio.h
|
|
|
|
CONFIGURE_ARGS+=--disable-v4l2
|
|
|
|
|
2007-04-25 07:12:26 -04:00
|
|
|
.if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "sparc64"
|
|
|
|
CFLAGS+= -fPIC
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${MACHINE_ARCH} == "powerpc"
|
2007-09-15 22:52:56 -04:00
|
|
|
BROKEN= Compiles on powerpc but it does not work
|
2007-04-25 07:12:26 -04:00
|
|
|
.endif
|
|
|
|
|
|
|
|
FLAVORS= ldap sasl sdl
|
|
|
|
FLAVOR?=
|
|
|
|
|
|
|
|
.if ${FLAVOR:L:Mldap}
|
|
|
|
LIB_DEPENDS+= lber.>=9,ldap.>=9,ldap_r.>=9::databases/openldap
|
|
|
|
CONFIGURE_ARGS+=--enable-openldap
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-openldap
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${FLAVOR:L:Msasl}
|
|
|
|
LIB_DEPENDS+= sasl2.>=2::security/cyrus-sasl2
|
|
|
|
CONFIGURE_ARGS+=--enable-sasl
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-sasl
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${FLAVOR:L:Msdl}
|
|
|
|
LIB_DEPENDS+= SDL.>=7::devel/sdl
|
|
|
|
CONFIGURE_ARGS+=--enable-sdl
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-sdl
|
|
|
|
.endif
|
|
|
|
|
|
|
|
pre-configure:
|
|
|
|
@perl -pi -e 's,!!PREFIX!!,${PREFIX},g' \
|
|
|
|
${WRKSRC}/src/ptlib/common/pluginmgr.cxx \
|
|
|
|
${WRKSRC}/make/ptlib-config.in \
|
|
|
|
${WRKSRC}/make/unix.mak
|
|
|
|
|
2008-03-15 13:38:07 -04:00
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/version.h ${PREFIX}/share/pwlib
|
|
|
|
|
2007-04-25 07:12:26 -04:00
|
|
|
.include <bsd.port.mk>
|