2000-02-21 08:27:29 -05: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 14:14:07 -04:00
|
|
|
PORTNAME= openh323
|
2002-05-21 20:44:57 -04:00
|
|
|
PORTVERSION= 1.8.8
|
2000-02-21 08:27:29 -05:00
|
|
|
CATEGORIES= net
|
2000-02-23 05:05:38 -05:00
|
|
|
MASTER_SITES= http://www.openh323.org/bin/ \
|
|
|
|
http://www.de.openh323.org/bin/ \
|
|
|
|
http://www.ru.openh323.org/bin/
|
2002-05-21 20:44:57 -04:00
|
|
|
DISTFILES= openh323_1.8.8.tar.gz \
|
|
|
|
pwlib_1.2.19.tar.gz
|
2000-02-21 08:27:29 -05:00
|
|
|
|
|
|
|
MAINTAINER= roger@freebsd.org
|
|
|
|
|
2002-01-18 00:27:29 -05: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 10:06:17 -05:00
|
|
|
# If it is not present, extract it from the comms/ixj port
|
|
|
|
.if !exists(/usr/include/sys/telephony.h)
|
2002-01-18 00:27:29 -05:00
|
|
|
.if !exists(/usr/local/include/sys/telephony.h)
|
|
|
|
BUILD_DEPENDS= ${NONEXISTENT}:${PORTSDIR}/comms/ixj:patch
|
|
|
|
.endif
|
2002-01-15 10:06:17 -05:00
|
|
|
.endif
|
|
|
|
|
2001-01-16 12:33:20 -05:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
2000-02-21 08:27:29 -05:00
|
|
|
|
2000-05-02 12:54:12 -04:00
|
|
|
USE_NEWGCC= yes
|
2000-02-25 03:06:46 -05:00
|
|
|
USE_BISON= yes
|
2001-03-15 06:25:10 -05:00
|
|
|
|
2000-02-29 03:41:41 -05:00
|
|
|
USE_GMAKE= yes
|
2000-02-21 08:27:29 -05:00
|
|
|
ALL_TARGET= opt
|
|
|
|
MAKE_ENV= PWLIBDIR=${WRKDIR}/pwlib \
|
|
|
|
OPENH323DIR=${WRKDIR}/openh323
|
2000-04-04 09:38:09 -04:00
|
|
|
THE_MACHTYPE= ${ARCH:S/i386/x86/}
|
2000-05-02 12:54:12 -04:00
|
|
|
MAKE_ARGS= OSTYPE=${OPSYS} MACHTYPE=${THE_MACHTYPE} OSRELEASE=${OSVERSION} CPLUS=${CXX}
|
2000-04-04 09:38:09 -04:00
|
|
|
|
2002-01-15 10:06:17 -05:00
|
|
|
post-patch:
|
|
|
|
.if !exists(/usr/include/sys/telephony.h)
|
2002-01-18 00:27:29 -05:00
|
|
|
.if !exists(/usr/local/include/sys/telephony.h)
|
|
|
|
# Copy ixj driver include files into OpenH323 include directory
|
2002-01-15 10:06:17 -05:00
|
|
|
${MKDIR} ${WRKDIR}/openh323/include/sys
|
2002-01-18 00:27:29 -05: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 10:06:17 -05:00
|
|
|
.endif
|
|
|
|
.endif
|
|
|
|
|
2000-02-21 08:27:29 -05:00
|
|
|
do-install:
|
2000-08-18 14:27:03 -04:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/samples/simple/obj_${OPSYS}_${THE_MACHTYPE}_r/simph323 ${PREFIX}/bin
|
2000-02-21 08:27:29 -05:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|