mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-12 03:00:28 +00:00
9250d94365
It brings bison as a build dependency in case it is set the following way: USES= bison or USES= bison:build it brings bison as a run dependency in case it is set the following way: USES= bison:run it brings bison both as a run and build dependency in case it the set the following way: USES= bison:both While here trim some headers Convert some USE_GNOME= gnomehack to USES= pathfix
55 lines
1.2 KiB
Makefile
55 lines
1.2 KiB
Makefile
# Created by: Roger Hardiman <roger@freebsd.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= openh323
|
|
PORTVERSION= 1.19.0.1
|
|
PORTREVISION= 6
|
|
CATEGORIES= net
|
|
MASTER_SITES= SF
|
|
DISTNAME= ${PORTNAME}-v${PORTVERSION:S/./_/g}-src
|
|
EXTRACT_SUFX= -tar.gz
|
|
DIST_SUBDIR= openh323
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= A H323 Video Conferencing library
|
|
|
|
LIB_DEPENDS= pt_r.1:${PORTSDIR}/devel/pwlib
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}_v${PORTVERSION:S/./_/g}
|
|
|
|
USES= bison
|
|
USE_GMAKE= yes
|
|
USE_AUTOTOOLS= autoconf
|
|
GNU_CONFIGURE= yes
|
|
USE_LDCONFIG= yes
|
|
|
|
ALL_TARGET= optshared
|
|
CONFIGURE_ENV+= BUILDTIME="YES"
|
|
CPPFLAGS+= -I${LOCALBASE}/include -I${WRKSRC}/include
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
|
MAKE_ENV= BUILDTIME="YES"
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.ifdef (WITH_FFMPEG)
|
|
LIB_DEPENDS+= avcodec.1:${PORTSDIR}/multimedia/ffmpeg
|
|
CONFIGURE_ARGS+= --enable-rfc2190avcodec=${LOCALBASE}/include/ffmpeg
|
|
.endif
|
|
|
|
.ifdef (WITH_SPEEX)
|
|
LIB_DEPENDS+= speex.1:${PORTSDIR}/audio/speex
|
|
CONFIGURE_ARGS+= --enable-localspeex=no
|
|
.else
|
|
CONFIGURE_ARGS+= --enable-localspeex=yes
|
|
.endif
|
|
|
|
.if (${ARCH} == "amd64") || (${ARCH} == "ia64") || (${ARCH} == "powerpc") || (${ARCH} == "sparc64")
|
|
CFLAGS+= -fPIC
|
|
.endif
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' \
|
|
${WRKSRC}/configure.ac
|
|
|
|
.include <bsd.port.post.mk>
|