a84c115a09
Approved by: portmgr (not really, but touches unstaged ports)
51 lines
1.2 KiB
Makefile
51 lines
1.2 KiB
Makefile
# Created by: William Lloyd <wlloyd@slap.net>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= spandsp
|
|
DISTVERSION= 0.0.6pre21
|
|
PORTREVISION= 2
|
|
CATEGORIES= comms
|
|
MASTER_SITES= http://www.soft-switch.org/downloads/spandsp/
|
|
PKGNAMESUFFIX= -devel
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= DSP library and software FAX machine
|
|
|
|
LIB_DEPENDS= libtiff.so:${PORTSDIR}/graphics/tiff
|
|
|
|
WRKSRC= ${WRKDIR}/spandsp-${DISTVERSION:C/pre.*//}
|
|
|
|
USES= gmake pathfix tar:tgz
|
|
USE_AUTOTOOLS= libtool autoconf
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
LDFLAGS="-L${LOCALBASE}/lib" -C
|
|
USE_LDCONFIG= yes
|
|
|
|
CONFLICTS= spandsp-[0-9]*
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
DOCS_DESC= Build and install documentation (requires doxygen)
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
PORTDOCS= *
|
|
CONFIGURE_ARGS+=--enable-doc
|
|
BUILD_DEPENDS+= doxygen:${PORTSDIR}/devel/doxygen \
|
|
docbook-xsl>=0:${PORTSDIR}/textproc/docbook-xsl
|
|
USE_GNOME+= libxslt
|
|
.else
|
|
CONFIGURE_ARGS+=--disable-doc
|
|
.endif
|
|
|
|
post-install:
|
|
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libspandsp.so.2
|
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
(cd ${WRKSRC}/doc && \
|
|
${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR} "-type d -or -mindepth 1")
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|