freebsd-ports/net/opal/Makefile

52 lines
1.5 KiB
Makefile
Raw Normal View History

# 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.7.4
PORTREVISION= 2
CATEGORIES= net
MASTER_SITES= http://www.openh323.org/bin/ \
http://www.de.openh323.org/bin/ \
http://www.ru.openh323.org/bin/
DISTFILES= openh323_1.7.4.tar.gz \
pwlib_1.2.5.tar.gz
MAINTAINER= roger@freebsd.org
# Check for telephony.h in /usr/include/sys and in $PREFIX/include/sys.
# If it is not present, extract it from the comms/ixj port
.if !exists(/usr/include/sys/telephony.h)
BUILD_DEPENDS= ${PREFIX}/include/sys/telephony.h:${PORTSDIR}/comms/ixj:patch
.endif
WRKSRC= ${WRKDIR}/${PORTNAME}
2000-05-02 18:54:12 +02:00
USE_NEWGCC= yes
2000-02-25 09:06:46 +01:00
USE_BISON= yes
2000-02-29 09:41:41 +01:00
USE_GMAKE= yes
ALL_TARGET= opt
MAKE_ENV= PWLIBDIR=${WRKDIR}/pwlib \
OPENH323DIR=${WRKDIR}/openh323
THE_MACHTYPE= ${ARCH:S/i386/x86/}
2000-05-02 18:54:12 +02:00
MAKE_ARGS= OSTYPE=${OPSYS} MACHTYPE=${THE_MACHTYPE} OSRELEASE=${OSVERSION} CPLUS=${CXX}
post-patch:
.if !exists(/usr/include/sys/telephony.h)
.if !exists($(PREFIX)/sys/telephony.h)
# Copy over ixj driver include files into OpenH323 include directory
${MKDIR} ${WRKDIR}/openh323/include/sys
${CP} ${PORTSDIR}/comms/ixj/work/ixj_freebsd/telephony.h ${WRKDIR}/openh323/include/sys
${CP} ${PORTSDIR}/comms/ixj/work/ixj_freebsd/ixjuser.h ${WRKDIR}/openh323/include/sys
.endif
.endif
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/samples/simple/obj_${OPSYS}_${THE_MACHTYPE}_r/simph323 ${PREFIX}/bin
.include <bsd.port.mk>