aboutsummaryrefslogtreecommitdiffstats
path: root/net/openh323/Makefile
blob: 6ac8c399f0e52c21ab5c2cded02851dfbd27aa53 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# 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.12.2
PORTREVISION=   1
CATEGORIES= net
MASTER_SITES=   http://www.openh323.org/bin/ \
        http://www.de.openh323.org/bin/ \
        http://www.gnomemeeting.org/downloads/0.98.0/sources/
DISTNAME=   ${PORTNAME}_${PORTVERSION}

MAINTAINER= ports@FreeBSD.org
COMMENT=    A H323 Video Conferencing library

BUILD_DEPENDS=  ${NONEXISTENT}:${PORTSDIR}/devel/pwlib:build
LIB_DEPENDS=    expat.6:${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}

PLIST_FILES=    bin/simph323
USE_BISON=  yes

USE_GMAKE=  yes
USE_OPENLDAP=   yes
USE_AUTOTOOLS=  autoconf:259
GNU_CONFIGURE=  yes
PWLIBDIR!=  cd ${PORTSDIR}/devel/pwlib && make -V WRKSRC
CONFIGURE_ENV=  PWLIBDIR=${PWLIBDIR} OPENH323DIR=${WRKSRC}
ALL_TARGET= optnoshared
MAKE_ENV=   PWLIBDIR=${PWLIBDIR} OPENH323DIR=${WRKSRC}
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>
1/+8 * Fix two typos: add two trailing curly braces.bsam2013-06-201-2/+2 * Document the fact that _DEPENDS now also has per options helpersbapt2013-06-141-0/+3 * Add a forgotten helper:bapt2013-06-141-0/+6 * New macros to help dealing with ports that have options:bapt2013-06-141-0/+31 * Add a USES display to replace USE_DISPLAY.bapt2013-06-141-0/+13 * Fix ports using GH_TAGNAME=master to depend on a known hashbdrewery2013-06-081-0/+8 * Add WRKSRC_SUBDIR to simplify overriding WRKSRC:bdrewery2013-06-071-0/+12 * Wordingbapt2013-06-061-2/+2 * Remove support for parsing the old OPTIONS macro, the compatibility code to l...bapt2013-06-061-0/+6 * Document new USES: desktop-file-utils and shared-mime-info.kwm2013-05-091-0/+26 * USE_GETTEXT has totally been replaced by USES=gettext thanks, jgh and akbapt2013-05-071-0/+2 * Add new USES: shebangfixbapt2013-05-071-0/+10 * Add new USES: ncurses and readlinebapt2013-05-061-0/+16 * Introduces USES= iconv to replace USE_ICONV.mva2013-04-271-1/+8 * Remove USE_CDRTOOLS from bsd.port.mkbapt2013-04-261-0/+1 * Remove USE_FREETYPE from bsd.port.mkbapt2013-04-261-0/+5 * Introduces USES= gettext to replace USE_GETTEXTjgh2013-04-231-0/+13 * Fix datebapt2013-04-231-1/+1 * - Add WITH_CCACHE_BUILD support during 'configure' phasebdrewery2013-04-231-0/+9 * Introduce USES= pkgconfig to replace USE_PKGCONFIGbapt2013-04-231-0/+12 * - Add New USES macro to handle support for Zenoss ports and Zenpacks:jgh2013-03-201-0/+7 * Convert USE_CMAKE to USES macro:makc2013-03-201-0/+15 * Make the ports tree use dialog4ports for make config.bapt2013-03-191-0/+10 * Document USES=qmailbdrewery2013-03-161-0/+11 * Document the introduction of Keywords/info.yaml in CHANGESbapt2013-03-151-0/+7 * Add a note about the new USES macro and the new USES= pathfix fusebapt2013-03-071-0/+9 * - Fix Whitespacesmiwi2013-02-081-1/+1 * - Document that PTHREAD_CFLAGS and PTHREAD_LIBS are unsupportedgahr2013-02-071-0/+7 * - introduce a USE_FUSE macroflo2012-12-141-0/+7 * Extend the options framework providing 2 new macros:bapt2012-12-101-0/+7 * Minor whitespace and formatting fixes.danfe2012-11-171-3/+3 * We are in 2012, it is time to activate IPV6 options by default everywherebapt2012-10-101-0/+5 * Switching current to use pkgng by defaultbapt2012-10-101-0/+10 * - Add ccache support for building ports. [1]beat2012-08-301-0/+16 * - Add support for fetching from GitHub in bsd.sites.mkgahr2012-08-201-0/+22 * new devel/pkgconf added to replace devel/pkg-config. new version of pkg-configbapt2012-07-261-0/+15 * - use UPDATING instead CHANGESohauer2012-07-231-5/+0 * - use reserverd UID/GIDohauer2012-07-211-0/+5 * - Keep questions on a public mailing listbeat2012-07-161-1/+1 * - Add a note about the switch to Subversionbeat2012-07-161-0/+15 * - Fix copy-paste errorak2012-06-251-2/+2 * Give a passing mention of OPTIONSngcrees2012-06-241-0/+11 * - Add CHANGES entry on recent LDFLAGS updateamdmi32011-09-271-0/+19 * Describe how CPPFLAGS is now passed to both the configure and makegerald2011-06-071-0/+15 * Autotools update. Read ports/UPDATING 20100915 for details.ade2010-09-161-0/+8 * USE_GCC=4.3 is deprecated (and no port uses it anymore). USE_GCC=4.3+gerald2010-06-071-0/+7 * - Add entry in CHANGES about bsd.licenses*.mk.alepulver2010-05-261-0/+9 * - add 1 missing WITH_APACHEXX option to CHANGES thats now deadpgollucci2010-05-261-1/+1 * Bump copyright year to 2010erwin2010-01-031-1/+1 * be more specific about WITH_APACHE2 and friendspgollucci2009-12-261-1/+1