2000-02-21 13:27:29 +00:00
|
|
|
# New ports collection makefile for: openh323
|
|
|
|
# Date created: Thu Feb 17 15:00:48 GMT 2000
|
|
|
|
# Whom: Roger Hardiman <roger@freebsd.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2000-04-09 18:14:07 +00:00
|
|
|
PORTNAME= openh323
|
2005-06-10 21:30:34 +00:00
|
|
|
PORTVERSION= 1.12.2
|
2000-02-21 13:27:29 +00:00
|
|
|
CATEGORIES= net
|
2000-02-23 10:05:38 +00:00
|
|
|
MASTER_SITES= http://www.openh323.org/bin/ \
|
|
|
|
http://www.de.openh323.org/bin/ \
|
2003-08-28 06:56:10 +00:00
|
|
|
http://www.gnomemeeting.org/downloads/0.98.0/sources/
|
|
|
|
DISTNAME= ${PORTNAME}_${PORTVERSION}
|
2000-02-21 13:27:29 +00:00
|
|
|
|
2004-12-05 04:54:21 +00:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-08-28 06:56:10 +00:00
|
|
|
COMMENT= A H323 Video Conferencing library
|
2000-02-21 13:27:29 +00:00
|
|
|
|
2003-08-28 21:22:52 +00:00
|
|
|
BUILD_DEPENDS= ${NONEXISTENT}:${PORTSDIR}/devel/pwlib:build
|
2004-03-14 07:58:26 +00:00
|
|
|
LIB_DEPENDS= expat.5:${PORTSDIR}/textproc/expat2
|
2002-11-12 10:12:06 +00:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${OSVERSION} < 500000
|
2002-01-18 05:27:29 +00:00
|
|
|
# Check for telephony.h in the two places the source is hard coded to check
|
|
|
|
# /usr/include/sys and /usr/local/include/sys
|
2002-01-15 15:06:17 +00:00
|
|
|
# If it is not present, extract it from the comms/ixj port
|
|
|
|
.if !exists(/usr/include/sys/telephony.h)
|
2002-01-18 05:27:29 +00:00
|
|
|
.if !exists(/usr/local/include/sys/telephony.h)
|
2005-06-10 21:30:34 +00:00
|
|
|
PATCH_DEPENDS+= ${NONEXISTENT}:${PORTSDIR}/comms/ixj:patch
|
2002-01-18 05:27:29 +00:00
|
|
|
.endif
|
2002-01-15 15:06:17 +00:00
|
|
|
.endif
|
2002-11-12 10:12:06 +00:00
|
|
|
.endif
|
2002-01-15 15:06:17 +00:00
|
|
|
|
2001-01-16 17:33:20 +00:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
2000-02-21 13:27:29 +00:00
|
|
|
|
2004-02-06 13:12:53 +00:00
|
|
|
PLIST_FILES= bin/simph323
|
2000-02-25 08:06:46 +00:00
|
|
|
USE_BISON= yes
|
2001-03-15 11:25:10 +00:00
|
|
|
|
2000-02-29 08:41:41 +00:00
|
|
|
USE_GMAKE= yes
|
2003-11-17 19:28:33 +00:00
|
|
|
USE_OPENLDAP= yes
|
2005-11-15 06:52:12 +00:00
|
|
|
USE_AUTOTOOLS= autoconf:259
|
2003-08-28 06:56:10 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2005-02-21 13:17:35 +00:00
|
|
|
PWLIBDIR!= cd ${PORTSDIR}/devel/pwlib && make -V WRKSRC
|
|
|
|
CONFIGURE_ENV= PWLIBDIR=${PWLIBDIR} OPENH323DIR=${WRKSRC}
|
2002-11-28 08:17:49 +00:00
|
|
|
ALL_TARGET= optnoshared
|
2005-02-21 13:17:35 +00:00
|
|
|
MAKE_ENV= PWLIBDIR=${PWLIBDIR} OPENH323DIR=${WRKSRC}
|
2000-04-04 13:38:09 +00:00
|
|
|
THE_MACHTYPE= ${ARCH:S/i386/x86/}
|
2000-05-02 16:54:12 +00:00
|
|
|
MAKE_ARGS= OSTYPE=${OPSYS} MACHTYPE=${THE_MACHTYPE} OSRELEASE=${OSVERSION} CPLUS=${CXX}
|
2000-04-04 13:38:09 +00:00
|
|
|
|
2002-01-15 15:06:17 +00:00
|
|
|
post-patch:
|
2002-11-21 09:56:50 +00:00
|
|
|
.if ${OSVERSION} < 500000
|
2002-01-15 15:06:17 +00:00
|
|
|
.if !exists(/usr/include/sys/telephony.h)
|
2002-01-18 05:27:29 +00:00
|
|
|
.if !exists(/usr/local/include/sys/telephony.h)
|
|
|
|
# Copy ixj driver include files into OpenH323 include directory
|
2002-01-15 15:06:17 +00:00
|
|
|
${MKDIR} ${WRKDIR}/openh323/include/sys
|
2002-01-18 05:27:29 +00:00
|
|
|
${CP} ${WRKDIRPREFIX}${.CURDIR}/../../comms/ixj/work/ixj_freebsd/telephony.h ${WRKDIR}/openh323/include/sys
|
|
|
|
${CP} ${WRKDIRPREFIX}${.CURDIR}/../../comms/ixj/work/ixj_freebsd/ixjuser.h ${WRKDIR}/openh323/include/sys
|
2002-01-15 15:06:17 +00:00
|
|
|
.endif
|
|
|
|
.endif
|
2002-11-21 09:56:50 +00:00
|
|
|
.endif
|
2002-01-15 15:06:17 +00:00
|
|
|
|
2000-02-21 13:27:29 +00:00
|
|
|
do-install:
|
2000-08-18 18:27:03 +00:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/samples/simple/obj_${OPSYS}_${THE_MACHTYPE}_r/simph323 ${PREFIX}/bin
|
2000-02-21 13:27:29 +00:00
|
|
|
|
2002-11-12 10:12:06 +00:00
|
|
|
.include <bsd.port.post.mk>
|