freebsd-ports/net/openh323-112/Makefile
Roger Hardiman 21cd0c2b8c Fix breakage introduced by commits to bsd.port.mk
The post-patch targed used to run after BUILD_DEPENDS had been processed but
this is no longer the case.
I could have changed the post-patch target to pre-build.
But I may as well use the nice new PATCH_DEPENDS feature.
2003-03-05 14:36:29 +00:00

60 lines
1.8 KiB
Makefile

# New ports collection makefile for: openh323
# Date created: Thu Feb 17 15:00:48 GMT 2000
# Whom: Roger Hardiman <roger@freebsd.org>
#
# $FreeBSD$
#
PORTNAME= openh323
PORTVERSION= 1.11.2
PORTREVISION= 1
CATEGORIES= net
MASTER_SITES= http://www.openh323.org/bin/ \
http://www.de.openh323.org/bin/ \
http://www.gnomemeeting.org/downloads/0.94.1/sources/
DISTFILES= openh323_1.11.2.tar.gz \
pwlib_1.4.7.tar.gz
MAINTAINER= roger@freebsd.org
LIB_DEPENDS= expat.4:${PORTSDIR}/textproc/expat2
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 500000
# Check for telephony.h in the two places the source is hard coded to check
# /usr/include/sys and /usr/local/include/sys
# If it is not present, extract it from the comms/ixj port
.if !exists(/usr/include/sys/telephony.h)
.if !exists(/usr/local/include/sys/telephony.h)
PATCH_DEPENDS= ${NONEXISTENT}:${PORTSDIR}/comms/ixj:patch
.endif
.endif
.endif
WRKSRC= ${WRKDIR}/${PORTNAME}
USE_BISON= yes
USE_GMAKE= yes
ALL_TARGET= optnoshared
MAKE_ENV= PWLIBDIR=${WRKDIR}/pwlib \
OPENH323DIR=${WRKDIR}/openh323
THE_MACHTYPE= ${ARCH:S/i386/x86/}
MAKE_ARGS= OSTYPE=${OPSYS} MACHTYPE=${THE_MACHTYPE} OSRELEASE=${OSVERSION} CPLUS=${CXX}
post-patch:
.if ${OSVERSION} < 500000
.if !exists(/usr/include/sys/telephony.h)
.if !exists(/usr/local/include/sys/telephony.h)
# Copy ixj driver include files into OpenH323 include directory
${MKDIR} ${WRKDIR}/openh323/include/sys
${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
.endif
.endif
.endif
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/samples/simple/obj_${OPSYS}_${THE_MACHTYPE}_r/simph323 ${PREFIX}/bin
.include <bsd.port.post.mk>